CN114938369A - Software data packet synchronization method and device, computer equipment and storage medium - Google Patents

Software data packet synchronization method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114938369A
CN114938369A CN202210874145.9A CN202210874145A CN114938369A CN 114938369 A CN114938369 A CN 114938369A CN 202210874145 A CN202210874145 A CN 202210874145A CN 114938369 A CN114938369 A CN 114938369A
Authority
CN
China
Prior art keywords
platform
task
software data
data packet
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210874145.9A
Other languages
Chinese (zh)
Other versions
CN114938369B (en
Inventor
李少辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Kaiyuan Gongchuang Technology Co ltd
Original Assignee
Changsha Developer Technology Co ltd
Beijing Innovation Lezhi Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changsha Developer Technology Co ltd, Beijing Innovation Lezhi Network Technology Co ltd filed Critical Changsha Developer Technology Co ltd
Priority to CN202210874145.9A priority Critical patent/CN114938369B/en
Publication of CN114938369A publication Critical patent/CN114938369A/en
Application granted granted Critical
Publication of CN114938369B publication Critical patent/CN114938369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The embodiment of the invention discloses a method and a device for synchronizing software data packets, computer equipment and a storage medium, wherein the method comprises the following steps: carrying out legal compliance examination on the software data packet to be pushed to obtain a first software data packet, generating each single-platform pushing task according to the uploading platform configuration and the first software data packet in the first storage space, and pushing the first software data packet in the first storage space to each platform corresponding to the uploading platform configuration based on a pushing queue and a network inspection service library which are added with each single-platform pushing task; and generating a single-platform download task according to the configuration of the download platform, determining a software data packet to be checked from a platform corresponding to the configuration of the download platform based on a download queue and a network check service library added with the single-platform download task, and performing legal compliance check to obtain a second software data packet and storing the second software data packet in a second storage space. Therefore, the accuracy of synchronization is improved, the workload of synchronization is reduced, and the software data packets are synchronized in time.

Description

Software data packet synchronization method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for synchronizing software data packets, a computer device, and a storage medium.
Background
With the development of software technology, the types of software data packets are more and more, and version iteration is faster and faster, so that the requirement for software data packet synchronization is increased dramatically. In order to share the software data package, a software developer needs to synchronize the software data package on various sharing platforms. The software of different types of technology stacks has their own shared platforms, and these shared platforms are spread throughout various countries and regions of the world. A software developer firstly registers and logs in a sharing platform which the software developer wants to use, and then can synchronize software data packets, because different sharing platforms have different operation habits, the synchronization operation is complicated and is easy to generate errors, and the synchronization workload is increased for user permission limitation, different requirements, different auditing rules and the like; moreover, as the sharing platform is distributed in various countries and regions in the world, the conditions of connection limitation, service capability limitation and network instability of the sharing platform exist, so that the software data packets cannot be synchronized in time on the sharing platform, and the synchronization workload is further increased for user permission limitation, different requirements, different auditing rules and the like.
Disclosure of Invention
In view of the above, it is necessary to provide a method and an apparatus for synchronizing software data packets, a computer device, and a storage medium.
A method of synchronization of software data packets, the method comprising:
receiving a data synchronization request;
responding to the data synchronization request, and acquiring synchronization configuration;
if the synchronization type in the synchronization configuration is pushing, performing legal compliance audit on a software data packet to be pushed in the synchronization configuration to obtain a first software data packet, storing the first software data packet in a preset first storage space, generating a single-platform pushing task for each platform identifier in an uploading platform configuration in the synchronization configuration according to the synchronization configuration and the first software data packet in the first storage space, adding each single-platform pushing task to a preset pushing queue, and pushing the first software data packet in the first storage space to each platform corresponding to the uploading platform configuration based on each single-platform pushing task in the pushing queue and a preset network inspection service library;
if the synchronization type in the synchronization configuration is downloading, generating a single-platform downloading task according to the downloading platform configuration in the synchronization configuration, adding the single-platform downloading task to a preset downloading queue, downloading a software data packet from a platform corresponding to the downloading platform configuration based on the single-platform downloading task and the network inspection service library in the downloading queue, taking the software data packet as a software data packet to be checked, performing legal compliance checking on the software data packet to be checked to obtain a second software data packet, and storing the second software data packet in a preset second storage space.
A system for synchronization of software data packets, the system comprising:
the request receiving module is used for receiving a data synchronization request;
a synchronous configuration acquisition module, configured to respond to the data synchronization request and acquire a synchronous configuration;
the push module is used for carrying out legal compliance audit on a software data packet to be pushed in the synchronous configuration to obtain a first software data packet if the synchronous type in the synchronous configuration is pushing, storing the first software data packet in a preset first storage space, generating a single-platform push task aiming at each platform identifier in uploading platform configuration in the synchronous configuration according to the synchronous configuration and the first software data packet in the first storage space, adding each single-platform push task to a preset push queue, and pushing the first software data packet in the first storage space to each platform corresponding to the uploading platform configuration based on each single-platform push task in the push queue and a preset network inspection service library;
and the downloading module is used for generating a single-platform downloading task according to the downloading platform configuration in the synchronous configuration if the synchronous type in the synchronous configuration is downloading, adding the single-platform downloading task to a preset downloading queue, downloading a software data packet from a platform corresponding to the downloading platform configuration based on the single-platform downloading task and the network check service library in the downloading queue, taking the software data packet as a software data packet to be checked, checking the software data packet to be checked for legal compliance to obtain a second software data packet, and storing the second software data packet in a preset second storage space.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
receiving a data synchronization request;
responding to the data synchronization request, and acquiring synchronization configuration;
if the synchronization type in the synchronization configuration is pushing, performing legal compliance audit on a software data packet to be pushed in the synchronization configuration to obtain a first software data packet, storing the first software data packet in a preset first storage space, generating a single-platform pushing task for each platform identifier in an uploading platform configuration in the synchronization configuration according to the synchronization configuration and the first software data packet in the first storage space, adding each single-platform pushing task to a preset pushing queue, and pushing the first software data packet in the first storage space to each platform corresponding to the uploading platform configuration based on each single-platform pushing task in the pushing queue and a preset network inspection service library;
if the synchronization type in the synchronization configuration is downloading, generating a single-platform downloading task according to the downloading platform configuration in the synchronization configuration, adding the single-platform downloading task to a preset downloading queue, downloading a software data packet from a platform corresponding to the downloading platform configuration based on the single-platform downloading task and the network inspection service library in the downloading queue, taking the software data packet as a software data packet to be checked, performing legal compliance checking on the software data packet to be checked to obtain a second software data packet, and storing the second software data packet in a preset second storage space.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
receiving a data synchronization request;
responding to the data synchronization request, and acquiring synchronization configuration;
if the synchronization type in the synchronization configuration is pushing, performing legal compliance audit on a software data packet to be pushed in the synchronization configuration to obtain a first software data packet, storing the first software data packet in a preset first storage space, generating a single-platform pushing task for each platform identifier in an uploading platform configuration in the synchronization configuration according to the synchronization configuration and the first software data packet in the first storage space, adding each single-platform pushing task to a preset pushing queue, and pushing the first software data packet in the first storage space to each platform corresponding to the uploading platform configuration based on each single-platform pushing task in the pushing queue and a preset network inspection service library;
if the synchronization type in the synchronization configuration is downloading, generating a single-platform downloading task according to the downloading platform configuration in the synchronization configuration, adding the single-platform downloading task to a preset downloading queue, downloading a software data packet from a platform corresponding to the downloading platform configuration based on the single-platform downloading task and the network inspection service library in the downloading queue, taking the software data packet as a software data packet to be checked, performing legal compliance checking on the software data packet to be checked to obtain a second software data packet, and storing the second software data packet in a preset second storage space.
According to the software data packet synchronization method, if the synchronization type in the synchronization configuration is pushing, legal compliance examination is conducted on the software data packets to be pushed in the synchronization configuration to obtain first software data packets, the first software data packets are stored in a preset first storage space, single-platform pushing tasks are generated according to the synchronization configuration and the first software data packets in the first storage space aiming at each platform identification in uploading platform configuration in the synchronization configuration, each single-platform pushing task is added to a preset pushing queue, and the first software data packets in the first storage space are pushed to each platform corresponding to the uploading platform configuration based on each single-platform pushing task in the pushing queue and a preset network inspection service library; if the synchronization type in the synchronization configuration is downloading, generating a single-platform downloading task according to the downloading platform configuration in the synchronization configuration, adding the single-platform downloading task to a preset downloading queue, downloading a software data packet from a platform corresponding to the downloading platform configuration based on the single-platform downloading task and the network inspection service library in the downloading queue, taking the software data packet as a software data packet to be checked, performing legal compliance checking on the software data packet to be checked to obtain a second software data packet, and storing the second software data packet in a preset second storage space. Therefore, automatic network inspection and data synchronization are realized based on synchronous configuration, a pushing queue, a downloading queue and a network inspection service library, a user does not need to pay attention to connection limitation, service capability limitation and network stability of a platform, operation habits of the platform are not paid attention to, synchronous operation is simplified, synchronous accuracy is improved, and synchronous workload is reduced; through the caching function of the first storage space and the second storage space, the user can realize the timely synchronization of the software data package under the condition that the user does not care about the connection limitation, the service capability limitation and the network stability of the platform; and through the examination and verification of the law compliance, the synchronous software data packets all meet the requirements of laws and regulations.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow diagram of a method for synchronization of software data packets in one embodiment;
FIG. 2 is a block diagram of a synchronization apparatus for software packets in one embodiment;
FIG. 3 is a block diagram of a computer device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
In one embodiment, as shown in fig. 1, a method for synchronizing software data packets is provided. The method can be realized as a synchronous sharing platform, the synchronous sharing platform can synchronize the software data package with the sharing platform of the third party at home and abroad, and a sharing module can be arranged in the synchronous sharing platform and used as the synchronous object of the software data package. The method can be applied to both a terminal and a server, and this embodiment is exemplified by being applied to a server. The software data packet synchronization method specifically comprises the following steps:
step 102: receiving a data synchronization request;
specifically, the data synchronization request input by the user at the web page side that is in communication connection with the program system implementing the present application may be acquired, the data synchronization request transmitted by the user at the terminal that is in communication connection with the program system implementing the present application may be acquired, and the data synchronization request transmitted by the third application may be acquired.
The data synchronization request is a request for synchronizing software packets.
The software data packet carries a software data packet identifier. The software data package comprises: software source code or software packages. The software source code is the source code of the software. The software package is a compiled software installation package. The software package identifier may be a package name, a package ID, or the like, that uniquely identifies a software package.
Optionally, the software data package further includes: and (5) operating data. Operational data includes, but is not limited to: platform identification, download times, scoring, and feedback questions. The platform identification may be a platform name, platform ID, etc. that uniquely identifies a shared platform.
Step 104: responding to the data synchronization request, and acquiring synchronization configuration;
specifically, when the data synchronization request is received, the synchronization configuration input by the user may be obtained, or the synchronization configuration may be analyzed from the parameters carried in the data synchronization request.
Synchronous configuration is configuration data required for synchronization of software packets.
The synchronization configuration includes: the software data package description information, the synchronization type, the upload platform configuration and the download platform configuration. The software package description information includes but is not limited to: software package name, software package ID, and version. The software data package name is the name of the software data package. The software packet ID is the ID of the software packet. The value of the synchronization type is only one, and the value range of the synchronization type comprises: push and download. The upload platform configuration includes one or more platform identifications. The download platform configuration includes one or more platform identifications.
Optionally, the step of obtaining the synchronization configuration in response to the data synchronization request includes: responding to the data synchronization request, and displaying a configuration interface; and acquiring the synchronous configuration input by the user according to the configuration interface. It can be understood that, when the user performs synchronous configuration on the configuration interface, the candidate platform can be recommended according to the software data package description information input by the user, so that the operation steps of the user for performing synchronous configuration are simplified, and the user is facilitated to push the software data package to more platforms.
Step 106: if the synchronization type in the synchronization configuration is pushing, performing legal compliance audit on a software data packet to be pushed in the synchronization configuration to obtain a first software data packet, storing the first software data packet in a preset first storage space, generating a single-platform pushing task for each platform identifier in an uploading platform configuration in the synchronization configuration according to the synchronization configuration and the first software data packet in the first storage space, adding each single-platform pushing task to a preset pushing queue, and pushing the first software data packet in the first storage space to each platform corresponding to the uploading platform configuration based on each single-platform pushing task in the pushing queue and a preset network inspection service library;
if the synchronization type in the synchronization configuration is push, it means that a software data packet needs to be pushed to a platform, and at this time, the synchronization configuration includes: the method comprises the steps of software data package description information, synchronization types, uploading platform configuration and software data packages to be pushed. And the software data packet to be pushed is the software data packet needing to be pushed to the platform.
Specifically, a preset legal compliance audit rule is adopted to perform legal compliance audit on a software data packet to be pushed in the synchronous configuration, if a result of the legal compliance audit is passed, the software data packet to be pushed is used as the first software data packet, and if the result of the legal compliance audit is not passed, a non-compliant legal compliance signal is generated according to the synchronous configuration and is used as a first non-compliant legal compliance signal, wherein the first non-compliant legal compliance signal can perform information prompt in a program system for implementing the application and can also be sent to a client or a webpage end corresponding to the data synchronization request; storing the first software data packet in a preset first storage space, thereby realizing the caching of the first software data packet; generating a push task aiming at each platform identifier in the uploading platform configuration in the synchronous configuration according to the software data packet description information in the synchronous configuration and the first software data packet in the first storage space, and taking each push task as a single platform push task; and adding each single-platform pushing task to a preset pushing queue, thereby providing a foundation for pushing based on the queue.
And when the network inspection result is communication, the first software data packet in the first storage space is pushed to the platform. Thereby the user does not need to be concerned about the network condition of the platform.
It can be understood that, after the step of pushing the first software data packet in the first storage space to each platform corresponding to the configuration of the upload platform based on each single-platform push task and a preset network inspection service library in the push queue, a push completion signal is generated, which may be used to perform information prompt in a program system implementing the application, or may be used to send the push completion signal to a client or a web page corresponding to the data synchronization request. Thereby eliminating the need for the user to be concerned with the push process.
Step 108: if the synchronization type in the synchronization configuration is downloading, generating a single-platform downloading task according to the downloading platform configuration in the synchronization configuration, adding the single-platform downloading task to a preset downloading queue, downloading a software data packet from a platform corresponding to the downloading platform configuration based on the single-platform downloading task and the network inspection service library in the downloading queue, taking the software data packet as a software data packet to be checked, performing legal compliance checking on the software data packet to be checked to obtain a second software data packet, and storing the second software data packet in a preset second storage space.
Wherein, if the synchronization type in the synchronization configuration is downloading, it means that a software data package needs to be downloaded from a platform, and at this time, the synchronization configuration includes: the software package description information, synchronization type and download platform configuration.
It is understood that the second storage space and the first storage space may be the same storage space or different storage spaces.
Specifically, a downloading task is generated according to the software data package description information in the synchronous configuration and the downloading platform configuration, and the downloading task is used as a single platform downloading task; adding the single platform downloading task to a preset downloading queue, thereby realizing the downloading of the software data packet based on the queue; acquiring a single-platform downloading task from the downloading queue, then carrying out network inspection on a platform corresponding to the acquired single-platform downloading task based on a network inspection service library, downloading a software data packet from the platform corresponding to the single-platform downloading task (namely the platform corresponding to the configuration of the downloading platform) if the network inspection result is connected, and taking the downloaded software data packet as a software data packet to be checked; adopting a preset legal compliance auditing rule to carry out legal compliance auditing on the software data packet to be audited, if the result of the legal compliance auditing is passed, taking the software data packet to be audited as a second software data packet, if the result of the legal compliance auditing is not passed, generating a non-compliance signal according to synchronous configuration, and taking the non-compliance signal as a second non-compliance signal, wherein the second non-compliance signal can carry out information prompt in a program system for realizing the application and can also be sent to a client or a webpage end corresponding to the data synchronization request; and storing the second software data packet in a preset second storage space, so that the downloaded software data packet passing through legal compliance is cached, and a user does not need to care about the network condition of the platform.
It can be understood that, after the step of storing the second software data packet in the preset second storage space, a download completion signal is generated, and the download completion signal may be used to perform information prompt in a program system implementing the application, or may be sent to a client or a web page corresponding to the data synchronization request. Thereby freeing the user from being concerned with the downloading process.
Optionally, after the step of storing the second software data packet in a preset second storage space, the method further includes: displaying the operation data in the second software data packet in the second storage space by adopting a preset display mode, wherein the display mode comprises the following steps: and displaying according to a preset sorting mode and/or displaying after weighting according to a preset weighting mode. Therefore, the user can check the operation data of the software data packet in the interface displayed by the program system for realizing the application without logging in the platform.
For example, the display is performed according to a preset sorting mode, and the scores corresponding to the same software data packet identifier are used for performing reverse sorting.
For example, the scores are displayed after being weighted according to a preset weighting mode, that is, the scores corresponding to the same software data packet identifier are weighted and summed by using a preset platform weight set, and then the weighted and summed data is displayed on an interface.
The embodiment realizes automatic network inspection and data synchronization based on synchronous configuration, a push queue, a download queue and a network inspection service library, a user does not need to pay attention to connection limitation, service capability limitation and network stability of a platform, and operation habits of the platform, the synchronous operation is simplified, the synchronous accuracy is improved, and the synchronous workload is reduced; through the caching function of the first storage space and the second storage space, the user can realize the timely synchronization of the software data package under the condition that the user does not care about the connection limitation, the service capability limitation and the network stability of the platform; and through the examination and verification of the law compliance, the synchronous software data packets all meet the requirements of laws and regulations.
In an embodiment, the step of adding each single-platform push task to a preset push queue, and pushing the first software packet in the first storage space to each platform corresponding to the configuration of the upload platform based on each single-platform push task in the push queue and a preset network inspection service library includes:
step 202: adding each single-platform push task to a first instant queue of the push queues;
specifically, each single-platform push task is added to a first instant queue of the push queues, so that a basis is provided for performing software data packet push in a quasi-real-time manner.
Step 204: executing a preset first polling task, and acquiring the single-platform pushing task from the first instant queue as a first task;
specifically, a preset first polling task is executed, the single-platform pushing task is obtained from the first instant queue, and the obtained single-platform pushing task is used as a first task.
And the first polling task is a task for polling the first instant queue according to a preset time interval.
It will be appreciated that the first immediate queue is used to deposit tasks for performing software packet pushing.
Step 206: taking the platform corresponding to the first task as a first platform;
step 208: acquiring a network inspection service corresponding to the first platform from the network inspection service library as a first inspection service;
specifically, the network inspection service corresponding to the first platform is acquired from the network inspection service library, and the acquired network inspection service is used as the first inspection service.
Step 210: sending a first network check signal to the first platform according to the first check service, and acquiring a first check return signal corresponding to the first network check signal;
specifically, a first network check signal is sent to the first platform according to the first check service, so that the network check service corresponding to the first platform is adopted to perform network check on the first platform, and the accuracy of the network check is improved, so that the program system implementing the application can be in butt joint with various platforms.
Wherein a first network check signal is sent to a health check interface or some simple public interface of the first platform according to the first check service; if the first platform sends a signal according to a first network check signal, determining that the first check return signal is communicated; and if the first platform does not send signals within the preset time length, determining that the first check return signal is not communicated.
Step 212: if the first check return signal is communicated, executing the first task, and pushing the first software data packet in the first storage space to the first platform;
specifically, if the first check return signal is "connected", it means that a software data packet can be uploaded at this time, and therefore, the first task is executed to push the first software data packet in the first storage space to the first platform.
Optionally, when a failure occurs in the process of executing the first task to push the first software packet in the first storage space to the first platform, the first task is added to a first delay queue of the push queue.
Optionally, when a failure occurs in the process of executing the first task and pushing the first software data packet in the first storage space to the first platform, the first task is still retained in the first immediate queue.
Step 214: if the first check return signal is not communicated, adding the first task to a first delay queue of the push queue, wherein the first delay queue is used for delaying software data packet pushing;
specifically, if the first check return signal is not connected, it means that it is not possible to upload a software packet at this time, and therefore, adding the first task to the first delay queue of the push queue provides a basis for delaying the pushing of the first software packet in the first storage space.
The step of adding the single platform download task to a preset download queue, and downloading a software data package from a platform corresponding to the download platform configuration based on the single platform download task and the network check service library in the download queue as a software data package to be checked includes:
step 216: adding the single platform download task to a second instant queue of the download queue;
specifically, the single-platform downloading task is added to a second instant queue of the downloading queue, so that a basis is provided for quasi-real-time software data package downloading.
Step 218: executing a preset second polling task, and acquiring the single-platform downloading task from the second instant queue as a second task;
specifically, a preset second polling task is executed, the single-platform downloading task is obtained from the second instant queue, and the obtained single-platform downloading task is used as the second task.
And the second polling task is a task for polling the second instant queue according to a preset time interval.
It will be appreciated that the second immediate queue is used to deposit tasks for downloading software data packets.
Step 220: taking the platform corresponding to the second task as a second platform;
step 222: acquiring the network inspection service corresponding to the second platform from the network inspection service library as a second inspection service;
specifically, the network inspection service corresponding to the second platform is acquired from the network inspection service library, and the acquired network inspection service is used as the second inspection service.
Step 224: sending a second network check signal to the second platform according to the second check service, and acquiring a second check return signal corresponding to the second network check signal;
specifically, a second network check signal is sent to the second platform according to the second check service, so that the network check service corresponding to the second platform is adopted to perform network check on the second platform, the accuracy of the network check is improved, and the program system for implementing the application can be docked with various platforms.
Wherein a second network check signal is sent to a health check interface or some simple public interface of the second platform according to the second check service; if the second platform sends a signal according to a second network check signal, determining that the second check return signal is communicated; and if the second platform does not send signals within the preset time length, determining that the second check return signal is not communicated.
Step 226: if the second check return signal is communicated, executing the second task, downloading a software data packet from the second platform as the software data packet to be checked, generating a software updating task according to the second task, and adding the software updating task to a regular updating queue of the downloading queue, wherein the regular updating queue is used for downloading the software data packet regularly;
specifically, if the second check return signal is "on", it means that the software data package can be downloaded at this time, and therefore, the second task is executed, the software data package is downloaded from the second platform, the downloaded software data package is used as the software data package to be checked, a software update task is generated according to the second task, and the software update task is added to the regular update queue of the download queue. Providing a basis for the regular updating of software data packages.
Optionally, when a failure occurs in the process of executing the second task to download the software data packet from the second platform, the second task is added to a second delay queue of the download queue.
Optionally, when a failure occurs in the process of executing the second task and downloading the software data packet from the second platform, the second task is still kept in the second immediate queue.
Step 228: and if the second check return signal is not communicated, adding the second task to a second delay queue of the download queue, wherein the second delay queue is used for delaying the downloading of the software data packet.
Specifically, if the second check return signal is not connected, it means that the software data packet cannot be downloaded at this time, and therefore, the second task is added to the second delay queue of the download queue, which provides a basis for delaying the software data packet download.
The embodiment realizes quasi-real-time pushing based on the first instant queue, delays and pushes the pushing task with network abnormality based on the first delay queue, and simplifies synchronous operation, improves synchronous accuracy, reduces synchronous workload and realizes timely synchronization of software data packets, without paying attention to connection limitation, service capability limitation and network stability of a platform and operation habit of the platform by a user; the method has the advantages that the quasi-real-time downloading is carried out based on the second instant queue, the delayed downloading is carried out on the pushing task with the abnormal network based on the second delayed queue, a user does not need to pay attention to the connection limitation, the service capability limitation and the network stability of a platform, the operation habit of the platform is not needed, the synchronous operation is simplified, the synchronous accuracy is improved, the synchronous workload is reduced, and the software data packet can be timely synchronized; the software data packet is downloaded regularly based on the regular update queue, so that the latest version is automatically downloaded, a user does not need to pay attention to the update of the version, and the synchronous operation is further simplified.
In an embodiment, the step of executing the first task and pushing the first software data packet in the first storage space to the first platform includes:
step 302: searching a push adapter corresponding to the first platform from a preset push adapter library to obtain a first search result;
specifically, a push adapter corresponding to the first platform is searched from a preset push adapter library, if the push adapter is searched, the first search result is determined to be successful, and if the push adapter is not searched, the first search result is determined to be failed.
Step 304: if the first search result is successful, adapting the first software data packet in the first storage space by using the pushing adapter corresponding to the first search result to obtain a processed software data packet, executing the first task, and pushing the processed software data packet to the first platform;
specifically, if the first search result is successful, it means that adaptation processing needs to be performed, so that the push adapter corresponding to the first search result is first used to perform adaptation processing on the first software data packet in the first storage space, and the first software data packet subjected to adaptation processing is used as the processed software data packet, thereby obtaining a software data packet meeting the requirement of the first platform format; and then executing the first task and pushing the processed software data packet to the first platform, thereby realizing that the software data packet which is subjected to adaptive processing is pushed to the first platform, and improving the success rate of pushing.
Step 306: if the first search result is failure, pushing the first software data packet in the first storage space to the first platform;
specifically, if the first search result is a failure, it means that no adaptation process is needed or a suitable push adapter has not been determined yet, and therefore, the first software data packet in the first storage space is directly pushed to the first platform.
The step of executing the second task and downloading the software data package from the second platform as the to-be-audited software data package includes:
step 308: executing the second task, and downloading a software data packet from the second platform as a software data packet to be analyzed;
specifically, the second task is executed, the software data package is downloaded from the second platform, and the downloaded software data package is used as the software data package to be analyzed.
Step 310: searching a download adapter corresponding to the second platform from a preset download adapter library to obtain a second search result;
specifically, the download adapter corresponding to the second platform is searched from a preset download adapter library, if the download adapter is searched, the second search result is determined to be successful, and if the download adapter is not searched, the second search result is determined to be failed.
Step 312: if the second search result is successful, adopting the download adapter corresponding to the second search result to perform adaptation processing on the software data packet to be analyzed to obtain the software data packet to be examined;
specifically, if the second search result is successful, it means that adaptation processing needs to be performed, so that the download adapter corresponding to the second search result is used to perform adaptation processing on the software data packet to be analyzed, and the software data packet to be analyzed that has been subjected to adaptation processing is used as the software data packet to be checked, thereby obtaining a software data packet that meets the format requirement of the program system implementing the application.
Step 314: and if the second search result is failure, taking the software data packet to be analyzed as the software data packet to be checked.
Specifically, if the second search result is a failure, it means that no adaptation process is needed or a proper download adapter has not been determined yet, and therefore, the to-be-analyzed software data packet is directly used as the to-be-audited software data packet.
In this embodiment, the software data package to be pushed is automatically converted into a format required by the platform through the pushing adapter, and the software data package downloaded from the platform is automatically converted into a format meeting the format requirement of the program system implementing the application through the downloading adapter, so that a user does not need to pay attention to the problem of the requirement and limitation of each platform, and the program system implementing the application can be automatically docked with various types of platforms.
In an embodiment, the step of adding the first task to the first delay queue of the push queue includes:
step 402: judging whether the first platform exists in a preset signing platform list or not;
and the signing platform list is used for recording platform identifiers of the sharing platforms which have signed and butted with the program system for realizing the application. The subscription platform list includes: and identifying the platform.
Specifically, it is determined whether a platform identifier corresponding to the first platform exists in a signed platform list, and if so, it means that the first platform is a signed platform, and if not, it means that the first platform is not a signed platform.
Step 404: if the verification result of the platform passes, adding the first task to the first delay queue, and if the verification result of the platform does not pass, generating a platform pre-audit failure signal according to the first task;
specifically, if the first platform exists, that is, the first platform exists in a preset signed platform list, this indicates that the first platform is a signed platform, a platform auditing service corresponding to the first platform is obtained from a preset platform auditing service library, and the found platform auditing service is used as a target platform auditing service; adopting the target platform auditing service to pre-audit the software data packet corresponding to the first task, wherein if the pre-audit is passed, the platform auditing result is determined to be passed, and if the pre-audit is failed, the platform auditing result is determined to be failed; if the platform auditing result is that the first task passes, adding the first task to the first delay queue, thereby being beneficial to improving the success rate of pushing; and if the platform audit result does not pass, generating a platform pre-audit failure signal according to the first task, thereby realizing timely feedback of the platform audit result.
Step 406: if not, adding the first task to the first delay queue.
Specifically, if the first task does not exist, that is, the first platform does not exist in the preset contracted platform list, it means that the first platform is not a contracted platform, and the first task is directly added to the first delay queue.
In this embodiment, when the first platform is a subscription platform, under the condition that a real-time network is not available, platform pre-auditing is performed on a software data packet corresponding to the first task, so that a platform auditing result is fed back in time; when the network of the first platform is not communicated, more data may be accumulated and need to be uploaded, and when the network of the first platform is recovered, a large amount of data exchange may be caused, so that the auditing time of the first platform can be saved, the auditing process is reduced, the fast uploading is realized, and the data loss is prevented; and if the platform auditing result is passed, adding the first task into the first delay queue, thereby improving the success rate of pushing; if the platform audit result is not passed, a platform pre-audit failure signal is generated according to the first task, so that a user can know the platform audit result in advance, the user does not need to wait for pushing and then know the platform audit result, the user can correct the platform audit result in time, and the release period is shortened.
In one embodiment, after the step of acquiring the first check return signal corresponding to the first network check signal, the method further includes:
step 502: if the first check return signal is disconnected, generating a first network check timing task according to the first check return signal;
specifically, if the first check return signal is not connected, it means that the software packet cannot be pushed in near real time, and therefore, a timing task is generated from the first check return signal, and the generated timing task is used as the first network check timing task.
Step 504: executing the first network inspection timing task, and performing network inspection on the first platform to obtain a first inspection result;
specifically, the first network check timing task is executed, the first platform is subjected to network check, if the first platform can be connected, the first check result is determined to be connected, and if the first platform cannot be connected, the first check result is determined to be disconnected.
If the first check result is disconnected, the first network check timing task is reserved, and the network check is performed by waiting for the next time of executing the first network check timing task.
Step 506: if the first check result is communication, pushing a software data packet according to the first delay queue, and deleting the first network check timing task;
specifically, if the first check result is connected, the software data packet corresponding to the first check result is pushed according to the first delay queue, and the first network check timing task is deleted, so that the software data packet is pushed in a delayed manner automatically.
After the step of acquiring the second check return signal corresponding to the second network check signal, the method further includes:
step 508: if the second check return signal is not communicated, generating a second network check timing task according to the second check return signal;
specifically, if the second check return signal is not connected, it means that the software packet cannot be downloaded in near real time, and therefore, a timing task is generated based on the second check return signal, and the generated timing task is used as the second network check timing task.
Step 510: executing the second network checking timing task, and performing network checking on the second platform to obtain a second checking result;
specifically, the second network check timing task is executed, the second platform is subjected to network check, if the second platform can be connected, the second check result is determined to be connected, and if the second platform cannot be connected, the second check result is determined to be disconnected.
If the second check result is disconnected, the second network check timing task is reserved, and network check is carried out after the second network check timing task is executed next time.
Step 512: and if the second check result is communication, downloading the software data packet according to the second delay queue, and deleting the second network check timing task.
Specifically, if the second check result is connected, downloading the software data packet corresponding to the second check result according to the second delay queue, and deleting the second network check timing task, thereby realizing the automatic delayed downloading of the software data packet.
In the embodiment, the first network check timing task is set when the first check return signal is disconnected, and the second network check timing task is set when the second check return signal is disconnected, so that the automatic network check supplement is realized, and the synchronization of the software data packet is facilitated in time.
In an embodiment, after the step of generating a software update task according to the second task and adding the software update task to the periodic update queue of the download queue, the method further includes:
step 602: executing a preset periodic updating timing task, and acquiring the second task from the periodic updating queue as a task to be updated;
the regular updating timing task is a timing task executed according to a preset time interval or a preset time list.
Specifically, a preset regular updating timing task is executed, the software updating task is obtained from the regular updating queue, and the obtained software updating task is used as a task to be updated.
And the regular updating queue is used for storing tasks needing to be automatically updated and downloaded.
Step 604: executing the task to be updated, and downloading a software data packet with version update from a platform corresponding to the task to be updated as an update data packet;
specifically, the task to be updated is executed, a software data package with version update is downloaded from a platform corresponding to the task to be updated, and the downloaded data package is used as an update data package.
Step 606: storing the update data packet in the second storage space;
specifically, the update data packet is stored in the second storage space, so that the cache of the update data packet is realized.
Step 608: according to the task to be updated, searching the automatic updating configuration from a preset automatic updating configuration list to obtain a configuration searching result;
automatically updating the configuration list includes: the software package describes information and automatically updates the configuration. Automatically updating the configuration includes: storing one or more of a connection address, a mailbox, and a receiving interface of the application system.
Specifically, according to the task to be updated, automatic update configuration is searched from a preset automatic update configuration list, if the automatic update configuration is searched, the configuration search result is determined to be successful, and if the automatic update configuration is not searched, the configuration search result is determined to be failed.
Step 610: and if the configuration search result is successful, sending the update data packet to a target object corresponding to the automatic update configuration corresponding to the configuration search result.
Specifically, if the configuration search result is successful, it means that an update packet needs to be automatically pushed, and therefore, the update packet is sent to the target object corresponding to the automatic update configuration corresponding to the configuration search result.
The target object can be a storage space, a mailbox, or an application system.
The embodiment realizes the regular downloading and updating based on the regular updating regular task and the regular updating queue without the need that a user pays attention to the updating of the software data packet; and the task configured with automatic updating configuration automatically synchronizes the updating data packet to the target object, so that the user can automatically apply the updating data packet to the application system by setting in the application system.
In an embodiment, the step of obtaining the synchronization configuration in response to the data synchronization request includes:
step 702: responding to the data synchronization request, and acquiring the configuration to be evaluated and the target user identification;
specifically, the data synchronization request is responded, the configuration to be evaluated input by the user is obtained, the user identification is obtained from the parameters carried by the data synchronization request, and the obtained user identification is used as the target user identification.
The user identifier may be a user name, a user ID, or the like, which uniquely identifies a user.
Step 704: judging whether the target user identification exists in a preset registered user identification library or not;
the registered user identification library is used for recording the user identification of the user who is successfully registered in the program system for realizing the application. The registered user identification library comprises one or more user identifications.
Specifically, it is determined whether the target user identifier exists in a preset registered user identifier library, that is, it is determined whether a user corresponding to the target user identifier is a successfully registered user.
Step 706: if so, judging whether a platform identifier to be evaluated is positioned outside a preset signing platform list, wherein the platform identifier to be evaluated is a platform identifier in the uploading platform configuration or a platform identifier in the downloading platform configuration;
specifically, if yes, that is, the target user identifier exists in a preset registered user identifier library, at this time, it means that the user corresponding to the target user identifier is a successfully registered user, and therefore, the platform identifier in the upload platform configuration or the platform identifier in the download platform configuration is used as the platform identifier to be evaluated, and it is determined whether the platform identifier to be evaluated exists outside a preset subscription platform list.
Step 708: if so, taking each platform identifier to be evaluated outside the signing platform list as an unauthorized platform identifier;
specifically, if yes, that is, the to-be-evaluated platform identifier is located outside the preset signed platform list, it means that the platform that the target user identifier wants to synchronize has an un-signed platform, and therefore, each of the to-be-evaluated platform identifiers located outside the signed platform list is used as an unauthorized platform identifier.
Step 710: searching an authorization token from a preset authorization token library according to the target user identification and the unauthorized platform identification to obtain a token searching result;
the authorization token pool comprises: query keywords and authorization tokens. The query keyword includes: user identification and platform identification. The authorization token is a credential for the platform to authorize the user.
Specifically, the target user identifier and the unauthorized platform identifier are used as associated data, the associated data is used for searching an authorized token in an authorized token library, if the authorized token is searched, the token searching result is determined to be successful, and if the authorized token is not searched, the token searching result is determined to be failed.
Step 712: if the token searching result is failure, obtaining the authorization token to be stored input by the user according to each unauthorized platform identification of which the token searching result is failure, and updating the authorization token library according to the authorization token to be stored;
specifically, if the token search result is a failure, it means that the user corresponding to the target user identifier has not uploaded the authorization token to the authorization token pool, and at this time, the authorization token needs to be uploaded.
Step 714: and taking the configuration to be evaluated as the synchronization configuration.
Specifically, the configuration to be evaluated, to which the authorization token identified by each unauthorized platform is uploaded, is taken as the synchronization configuration.
In the embodiment, under the condition of user registration, when the synchronization platform is the signing platform, the user does not need to provide an authorization token, so that the registered user is helped to directly butt joint resources of the signing platform by using the advantages of the method, and the user operation is simplified; when the synchronous platform is the non-contract platform, the user is required to provide the authorization token, so that the quick platform docking service and the synchronous service are provided for the user, the user does not need to pay attention to the connection limit, the service capability limit and the network stability of the platform, the operation habit of the platform is not concerned, the synchronous operation is simplified, the synchronous accuracy is improved, and the synchronous workload is reduced.
As shown in fig. 2, a system for synchronizing software data packets, the system comprising:
a request receiving module 802, configured to receive a data synchronization request;
a synchronization configuration obtaining module 804, configured to respond to the data synchronization request and obtain synchronization configuration;
a pushing module 806, configured to, if a synchronization type in the synchronization configuration is pushing, perform legal compliance audit on a software data packet to be pushed in the synchronization configuration to obtain a first software data packet, store the first software data packet in a preset first storage space, generate a single-platform pushing task for each platform identifier in an upload platform configuration in the synchronization configuration according to the synchronization configuration and the first software data packet in the first storage space, add each single-platform pushing task to a preset pushing queue, and push the first software data packet in the first storage space to each platform corresponding to the upload platform configuration based on each single-platform pushing task in the pushing queue and a preset network inspection service library;
a downloading module 808, configured to generate a single platform downloading task according to a downloading platform configuration in the synchronous configuration if the synchronous type in the synchronous configuration is downloading, add the single platform downloading task to a preset downloading queue, download a software data packet from a platform corresponding to the downloading platform configuration based on the single platform downloading task and the network check service library in the downloading queue, serve as a software data packet to be checked, perform legal compliance checking on the software data packet to be checked, obtain a second software data packet, and store the second software data packet in a preset second storage space.
The embodiment realizes automatic network inspection and data synchronization based on synchronous configuration, a push queue, a download queue and a network inspection service library, a user does not need to pay attention to connection limitation, service capability limitation and network stability of a platform, and operation habits of the platform, the synchronous operation is simplified, the synchronous accuracy is improved, and the synchronous workload is reduced; through the caching function of the first storage space and the second storage space, the user can realize the timely synchronization of the software data package under the condition that the user does not care about the connection limitation, the service capability limitation and the network stability of the platform; and the synchronous software data packets are made to accord with the requirements of laws and regulations through the examination and verification of the laws and regulations.
FIG. 3 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a terminal, and may also be a server. As shown in fig. 3, the computer device includes a processor, a memory, and a network interface connected by a system bus. The memory comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program which, when executed by the processor, causes the processor to implement the method of synchronization of software data packets. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform a method for synchronizing software packages. Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is proposed, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
receiving a data synchronization request;
responding to the data synchronization request, and acquiring synchronization configuration;
if the synchronization type in the synchronization configuration is pushing, performing legal compliance audit on a software data packet to be pushed in the synchronization configuration to obtain a first software data packet, storing the first software data packet in a preset first storage space, generating a single-platform pushing task for each platform identifier in an uploading platform configuration in the synchronization configuration according to the synchronization configuration and the first software data packet in the first storage space, adding each single-platform pushing task to a preset pushing queue, and pushing the first software data packet in the first storage space to each platform corresponding to the uploading platform configuration based on each single-platform pushing task in the pushing queue and a preset network inspection service library;
if the synchronization type in the synchronization configuration is downloading, generating a single-platform downloading task according to the downloading platform configuration in the synchronization configuration, adding the single-platform downloading task to a preset downloading queue, downloading a software data packet from a platform corresponding to the downloading platform configuration based on the single-platform downloading task and the network inspection service library in the downloading queue, taking the software data packet as a software data packet to be checked, performing legal compliance checking on the software data packet to be checked to obtain a second software data packet, and storing the second software data packet in a preset second storage space.
The embodiment realizes automatic network inspection and data synchronization based on synchronous configuration, a push queue, a download queue and a network inspection service library, a user does not need to pay attention to connection limitation, service capability limitation and network stability of a platform, and operation habits of the platform, the synchronous operation is simplified, the synchronous accuracy is improved, and the synchronous workload is reduced; through the caching function of the first storage space and the second storage space, the user can realize the timely synchronization of the software data package under the condition that the user does not care about the connection limitation, the service capability limitation and the network stability of the platform; and the synchronous software data packets are made to accord with the requirements of laws and regulations through the examination and verification of the laws and regulations.
In one embodiment, a computer-readable storage medium is proposed, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of:
receiving a data synchronization request;
responding to the data synchronization request, and acquiring synchronization configuration;
if the synchronization type in the synchronization configuration is pushing, performing legal compliance audit on a software data packet to be pushed in the synchronization configuration to obtain a first software data packet, storing the first software data packet in a preset first storage space, generating a single-platform pushing task for each platform identifier in an uploading platform configuration in the synchronization configuration according to the synchronization configuration and the first software data packet in the first storage space, adding each single-platform pushing task to a preset pushing queue, and pushing the first software data packet in the first storage space to each platform corresponding to the uploading platform configuration based on each single-platform pushing task in the pushing queue and a preset network inspection service library;
if the synchronization type in the synchronization configuration is downloading, generating a single-platform downloading task according to the downloading platform configuration in the synchronization configuration, adding the single-platform downloading task to a preset downloading queue, downloading a software data packet from a platform corresponding to the downloading platform configuration based on the single-platform downloading task and the network inspection service library in the downloading queue, taking the software data packet as a software data packet to be checked, performing legal compliance checking on the software data packet to be checked to obtain a second software data packet, and storing the second software data packet in a preset second storage space.
The embodiment realizes automatic network inspection and data synchronization based on synchronous configuration, a push queue, a download queue and a network inspection service library, a user does not need to pay attention to connection limitation, service capability limitation and network stability of a platform, and operation habits of the platform, the synchronous operation is simplified, the synchronous accuracy is improved, and the synchronous workload is reduced; through the caching function of the first storage space and the second storage space, the user can realize the timely synchronization of the software data package under the condition that the user does not care about the connection limitation, the service capability limitation and the network stability of the platform; and through the examination and verification of the law compliance, the synchronous software data packets all meet the requirements of laws and regulations.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of synchronization of software data packets, the method comprising:
receiving a data synchronization request;
responding to the data synchronization request, and acquiring synchronization configuration;
if the synchronization type in the synchronization configuration is pushing, performing legal compliance examination on a software data packet to be pushed in the synchronization configuration to obtain a first software data packet, storing the first software data packet in a preset first storage space, generating a single-platform pushing task aiming at each platform identifier in uploading platform configuration in the synchronization configuration according to the synchronization configuration and the first software data packet in the first storage space, adding each single-platform pushing task to a preset pushing queue, and pushing the first software data packet in the first storage space to each platform corresponding to the uploading platform configuration based on each single-platform pushing task in the pushing queue and a preset network inspection service library;
if the synchronization type in the synchronization configuration is downloading, generating a single-platform downloading task according to the downloading platform configuration in the synchronization configuration, adding the single-platform downloading task to a preset downloading queue, downloading a software data packet from a platform corresponding to the downloading platform configuration based on the single-platform downloading task and the network inspection service library in the downloading queue, taking the software data packet as a software data packet to be checked, performing legal compliance checking on the software data packet to be checked to obtain a second software data packet, and storing the second software data packet in a preset second storage space.
2. The method according to claim 1, wherein the step of adding each single-platform push task to a preset push queue, and pushing the first software packet in the first storage space to each platform corresponding to the configuration of the upload platform based on each single-platform push task in the push queue and a preset network inspection service library comprises:
adding each single-platform push task to a first instant queue of the push queues;
executing a preset first polling task, and acquiring the single-platform pushing task from the first instant queue as a first task;
taking the platform corresponding to the first task as a first platform;
acquiring a network inspection service corresponding to the first platform from the network inspection service library as a first inspection service;
sending a first network check signal to the first platform according to the first check service, and acquiring a first check return signal corresponding to the first network check signal;
if the first check return signal is communicated, executing the first task, and pushing the first software data packet in the first storage space to the first platform;
if the first check return signal is not communicated, adding the first task to a first delay queue of the push queue, wherein the first delay queue is used for delaying software data packet pushing;
the step of adding the single platform download task to a preset download queue, and downloading a software data package from a platform corresponding to the download platform configuration based on the single platform download task and the network check service library in the download queue, wherein the step of downloading the software data package as a software data package to be checked comprises the following steps:
adding the single platform download task to a second instant queue of the download queue;
executing a preset second polling task, and acquiring the single-platform downloading task from the second instant queue as a second task;
taking the platform corresponding to the second task as a second platform;
acquiring the network inspection service corresponding to the second platform from the network inspection service library as a second inspection service;
sending a second network check signal to the second platform according to the second check service, and acquiring a second check return signal corresponding to the second network check signal;
if the second check return signal is communicated, executing the second task, downloading a software data packet from the second platform as the software data packet to be checked, generating a software updating task according to the second task, and adding the software updating task to a regular updating queue of the downloading queue, wherein the regular updating queue is used for downloading the software data packet regularly;
and if the second check return signal is not communicated, adding the second task to a second delay queue of the download queue, wherein the second delay queue is used for delaying the downloading of the software data packet.
3. The method for synchronizing software data packages according to claim 2, wherein the step of executing the first task and pushing the first software data package in the first storage space to the first platform includes:
searching a push adapter corresponding to the first platform from a preset push adapter library to obtain a first search result;
if the first search result is successful, adapting the first software data packet in the first storage space by using the pushing adapter corresponding to the first search result to obtain a processed software data packet, executing the first task, and pushing the processed software data packet to the first platform;
if the first search result is failure, pushing the first software data packet in the first storage space to the first platform;
the step of executing the second task and downloading the software data package from the second platform as the to-be-audited software data package includes:
executing the second task, and downloading a software data packet from the second platform as a software data packet to be analyzed;
searching a download adapter corresponding to the second platform from a preset download adapter library to obtain a second search result;
if the second search result is successful, adopting the download adapter corresponding to the second search result to perform adaptation processing on the software data packet to be analyzed to obtain the software data packet to be examined;
and if the second search result is failure, taking the software data packet to be analyzed as the software data packet to be checked.
4. The method of claim 2, wherein the step of adding the first task to a first delay queue of the push queue comprises:
judging whether the first platform exists in a preset signing platform list or not;
if the verification result of the platform passes, adding the first task to the first delay queue, and if the verification result of the platform does not pass, generating a platform pre-audit failure signal according to the first task;
if not, adding the first task to the first delay queue.
5. The method for synchronizing software data packets according to claim 2, wherein the step of acquiring a first check return signal corresponding to the first network check signal is followed by further comprising:
if the first check return signal is disconnected, generating a first network check timing task according to the first check return signal;
executing the first network inspection timing task, and performing network inspection on the first platform to obtain a first inspection result;
if the first check result is communicated, pushing a software data packet according to the first delay queue, and deleting the first network check timing task;
after the step of acquiring the second check return signal corresponding to the second network check signal, the method further includes:
if the second check return signal is not communicated, generating a second network check timing task according to the second check return signal;
executing the second network check timing task, and performing network check on the second platform to obtain a second check result;
and if the second check result is communication, downloading the software data packet according to the second delay queue, and deleting the second network check timing task.
6. The method for synchronizing software data packets according to claim 2, wherein the step of generating a software update task according to the second task and adding the software update task to the periodic update queue of the download queue further comprises, after the step of generating a software update task according to the second task, the step of adding the software update task to the periodic update queue of the download queue:
executing a preset periodic updating timing task, and acquiring the second task from the periodic updating queue as a task to be updated;
executing the task to be updated, and downloading a software data packet with version update from a platform corresponding to the task to be updated to serve as an update data packet;
storing the update data packet in the second storage space;
according to the task to be updated, searching the automatic updating configuration from a preset automatic updating configuration list to obtain a configuration searching result;
and if the configuration search result is successful, sending the update data packet to a target object corresponding to the automatic update configuration corresponding to the configuration search result.
7. The method for synchronizing software data packets according to claim 1, wherein said step of obtaining a synchronization configuration in response to said data synchronization request comprises:
responding to the data synchronization request, and acquiring the configuration to be evaluated and the target user identification;
judging whether the target user identification exists in a preset registered user identification library or not;
if so, judging whether a platform identifier to be evaluated is positioned outside a preset signing platform list, wherein the platform identifier to be evaluated is a platform identifier in the uploading platform configuration or a platform identifier in the downloading platform configuration;
if so, taking each platform identifier to be evaluated outside the signing platform list as an unauthorized platform identifier;
searching an authorization token from a preset authorization token library according to the target user identification and the unauthorized platform identification to obtain a token searching result;
if the token searching result is failure, obtaining the authorization token to be stored input by the user according to each unauthorized platform identification of which the token searching result is failure, and updating the authorization token library according to the authorization token to be stored;
and taking the configuration to be evaluated as the synchronization configuration.
8. A system for synchronizing software packages, said system comprising:
the request receiving module is used for receiving a data synchronization request;
a synchronization configuration acquisition module, configured to respond to the data synchronization request and acquire synchronization configuration;
the push module is used for carrying out legal compliance examination on a software data packet to be pushed in the synchronous configuration if the synchronous type in the synchronous configuration is pushing, obtaining a first software data packet, storing the first software data packet in a preset first storage space, generating a single-platform push task aiming at each platform identifier in uploading platform configuration in the synchronous configuration according to the synchronous configuration and the first software data packet in the first storage space, adding each single-platform push task to a preset push queue, and pushing the first software data packet in the first storage space to each platform corresponding to the uploading platform configuration based on each single-platform push task in the push queue and a preset network inspection service library;
and the downloading module is used for generating a single-platform downloading task according to the downloading platform configuration in the synchronous configuration if the synchronous type in the synchronous configuration is downloading, adding the single-platform downloading task into a preset downloading queue, downloading a software data packet from a platform corresponding to the downloading platform configuration based on the single-platform downloading task and the network check service library in the downloading queue to serve as a software data packet to be checked, performing legal compliance checking on the software data packet to be checked to obtain a second software data packet, and storing the second software data packet in a preset second storage space.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 7.
CN202210874145.9A 2022-07-25 2022-07-25 Software data packet synchronization method and device, computer equipment and storage medium Active CN114938369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210874145.9A CN114938369B (en) 2022-07-25 2022-07-25 Software data packet synchronization method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210874145.9A CN114938369B (en) 2022-07-25 2022-07-25 Software data packet synchronization method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114938369A true CN114938369A (en) 2022-08-23
CN114938369B CN114938369B (en) 2022-10-28

Family

ID=82869236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210874145.9A Active CN114938369B (en) 2022-07-25 2022-07-25 Software data packet synchronization method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114938369B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009077768A2 (en) * 2007-12-19 2009-06-25 Blue Whale Systems Limited System and method for configuration of an application for a communication device
CN101888416A (en) * 2010-07-20 2010-11-17 中兴通讯股份有限公司 Multi-platform application fused release platform and application downloading method
CN103049383A (en) * 2012-12-31 2013-04-17 博彦科技(上海)有限公司 Development and testing cloud system
CN104035780A (en) * 2014-06-26 2014-09-10 北京京东尚科信息技术有限公司 Method and device for publishing APK file
WO2014145545A2 (en) * 2013-03-15 2014-09-18 Innopath Software, Inc. Distributing software for updating of client devices
CN105827643A (en) * 2016-05-17 2016-08-03 世纪禾光科技发展(北京)有限公司 Open platform management system and method
CN106959843A (en) * 2016-01-11 2017-07-18 陈昕 A kind of cross-platform nest automotive engine system and its development approach
CN111432036A (en) * 2020-04-26 2020-07-17 恩亿科(北京)数据科技有限公司 Management system and management method of edge cloud platform
CN112947945A (en) * 2021-02-01 2021-06-11 南方电网数字电网研究院有限公司 Multi-type application publishing method and device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009077768A2 (en) * 2007-12-19 2009-06-25 Blue Whale Systems Limited System and method for configuration of an application for a communication device
CN101888416A (en) * 2010-07-20 2010-11-17 中兴通讯股份有限公司 Multi-platform application fused release platform and application downloading method
CN103049383A (en) * 2012-12-31 2013-04-17 博彦科技(上海)有限公司 Development and testing cloud system
WO2014145545A2 (en) * 2013-03-15 2014-09-18 Innopath Software, Inc. Distributing software for updating of client devices
CN104035780A (en) * 2014-06-26 2014-09-10 北京京东尚科信息技术有限公司 Method and device for publishing APK file
CN106959843A (en) * 2016-01-11 2017-07-18 陈昕 A kind of cross-platform nest automotive engine system and its development approach
CN105827643A (en) * 2016-05-17 2016-08-03 世纪禾光科技发展(北京)有限公司 Open platform management system and method
CN111432036A (en) * 2020-04-26 2020-07-17 恩亿科(北京)数据科技有限公司 Management system and management method of edge cloud platform
CN112947945A (en) * 2021-02-01 2021-06-11 南方电网数字电网研究院有限公司 Multi-type application publishing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114938369B (en) 2022-10-28

Similar Documents

Publication Publication Date Title
CN110889729B (en) Data verification method and device based on blockchain network
CN111045756B (en) Method, apparatus, computing device and medium for generating interface service
CN111291000B (en) File acquisition method, equipment and storage medium based on block chain
CN112261172B (en) Service addressing access method, device, system, equipment and medium
CN107748790B (en) Online service system, data loading method, device and equipment
CN109857751A (en) Cross-platform data update method, device and computer equipment based on block chain
CN110532025B (en) Data processing method, device and equipment based on micro-service architecture and storage medium
CN113221163B (en) Model training method and system
CN110895603B (en) Multi-system account information integration method and device
CN105635218B (en) Software center system
CN106254528A (en) A kind of resource downloading method and buffer memory device
CN110930254A (en) Data processing method, device, terminal and medium based on block chain
CN114938369B (en) Software data packet synchronization method and device, computer equipment and storage medium
CN113129002A (en) Data processing method and equipment
CN112068854B (en) Intelligent device algorithm updating system, intelligent device and platform server
CN110874492A (en) Data processing method and device, computing equipment and system
US11106627B2 (en) Front-end validation of data files requiring processing by multiple computing systems
CN117435829B (en) Catalog preheating method and device
CN112433872A (en) Interface request timeout reminding method, system and storage medium
CN110401654A (en) A kind of method, apparatus of business access, system, equipment and storage medium
KR20200048633A (en) System and method for automatically testing software
US11973663B2 (en) Artificial intelligence based real-time service discovery and binding technique
CN111383003B (en) Method, device, computer equipment and storage medium for fast platform access
CN114302349B (en) Method and system for extracting number by client
JP2000194613A (en) Data transfer optimization system and method for client- server system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231020

Address after: 5-1 # Annex 23-02-087, No.1 Huayi Road, Qixinggang Street, Yuzhong District, Chongqing, 400000 (cluster registration)

Patentee after: Chongqing Kaiyuan Gongchuang Technology Co.,Ltd.

Address before: 100000 room 205A, second floor, building 2, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing

Patentee before: Beijing Innovation Lezhi Network Technology Co.,Ltd.

Patentee before: Changsha developer Technology Co.,Ltd.

TR01 Transfer of patent right