Article information synchronization method and device, electronic equipment and computer readable medium

By creating an item information synchronization template and encapsulating and encrypting the transfer item information, the problems of timeliness of item information synchronization and low data transmission efficiency in the prior art are solved, and efficient and secure item information synchronization is achieved.

CN119513198APending Publication Date: 2025-02-25海南榕树家信息科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411567987.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The prior art has poor timeliness when synchronizing item information, and low data transmission efficiency and security, especially when processing flash kill item information and on-shelf/off-shelf information with high timeliness and large data volumes.

Method used

By creating an item information synchronization template, the synchronized item record information is sorted and queued, a synchronized item record information distribution queue is generated, and it is sent to each item circulation terminal regularly. At the same time, the information of circulating items is encapsulated and processed and transmitted encrypted to reduce the amount of data and improve security.

Benefits of technology

It improves the timeliness of item information synchronization, data transmission efficiency and data transmission security, ensuring the timeliness of synchronized item information and data transmission security and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119513198A_ABST
    Figure CN119513198A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an article information synchronization method and device, electronic equipment and a computer readable medium. One specific embodiment of the method comprises the following steps: creating an article information synchronization template; carrying out sorting enqueue processing on at least one piece of synchronous article record information in the article information synchronization template to generate a synchronous article record information distribution queue; at least one piece of synchronous article record information in the synchronous article record information distribution queue is sent to each article circulation terminal at regular time; in response to received request information which is sent by a target article circulation source terminal and represents to obtain circulation article information, obtaining each piece of circulation article information from a preset database; performing packaging processing on each piece of circulation article information to obtain circulation article information packaging data corresponding to each piece of circulation article information; and the circulation article information packaging data is encrypted and sent to the target article circulation source terminal. According to the embodiment, the data transmission efficiency and the data transmission security are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to an item information synchronization method, device, electronic device, and computer-readable medium. Background Art

[0002] With the popularization and development of the Internet, more and more online platforms are circulating items through multiple online item circulation sources. Item information synchronization is a technology that synchronizes item information (for example, flash sale item information, shelf item information, inventory, etc.) to various online circulation sources, or synchronizes the circulation item information of each circulating item (such as the name, value, and display picture of the item) to the requesting end (for example, a newly opened online clinic). At present, when synchronizing item information to various online item circulation sources, the method usually adopted is: directly sending the item information that needs to be synchronized to each item circulation source or directly sending the circulation item information of each circulating item to the requesting terminal.

[0003] However, when synchronizing item information in the above manner, the following technical problems often occur:

[0004] Usually, the item information that needs to be synchronized is time-sensitive (for example, information about flash sale items, information about items on / off the shelves), and the item information that needs to be synchronized is directly sent to each item circulation source without considering the timeliness of the item information that needs to be synchronized, resulting in poor timeliness of item information synchronization. At the same time, when the circulation item information of each circulating item is sent to the requesting terminal, the circulation item information of each circulating item usually has a large amount of data and the circulation item information is sensitive and confidential. If the circulation item information of each circulating item with a large amount of data is directly sent to the requesting terminal, the data transmission efficiency and data transmission security are low.

