CN109947855B - Data synchronous processing method, device, server and storage medium - Google Patents

Data synchronous processing method, device, server and storage medium Download PDF

Info

Publication number
CN109947855B
CN109947855B CN201910267110.7A CN201910267110A CN109947855B CN 109947855 B CN109947855 B CN 109947855B CN 201910267110 A CN201910267110 A CN 201910267110A CN 109947855 B CN109947855 B CN 109947855B
Authority
CN
China
Prior art keywords
platform
data synchronization
query log
query
code
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.)
Active
Application number
CN201910267110.7A
Other languages
Chinese (zh)
Other versions
CN109947855A (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.)
Juzix Technology Shenzhen Co ltd
China Commerce Networks Shanghai Co ltd
Original Assignee
Juzix Technology Shenzhen Co ltd
China Commerce Networks Shanghai 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 Juzix Technology Shenzhen Co ltd, China Commerce Networks Shanghai Co ltd filed Critical Juzix Technology Shenzhen Co ltd
Priority to CN201910267110.7A priority Critical patent/CN109947855B/en
Publication of CN109947855A publication Critical patent/CN109947855A/en
Application granted granted Critical
Publication of CN109947855B publication Critical patent/CN109947855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a data synchronous processing method, a device, a server and a storage medium. The method comprises the following steps: receiving a data synchronization request sent by a platform, wherein the data synchronization request comprises platform identification information; determining whether the platform has data synchronization authority according to the platform identification information; and if the data synchronization authority exists, sending the query log stored on the blockchain to the platform, and carrying out multidimensional analysis on the query log by the platform. The data synchronization request of the platform is received, and the platform data synchronization authority is judged according to the platform identification information in the data synchronization request, so that the safety of data synchronization is ensured, the data is prevented from being stolen and misappropriated, and the query logs stored on the blockchain are sent to the platform with the data synchronization authority, so that the query logs are synchronized on the blockchain and the platform, the query logs are conveniently synchronized to the platform, and the multidimensional analysis of the query logs is realized.

Description

