Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a schematic structural diagram of a block chain-based physical handover system according to an embodiment of the present invention, and as shown in fig. 1, the block chain-based physical handover system according to the embodiment of the present invention includes a handover terminal 1, a receiving terminal 2, anarticle management server 3, and ablock chain 4, where:
thearticle management server 3 is respectively connected with the hand-over terminal 1 and the receiving terminal 2 in a communication way, the receiving terminal 2 is connected with theblock chain 4 in a communication way, and theblock chain 4 comprises at least 3 block chain nodes. Thearticle management server 3 may be implemented by a server or a server cluster, and is configured to manage physical objects and maintain information of responsible persons and physical types of the physical objects. The handover terminal 11 may employ an electronic device such as a smart phone or a tablet computer. The receiving terminal 2 may adopt an electronic device such as a smart phone or a tablet computer. The blockchain node can be built by adopting a server.
When a handover person carries out physical object handover, a physical object needing handover can be selected through the handover terminal 1, a picture of the physical object needing handover is acquired, the handover person and a receiver are selected, the handover terminal 1 can send physical object handover information to thearticle management server 3, and the physical object handover information can comprise a physical object identifier, a physical object picture, the handover person and the receiver. The handover terminal 1 may also generate a physical handover two-dimensional code according to the physical identification, the physical picture, and the handover person.
The receiver is handed over to the people will need the material object of handing over to the receiver, and the receiver can confirm material object handing-over information through receiving terminal 2, and receiving terminal 2 can receive thatarticle management server 3 sends material object handing-over information obtains material object handing-over information, perhaps the people of handing over demonstrates through handing over terminal 1 material object handing-over two-dimensional code, the receiver can scan the material object handing-over two-dimensional code that hands over terminal 1 shows through receiving terminal 2, obtains material object handing-over information. The receiving terminal 2 may display the physical handover information after obtaining the physical handover information, and the receiver may perform handover verification according to the physical handover information and the physical handover information handed over by the handover person. After checking the actual delivery information, the receiver may perform a confirmation operation on the actual delivery information displayed by the receiving terminal 2.
After receiving the confirmation operation of the real object handover information, the receiving terminal 2 generates a real object handover completion result and broadcasts the real object handover completion result to theblock chain 4, and after receiving the real object handover completion result, the block chain nodes of theblock chain 4 store the real object handover completion result and feed back the storage result to the receiving terminal 2.
After receiving the storage result, the receiving terminal 2 determines whether each of the blockchain nodes of theblockchain 4 stores the physical handover completion result, and if more than half of the blockchain nodes in theblockchain 4 store the physical handover completion result, the receiving terminal 2 confirms that the handover is completed. The receiving terminal 2 may feed back the physical delivery completion result to thearticle management server 3 after confirming that the physical delivery is completed, and thearticle management server 3 may update the related information of the delivered physical object according to the physical delivery completion result after receiving the physical delivery completion result.
The following describes an implementation process of the block chain-based physical handover method according to the embodiment of the present invention with the receiving terminal 2 as an execution subject.
Fig. 2 is a schematic flowchart of a block chain-based physical handover method according to an embodiment of the present invention, and as shown in fig. 2, the block chain-based physical handover method according to the embodiment of the present invention includes:
s201, acquiring and displaying real object handover information;
specifically, when the hand-over person performs the physical hand-over, the hand-over terminal may generate the physical hand-over information. And the receiving terminal can obtain the real object handover information and display the real object handover information for a receiver to confirm. The physical handover information may include information such as a physical identifier, a physical picture, a handover person, and a receiver, and is set according to actual needs. And the real object identification corresponds to the real objects one to one.
For example, when a handover person a performs physical handover, the handover terminal a may select a physical object to be handed over, collect a picture of the physical object to be handed over, and select the handover person a and a recipient B, and the handover terminal a may generate physical handover information according to a physical object identifier of the physical object to be handed over, the physical image, the handover person a, and the handover person B, and then transmit the physical handover information to the article management server c. The article management server c may transmit the physical object transfer information to the receiving terminal b, and the receiving terminal b may receive the physical object transfer information to obtain the physical object transfer information. After receiving the physical handover information, the receiving terminal B may display the physical handover information for the receiver B to view.
The terminal a of handing over can be as required handing over the real object sign in kind, the picture in kind, hand over people A and handing over people B and generate the handing over two-dimensional code in kind, the handing over two-dimensional code in kind stores handing over information in kind, handing over information in kind can include the real object sign in kind that will hand over, picture in kind, hand over people A and handing over people B. The handover person A displays the physical handover two-dimensional code through the handover terminal a, the handover person B scans the physical handover two-dimensional code through the receiving terminal B, and the physical handover two-dimensional code is analyzed to obtain physical handover information. And after the receiving terminal B obtains the physical handover information, the physical handover information can be displayed for a handover person B to check.
S202, receiving confirmation operation of the real object handover information and generating a real object handover completion result;
specifically, after the receiving terminal displays the physical object handover information, the receiving person can check the physical object handover information, then check the physical object for handover provided by the handover person, and perform handover confirmation. If the receiver confirms that the handover is correct, for example, the receiver determines that the real object to be handed over is consistent with the real object in the real object handover information, and the handover person and the receiver are accurate, the receiver can confirm that the handover is correct, and can perform confirmation operation on the real object handover information on the receiving terminal. The receiving terminal may generate a physical delivery completion result after receiving the confirmation operation of the physical delivery information. The actual object handover completion result may include information such as an actual object identifier of the handover actual object, a handover person, a receiver, and handover time, and is set according to actual needs.
For example, the receiving terminal provides a "confirm" virtual key and a "cancel" virtual key while displaying the physical object handover information. If the receiver confirms that the handover is correct, the receiver can click an 'affirming' virtual key to realize the affirming operation of the physical handover information; if the receiver considers that the handover has errors, for example, the handover real object does not correspond to the real object picture, the handover person or the receiver information is not right, the virtual key for canceling can be clicked to cancel the cancellation operation of the real object handover information, so that the real object handover at this time is cancelled, and after the receiving terminal receives the cancellation operation of the real object handover information, the handover cancellation information can be sent to the article management server to prompt the cancellation of the real object handover at this time.
S203, broadcasting the real object handover completion result to a block chain for storage, and receiving a storage result of the block chain on the real object handover completion result;
specifically, after generating the physical handover completion result, the receiving terminal may broadcast the physical handover completion result to a block chain, and after each block link point of the block chain receives the physical handover completion result, the physical handover completion result may be stored. The block chain may send a storage result of the physical handover completion result to the receiving terminal. Wherein the storage result may include a storage success or a storage failure.
And S204, if the judgment shows that more than half of the block chain link points store the physical handover completion result, confirming that the physical handover is completed.
Specifically, after receiving the storage result fed back by the receiving terminal, the receiving terminal may determine, according to the storage result of the block chain to the physical handover completion result, whether more than half of the block chain block link points store the physical handover completion result, and if more than half of the block chain block link points store the physical handover completion result, confirm that the physical handover is completed. Otherwise, if the physical handover completion result is not stored in more than half of the block link points, the physical handover failure is confirmed, and the receiving terminal can prompt the physical handover to be performed again.
For example, the receiving terminal receives the storage result sent by each blockchain node, counts the number of successfully stored information included in the storage result, and if the number of successfully stored information is greater than half of the total number of blockchain nodes in the blockchain, then more than half of blockchain link points in the blockchain store the physical handover completion result, and the receiving terminal may confirm that the physical handover is completed. Otherwise, if the number of the successfully stored information is less than or equal to half of the total number of the block chain nodes in the block chain, no more than half of the block chain nodes in the block chain store the physical handover completion result, and the receiving terminal can confirm that the physical handover fails. After confirming that the physical handover fails, the receiving terminal may send, to the blockchain, information for canceling storing of the result of the completion of the physical handover from the blockchain, so that the blockchain deletes the stored result of the completion of the physical handover.
The block chain-based real object handover method provided by the embodiment of the invention can obtain real object handover information, display the real object handover information, receive confirmation operation of the real object handover information, generate a real object handover completion result, broadcast the real object handover completion result to the block chain for storage, receive a storage result of the block chain for the real object handover completion result, confirm the completion of the real object handover after judging that more than half of block chain link points of the block chain store the real object handover completion result, and because the real object handover completion result is stored in the block chain, ensure that the real object handover completion result cannot be tampered, thereby improving the reliability of the real object handover. In addition, the block chain is used for storing the real object handover completion result to replace the supervision of the supervision person on the real object handover process, so that the labor cost is saved, and the real object handover efficiency is improved.
On the basis of the foregoing embodiments, further, the obtaining the real object handover information includes:
acquiring the real object handover information by scanning the real object handover two-dimensional code; wherein the real object handover two-dimensional code is generated in advance.
Specifically, when the handover person performs physical handover, physical handover information may be generated by the handover terminal, and the receiving terminal may display the physical handover information in the form of a physical handover two-dimensional code. The receiver can scan the material object handover two-dimensional code through the receiving terminal, and the information of the material object handover two-dimensional code is analyzed to obtain the material object handover information. The object handover two-dimensional code is generated in advance, and can be generated according to an object identifier, an object picture, a handover person and a receiver.
The object handing-over two-dimensional code replaces a manual register book to register the handed-over object, and the method has the advantages of low cost, quick and accurate identification, strong universality and easiness in operation. In addition, when a large number of real objects are handed over, the real object handing-over two-dimensional code is adopted, so that the real object handing-over efficiency can be improved.
Fig. 3 is a schematic flowchart of a block chain-based physical object handover method according to another embodiment of the present invention, and as shown in fig. 3, on the basis of the foregoing embodiments, further, the block chain-based physical object handover method according to the embodiment of the present invention further includes:
s205, acquiring a corresponding real object handover record according to the real object identification query; and the real object handover finishing result comprises the real object identification.
Specifically, the result of completing the physical handover may be stored in the block chain, the receiving terminal may send a request for querying the block chain for the physical handover, where the request for querying the physical handover includes the physical identifier, and a block link point in the block chain may query the result of completing the physical handover including the physical identifier according to the physical identifier, and send the result of completing the physical handover including the physical identifier to the receiving terminal as a physical handover record corresponding to the physical identifier. And the real object handover finishing result comprises the real object identification.
The real object handover records of the real objects corresponding to the real object identifiers can be rapidly inquired through the real object identifiers, and the inquiry efficiency of the real object handover records is improved compared with a manual register.
Fig. 4 is a schematic flowchart of a block chain-based physical object handover method according to another embodiment of the present invention, and as shown in fig. 4, on the basis of the foregoing embodiments, further, the block chain-based physical object handover method according to the embodiment of the present invention further includes:
and S206, after the completion of the physical object handover is confirmed, sending the physical object handover completion result to an article management server so that the article management server updates the related information of the handed-over physical object.
Specifically, the receiving terminal may send the physical handover completion result to the article management server after confirming that the physical handover is completed, and the article management server may update the related information of the handed-over completed physical object according to the physical handover result after receiving the physical handover completion result.
For example, the physical handover completion result includes a physical identification, a handover person, a receiving person, and a handover time. And the article management server changes the responsible person corresponding to the physical identification from the handing-over person to the receiving person according to the receiving person and records the change time of the responsible person according to the handing-over time.
Fig. 5 is a schematic structural diagram of a block chain-based physical object interfacing apparatus according to an embodiment of the present invention, and as shown in fig. 5, the block chain-based physical object interfacing apparatus according to the embodiment of the present invention includes an obtainingunit 501, a receivingunit 502, abroadcasting unit 503, and a confirmingunit 504, where:
the obtainingunit 501 is configured to obtain physical handover information and display the physical handover information; the receivingunit 502 is configured to receive a confirmation operation of the physical handover information and generate a physical handover completion result; thebroadcasting unit 503 is configured to broadcast the physical handover completion result to a block chain for storage, and receive a storage result of the block chain on the physical handover completion result; the confirmingunit 504 is configured to confirm that the physical handover is completed after determining that more than half of the block link points of the block chain store the physical handover completion result.
Specifically, when the hand-over person performs the physical hand-over, the hand-over terminal may generate the physical hand-over information. The obtainingunit 501 may obtain the physical handover information, and display the physical handover information for a receiver to confirm. The physical handover information may include information such as a physical identifier, a physical picture, a handover person, and a receiver, and is set according to actual needs. And the real object identification corresponds to the real objects one to one.
After the physical object handover information is displayed, the receiver can check the physical object handover information, then check the physical object for handover provided by the handover person, and perform handover confirmation. If the receiver confirms that the handover is correct, for example, the receiver determines that the physical object of the handover is identical to the physical object in the physical handover information, and the handover is accurate with the receiver, the receiver may confirm that the handover is correct, and may perform a confirmation operation on the physical handover information at the receivingunit 502. After receiving the confirmation operation of the physical object handover information, the receivingunit 502 may generate a physical object handover completion result. The actual object handover completion result may include information such as an actual object identifier of the handover actual object, a handover person, a receiver, and handover time, and is set according to actual needs.
After generating the physical handover completion result, thebroadcasting unit 503 may broadcast the physical handover completion result to a block chain, and after each block link point of the block chain receives the physical handover completion result, the physical handover completion result may be stored. The block chain may send a storage result of the physical handover completion result to thebroadcasting unit 503. Wherein the storage result may include a storage success or a storage failure.
After receiving the storage result fed back by the receiving terminal, determiningunit 504 may determine, according to the storage result of the block chain to the physical handover completion result, whether more than half of block link points of the block chain store the physical handover completion result, and if more than half of block link points store the physical handover completion result, determine that the physical handover is completed. Otherwise, if the physical handover completion result is not stored in more than half of the block link points, the physical handover failure is confirmed, and the receiving terminal can prompt the physical handover to be performed again.
The block chain-based physical handover device provided by the embodiment of the invention can acquire physical handover information, display the physical handover information, receive confirmation operation of the physical handover information, generate a physical handover completion result, broadcast the physical handover completion result to the block chain for storage, receive a storage result of the block chain for the physical handover completion result, confirm that physical handover is completed after judging that the number of block chain link points in which the number of the block chain exceeds half stores the physical handover completion result, and because the physical handover completion result is stored in the block chain, ensure that the physical handover completion result cannot be tampered, thereby improving reliability of physical handover. In addition, the block chain is used for storing the real object handover completion result to replace the supervision of the supervision person on the real object handover process, so that the labor cost is saved, and the real object handover efficiency is improved.
On the basis of the foregoing embodiments, further, the obtainingunit 501 is specifically configured to:
acquiring the real object handover information by scanning the real object handover two-dimensional code; wherein the real object handover two-dimensional code is generated in advance.
Specifically, when the handover person performs physical handover, the handover terminal may generate physical handover information, and the obtainingunit 501 may display the physical handover information in the form of a physical handover two-dimensional code. The receiver can scan the material object handover two-dimensional code through the obtainingunit 501, and analyze information of the material object handover two-dimensional code to obtain the material object handover information. The object handover two-dimensional code is generated in advance, and can be generated according to an object identifier, an object picture, a handover person and a receiver.
Fig. 6 is a schematic structural diagram of a block chain-based physical object handover apparatus according to another embodiment of the present invention, and as shown in fig. 6, on the basis of the foregoing embodiments, further, the block chain-based physical object handover apparatus according to the embodiment of the present invention further includes aninquiry unit 505, where:
thequery unit 505 is configured to query the real object handover record according to the real object identifier; and the real object handover finishing result comprises the real object identification.
Specifically, the physical handover completion result may be stored in the block chain, thequery unit 505 may send a physical handover query request to the block chain, where the physical query request includes the physical identifier, a block link point in the block chain may obtain an object handover completion result including the physical identifier according to the physical identifier query, and send the object handover completion result including the physical identifier to thequery unit 505 as a physical handover record corresponding to the physical identifier. And the real object handover finishing result comprises the real object identification.
Fig. 7 is a schematic structural diagram of a block chain-based physical object handover apparatus according to yet another embodiment of the present invention, and as shown in fig. 7, on the basis of the foregoing embodiments, further, the block chain-based physical object handover apparatus according to an embodiment of the present invention further includes a sendingunit 506, where:
after confirming the completion of the physical object handover, the transmittingunit 506 is configured to transmit the result of the completion of the physical object handover to the article management server so that the article management server updates information about the completed physical object handover.
Specifically, after confirming that the physical object handover is completed, the sendingunit 506 may send the physical object handover completion result to the article management server, and after receiving the physical object handover completion result, the article management server may update the related information of the handed over physical object according to the physical object handover result.
The embodiment of the apparatus provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the apparatus are not described herein again, and refer to the detailed description of the above method embodiments.
Fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 8, the electronic device may include: a processor (processor)801, a communication Interface (Communications Interface)802, a memory (memory)803 and acommunication bus 804, wherein theprocessor 801, thecommunication Interface 802 and thememory 803 complete communication with each other through thecommunication bus 804. Theprocessor 801 may call logic instructions in thememory 803 to perform the following method: acquiring real object handover information and displaying the real object handover information; receiving confirmation operation of the real object handover information and generating a real object handover completion result; broadcasting the real object handover completion result to a block chain for storage, and receiving a storage result of the block chain on the real object handover completion result; and if the judgment shows that more than half of the block chain link points of the block chain store the physical handover completion result, confirming that the physical handover is completed.
In addition, the logic instructions in thememory 803 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: acquiring real object handover information and displaying the real object handover information; receiving confirmation operation of the real object handover information and generating a real object handover completion result; broadcasting the real object handover completion result to a block chain for storage, and receiving a storage result of the block chain on the real object handover completion result; and if the judgment shows that more than half of the block chain link points of the block chain store the physical handover completion result, confirming that the physical handover is completed.
The present embodiment provides a computer-readable storage medium, which stores a computer program, where the computer program causes the computer to execute the method provided by the above method embodiments, for example, the method includes: acquiring real object handover information and displaying the real object handover information; receiving confirmation operation of the real object handover information and generating a real object handover completion result; broadcasting the real object handover completion result to a block chain for storage, and receiving a storage result of the block chain on the real object handover completion result; and if the judgment shows that more than half of the block chain link points of the block chain store the physical handover completion result, confirming that the physical handover is completed.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description herein, reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.