[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art. Summary of the invention

[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0007] Some embodiments of the present disclosure propose an item information synchronization method, apparatus, electronic device, and computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.

[0008] In a first aspect, some embodiments of the present disclosure provide a method for synchronizing item information, the method comprising: creating an item information synchronization template, wherein the item information synchronization template comprises various synchronized item record information; sorting and queuing at least one synchronized item record information in the item information synchronization template to generate a synchronized item record information distribution queue; regularly sending at least one synchronized item record information in the synchronized item record information distribution queue to various item circulation terminals; in response to receiving a request information representing the acquisition of circulation item information sent by a target item circulation source terminal, obtaining various circulation item information from a preset database; packaging the various circulation item information to obtain circulation item information packaging data corresponding to the various circulation item information; encrypting the circulation item information packaging data and sending it to the target item circulation source terminal.

[0009] In a second aspect, some embodiments of the present disclosure provide an item information synchronization device, the device comprising: a creation unit, configured to create an item information synchronization template, wherein the item information synchronization template comprises various synchronized item record information; a sorting and queuing processing unit, configured to sort and queue at least one synchronized item record information in the item information synchronization template to generate a synchronized item record information distribution queue; a timed sending unit, configured to send at least one synchronized item record information in the synchronized item record information distribution queue to various item circulation terminals at regular intervals; an acquisition unit, configured to acquire various circulating item information from a preset database in response to receiving a request information representing the acquisition of circulating item information sent by a target item circulation source terminal; a packaging processing unit, configured to package the various circulating item information to obtain circulating item information packaging data corresponding to the various circulating item information; an encryption sending unit, configured to encrypt and send the circulating item information packaging data to the target item circulation source terminal.

[0010] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0011] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0012] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the item information synchronization method of some embodiments of the present disclosure, the timeliness of item information synchronization, data transmission efficiency and data transmission security are improved. Specifically, the reason for the poor timeliness, data transmission efficiency and data transmission security of item information synchronization is that the item information that usually needs to be synchronized is time-sensitive (for example, information about flash sale items, information about items on / off shelves), and the item information that needs to be synchronized is directly sent to each item circulation source without considering the timeliness of the item information that needs to be synchronized, resulting in poor timeliness of item information synchronization. At the same time, since the data volume of the circulation item information of each circulation item is usually large when the circulation item information of each circulation item is sent to the request terminal and the circulation item information is sensitive and confidential, the circulation item information of each circulation item with a large data volume is directly sent to the request terminal, and the data transmission efficiency and data transmission security are low. Based on this, the item information synchronization method of some embodiments of the present disclosure first creates an item information synchronization template, wherein the above-mentioned item information synchronization template includes each synchronized item record information. Thus, an item information synchronization template including synchronized item record information can be obtained. Afterwards, at least one synchronized item record information in the item information synchronization template is sorted and queued to generate a synchronized item record information distribution queue. Thus, a synchronized item record information distribution queue for sending synchronized item record information at regular intervals can be obtained. Then, at least one synchronized item record information in the synchronized item record information distribution queue is sent to each item circulation terminal at regular intervals. Thus, the timeliness of the item information (at least one synchronized item record information) that needs to be synchronized can be guaranteed by regular transmission and the synchronized item record information distribution queue, thereby improving the timeliness of item information synchronization. In response to receiving a request information representing the acquisition of the circulation item information sent by the target item circulation source terminal, each circulation item information is obtained from a preset database; the above-mentioned each circulation item information is packaged to obtain the circulation item information package data corresponding to the above-mentioned each circulation item information. Thus, each circulation item information with a large amount of data can be packaged to obtain a circulation item information package data. The above-mentioned circulation item information package data is encrypted and sent to the above-mentioned target item circulation source terminal. Thus, the packaged circulation item information packaged data can be encrypted and sent to the target item circulation source terminal. By packaging multiple circulation item information into one circulation item information packaged data and encrypting the packaged data and sending it to the target item circulation source terminal, the data transmission efficiency and data transmission security of the circulation item information are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0014] Figure 1 is a flow chart of some embodiments of the item information synchronization method according to the present disclosure;

[0015] Figure 2 is a schematic diagram of a newly created synchronized item information page according to some embodiments of the item information synchronization method disclosed herein;

[0016] Figure 3 is a schematic diagram of the structure of some embodiments of the device for synchronizing item information according to the present disclosure;

[0017] Figure 4 is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure;

[0018] Figure 5 Internal test diagram of some embodiments of the item information synchronization method according to the present disclosure;

[0019] Figure 6 Internal test diagram of some embodiments of synchronizing circulating item information to a target item circulation source terminal in an item information synchronization method according to the present disclosure. DETAILED DESCRIPTION

[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0021] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0022] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0023] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0024] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0025] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0026] Figure 1 The process 100 of some embodiments of the method for synchronizing item information according to the present disclosure is shown. The method for synchronizing item information includes the following steps:

[0027] Step 101, create an item information synchronization template.

[0028] In some embodiments, the execution subject (e.g., a computing device) of the item information synchronization method may create an item information synchronization template. The item information synchronization template includes each synchronized item record information. The item information synchronization template may be a standardized form or format for recording synchronized item related information. The execution subject may be a server that synchronizes the synchronized item record information corresponding to each circulating item that needs to be synchronized among the circulating items to each item circulation terminal. Each of the above-mentioned item circulation terminals may be a terminal device for item circulation that interacts with the above-mentioned server (e.g., a mobile phone, a tablet, a computer). The above-mentioned synchronized items may be items whose information related to the item circulation is synchronized to each item circulation terminal during the item circulation process.

[0029] In some optional implementations of some embodiments, the execution entity may create an item information synchronization template by following the steps below:

[0030] The first step is to display a newly created synchronized item information page. The newly created synchronized item information page includes a synchronized item information record table and a button for creating item information to be synchronized. The synchronized item information record table includes various horizontal line lists. Each horizontal line list in the various horizontal line lists includes synchronized item record information. The synchronized item record information includes: line number information, item identification information, circulation subject information, outflow value information, inflow value information, circulation source quantity, circulation quantity, synchronization status information, creation time, synchronization time, and operation information. The newly created synchronized item information page can be a page for creating an item information synchronization template through interface interaction. The synchronized item information record table can be a table including various horizontal line lists. The button for creating item information to be synchronized can be a page interaction element for creating a horizontal line list at a preset position in the synchronized item information record table. The line number information can represent the line number of the horizontal list. The item identification information can be the name or number of the item that needs to be synchronized. For example, the item identification information can be "probiotics". The above-mentioned circulation subject information may indicate the circulation source type (for example, online sanatorium, online clinic) of each circulation source (for example, online store) of the circulation synchronized items. The above-mentioned outflow value information may indicate the value range of the items when they flow out from each circulation source. For example, the above-mentioned outflow value information may be "¥88 to ¥99". The above-mentioned inflow value information may indicate the value of the items flowing into each circulation source. For example, the above-mentioned inflow value information may be "¥80". The above-mentioned circulation source quantity may be the quantity of each circulation source of the circulation synchronized items. The above-mentioned circulation quantity may indicate the quantity of the circulation items that need to be synchronized with the item information. For example, the above-mentioned circulation quantity may be 500. The above-mentioned synchronization status information may indicate whether the synchronized item record information has been sent. For example, the above-mentioned synchronization status information may be "distributed" or "undistributed". The above-mentioned operation information may indicate the information of the circulation operation performed on the circulation items. For example, the above-mentioned operation information may be, but not limited to, one of the following: "putting items on the shelves", "taking items off the shelves".