Data synchronous processing method, device, server and storage medium
Technical Field
The embodiment of the invention relates to the technical field of data synchronous processing, in particular to a data synchronous processing method, a device, a server and a storage medium.
Background
In recent years, the blockchain technology is rapidly developed, and the traditional traceability industry is also turned to the application of the blockchain technology, so that the blockchain-based anti-counterfeiting traceability service is provided for consumers, and the anti-counterfeiting traceability query is provided for the consumers. When anti-counterfeiting tracing is performed through a blockchain technology, query logs of users are stored on the blockchain, so that the authenticity of data is improved.
Many enterprises provide anti-counterfeiting traceability services for consumers, and meanwhile, the data are required to be subjected to statistical analysis and summarization, so that data support is provided for subsequent marketing decisions. However, at present, due to the special chain type storage structure of the blockchain and the lack of various blockchain statistical algorithm libraries, multidimensional data statistical analysis is difficult to realize in the blockchain.
Disclosure of Invention
The embodiment of the invention provides a data synchronous processing method, a device, a server and a storage medium, which are used for synchronizing query logs stored on a blockchain to a platform, and the platform is used for further carrying out multidimensional analysis on the query log data, so that an analysis result is provided for an enterprise, and references are provided for the enterprise to formulate schemes such as marketing strategies and the like.
In a first aspect, an embodiment of the present invention provides a method for processing data synchronously, where the method includes:
receiving a data synchronization request sent by a platform, wherein the data synchronization request comprises platform identification information;
determining whether the platform has data synchronization authority according to the platform identification information;
and if the data synchronization authority exists, sending the query log stored on the blockchain to the platform, and carrying out multidimensional analysis on the query log by the platform.
In a second aspect, an embodiment of the present invention provides a data synchronization processing apparatus, including:
the receiving module is used for receiving a data synchronization request sent by a platform, wherein the data synchronization request comprises platform identification information;
the permission determining module is used for determining whether the platform has data synchronization permission according to the platform identification information;
and the sending module is used for sending the query log stored on the blockchain to the platform if the data synchronization authority exists, and carrying out multidimensional analysis on the query log by the platform.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a method for data synchronization processing according to any one of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements any of the data synchronization processing methods of the embodiments of the present invention.
According to the embodiment of the invention, the data synchronization request of the platform is received, and the platform data synchronization authority is judged according to the platform identification information in the data synchronization request, so that the safety of data synchronization is ensured, the data is prevented from being stolen and stolen, and the query log stored on the blockchain is sent to the platform with the data synchronization authority, so that the synchronization of the query log on the blockchain and the platform is realized, the synchronization of the query log to the platform is facilitated, and the multidimensional analysis of the query log is realized.
Drawings
FIG. 1 is a flow chart of a data synchronization processing method in a first embodiment of the invention;
FIG. 2 is a flow chart of a data synchronization processing method in a second embodiment of the invention;
FIG. 3 is a schematic diagram of a data synchronization device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a data synchronization processing method in a first embodiment of the present invention. The data synchronization processing method provided by the embodiment can be suitable for the situation that the block chain link points synchronize the data on the block chain to the platform so that the platform can further perform multidimensional analysis on the data stored on the block chain, can be applied to each commodity manufacturer to obtain marketing data of the commodity through a multidimensional analysis result, and provides data decision for influence management of enterprises. The method may in particular be performed by a data synchronization processing device, which may be implemented in software and/or hardware, which may be integrated in a server. Referring to fig. 1, the method in the embodiment of the present invention specifically includes:
s110, receiving a data synchronization request sent by a platform, wherein the data synchronization request comprises platform identification information.
Specifically, the platform sends a data synchronization request to the blockchain node through a timing service to request the blockchain node to synchronize data in the blockchain to the platform, wherein the timing service generates the data synchronization request through a preset frequency and sends the data synchronization request to the blockchain node. The block chain link point receives a data synchronization request sent by the platform, wherein the data synchronization request comprises identification information of the platform, so that the block chain node can distinguish the platform sending the data synchronization request according to the platform identification information.
S120, determining whether the platform has data synchronization authority according to the platform identification information.
Specifically, if the blockchain node directly sends the query log stored on the blockchain to the platform after receiving the data synchronization request, the platform may be a malicious platform, which may cause leakage or malicious use of the query log data, so in order to ensure security of the query log, the blockchain node needs to perform permission determination on the received data synchronization request to determine that the platform sending the data synchronization request is a legal platform. Because the platform identification information can be used as the identifications of different platforms to distinguish the different platforms, the blockchain node can verify the data synchronization authority according to the platform identification information.
Optionally, determining whether the platform has the data synchronization authority according to the platform identification information includes: matching the platform identification information with legal platform identification information with data synchronization authority stored on a blockchain; if the matched legal platform identification information exists, determining that the platform has the data synchronization authority. The block chain node extracts the platform identification information in the data synchronization request after receiving the data synchronization request, and matches the platform identification information with the legal platform identification information stored in the block chain, if the matching is successful, the platform sending the data synchronization request has the data synchronization authority and is a legal platform, if the matching is unsuccessful, the platform sending the data synchronization request does not have the data synchronization authority, and at the moment, the block chain node cannot send data to the platform.
And S130, if the data synchronization authority exists, sending the query log stored on the blockchain to the platform, and carrying out multidimensional analysis on the query log by the platform.
Specifically, if the blockchain node determines that the platform sending the data synchronization request has the data synchronization authority and is a legal platform, the blockchain node sends the query log stored on the blockchain to the platform. After receiving the query log, the platform stores the query log in a database and performs multidimensional analysis on the query log.
Optionally, if the data synchronization authority exists, sending the query log stored on the blockchain to the platform, and performing multidimensional analysis on the query log by the platform, where the multidimensional analysis includes: and acquiring a query log to be sent from the blockchain based on the intelligent contract, and sending the query log to a platform, wherein the query log comprises at least one of query time, query place and historical query times corresponding to the anti-fake code or the logistics code scanned by the user. Illustratively, when the blockchain node receives the data synchronization request, a query log to be sent corresponding to the data synchronization request is obtained from the blockchain based on a pre-written intelligent contract, and the query log is sent to the platform.
Specifically, the query log includes at least one of query time, query place and historical query times corresponding to the anti-counterfeiting code or the logistics code scanned by the user. Illustratively, after purchasing the commodity, the consumer scans the anti-counterfeiting code or the commodity stream code on the commodity through the intelligent device to inquire the commodity. The inquiry application sends the anti-counterfeiting code or the logistics code scanned by the consumer to the block chain node, and the block chain node stores the inquiry log corresponding to the anti-counterfeiting code or the logistics code on the block chain. The inquiry time corresponding to the anti-counterfeiting code or the logistics code is the time for an inquirer to scan the anti-counterfeiting code or the logistics code, and the inquiry place is the place where the inquirer is located when inquiring, and the position can be obtained as the inquiry place according to the positioning function of the intelligent device for scanning the anti-counterfeiting code or the logistics code. The historical query times are the total historical query times corresponding to the anti-fake codes or the logistics codes.
Optionally, the data synchronization request further includes a query log condition; obtaining a query log to be sent from a blockchain based on an intelligent contract, and sending the query log to a platform comprises: reading query log conditions in the data synchronization request, and acquiring query logs to be sent, which meet the query log conditions, from the blockchain based on the intelligent contract; and sending the query log to be sent, which meets the query log conditions, to the platform. Illustratively, the query log conditions include at least one of a query log time condition, a commodity type condition, and a manufacturer condition. The platform can select the specific synchronous query logs in what time period, the specific query logs of which kind of commodity or the specific query logs of commodities produced by which manufacturer, and the like, so that the query is more targeted, and the platform can conveniently analyze the obtained data in a multi-dimensional manner.
According to the technical scheme, the data synchronization request of the platform is received, the platform data synchronization authority is judged according to the platform identification information in the data synchronization request, so that the safety of data synchronization is guaranteed, the illegal platform is prevented from acquiring data to cause the data to be maliciously used, the query log stored on the blockchain is further sent to the platform with the data synchronization authority, the synchronization of the query log on the blockchain and the platform is realized, the query log is conveniently synchronized to the platform, and the multidimensional analysis of the query log is realized.
Example two
Fig. 2 is a flowchart of a data synchronization processing method in a second embodiment of the present invention. The present embodiment is optimized on the basis of the above-described embodiment, and details not described in detail in the present embodiment are detailed in the above-described embodiment. Referring to fig. 2, the data synchronization processing method provided in this embodiment may include:
s210, acquiring an anti-counterfeiting code or a logistics code applied to inquiry and an inquiry log of the anti-counterfeiting code or the logistics code.
Specifically, after purchasing the commodity, the consumer can scan the anti-counterfeiting code or the logistics code on the commodity through the camera on the intelligent device, and inquire the commodity through the anti-counterfeiting code or the logistics code. Optionally, an anti-counterfeiting query application is installed in the intelligent device, and the query application acquires the scanned anti-counterfeiting code or the scanned logistics code, and further decodes the anti-counterfeiting code or the scanned logistics code to identify commodity information contained in the anti-counterfeiting code or the scanned logistics code. And further transmitting the anti-counterfeiting code or the logistics code to a blockchain node, and after the blockchain node receives the anti-counterfeiting code or the logistics code, recording and counting an inquiry log corresponding to the anti-counterfeiting code or the logistics code, wherein the inquiry log comprises at least one of inquiry time, inquiry place and history inquiry times corresponding to the anti-counterfeiting code or the logistics code so as to acquire a detailed inquiry record.
S220, storing the query log as transaction data on a blockchain.
Specifically, after the blockchain node receives the query log, the query log is stored on the blockchain as object data, so that the decentralization storage of the query data is realized, the security of the query log is ensured, and the query log is prevented from being forged and tampered. And by storing the query log on the blockchain, subsequent multidimensional analysis of the query log can be facilitated to provide marketing data decisions.
S230, receiving a data synchronization request sent by a platform, wherein the data synchronization request comprises platform identification information.
S240, determining whether the platform has data synchronization authority according to the platform identification information.
And S250, if the data synchronization authority exists, sending the query log stored on the blockchain to the platform, and carrying out multidimensional analysis on the query log by the platform.
The block link node sends the query log to the platform, and the platform stores the query log in the database, performs multidimensional analysis on the query log, for example, performs statistical analysis on the query times in the query log, combines the query places corresponding to the anti-counterfeiting codes or the logistics codes, and can analyze and obtain the query times corresponding to each query place, so that the query times of the commodity at specific places can be summarized, namely, the sales volume of the commodity at the places is higher, and sales volume data and marketing guidance data are provided for enterprises. The enterprise can also obtain query log data of different time periods for analysis, so that the fact that the sales volume of the commodity is higher in the specific time period is summarized, and sales volume data and marketing guidance data are provided. In addition, the enterprise can compare the selling places of the commodities with the inquiring places in the inquiring logs to analyze whether the inquiring places of the commodities are consistent with the selling places of the commodities, if a large number of the inquiring places of the anti-counterfeiting codes or the logistics codes of the commodities are not consistent with the selling places of the commodities, the situation that the commodities are counterfeited is likely to exist, the anti-counterfeiting codes or the logistics codes of the commodities can be used for the second time, and therefore marketing manufacturers can acquire the situation of the commodities in time, and the market flow direction of the commodities can be further determined.
According to the technical scheme, more detailed query record information can be obtained by obtaining the anti-counterfeiting code or the logistics code of the query application and the query log of the anti-counterfeiting code or the logistics code, so that the query log can be further analyzed, the query log is stored on the blockchain as object data, the decentralization storage of the query data is realized, the security of the query log is ensured, and the query log is prevented from being forged and tampered. The platform performs multidimensional analysis by sending the query log to the platform, so that the query log is effectively analyzed and utilized to provide sales volume data and marketing data, and marketing data decisions are provided for enterprises.
Example III
Fig. 3 is a schematic structural diagram of a data synchronization processing device according to a third embodiment of the present invention. The device is suitable for the situation that the block chain link synchronizes the data on the block chain to the platform so that the platform can further carry out multidimensional analysis on the data stored on the block chain, and can be applied to each commodity manufacturer to obtain marketing data of the commodity through the multidimensional analysis result so as to provide data decision for the influence management of enterprises. The apparatus may be implemented in software and/or hardware, and the apparatus may be integrated in a server. Referring to fig. 3, the apparatus specifically includes:
a receiving module 310, configured to receive a data synchronization request sent by a platform, where the data synchronization request includes platform identification information;
the permission determining module 320 is configured to determine whether the platform has a data synchronization permission according to the platform identification information;
and the sending module 330 is configured to send the query log stored in the blockchain to the platform if the data synchronization authority exists, and perform multidimensional analysis on the query log by the platform.
Optionally, the permission determining module includes:
the matching unit is used for matching the platform identification information with legal platform identification information with data synchronization authority stored on the blockchain;
and the synchronous authority determination unit is used for determining that the platform has the data synchronous authority if the matched legal platform identification information exists.
Optionally, the sending module includes:
the query log sending unit is used for obtaining a query log to be sent from the blockchain based on the intelligent contract and sending the query log to the platform, wherein the query log comprises at least one of query time, query place and historical query times corresponding to the anti-fake code or the stream code scanned by the user.
Optionally, the data synchronization request further includes a query log condition;
the query log sending unit includes:
the log obtaining subunit is used for reading the query log conditions in the data synchronization request and obtaining the query log to be sent meeting the query log conditions from the blockchain based on the intelligent contract.
And the log sending subunit is used for reading the query log conditions in the data synchronization request and acquiring the query log to be sent meeting the query log conditions from the blockchain based on the intelligent contract.
According to the technical scheme of the embodiment, a receiving module receives a data synchronization request sent by a platform, wherein the data synchronization request comprises platform identification information; the permission determining module determines whether the platform has data synchronization permission according to the platform identification information; and if the sending module judges that the data synchronization authority exists, the sending module sends the query log stored on the blockchain to the platform, and the platform performs multidimensional analysis on the query log. The data synchronization request of the platform is received, and the platform data synchronization authority is judged according to the platform identification information in the data synchronization request, so that the safety of data synchronization is ensured, the data is prevented from being maliciously used due to the fact that the illegal platform obtains the data, the query log stored on the blockchain is further sent to the platform with the data synchronization authority, the synchronization of the query log on the blockchain and the platform is realized, the query log is conveniently synchronized to the platform, and the multidimensional analysis of the query log is realized.
Example IV
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention. Fig. 4 illustrates a block diagram of an exemplary server 412 suitable for use in implementing embodiments of the invention. The server 412 shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 4, the server 412 includes: one or more processors 416; memory 428 is configured to store one or more programs that, when executed by the one or more processors 416, cause the one or more processors 416 to implement the data synchronization processing method provided by the embodiments of the present invention, includes:
receiving a data synchronization request sent by a platform, wherein the data synchronization request comprises platform identification information;
determining whether the platform has data synchronization authority according to the platform identification information;
and if the data synchronization authority exists, sending the query log stored on the blockchain to the platform, and carrying out multidimensional analysis on the query log by the platform.
In the form of a general-purpose server. Components of server 412 may include, but are not limited to: one or more processors or processors 416, a system memory 428, and a bus 418 that connects the various system components (including the system memory 428 and the processor 416).
Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Server 412 typically includes a variety of computer system readable storage media. Such storage media can be any available storage media that can be accessed by server 412 and includes both volatile and nonvolatile storage media, removable and non-removable storage media.
The system memory 428 may include computer system readable storage media in the form of volatile memory such as Random Access Memory (RAM) 430 and/or cache memory 432. The server 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from or write to a non-removable, nonvolatile magnetic storage medium (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical storage medium), may be provided. In such cases, each drive may be coupled to bus 418 via one or more data storage medium interfaces. Memory 428 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 460 having a set (at least one) of program modules 462 may be stored, for example, in memory 428, such program modules 462 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 462 generally perform the functions and/or methods of the embodiments described herein.
The server 412 may also communicate with one or more external servers 416 (e.g., keyboard, pointing server, display 426, etc.), with one or more servers that enable users to interact with the server 412, and/or with any server (e.g., network card, modem, etc.) that enables the server 412 to communicate with one or more other computing servers. Such communication may occur through an input/output (I/O) interface 422. Also, the server 412 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 420. As shown, network adapter 420 communicates with other modules of server 412 via bus 418. It should be appreciated that although not shown in fig. 4, other hardware and/or software modules may be used in connection with server 412, including, but not limited to: microcode, server drives, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 416 performs various functional applications and data processing by running at least one of the other programs among the plurality of programs stored in the system memory 428, for example, to implement a data synchronization processing method provided by an embodiment of the present invention.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a data synchronization processing method:
receiving a data synchronization request sent by a platform, wherein the data synchronization request comprises platform identification information;
determining whether the platform has data synchronization authority according to the platform identification information;
and if the data synchronization authority exists, sending the query log stored on the blockchain to the platform, and carrying out multidimensional analysis on the query log by the platform.
The computer storage media of embodiments of the present invention may take the form of any combination of one or more computer-readable storage media. The computer readable storage medium may be a computer readable signal storage medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible storage medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal storage medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal storage medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (7)

