CN111291111A - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN111291111A
CN111291111A CN201811485137.5A CN201811485137A CN111291111A CN 111291111 A CN111291111 A CN 111291111A CN 201811485137 A CN201811485137 A CN 201811485137A CN 111291111 A CN111291111 A CN 111291111A
Authority
CN
China
Prior art keywords
hash value
basic information
block
information
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.)
Pending
Application number
CN201811485137.5A
Other languages
Chinese (zh)
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201811485137.5A priority Critical patent/CN111291111A/en
Publication of CN111291111A publication Critical patent/CN111291111A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6272Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database by registering files or documents with a third party
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/02Reservations, e.g. for tickets, services or events

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Economics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides an information processing method and device, wherein the method comprises the following steps: acquiring basic information of a visiting user, generating a first reservation code according to the basic information, and sending the basic information and the first reservation code to a block chain node; and acquiring a first hash value of a first block from a block link point, wherein the first block comprises the basic information and the first reservation code, and sending the first hash value, the basic information and the first reservation code to a database server so that the database server stores the first hash value, the basic information and the first reservation code in a correlation manner. According to the embodiment of the application, the information related to the visiting can not be lost, and other users can trace the information related to the visiting.

Description

Information processing method and device
Technical Field
The embodiment of the invention relates to the technical field of block chains, in particular to an information processing method and device.
Background
The visitor registration management system is a practical requirement of each enterprise and public institution, and is mainly used for better managing visitor records of an office building, providing a well-ordered management platform for enterprises and preventing unnecessary troubles caused by the mixing of foreign personnel other than the enterprise. The visitor management system widely used at present mainly comprises a plurality of terminals, an application server, a database server and the like, and the specific flow of the service is divided into two parts of reservation and registration.
In the visiting user reservation stage, the application server acquires the basic information and the reservation code of the visiting user, and the basic information and the reservation code of the user are stored in the database server. During the visiting phase of the visiting user, the application server obtains the registration information of the visiting user, and the registration information is also stored in the database server. However, the information related to each visit stored in the database server is easily lost, so that other users cannot trace the information related to the visit.
Disclosure of Invention
The embodiment of the invention provides an information processing method and device, so that the information related to visiting can not be lost, and other users can trace the information related to visiting.
In a first aspect, an embodiment of the present application provides an information processing method, including:
acquiring basic information of a visiting user, and generating a first appointment code according to the basic information;
sending the basic information and the first reservation code to a block chain node;
acquiring a first hash value of a first block from the block chain node, wherein the first block comprises the basic information and the first reservation code;
and sending the first hash value, the basic information and the first reservation code to a database server so that the database server stores the first hash value, the basic information and the first reservation code in an associated manner.
In one possible design, after generating the first subscription code according to the basic information, the method further includes:
generating a second hash value according to the basic information and the first reservation code;
sending the second hash value to the blockchain node;
correspondingly, the second hash value is also included in the first block.
In one possible design, the method further includes:
acquiring registration information of the visiting user;
the registration information is verified.
In one possible design, if the registration information passes the check, sending the registration information to the blockchain node;
obtaining a third hash value of a second chunk from the blockchain node, the second chunk including the registration information;
and sending the registration information and the third hash value to the database server so that the database server stores the third hash value and the registration information in a correlation manner.
In one possible design, further comprising;
generating a fourth hash value according to the registration information;
sending the fourth hash value to the blockchain node;
correspondingly, the fourth hash value is also included in the second block.
In one possible design, the method further includes:
acquiring a second appointment code of the visiting user;
the second subscription code is verified.
In a second aspect, an embodiment of the present application provides a method for processing user information, including:
acquiring basic information and a first reservation code of a visiting user from an application server, wherein the first reservation code is generated by the application server according to the basic information;
generating a first block according to the basic information and a first reservation code;
and sending the first hash value of the first block to the application server.
In one possible design, further comprising:
acquiring a second hash value from the application server, wherein the second hash value is generated by the application server according to the basic information and the first appointment code;
the generating a first block according to the basic information and a first reservation code comprises:
and generating a first block according to the basic information, the first reservation code and the second hash value.
In one possible design, further comprising:
acquiring registration information of a visiting user from the application server;
generating a second block according to the registration information;
and sending the third hash value of the second block to the application server.
In one possible design, further comprising:
acquiring a fourth hash value from the application server, wherein the fourth hash value is generated by the application server according to the registration information;
the generating a second block according to the registration information includes:
and generating a second block according to the registration information and the fourth hash value.
In a third aspect, an embodiment of the present application provides an apparatus for processing information, including:
the acquisition module is used for acquiring basic information of a visiting user;
the generating module is used for generating a first appointment code according to the basic information;
a sending module, configured to send the basic information and the first reservation code to a block chain node;
the obtaining module is further configured to obtain a first hash value of a first block from the block link point, where the first block includes the basic information and the first reservation code;
the sending module is further configured to send the first hash value, the basic information, and the first subscription code to a database server, so that the database server stores the first hash value, the basic information, and the first subscription code in an associated manner.
In one possible design, the generating module is configured to generate a second hash value according to the basic information and a first subscription code after generating the first subscription code according to the basic information;
the sending module is further configured to send the second hash value to the blockchain node;
correspondingly, the second hash value is also included in the first block.
In a possible design, the obtaining module is further configured to obtain registration information of the visiting user;
the device further comprises: and the verification module is used for verifying the registration information.
In a possible design, if the check-in information passes, the sending module is further configured to send the check-in information to the blockchain node;
the obtaining module is further configured to obtain a third hash value of a second block from the blockchain node, where the second block includes the registration information;
the sending module is further configured to send the registration information and the third hash value to the database server, so that the database server stores the third hash value and the registration information in an associated manner.
In one possible design, the generating module is further configured to generate a fourth hash value according to the registration information;
the sending module is further configured to send the fourth hash value to the blockchain node;
correspondingly, the fourth hash value is also included in the second block.
In a fourth aspect, an embodiment of the present application provides an apparatus for processing information, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring basic information and a first reservation code of a visiting user from an application server, and the first reservation code is generated by the application server according to the basic information;
the generating module is used for generating a first block according to the basic information and the first reservation code;
a sending module, configured to send the first hash value of the first chunk to the application server.
In a possible design, the obtaining module is further configured to obtain a second hash value from the application server, where the second hash value is a hash value generated by the application server according to the basic information and the first reservation code;
the generating module is specifically configured to generate a first block according to the basic information, the first reservation code, and the second hash value.
In a possible design, the obtaining module is further configured to obtain registration information of a visiting user from the application server;
the generating module is further configured to generate a second block according to the registration information;
the sending module is further configured to send the third hash value of the second chunk to the application server.
In a possible design, the obtaining module is further configured to obtain a fourth hash value from the application server, where the fourth hash value is a hash value generated by the application server according to the registration information;
the generating module is specifically configured to generate a second block according to the registration information and the fourth hash value.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: a processor coupled with a memory;
the memory is used for storing a computer program;
the processor is configured to invoke a computer program stored in the memory to implement the method in any one of the possible designs of the first aspect and the first aspect or the method in any one of the possible designs of the second aspect and the second aspect.
In a sixth aspect, an embodiment of the present application provides a readable storage medium, which includes a program or instructions, and when the program or instructions are executed on a computer, the method in the first aspect and any one of the possible designs of the first aspect or the method in the second aspect and any one of the possible designs of the second aspect is executed.
In the application, the basic information and the reservation code of the visiting user are stored in the database server and also stored in the block chain link point of the block chain system, the basic information and the reservation code stored in the block chain system are generated into a block and cannot be lost, and the generated first hash value of the block and the basic information and the reservation code of the visiting user are stored in the database server in a correlated manner, so that other users can trace the basic information and the reservation code of the visiting user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a first signaling interaction diagram of an information processing method according to an embodiment of the present application;
fig. 3 is a signaling interaction diagram ii of an information processing method according to an embodiment of the present application;
fig. 4 is a signaling interaction diagram three of a method for processing information according to an embodiment of the present application;
fig. 5 is a signaling interaction diagram of a method for processing information according to an embodiment of the present application;
fig. 6 is a first schematic structural diagram of an information processing apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a second information processing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram three of an information processing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an application server according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a blockchain node according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple. The terms "first," "second," and the like in this application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. The association or the associated storage of the A and the B means that the B can be acquired according to the A or the A can be acquired according to the B.
The technical means shown in the present application will be described in detail below with reference to specific examples. It should be noted that the following embodiments may be combined with each other, and the description of the same or similar contents in different embodiments is not repeated.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application, and referring to fig. 1, when a visitor subscribes to a visit, an application server 11 receives basic information of the visitor from a subscription terminal 12, generates a first subscription code according to the basic information, and sends the basic information of 11 and the first subscription code to a block link point in a block chain system 13, where the block link point generates a first block according to the basic information and the first subscription code.
When the visiting user visits, the application server 11 receives the registration information of the visiting user from the registration terminal 14 and sends the registration information to the block chain node in the block chain system 13, and the block chain node generates a second block according to the registration information; the application server 11 also receives the second subscription code of the visiting user from the code scanning terminal 15 and verifies whether the second subscription code is identical to the first subscription code.
The application server 11 also sends the basic information, the first subscription code and the registration information to the database server 16 for storage.
The method enables the basic information, the first reservation code and the registration information of the visiting user to be stored in the block link point and not to be lost or tampered.
The technical means shown in the present application will be described in detail below with reference to specific examples. It should be noted that the following embodiments may be combined with each other, and the description of the same or similar contents in different embodiments is not repeated.
The information processing method relates to an information processing method of a reservation stage of an visiting user and an information processing method of a visiting stage.
First, an information processing method of a reservation stage in the present embodiment is described with reference to fig. 2 and 3.
Fig. 2 is a signaling interaction diagram of a method for processing information according to an embodiment of the present application, referring to fig. 2, the method according to the embodiment includes:
step S201, the reservation terminal acquires basic information of the visiting user.
Specifically, the basic information includes at least one of: name, mobile phone number, identification card number, date of visit, etc.
The visiting user informs the visited user of the basic information before visiting, the visited user inputs the basic information of the visiting user through a user interface of the reservation terminal, and the reservation terminal acquires the basic information of the visiting user. The reservation terminal can be a terminal installed with reservation management software.
Step S202, the reservation terminal sends the basic information to the application server.
Specifically, after acquiring the basic information of the visiting user, the reservation terminal sends the basic information to the application server.
Step S203, the application server generates a first subscription code according to the basic information.
Specifically, the application server receives the basic information and generates a first appointment code according to the basic information; the method for generating the reservation code according to the basic information refers to the method in the prior art, and is not described in detail in this embodiment. Wherein, the form of the first reservation code can be any one of the following: a multiple character format, a bar code, a two-dimensional code, and the like.
Step S204, the application server sends the basic information and the first subscription code to a blockchain node.
Specifically, in one mode, after the application server generates a first reservation code, the application server sends the basic information and the first reservation code to the blockchain node in the blockchain system.
In another mode, the application server may send the basic information to the blockchain node after receiving the basic information, and after generating the first reservation code, send the first reservation code to the blockchain node.
The blockchain system in this embodiment may be a private chain system, and the blockchain node is a node capable of generating a block in the private chain system. In the public chain system, each node can generate a block, and therefore, the block link point in the public chain system is the node which generates the block most quickly at present.
It can be understood that, in the blockchain system including a plurality of nodes, the application server sends the basic information and the first reservation code to the blockchain node, and also sends the basic information and the first reservation code to other nodes of the blockchain system where the blockchain node is located.
Step S205, the application server sends the basic information and the first subscription code to a database server.
Specifically, the application server also sends the basic information and the first subscription code to a database server. And after receiving the basic information and the first reservation code, the database server stores the basic information and the first reservation code in an associated manner.
In step S206, the block link point generates a first block according to the basic information and the first reservation code.
Specifically, the block link point generates a first block according to the basic information and the first reservation code, and broadcasts the block to other nodes.
Step S207, the block node sends the first hash value of the first block to the application server.
Step S208, the application server sends the first hash value to the database server;
specifically, after receiving the first hash value, the application server sends the first hash value to the database server. The first hash value is used for identifying the first block, and other users can obtain information included in the first block through the first hash value at a later stage.
Step S209, the database server stores the basic information, the first subscription code and the first hash value in association.
Specifically, after receiving the basic information, the first subscription code, and the first hash value, the database server stores the basic information, the first subscription code, and the first hash value in an associated manner.
Since the database service stores the basic information, the first subscription code and the first hash value in association, when a subsequent other user wants to view the basic information and the first subscription code of the visiting user stored in the blockchain node, the application server can obtain the first hash value through the identifier of the visiting user input by the other user at the backtracking terminal (which may be the same terminal as the subscription terminal or the registration terminal, or a different terminal), because the basic information has the identifier of the visiting user, and the first hash value is stored in association with the basic information in the database server. After the application server acquires the first hash value, a viewing request carrying the first hash value can be sent to the block chain node, after the block chain node receives the viewing request, the basic information and the first reservation code included in the first block indicated by the first hash value are sent to the application server, and the application server sends the basic information and the first reservation code included in the first block to the backtracking terminal for displaying, so that the purpose of viewing the basic information and the first reservation code of the visiting user stored in the block chain node is achieved.
In addition, after the application server obtains the first hash value, the application server can send the first hash value to the backtracking terminal, the backtracking terminal sends a viewing request carrying the first hash value to the block link point, and after the block link point receives the viewing request, the block link point sends the basic information and the first reservation code included in the first block indicated by the first hash value to the backtracking terminal for displaying.
In this embodiment, the basic information and the reservation code of the visiting user are stored in the database server, and also stored in the block chain node of the block chain system, the basic information and the reservation code stored in the block chain system are generated into a block and are not lost, and the generated first hash value of the block and the basic information and the reservation code of the visiting user are stored in the database server in a correlated manner, so that other users can trace back the basic information and the reservation code of the visiting user.
It should be understood that the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In order to determine whether the basic information of the visiting user and the first subscription code generated based on the basic information are tampered during the process of sending to the blockchain node, this embodiment is further improved on the basis of the previous embodiment, and fig. 3 is a signaling interaction diagram two of the information processing method provided by this embodiment, with reference to fig. 3, the method of this embodiment includes:
step S301, the reservation terminal acquires the basic information of the visiting user.
For specific implementation, refer to step S201 in the previous embodiment, and details are not described here.
Step S302, the reservation terminal sends the basic information to the application server.
For specific implementation, refer to step S202 in the previous embodiment, which is not described herein again.
Step S303, the application server generates a first appointment code according to the basic information;
for specific implementation, refer to step S203 in the previous embodiment, which is not described herein again.
Step S304, the application server generates a second hash value according to the basic information and the first appointment code;
specifically, the application server generates a second hash value according to the basic information and the first subscription code.
Step S305, the application server sends the basic information, the first reserved code and the second hash value to the segment node;
the application server sends the second hash value to the block chain node besides sending the basic information and the first reservation code to the block chain node.
The meaning of the blockchain node in this embodiment is the same as that of the blockchain node in the previous embodiment.
Step S306, the application server sends the basic information and the first subscription code to a database server.
Specifically, the application server may send the second hash value to the database server in addition to the basic information and the first subscription code.
Step S307, the block chain node generates a first block according to the basic information, the first reservation code and the second hash value;
if the fifth hash value is the same as the second hash value, it indicates that the basic information, the first reserved code and the second hash value are not tampered in the process of sending the basic information, the first reserved code and the second hash value to the link point of the block; if the fifth hash value is different from the second hash value, it indicates that the basic information, the first reserved code, and the second hash value are tampered in the process of sending the basic information, the first reserved code, and the second hash value to the segment node.
Step S308, the block chain node sends the first Hash value of the first block to the application server;
for specific implementation, refer to step S307 in the previous embodiment, which is not described herein again.
Step S309, the application server sends the first hash value to a database server;
for specific implementation, refer to step S308 in the previous embodiment, which is not described herein again.
Step S310, the database server stores the basic information, the first subscription code and the first hash value in association.
And if the application server also sends the second hash value to the database server, the database server stores the basic information, the first reservation code, the first hash value and the second hash value in an associated manner.
In this embodiment, the application server further generates the basic information of the visiting user and the second hash value of the first reservation code, and when the other user acquires that the first block includes the basic information of the visiting user and the first reservation code, it is determined whether the basic information of the visiting user, the first reservation code, and the second hash value are tampered in the process of sending the basic information, the first reservation code, and the second hash value to the block chain node, so that it is ensured that the other user can trace back the correct basic information and the first reservation code of the visiting user.
It should be understood that the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Next, on the basis of the above-described embodiment, an information processing method in the visiting phase in the present embodiment is described with reference to fig. 4 and 5.
Fig. 4 is a signaling interaction diagram of a method for processing information according to an embodiment of the present application, referring to fig. 4, the method according to the embodiment includes:
step S401, the code scanning terminal acquires a second reservation code of the visiting user.
Specifically, when the visiting user visits, the second subscription code of the visiting user is shown. It can be understood that, if the visiting user is the user who has made the reservation in the previous embodiment, and the visiting user presents the first reservation code acquired by the visiting user in the reservation stage, the second reservation code is the same as the first reservation code.
And scanning the second appointment code by the code scanning terminal to obtain the second appointment code.
Step S402, the code scanning terminal sends the second reservation code to the application server.
Specifically, after the code scanning terminal acquires the second appointment code, the second appointment code is sent to the application server.
Step S403, the application server verifies the second subscription code.
Specifically, if the visiting user makes a reservation, the database server stores a first reservation code acquired by the visiting user in a reservation stage, the application server acquires the first reservation code from the database server, if the second reservation code is the same as the first reservation code, the second reservation code is determined to pass the check, and if the second reservation code is different from the first reservation code or the database server does not store the first reservation code acquired by the visiting user in the reservation stage, the second reservation code is determined to fail the check.
After the application server determines that the second subscription code passes the verification, a message indicating that the verification is successful may be sent to the code scanning terminal.
Step S404, the registration terminal acquires the registration information of the visiting user.
Specifically, after the check of the subscription code presented by the visitor is successful, the registration information of the visitor may be input through the user interface of the registration terminal, and the registration terminal may acquire the registration information.
Wherein the registration information may include at least one of: name, personal identity, relationship to the addressee, reason for visit, date of visit, etc.
Step S405, the registration terminal transmits the registration information to the application server.
Specifically, after acquiring the registration information, the registration terminal sends the registration information to the application server.
Step S406, the application server verifies the registration information.
Specifically, the specific method for the application server to verify the registration information may be as follows:
the application server sends a first request to the database server, where the first request is used to instruct the database server to obtain basic information corresponding to a first identifier, and the first request includes the first identifier, where the first identifier is an identifier of a visiting user included in the registration information, such as a name of the user.
The database server inquires whether basic information including the identification is stored or not, and sends a first response to the application server, and the application server receives the first response; if the database server stores basic information including the first identifier, the first response includes the basic information, the application server compares the registration information with the basic information, and if the contents of items of which the registration information is the same as the basic information are the same, the application server determines that the registration information passes verification; if the database server does not store the basic information including the first identifier, the first response does not include the basic information, and at this time, the application server determines that the registration information check fails.
The content of the item of the registration information that is the same as the content of the item of the basic information means that, if the registration information includes an item-identity card number, the basic information also includes an item-identity card number, the content of the identity card number item in the registration information is 1234567890, and the content of the identity card number item in the basic information is 1234567890.
After the application server determines that the registration information is verified, a message indicating that verification is successful may be sent to the registration terminal.
Step S407, if the second subscription code and the registration information are verified, the application server sends the registration information to the blockchain node.
Specifically, after the second subscription code and the registration information are both verified, the application server sends the registration information to the blockchain node.
The meaning of the blockchain node of the present embodiment is the same as that of the blockchain node in the above embodiments.
Step S408, if the second subscription code and the registration information are verified, sending the registration information to the database server.
Specifically, after the second subscription code and the registration information are both verified, the application server also sends the registration information to the blockchain node.
Step S409, the block chain node generates a second block according to the registration information;
specifically, the block link point generates a second block according to the registration information and broadcasts the second block to other nodes.
In step S410, the block node sends the third hash value of the second block to the application server.
Specifically, the third hash value is used to identify the second block, and other users at a later stage can obtain information included in the second block through the third hash value.
In step S411, the application server sends the third hash value to the database server.
Specifically, after receiving the third hash value, the application server sends the third hash value to the database server.
Step S412, the database server stores the registration information and the third hash value in association.
Specifically, after receiving the registration information and the third hash value, the database server stores the registration information and the third hash value in an associated manner.
Since the database service stores the registration information and the third hash value in association, when a subsequent other user wants to check the registration information of the visiting user stored in the blockchain node, the application server can obtain the third hash value through the identifier of the visiting user input by the other user at the backtracking terminal (which may be the same terminal as the reservation terminal or the registration terminal, or a different terminal), because the registration information has the identifier of the visiting user, and the third hash value is stored in association with the registration information in the database server. After the application server obtains the third hash value, a viewing request carrying the third hash value can be sent to the block chain node, after the block chain node receives the viewing request, the registration information included in the second block indicated by the third hash value is sent to the application server, and the application server sends the registration information included in the second block to the backtracking terminal for displaying, so that the purpose of viewing the registration information of the visiting user stored in the block chain node is achieved.
In addition, after the application server obtains the third hash value, the third hash value can be sent to the backtracking terminal, the backtracking terminal sends a viewing request carrying the third hash value to the block link point, and after receiving the viewing request, the block link point sends the registration information included in the second block indicated by the third hash value to the backtracking terminal for displaying.
In this embodiment, the registration information of the visiting user is stored in each node of the blockchain system in addition to the database server, and the registration information stored in the blockchain system is generated into a block and is not lost, so that other users can trace the registration information of the user.
It should be understood that the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In order to determine whether the registration information of the visiting user is tampered in the process of sending to the blockchain node, this embodiment is further improved based on the previous embodiment, and fig. 5 is a signaling interaction diagram of a processing method of information provided by this embodiment, referring to fig. 5, where the method of this embodiment includes:
step S501, the code scanning terminal acquires a second reservation code of the visiting user.
Step S502, the code scanning terminal sends the second reservation code to the application server.
Step S503, the application server checks the second reservation code;
step S504, the registration terminal acquires the registration information of the visiting user.
Step S505, the registration terminal sends the registration information to the application server.
Step S506, the application server verifies the registration information.
The specific implementation of steps S501 to S506 refers to the explanation of steps S401 to S406 in the previous embodiment, and is not described herein again.
In step S507, the application server generates a fourth hash value according to the registration information.
Specifically, the application server generates a fourth hash value according to the registration information.
If the sixth hash value is the same as the fourth hash value, it indicates that neither the registration information nor the fourth hash value has been tampered in the process of sending the registration information and the fourth hash value to the system of the block chain; if the sixth hash value is different from the fourth hash value, it indicates that the registration information is tampered in the process of sending the registration information and the fourth hash value to the blockchain node, or that the fourth hash value is tampered.
Step S508, if the second subscription code and the registration information are verified, the application server sends the registration information and the fourth hash value to the blob.
The meaning of the blockchain node of the present embodiment is the same as that of the blockchain nodes of the above embodiments.
In step S509, if the second subscription code and the registration information are verified, the application server further sends the registration information to the database server.
In particular, the application server may also send the fourth hash value to the database server.
In step S510, the block link point generates a second block according to the registration information and the fourth hash value.
Specifically, the block link point generates a second block according to the registration information and the fourth hash value, and broadcasts the second block to other nodes.
Step S511, the block node sends the third hash value of the second block to the application server;
step S512, the application server sends the third hash value to the database server.
In step S513, the database server stores the registration information and the third hash value in association with each other.
The specific implementation of steps S511 to S513 refers to the description of steps S410 to S412 in the previous embodiment, and is not described herein again.
If the application server further sends the fourth hash value to the database server, the database server stores the registration information, the third hash value and the fourth hash value in an associated manner.
In this embodiment, the application server further generates a fourth hash value of the registration information of the visitor, and when the other user acquires the registration information of the visitor included in the second block, it may be determined whether the registration information of the visitor and the fourth hash value are tampered in the process of sending the registration information of the visitor to the block chain node, so that it is ensured that the other user can trace back to the correct registration information of the visitor.
It should be understood that the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 6 is a schematic structural diagram of a first information processing apparatus according to an embodiment of the present disclosure, and as shown in fig. 6, the apparatus according to the embodiment may include: an acquisition module 61, a generation module 62 and a sending module 63;
an obtaining module 61, configured to obtain basic information of a visiting user;
a generating module 62, configured to generate a first subscription code according to the basic information;
a sending module 63, configured to send the basic information and the first reservation code to a block chain node;
the obtaining module 61 is further configured to obtain a first hash value of a first block from the block link point, where the first block includes the basic information and the first reservation code;
the sending module 63 is further configured to send the first hash value, the basic information, and the first subscription code to a database server, so that the database server stores the first hash value, the basic information, and the first subscription code in an associated manner.
Optionally, the generating module 62 is configured to generate a second hash value according to the basic information and the first subscription code after generating the first subscription code according to the basic information;
the sending module 63 is further configured to send the second hash value to the blockchain node;
correspondingly, the second hash value is also included in the first block.
Optionally, the obtaining module 61 is further configured to obtain registration information of the visiting user;
optionally, if the check of the registration information passes, the sending module 63 is further configured to send the registration information to the block chain node;
the obtaining module 61 is further configured to obtain a third hash value of a second block from the blockchain node, where the second block includes the registration information;
the sending module 63 is further configured to send the registration information and the third hash value to the database server, so that the database server stores the third hash value and the registration information in an associated manner.
Optionally, the generating module 62 is further configured to generate a fourth hash value according to the registration information;
the sending module 63 is further configured to send the fourth hash value to the blockchain node;
correspondingly, the fourth hash value is also included in the second block.
The apparatus of this embodiment may be configured to execute the technical solution corresponding to the application server in the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of a second information processing apparatus according to an embodiment of the present disclosure, and as shown in fig. 7, the apparatus according to the present embodiment may further include, on the basis of the apparatus structure shown in fig. 6: a verification module 64.
The verification module 64 is configured to verify the registration information.
Optionally, the obtaining module 61 is further configured to obtain a second subscription code of the visiting user; the verification module 64 is further configured to verify the second subscription code.
The apparatus of this embodiment may be configured to execute the technical solution corresponding to the application server in the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of a third information processing apparatus according to an embodiment of the present application, and as shown in fig. 8, the apparatus according to the embodiment may include: an acquisition module 71, a generation module 72 and a sending module 73;
an obtaining module 71, configured to obtain, from an application server, basic information of a visiting user and a first subscription code, where the first subscription code is generated by the application server according to the basic information;
a generating module 72, configured to generate a first block according to the basic information and the first reservation code;
a sending module 73, configured to send the first hash value of the first chunk to the application server.
Optionally, the obtaining module 71 is further configured to obtain a second hash value from the application server, where the second hash value is a hash value generated by the application server according to the basic information and the first reservation code;
the generating module 72 is specifically configured to generate a first block according to the basic information, the first reservation code, and the second hash value.
Optionally, the obtaining module 71 is further configured to obtain registration information of a visiting user from the application server;
the generating module 72 is further configured to generate a second block according to the registration information;
the sending module 73 is further configured to send the third hash value of the second chunk to the application server.
Optionally, the obtaining module 71 is further configured to obtain a fourth hash value from the application server, where the fourth hash value is a hash value generated by the application server according to the registration information;
the generating module 72 is specifically configured to generate a second block according to the registration information and the fourth hash value.
The apparatus of this embodiment may be used to implement the technical solution corresponding to the block link point in the above method embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 9 is a schematic structural diagram of an application server according to an embodiment of the present application, and as shown in fig. 9, an application server 800 according to the embodiment includes: a processor 81 coupled with a memory 82;
the memory 82 is used for storing computer programs;
the processor 81 is configured to execute the computer program stored in the memory, so that the application server executes a method corresponding to the application server in any of the above method embodiments.
Alternatively, the memory 82 may be a memory external to the application server 800.
Fig. 10 is a schematic structural diagram of a block link node according to an embodiment of the present application, and as shown in fig. 10, a block link point 900 according to the present embodiment includes: a processor 91 coupled with a memory 92;
the memory 92 is used for storing a computer program;
the processor 91 is configured to execute a computer program stored in the memory, so as to enable the blockchain node to execute the method corresponding to the blockchain node in any of the above-mentioned method embodiments.
Alternatively, memory 92 may be a memory external to blockchain node 900.
An embodiment of the present application further provides an information processing system, where the system includes: a first device and a second device, where the first device may adopt the structure of any one of the device embodiments in fig. 6 to 7, and correspondingly, may execute the technical solution corresponding to the application server of any one of the method embodiments in fig. 2 to 5, and the implementation principle and the technical effect thereof are similar, and are not described herein again; the second device may adopt the structure of the embodiment of the device in fig. 8, and correspondingly, may execute the technical solution corresponding to the block link point in any one of the method embodiments in fig. 2 to fig. 5, and the implementation principle and the technical effect thereof are similar, and are not described herein again.
Optionally, the system of this embodiment may further include a database server and/or a terminal.
The embodiment of the present invention provides a readable storage medium, which includes a program or an instruction, and when the program or the instruction is run on a computer, a method corresponding to the application server in any of the above method embodiments is executed.
Embodiments of the present invention provide a readable storage medium, which includes a program or instructions, and when the program or instructions are executed on a computer, the method corresponding to the block link point in any of the above method embodiments is executed.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the embodiments of the present invention.