[0031] In the second step, in response to detecting the new button acting on the above-mentioned item information to be synchronized, a horizontal row list is created in the above-mentioned synchronized item information record table. The created horizontal row list includes various synchronized item information input cells. Each of the above-mentioned synchronized item information input cells can be a cell for inputting one of the following information: row number information, item identification information, circulation subject information, outflow value information, inflow value information, circulation source quantity, circulation quantity, synchronization status information, creation time, synchronization time, and operation information.

[0032] In response to detecting input operations acting on the above-mentioned synchronized item information input cells, the input information of the above-mentioned synchronized item information input cells is determined as synchronized item record information corresponding to the created horizontal row list, and a creation completion button is displayed. The creation completion button can be an interface interaction element used to indicate that the item information synchronization template is created.

[0033] In response to detecting a selection operation acting on the creation completion button, the displayed synchronized item information record table is determined as an item information synchronization template.

[0034] As an example, the new synchronized item information page displayed can be referenced Figure 2 . Figure 2 The figure shows a new synchronization item information page 201, an item information synchronization template 202, a new item information to be synchronized button 203 and a creation completion button 204.

[0035] like Figure 5 As shown, Figure 5 An internal test diagram is shown for synchronizing at least one synchronous item record information to each item circulation terminal.

[0036] like Figure 6 As shown, Figure 6 An internal test diagram of some embodiments of synchronizing the circulation item information to the target item circulation source terminal is shown.

[0037] Step 102: sort and queue at least one synchronized item record information in the item information synchronization template to generate a synchronized item record information distribution queue.

[0038] In some embodiments, the execution entity may sort and queue at least one synchronized item record information in the item information synchronization template to generate a synchronized item record information distribution queue.

[0039] In some optional implementations of some embodiments, the execution subject may sort and queue at least one synchronized item record information in the item information synchronization template to generate a synchronized item record information distribution queue through the following steps:

[0040] In the first step, each synchronized item record information included in the item information synchronization template is determined as each synchronized item record information to be screened.

[0041] In the second step, the synchronization status information included in each of the synchronized item record information to be screened is determined as the target synchronization status information.

[0042] The third step is to determine the determined target synchronization status information as a target synchronization status information set, wherein each target synchronization status information in the target synchronization status information set corresponds to each synchronization item record information in the synchronization item record information.

[0043] In the fourth step, at least one target synchronization status information that is not distributed among the above target synchronization status information is determined as at least one screening synchronization status information.

[0044] The fifth step is to determine at least one synchronized item record information corresponding to the at least one screening synchronization status information among the synchronized item record information.

[0045] The sixth step is to determine at least one synchronization time included in the at least one synchronization item record information as at least one reference synchronization time, wherein each synchronization item record information in the at least one synchronization item record information corresponds to each reference synchronization time in the at least one reference synchronization time.

[0046] The seventh step is to sort and queue the at least one synchronized item record information based on the at least one reference synchronization time to generate a synchronized item record information distribution queue.

[0047] In some optional implementations of some embodiments, the execution subject may sort and queue the at least one synchronized item record information based on the at least one reference synchronization time through the following steps to generate a synchronized item record information distribution queue:

[0048] The first step is to sort the at least one reference synchronization time to obtain a reference synchronization time sequence. In practice, the execution entity may sort the at least one reference synchronization time from front to back in time to obtain a reference synchronization time sequence. As an example, the at least one reference synchronization time may be "November 9, 2024 09:10, November 9, 2024 14:10, November 9, 2024 16:10". The reference synchronization time sequence may be {November 9, 2024 09:10, November 9, 2024 14:10, November 9, 2024 16:10}.

[0049] In the second step, the at least one synchronized item record information is arranged in the order of the corresponding at least one reference synchronization time in the reference synchronization time sequence to obtain a synchronized item record information sequence. As an example, at least one synchronized item record information may be "synchronized item record information A, synchronized item record information B, synchronized item record information C". The synchronized item record information A may correspond to the above-mentioned November 9, 2024 14:10, the above-mentioned synchronized item record information B may correspond to the above-mentioned November 9, 2024 09:10, the above-mentioned synchronized item record information C may correspond to the above-mentioned November 9, 2024 16:10, and the above-mentioned reference synchronization time sequence may be {November 9, 2024 09:10, November 9, 2024 14:10, November 9, 2024 16:10}, then the above-mentioned synchronized item record information sequence may be {synchronized item record information B, synchronized item record information A, synchronized item record information C}.