1. A method for synchronously processing data, the method comprising:
receiving a data synchronization request sent by a platform, wherein the data synchronization request comprises platform identification information;
determining whether the platform has data synchronization authority according to the platform identification information;
if the data synchronization authority exists, sending a query log stored on the blockchain to the platform, and carrying out multidimensional analysis on the query log by the platform;
the method comprises the steps of receiving a data synchronization request sent by a platform and before verifying the request, further comprising:
acquiring an anti-counterfeiting code or a logistics code of query application and a query log of the anti-counterfeiting code or the logistics code;
storing the query log as transaction data on a blockchain; the query log comprises at least one of query time, query place and historical query times corresponding to the anti-fake code or the logistics code scanned by the user; the inquiry time corresponding to the anti-counterfeiting code or the logistics code is the time for an inquirer to scan the anti-counterfeiting code or the logistics code, and the inquiry place is the position obtained according to the positioning function of the intelligent device for scanning the anti-counterfeiting code or the logistics code;
according to the platform identification information, determining whether the platform has the data synchronization authority comprises the following steps:
matching the platform identification information with legal platform identification information with data synchronization authority stored on a blockchain;
if the matched legal platform identification information exists, determining that the platform has the data synchronization authority.
2. The method of claim 1, wherein if there is data synchronization authority, sending the query log stored on the blockchain to the platform, and performing multidimensional analysis on the query log by the platform, comprises:
and acquiring a query log to be sent from the blockchain based on the intelligent contract, and sending the query log to the platform.
3. The method of claim 2, wherein the data synchronization request further includes a query log condition;
obtaining a query log to be sent from a blockchain based on an intelligent contract, and sending the query log to a platform comprises:
reading query log conditions in the data synchronization request, and acquiring query logs to be sent, which meet the query log conditions, from the blockchain based on the intelligent contract;
and sending the query log to be sent, which meets the query log conditions, to the platform.
4. A data synchronization processing apparatus, the apparatus comprising:
the receiving module is used for receiving a data synchronization request sent by a platform, wherein the data synchronization request comprises platform identification information;
the permission determining module is used for determining whether the platform has data synchronization permission according to the platform identification information;
the sending module is used for sending the query log stored on the blockchain to the platform if the data synchronization authority exists, and carrying out multidimensional analysis on the query log by the platform;
the receiving module is specifically used for: acquiring an anti-counterfeiting code or a logistics code of query application and a query log of the anti-counterfeiting code or the logistics code;
storing the query log as transaction data on a blockchain; the query log comprises at least one of query time, query place and historical query times corresponding to the anti-fake code or the logistics code scanned by the user; the inquiry time corresponding to the anti-counterfeiting code or the logistics code is the time for an inquirer to scan the anti-counterfeiting code or the logistics code, and the inquiry place is the position obtained according to the positioning function of the intelligent device for scanning the anti-counterfeiting code or the logistics code;
the permission determination module comprises:
the matching unit is used for matching the platform identification information with legal platform identification information with data synchronization authority stored on the blockchain;
and the synchronous authority determination unit is used for determining that the platform has the data synchronous authority if the matched legal platform identification information exists.
5. The apparatus of claim 4, wherein the transmitting module comprises:
and the query log sending unit is used for acquiring the query log to be sent from the blockchain based on the intelligent contract and sending the query log to the platform.
6. A server, the server comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement a data synchronization processing method as claimed in any one of claims 1 to 3.
7. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a data synchronization processing method as claimed in any one of claims 1-3.
CN201910267110.7A 2019-04-03 2019-04-03 Data synchronous processing method, device, server and storage medium Active CN109947855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910267110.7A CN109947855B (en) 2019-04-03 2019-04-03 Data synchronous processing method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910267110.7A CN109947855B (en) 2019-04-03 2019-04-03 Data synchronous processing method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN109947855A CN109947855A (en) 2019-06-28
CN109947855B true CN109947855B (en) 2023-11-24