Claims (21)

1. A method for processing information, comprising:
acquiring basic information of a visiting user, and generating a first appointment code according to the basic information;
sending the basic information and the first reservation code to a block chain node;
acquiring a first hash value of a first block from the block chain node, wherein the first block comprises the basic information and the first reservation code;
and sending the first hash value, the basic information and the first reservation code to a database server so that the database server stores the first hash value, the basic information and the first reservation code in an associated manner.
2. The method of claim 1, further comprising, after generating the first subscription code based on the basic information:
generating a second hash value according to the basic information and the first reservation code;
sending the second hash value to the blockchain node;
correspondingly, the second hash value is also included in the first block.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
acquiring registration information of the visiting user;
the registration information is verified.
4. The method of claim 3, wherein if the registration information is verified, sending the registration information to the blockchain node;
obtaining a third hash value of a second chunk from the blockchain node, the second chunk including the registration information;
and sending the registration information and the third hash value to the database server so that the database server stores the third hash value and the registration information in a correlation manner.
5. The method of claim 4, further comprising;
generating a fourth hash value according to the registration information;
sending the fourth hash value to the blockchain node;
correspondingly, the fourth hash value is also included in the second block.
6. The method according to claim 1 or 2, characterized in that the method further comprises:
acquiring a second appointment code of the visiting user;
the second subscription code is verified.
7. A method for processing user information, comprising:
acquiring basic information and a first reservation code of a visiting user from an application server, wherein the first reservation code is generated by the application server according to the basic information;
generating a first block according to the basic information and the first reservation code;
and sending the first hash value of the first block to the application server.
8. The method of claim 7, further comprising:
acquiring a second hash value from the application server, wherein the second hash value is generated by the application server according to the basic information and the first appointment code;
the generating a first block according to the basic information and the first reservation code includes:
and generating a first block according to the basic information, the first reservation code and the second hash value.
9. The method of claim 7 or 8, further comprising:
acquiring registration information of a visiting user from the application server;
generating a second block according to the registration information;
and sending the third hash value of the second block to the application server.
10. The method of claim 9, further comprising:
acquiring a fourth hash value from the application server, wherein the fourth hash value is generated by the application server according to the registration information;
the generating a second block according to the registration information includes:
and generating a second block according to the registration information and the fourth hash value.
11. An apparatus for processing information, comprising:
the acquisition module is used for acquiring basic information of a visiting user;
the generating module is used for generating a first appointment code according to the basic information;
a sending module, configured to send the basic information and the first reservation code to a block chain node;
the obtaining module is further configured to obtain a first hash value of a first block from the block link point, where the first block includes the basic information and the first reservation code;
the sending module is further configured to send the first hash value, the basic information, and the first subscription code to a database server, so that the database server stores the first hash value, the basic information, and the first subscription code in an associated manner.
12. The apparatus of claim 11, wherein the generating module is configured to generate a second hash value according to the basic information and a first subscription code after generating the first subscription code according to the basic information;
the sending module is further configured to send the second hash value to the blockchain node;
correspondingly, the second hash value is also included in the first block.
13. The apparatus according to claim 11 or 12, wherein the obtaining module is further configured to obtain registration information of the visiting user;
the device further comprises: and the verification module is used for verifying the registration information.
14. The method of claim 13, wherein the sending module is further configured to send the registration information to the blockchain node if the registration information is verified;
the obtaining module is further configured to obtain a third hash value of a second block from the blockchain node, where the second block includes the registration information;
the sending module is further configured to send the registration information and the third hash value to the database server, so that the database server stores the third hash value and the registration information in an associated manner.
15. The apparatus according to claim 14, wherein the generating module is further configured to generate a fourth hash value according to the registration information;
the sending module is further configured to send the fourth hash value to the blockchain node;
correspondingly, the fourth hash value is also included in the second block.
16. An apparatus for processing information, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring basic information and a first reservation code of a visiting user from an application server, and the first reservation code is generated by the application server according to the basic information;
the generating module is used for generating a first block according to the basic information and the first reservation code;
a sending module, configured to send the first hash value of the first chunk to the application server.
17. The apparatus of claim 16, further comprising:
the obtaining module is further configured to obtain a second hash value from the application server, where the second hash value is a hash value generated by the application server according to the basic information and the first appointment code;
the generating module is specifically configured to generate a first block according to the basic information, the first reservation code, and the second hash value.
18. The apparatus according to claim 16 or 17, wherein the obtaining module is further configured to obtain registration information of a visiting user from the application server;
the generating module is further configured to generate a second block according to the registration information;
the sending module is further configured to send the third hash value of the second chunk to the application server.
19. The apparatus of claim 18,
the obtaining module is further configured to obtain a fourth hash value from the application server, where the fourth hash value is a hash value generated by the application server according to the registration information;
the generating module is specifically configured to generate a second block according to the registration information and the fourth hash value.
20. An electronic device, comprising: a processor coupled with a memory;
the memory is used for storing a computer program;
the processor is configured to invoke a computer program stored in the memory to implement the method of any of claims 1 to 6 or the method of any of claims 7 to 10.
21. A readable storage medium, comprising a program or instructions for performing the method of any of claims 1 to 6 or the method of any of claims 7 to 10 when the program or instructions are run on a computer.
CN201811485137.5A 2018-12-06 2018-12-06 Information processing method and device Pending CN111291111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811485137.5A CN111291111A (en) 2018-12-06 2018-12-06 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811485137.5A CN111291111A (en) 2018-12-06 2018-12-06 Information processing method and device