[0050] The third step is to store the synchronized item record information in the synchronized item record information sequence into a preset queue in sequence according to the order in the synchronized item record information sequence, so as to update the preset queue.

[0051] The fourth step is to determine the updated preset queue as the synchronous item record information distribution queue.

[0052] Step 103: sending at least one synchronous item record information in the synchronous item record information distribution queue to each item circulation terminal at a regular time.

[0053] In some embodiments, the execution entity may periodically send at least one synchronized item record information in the synchronized item record information distribution queue to each item circulation terminal.

[0054] In some optional implementations of some embodiments, the execution subject may periodically send at least one synchronized item record information in the synchronized item record information distribution queue to each item circulation terminal through the following steps:

[0055] The first step is to perform the following dequeue distribution processing for the synchronous item record information distribution queue:

[0056] The first sub-step is to dequeue the first synchronized item record information in the synchronized item record information distribution queue to update the synchronized item record information distribution queue.

[0057] The second sub-step is to determine the synchronization time included in the synchronization item record information as the target time point.

[0058] The third sub-step is to obtain the system time as the current time.

[0059] The fourth sub-step is to perform the following timed distribution processing according to the current time and the synchronized item record information:

[0060] Sub-step one: in response to determining that the current time is equal to the target time point or is after the target time point, determining the item identification information included in the synchronized item record information as the target item identification.

[0061] Sub-step 2: Obtain each item circulation source identifier corresponding to the target item identifier from a preset database. The preset database may be a MySQL database on the server side that stores information related to each circulation item. Each of the item circulation source identifiers may represent the name of the item circulation source (e.g., the name of an online clinic).

[0062] Sub-step three: encrypting the synchronized item record information and sending it to each item circulation terminal corresponding to each item circulation source identifier.

[0063] Sub-step four, in response to determining that the current time is before the target time point, after a preset time period after the current time, the system time is obtained again to update the current time.

[0064] Sub-step five: executing the above-mentioned timed distribution process again according to the updated current time and synchronized item record information.

[0065] The fifth sub-step is, in response to determining that the updated synchronous item record information distribution queue is not empty, executing the above-mentioned dequeue distribution processing again according to the updated synchronous item record information distribution queue.

[0066] Step 104, in response to receiving the request information for obtaining the circulation item information sent by the target item circulation source terminal, obtain each circulation item information from the preset database.

[0067] In some embodiments, the execution subject may obtain information about each circulating item from a preset database in response to receiving a request message sent by a target item circulation source terminal to obtain information about the circulating items. The target item circulation source terminal may be a terminal that has been authorized by the server (e.g., an authorized terminal). The request message representing the acquisition of information about the circulating items may be text information. For example, the request message for obtaining information about the circulating items may be "obtain information about the circulating items of each circulating item from January 2025 to May 2025". The information about each circulating item may be information about each circulating item corresponding to the request message. Each of the circulation information may represent relevant information about the circulating item (item on sale). For example, the circulation information may include, but is not limited to, at least one of the following: circulating item identification, inventory quantity, item image, item inflow value (e.g., purchase price), and item outflow value (e.g., selling price).

[0068] Step 105, encapsulate each piece of circulating item information to obtain circulating item information encapsulation data corresponding to each piece of circulating item information.

[0069] In some embodiments, the execution entity may encapsulate each of the circulation item information to obtain the circulation item information encapsulation data corresponding to each of the circulation item information.

[0070] In the process of adopting technical solutions to solve the problems mentioned in the background technology, the following problems are often accompanied:

[0071] Since the data volume of the circulation information of each circulation item is large, the content of the circulation information of each circulation item remains unchanged during the packaging process, and the data volume after packaging is still large, resulting in more network bandwidth resources and transmission time being occupied during the transmission of the circulation information of each circulation item, which in turn leads to low data transmission efficiency. In the face of the above technical problems, the inventor decided to adopt the following solution:

[0072] In some optional implementations of some embodiments, the execution subject may encapsulate the above-mentioned various pieces of circulating item information through the following steps to obtain the circulating item information encapsulation data corresponding to the above-mentioned various pieces of circulating item information:

[0073] In the first step, for each of the above-mentioned pieces of circulating goods information, the following lossless compression process is performed:

[0074] The first sub-step is to determine the object image included in the above-mentioned circulation object information as the object image to be converted.