Family

ID=67013614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910267110.7A Active CN109947855B (en) 2019-04-03 2019-04-03 Data synchronous processing method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN109947855B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647448A (en) * 2019-08-09 2020-01-03 北京建筑大学 Mobile application operation log data real-time analysis method, server and system
US10936581B2 (en) 2019-08-30 2021-03-02 Advanced New Technologies Co., Ltd. Blockchain transaction processing method and apparatus
CN110633309A (en) * 2019-08-30 2019-12-31 阿里巴巴集团控股有限公司 Block chain transaction processing method and device
CN112445861B (en) * 2019-09-05 2023-08-15 中移(苏州)软件技术有限公司 Information processing method, device, system and storage medium
CN111177096A (en) * 2019-12-11 2020-05-19 招银云创(深圳)信息技术有限公司 Log management method and device, computer equipment and storage medium
CN113470795A (en) * 2020-03-30 2021-10-01 上海奥普生物医药股份有限公司 Data tracking method, system, server and storage medium
CN112035466B (en) * 2020-07-29 2024-04-19 北京智融云河科技有限公司 External index development framework for block chain query
CN112241437A (en) * 2020-12-15 2021-01-19 深圳市易博天下科技有限公司 Loop control method, device and equipment for multi-master synchronization of database and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874393A (en) * 2017-01-13 2017-06-20 北京众享比特科技有限公司 Synchronizing traffic data method and system, Database Systems based on block chain
CN109255255A (en) * 2018-10-22 2019-01-22 北京锐安科技有限公司 Data processing method, device, equipment and storage medium based on block chain
CN109522363A (en) * 2018-10-18 2019-03-26 上海达家迎信息科技有限公司 Cloud platform synchronous method, system, equipment and storage medium based on block chain
US20190361913A1 (en) * 2016-11-16 2019-11-28 Silcroad Soft, Inc. Data replication technique in database management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190361913A1 (en) * 2016-11-16 2019-11-28 Silcroad Soft, Inc. Data replication technique in database management system
CN106874393A (en) * 2017-01-13 2017-06-20 北京众享比特科技有限公司 Synchronizing traffic data method and system, Database Systems based on block chain
CN109522363A (en) * 2018-10-18 2019-03-26 上海达家迎信息科技有限公司 Cloud platform synchronous method, system, equipment and storage medium based on block chain
CN109255255A (en) * 2018-10-22 2019-01-22 北京锐安科技有限公司 Data processing method, device, equipment and storage medium based on block chain