Publications (1)

Publication Number Publication Date
CN111291111A true CN111291111A (en) 2020-06-16

Family

ID=71030838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811485137.5A Pending CN111291111A (en) 2018-12-06 2018-12-06 Information processing method and device

Country Status (1)

Country Link
CN (1) CN111291111A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112967795A (en) * 2021-04-02 2021-06-15 北京声智科技有限公司 Information management method, information management device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105139217A (en) * 2015-09-07 2015-12-09 百度在线网络技术(北京)有限公司 Method, apparatus and system used for acquiring user information
CN107135661A (en) * 2016-12-26 2017-09-05 深圳前海达闼云端智能科技有限公司 Data processing method, device, system and information collecting device
CN107396360A (en) * 2017-08-15 2017-11-24 中国联合网络通信集团有限公司 Block verification method and device
US20180109516A1 (en) * 2016-10-13 2018-04-19 Coinplug, Inc. Method for providing certificate service based on smart contract and server using the same
CN108171520A (en) * 2017-11-30 2018-06-15 深圳市轱辘车联数据技术有限公司 A kind of Transaction Information management method and server
CN108877006A (en) * 2018-06-29 2018-11-23 深圳春沐源控股有限公司 A kind of access control management method, system and relevant device
CN108876966A (en) * 2017-05-08 2018-11-23 腾讯科技(深圳)有限公司 A kind of visitor's reception method, system and guest system and self-aided terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105139217A (en) * 2015-09-07 2015-12-09 百度在线网络技术(北京)有限公司 Method, apparatus and system used for acquiring user information
US20180109516A1 (en) * 2016-10-13 2018-04-19 Coinplug, Inc. Method for providing certificate service based on smart contract and server using the same
CN107135661A (en) * 2016-12-26 2017-09-05 深圳前海达闼云端智能科技有限公司 Data processing method, device, system and information collecting device
CN108876966A (en) * 2017-05-08 2018-11-23 腾讯科技(深圳)有限公司 A kind of visitor's reception method, system and guest system and self-aided terminal
CN107396360A (en) * 2017-08-15 2017-11-24 中国联合网络通信集团有限公司 Block verification method and device
CN108171520A (en) * 2017-11-30 2018-06-15 深圳市轱辘车联数据技术有限公司 A kind of Transaction Information management method and server
CN108877006A (en) * 2018-06-29 2018-11-23 深圳春沐源控股有限公司 A kind of access control management method, system and relevant device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112967795A (en) * 2021-04-02 2021-06-15 北京声智科技有限公司 Information management method, information management device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP6402144B2 (en) Method and system for finding a guardian based on a two-dimensional code
US10270725B2 (en) Real life to digital life event correlation
CN105577602B (en) Data push method and device based on open application programming interface
CN110351182B (en) Mail sending method, device, equipment and computer readable storage medium
CN113011864B (en) Two-dimensional code generation and verification method, device, equipment and readable medium
CN106056437A (en) Order management method and system
CN105245620B (en) The method, apparatus and system of information transmission
CN113923144B (en) Service testing system, method, electronic equipment and storage medium
CN108805476A (en) Electronics signs for method and apparatus
US9769171B2 (en) Management apparatus, membership managing method, service providing apparatus, and membership managing system
CN113032837A (en) Anonymous authentication method and system for open platform
CN114500431B (en) Project processing method and device and electronic equipment
CN108092947B (en) Method and device for identity authentication of third-party application
CN111291111A (en) Information processing method and device
US10616371B2 (en) Information terminal, access system, information processing method, and program
JP2009122950A (en) Purchase system and method
CN105512208B (en) Information publishing method, device and system
CN109493099B (en) Confirmation method of house purchasing qualification, server and storage medium
CN114374737A (en) Message pushing method and device, computer equipment and storage medium
CN109951473B (en) Function triggering method, system, electronic device and computer readable storage medium
CN103327370A (en) Information processing apparatus, information processing method and information processing system
JP6085262B2 (en) Reservation / visit management system, reservation / visit management device, reservation / visit management method, reservation / visit management program, recording medium
CN113112619A (en) Ticket checking method, ticket checking equipment, system and storage medium for online ticket card
CN107516351B (en) Attendance checking confirmation method and device
CN112256689A (en) Service data cleaning method and device and electronic equipment

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