[0075] The second sub-step is to convert the above-mentioned image of the object to be converted into binary data. In practice, the above-mentioned execution subject can convert the above-mentioned image of the object to be converted into binary data by calling a preset function in a preset image processing library. For example, the above-mentioned preset image processing library can be a PIL (Python Image Library) library. First, the above-mentioned execution subject can call the Image.open function in the PIL (Python Image Library) library to read the image of the object to be converted. Then, the above-mentioned execution subject can call the io.BytesIO() function to create a byte stream object in memory. Afterwards, the above-mentioned execution subject can save the image of the object to be converted in binary form into the byte stream object. Finally, the above-mentioned execution subject can call the getvalue() method of the byte stream object to obtain the binary data in the byte stream.

[0076] The third sub-step is to group the above binary data to obtain a binary number sequence. In practice, the above execution entity can group the above binary data into groups of a preset number of binary numbers (if the last group is less than the preset number, fill it with 0 at the end) to obtain a binary number sequence. As an example, the above binary data can be 1000000001000000. The above preset number can be 8. The above binary number sequence can be {10000000, 01000000}. The above 1000000001000000 can represent a 2x1 grayscale image, whose pixel values ​​are 128 and 64 respectively. The above 10000000 represents a grayscale value of 128, and the above 01000000 represents a grayscale value of 64.

[0077] The fourth sub-step is to convert each binary number in the binary number sequence into a decimal number to obtain a decimal number sequence. As an example, the decimal grayscale sequence may be {128, 64}.

[0078] The fifth sub-step is to search the preset index coding table for the initial code corresponding to the above decimal number sequence. The above preset index coding table may be a preset index coding table. For example, the preset index coding table may be "decimal 0 corresponds to A, decimal 64 corresponds to B, and decimal 128 corresponds to C". The initial code corresponding to the above {128, 64} may be "C, B".

[0079] The sixth sub-step is to determine the initial code as the first data to be compressed corresponding to the image of the object to be converted.

[0080] The seventh sub-step is to determine the basic information of the item included in the above-mentioned circulation item information as the second data to be compressed. The above-mentioned basic information of the item may be text information. The above-mentioned basic information of the item may include but is not limited to at least one of the following: item name, outflow value information, circulation source quantity, inflow value information.

[0081] In the eighth sub-step, according to the first preset compression algorithm information, the first data to be compressed is subjected to a first lossless compression process to obtain compressed object image data. The first preset compression algorithm information may represent a compression algorithm applicable to a coding sequence. For example, the first preset compression algorithm information may represent a Deflate compression algorithm. In practice, the execution subject may execute the compression task corresponding to the first preset compression algorithm information, and perform the first lossless compression process on the first data to be compressed to obtain compressed object image data.

[0082] In a ninth sub-step, according to the second preset compression algorithm information, the second data to be compressed is subjected to a second lossless compression process to obtain compressed data of basic information of the item. The second preset compression algorithm information may be a compression algorithm applicable to text information. In practice, the execution subject may execute a compression task corresponding to the second preset compression algorithm information, and perform a second lossless compression process on the second data to be compressed to obtain compressed data of basic information of the item.

[0083] The tenth sub-step is to determine the above-mentioned compressed data of basic information of the object and the above-mentioned compressed data of the image of the object as the compressed data to be packaged.

[0084] In the second step, the determined compressed data to be encapsulated are determined as compressed data sets to be encapsulated.

[0085] The third step is to obtain the preset encapsulation data structure information. In practice, the above-mentioned execution subject can obtain the preset encapsulation data structure information from the preset database. Among them, the above-mentioned preset encapsulation data structure information can be the information of the data structure and its related operations pre-defined and encapsulated by the software developer (for example, here it is used to store the compressed data set to be encapsulated). The above-mentioned preset encapsulation data structure information can be expressed in a programming language. For example, the above-mentioned preset encapsulation data structure information can represent a class (Class) or a dictionary.

[0086] The fourth step is to store the compressed data set to be encapsulated into the data structure corresponding to the preset encapsulation data structure information.

[0087] The fifth step is to determine the data structure storing the compressed data set to be encapsulated as the initial encapsulation data.

[0088] Step 6: Serialize the initial encapsulated data to obtain serialized encapsulated data. In practice, the execution subject may serialize the initial encapsulated data by calling a preset function (eg, json.dumps() function) to obtain serialized encapsulated data.

[0089] The seventh step is to determine the serialized packaging data as the circulation item information packaging data corresponding to the above-mentioned each circulation item information.