Also Published As

Publication number Publication date
CN109947855A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN109947855B (en) Data synchronous processing method, device, server and storage medium
US10795964B2 (en) Text address processing method and apparatus
US8943585B2 (en) Access monitoring method, information processing apparatus, and computer-readable medium storing access monitoring program
CN110851879B (en) Method, device and equipment for infringement and evidence preservation based on evidence preservation block chain
US8917939B2 (en) Verifying vendor identification and organization affiliation of an individual arriving at a threshold location
CN112000730B (en) Tracing information writing and tracing information verification method and system based on block chain
US20130097694A1 (en) Protecting an electronic device against unathorized hardware use
CN111586005B (en) Scanner scanning behavior identification method and device
CN110324416B (en) Download path tracking method, device, server, terminal and medium
CN114154995B (en) Abnormal payment data analysis method and system applied to big data wind control
US20120215704A1 (en) Identification of regions including unauthorized products
US10931790B2 (en) Systems and methods for securely transferring selective datasets between terminals with multi-applications support
US9992181B2 (en) Method and system for authenticating a user based on location data
CN104052720A (en) Information authentication method and system thereof
CN111831750A (en) Block chain data analysis method and device, computer equipment and storage medium
CN114943317A (en) Equipment checking method, device, equipment and storage medium
CN110943982B (en) Document data encryption method and device, electronic equipment and storage medium
US11194871B2 (en) Data enrichment systems and methods for abbreviated domain name classification
CN114301713A (en) Risk access detection model training method, risk access detection method and risk access detection device
US7177958B1 (en) Automated input determination
CN113344598A (en) Data verification method, device, medium and electronic equipment
CN114567509B (en) Web application access system and method
WO2021003424A1 (en) Systems and methods for securely transferring selective datasets between terminals with multi-applications support
CN115809466B (en) Security requirement generation method and device based on STRIDE model, electronic equipment and medium
US20220051092A1 (en) System and methods for translating error messages

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