[0090] The above technical solution and its related contents, as an inventive point of the embodiment of the present disclosure, solve the second technical problem "Since the data volume of the circulation item information of each circulation item is large, the content of the circulation item information of each circulation item remains unchanged during the packaging process, and the data volume after packaging is still large, resulting in the occupation of more network bandwidth resources and transmission time during the transmission of the circulation item information of each circulation item, thereby resulting in low data transmission efficiency". The factors leading to low data transmission efficiency are often as follows: Since the data volume of the circulation item information of each circulation item is large, the content of the circulation item information of each circulation item remains unchanged during the packaging process, and the data volume after packaging is still large, resulting in the occupation of more network bandwidth resources and transmission time during the transmission of the circulation item information of each circulation item, thereby resulting in low data transmission efficiency. If the above factors are solved, the effect of improving data transmission efficiency can be achieved. In order to achieve this effect, first, for each of the circulation item information in the above circulation item information, the following lossless compression processing is performed: In the first step, the item image included in the above circulation item information is determined as the item image to be converted. In the second step, the above item image to be converted is converted into binary data. Thus, the item image included in the circulation item information can be converted from image format data to binary data representing the image. The third step is to group the above binary data to obtain a binary number sequence. The fourth step is to convert each binary number in the above binary number sequence into a decimal number to obtain a decimal number sequence. The fifth step is to query the initial code corresponding to the above decimal number sequence in the preset index code table. Thus, the image to be converted can be converted from binary data to the initial code through the above steps to perform initial compression and reduce the data volume of the item image to be converted. The sixth step is to determine the above initial code as the first data to be compressed corresponding to the above item image to be converted. The seventh step is to determine the basic information of the item included in the circulation item information as the second data to be compressed. The eighth step is to perform a first lossless compression process on the above first data to be compressed according to the first preset compression algorithm information to obtain item image compressed data, thereby, the initial code representing the item image to be converted can be subjected to a first lossless compression process to further reduce the data volume representing the item image to be converted. In the ninth step, the second data to be compressed is subjected to a second lossless compression process according to the second preset compression algorithm information to obtain compressed data of basic information of the item. Thus, the basic information of the item included in the circulating item information can be subjected to a second lossless compression process to reduce the amount of information included in the circulating item information except for the image in the circulating item information. In the tenth step, the compressed data of basic information of the item and the compressed data of the item image are determined as compressed data to be packaged. Thus, compressed data to be packaged for generating a compressed data set to be packaged can be obtained. Next, each of the determined compressed data to be packaged is determined as a compressed data set to be packaged.Thus, a compressed data set to be encapsulated after lossless compression of each circulating item information can be obtained. Then, the preset encapsulation data structure information is obtained. Afterwards, the above-mentioned compressed data set to be encapsulated is stored in the data structure corresponding to the above-mentioned preset encapsulation data structure information. Thus, the compressed data set to be encapsulated can be stored. Then, the data structure storing the above-mentioned compressed data set to be encapsulated is determined as the initial encapsulation data. Then, the above-mentioned initial encapsulation data is serialized to obtain the serialized encapsulated data after the serialization process. Thus, the initial encapsulation data can be serialized to obtain the serialized encapsulated data. Afterwards, the above-mentioned serialized encapsulated data is determined as the circulating item information encapsulation data corresponding to the above-mentioned each circulating item information. Also because in the process of encapsulating the various circulating item information, the image of the item to be converted and the basic information of the item included in each circulating item information are losslessly compressed (first lossless compression process, second lossless compression process), the amount of data corresponding to the basic information of the item is reduced. Furthermore, the total data volume of each circulating item information is reduced. On the basis of reducing the total data volume of each circulating item information, circulating item information encapsulation data is generated, which reduces the network bandwidth resources and transmission time occupied during the transmission of circulating item information, and further improves data transmission efficiency.

[0091] Step 106, encrypt and package the circulation item information data and send it to the target item circulation source terminal.

[0092] In some embodiments, the execution entity may encrypt the circulation item information encapsulation data and send it to the target item circulation source terminal.

[0093] In some optional implementations of some embodiments, the execution subject may encrypt and send the circulation item information encapsulation data to the target item circulation source terminal through the following steps:

[0094] The first step is to obtain the pre-stored encryption algorithm information from the preset database. The encryption algorithm information may represent a preset encryption algorithm. For example, the preset encryption algorithm may be an RSA (Rivest-Shamir-Adleman) encryption algorithm.

[0095] The second step is to encrypt the above-mentioned circulation item information encapsulation data according to the above-mentioned encryption algorithm information to obtain the encrypted circulation item information encapsulation data. The above-mentioned encrypted circulation item information encapsulation data can be the data after the circulation item information encapsulation data is encrypted.

[0096] The third step is to send the encrypted circulation item information encapsulation data to the target item circulation source terminal.

[0097] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the item information synchronization method of some embodiments of the present disclosure, the timeliness of item information synchronization, data transmission efficiency and data transmission security are improved. Specifically, the reason for the poor timeliness, data transmission efficiency and data transmission security of item information synchronization is that the item information that usually needs to be synchronized is time-sensitive (for example, information about flash sale items, information about items on / off shelves), and the item information that needs to be synchronized is directly sent to each item circulation source without considering the timeliness of the item information that needs to be synchronized, resulting in poor timeliness of item information synchronization. At the same time, since the data volume of the circulation item information of each circulation item is usually large when the circulation item information of each circulation item is sent to the request terminal and the circulation item information is sensitive and confidential, the circulation item information of each circulation item with a large data volume is directly sent to the request terminal, and the data transmission efficiency and data transmission security are low. Based on this, the item information synchronization method of some embodiments of the present disclosure first creates an item information synchronization template, wherein the above-mentioned item information synchronization template includes each synchronized item record information. Thus, an item information synchronization template including synchronized item record information can be obtained. Afterwards, at least one synchronized item record information in the item information synchronization template is sorted and queued to generate a synchronized item record information distribution queue. Thus, a synchronized item record information distribution queue for sending synchronized item record information at regular intervals can be obtained. Then, at least one synchronized item record information in the synchronized item record information distribution queue is sent to each item circulation terminal at regular intervals. Thus, the timeliness of the item information (at least one synchronized item record information) that needs to be synchronized can be guaranteed by regular transmission, thereby improving the timeliness of item information synchronization. In response to receiving a request information representing the acquisition of the circulation item information sent by the target item circulation source terminal, each circulation item information is obtained from a preset database. Each circulation item information is packaged to obtain the circulation item information package data corresponding to each circulation item information. Thus, each circulation item information with a large amount of data can be packaged to obtain a circulation item information package data. The circulation item information package data is encrypted and sent to the target item circulation source terminal. Thus, the packaged circulation item information package data can be encrypted and sent to the target item circulation source terminal. By encapsulating multiple pieces of circulating item information into one piece of circulating item information encapsulation data and encrypting the encapsulated data and sending it to the target item circulation source terminal, the data transmission efficiency and data transmission security of the circulating item information are improved.

[0098] Further references Figure 3 As an implementation of the methods shown in the figures, the present disclosure provides some embodiments of an item information synchronization device. These device embodiments are similar to Figure 1Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0099] like Figure 3 As shown, the item information synchronization device 300 of some embodiments includes: a creation unit 301, a sorting and queuing processing unit 302, a timed sending unit 303, an acquisition unit 304, a packaging processing unit 305 and an encryption sending unit 306. Among them, the creation unit 301 is configured to create an item information synchronization template, wherein the above-mentioned item information synchronization template includes various synchronized item record information; the sorting and queuing processing unit 302 is configured to sort and queue at least one synchronized item record information in the above-mentioned item information synchronization template to generate a synchronized item record information distribution queue; the timed sending unit 303 is configured to send at least one synchronized item record information in the above-mentioned synchronized item record information distribution queue to various item circulation terminals at a regular time; the acquisition unit 304 is configured to respond to receiving the request information representing the acquisition of circulation item information sent by the target item circulation source terminal, and obtain various circulation item information from the preset database; the packaging processing unit 305 is configured to package the above-mentioned various circulation item information to obtain the circulation item information packaging data corresponding to the above-mentioned various circulation item information; the encryption sending unit 306 is configured to encrypt the above-mentioned circulation item information packaging data and send it to the above-mentioned target item circulation source terminal.

[0100] It is understood that the units described in the device 300 are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 300 and the units contained therein, and will not be described in detail here.

[0101] Reference below Figure 4 , which shows a structural schematic diagram of an electronic device 400 suitable for implementing some embodiments of the present disclosure. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0102] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0103] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 4 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0104] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the functions defined in the method of some embodiments of the present disclosure are executed.

[0105] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0106] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0107] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: creates an item information synchronization template, wherein the item information synchronization template includes various synchronized item record information; sorts and queues at least one synchronized item record information in the item information synchronization template to generate a synchronized item record information distribution queue; sends at least one synchronized item record information in the synchronized item record information distribution queue to various item circulation terminals at regular intervals; obtains various items of circulation information from a preset database in response to receiving a request message sent by a target item circulation source terminal to obtain the information of the circulation items; encapsulates the various items of circulation information to obtain the circulation item information encapsulation data corresponding to the various items of circulation information; encrypts the circulation item information encapsulation data and sends it to the target item circulation source terminal.

[0108] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0109] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0110] The units described in some embodiments of the present disclosure may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a creation unit, a sorting and queuing processing unit, a timed sending unit, an acquisition unit, a packaging processing unit, and an encryption sending unit. The names of these units do not constitute a limitation on the units themselves in some cases. For example, the creation unit may also be described as a "unit for creating an item information synchronization template."

[0111] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0112] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of technical features, but should also cover other technical solutions formed by any combination of technical features or their equivalent features without departing from the inventive concept. For example, a technical solution formed by replacing the features with (but not limited to) the technical features with similar functions disclosed in the embodiments of the present disclosure.

Claims

1. A method for synchronizing item information, comprising: Creating an item information synchronization template, wherein the item information synchronization template includes each synchronized item record information; Sorting and queuing at least one synchronized item record information in the item information synchronization template to generate a synchronized item record information distribution queue; Sending at least one synchronized item record information in the synchronized item record information distribution queue to each item circulation terminal at a regular time; In response to receiving a request message for obtaining information of the circulation items sent by the target item circulation source terminal, obtaining information of each circulation item from a preset database; Packaging the respective pieces of circulating article information to obtain packaging data of the circulating article information corresponding to the respective pieces of circulating article information; The encapsulated data of the circulation item information is encrypted and sent to the target item circulation source terminal.

2. The method according to claim 1, wherein: The step of encrypting and sending the encapsulated data of the circulation item information to the target item circulation source terminal comprises: Acquire pre-stored encryption algorithm information from the preset database; According to the encryption algorithm information, the circulation item information encapsulation data is encrypted to obtain encrypted circulation item information encapsulation data; The encrypted circulation item information encapsulation data is sent to the target item circulation source terminal.

3. The method according to claim 1, wherein: The step of creating an item information synchronization template includes: Display a newly created synchronized item information page, wherein the newly created synchronized item information page includes a synchronized item information record table and a button for creating item information to be synchronized, the synchronized item information record table includes various horizontal row lists, each horizontal row list in the various horizontal row lists includes synchronized item record information, and the synchronized item record information includes: row number information, item identification information, circulation subject information, outflow value information, inflow value information, circulation source quantity, circulation quantity, synchronization status information, creation time, synchronization time, and operation information; In response to detecting a new button acting on the item information to be synchronized, creating a horizontal row list in the synchronized item information record table, wherein the created horizontal row list includes each synchronized item information input cell; In response to detecting an input operation acting on each of the synchronized item information input cells, determining each of the input information of each of the synchronized item information input cells as synchronized item record information corresponding to the created horizontal row list, and displaying a creation completion button; In response to detecting a selection operation on the creation completion button, the displayed synchronized item information record table is determined as an item information synchronization template.

4. The method according to claim 1, wherein: The step of sorting and queuing at least one synchronized item record information in the item information synchronization template to generate a synchronized item record information distribution queue includes: Determine each synchronized item record information included in the item information synchronization template as each synchronized item record information to be screened; Determining the synchronization status information included in each of the synchronized item record information to be screened as the target synchronization status information; Determine the determined individual target synchronization status information as a target synchronization status information set, wherein each target synchronization status information in the target synchronization status information set corresponds one-to-one to each synchronization item record information in the individual synchronization item record information; Determine at least one target synchronization state information representing undistributed among the respective target synchronization state information as at least one screening synchronization state information; Determine at least one synchronized item record information corresponding to the at least one screening synchronization status information among the synchronized item record information; Determine at least one synchronization time included in the at least one synchronization item record information as at least one reference synchronization time, wherein each synchronization item record information in the at least one synchronization item record information corresponds one-to-one to each reference synchronization time in the at least one reference synchronization time; Based on the at least one reference synchronization time, the at least one synchronized item record information is sorted and queued to generate a synchronized item record information distribution queue.

5. The method according to claim 4, wherein: The step of sorting and queuing the at least one synchronized item record information based on the at least one reference synchronization time to generate a synchronized item record information distribution queue includes: Sorting the at least one reference synchronization time to obtain a reference synchronization time sequence; Arrange the at least one synchronous item record information in the order of the corresponding at least one reference synchronous time in the reference synchronous time sequence to obtain a synchronous item record information sequence; The synchronized item record information in the synchronized item record information sequence is sequentially stored in a preset queue according to the order of the synchronized item record information sequence, so as to update the preset queue; The updated preset queue is determined as the synchronous item record information distribution queue.

6. The method according to claim 1, wherein: The step of sending at least one synchronized item record information in the synchronized item record information distribution queue to each item circulation terminal at a regular time includes: For the synchronous item record information distribution queue, the following dequeue distribution processing is performed: Dequeue the first synchronized item record information in the synchronized item record information distribution queue to update the synchronized item record information distribution queue; Determine the synchronization time included in the synchronization item record information as the target time point; Get the system time as the current time; According to the current time and synchronized item record information, the following timed distribution processing is performed: In response to determining that the current time is equal to the target time point or is after the target time point, determining the item identification information included in the synchronized item record information as the target item identification; Obtaining from a preset database each item flow source identifier corresponding to the target item identifier; Encrypting and sending the synchronized item record information to each item circulation terminal corresponding to each item circulation source identifier; In response to determining that the current time is before the target time point, after a preset time period after the current time, obtaining the system time again to update the current time; According to the updated current time and synchronized item record information, the timed distribution process is executed again; In response to determining that the updated synchronized item record information distribution queue is not empty, the dequeue distribution process is executed again according to the updated synchronized item record information distribution queue.

7. An item information synchronization device, comprising: A creating unit, configured to create an item information synchronization template, wherein the item information synchronization template includes each synchronized item record information; A sorting and queuing processing unit is configured to sort and queue at least one synchronized item record information in the item information synchronization template to generate a synchronized item record information distribution queue; A timing sending unit, configured to send at least one synchronous item record information in the synchronous item record information distribution queue to each item circulation terminal at a timing; An acquisition unit is configured to acquire information of each circulation item from a preset database in response to receiving request information for acquiring circulation item information sent by a target item circulation source terminal; A packaging processing unit is configured to perform packaging processing on each piece of circulating article information to obtain circulating article information packaging data corresponding to each piece of circulating article information; The encryption sending unit is configured to encrypt and send the circulation item information encapsulation data to the target item circulation source terminal.

8. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.