CN112950117B - Transaction method, computer device and storage medium - Google Patents

Transaction method, computer device and storage medium Download PDF

Info

Publication number
CN112950117B
CN112950117B CN202110246900.4A CN202110246900A CN112950117B CN 112950117 B CN112950117 B CN 112950117B CN 202110246900 A CN202110246900 A CN 202110246900A CN 112950117 B CN112950117 B CN 112950117B
Authority
CN
China
Prior art keywords
transaction
commodity
user
attribute
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110246900.4A
Other languages
Chinese (zh)
Other versions
CN112950117A (en
Inventor
王志文
吴思进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei 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 Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN202110246900.4A priority Critical patent/CN112950117B/en
Publication of CN112950117A publication Critical patent/CN112950117A/en
Priority to PCT/CN2021/143840 priority patent/WO2022183837A1/en
Application granted granted Critical
Publication of CN112950117B publication Critical patent/CN112950117B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0833Tracking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Technology Law (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a transaction method, computer equipment and a storage medium, wherein the method comprises the following steps: when the first registered commodity transaction is successfully executed, generating a first commodity voucher of the first commodity, and transferring the first commodity voucher to a first merchant account of a first merchant; when the first delivery transaction is successfully executed, freezing a second commodity voucher corresponding to a second commodity subscribed by the first user; when the first goods collection transaction is successfully executed, updating the attribute of the second goods holder of the frozen second goods voucher to be the first delivery person, and updating the attribute of the second goods address of the second goods voucher to be the first goods collection area; and when the execution of the first goods receiving transaction is successful, unfreezing the frozen second goods voucher and transferring the second goods voucher to a first user account of the first user, updating the attribute of the second goods holder to the first user, and updating the attribute of the second goods address to the first goods receiving address. The method and the device prevent conflicting logistics information from being recorded on the block chain.

Description

Transaction method, computer device and storage medium
Technical Field
The present application relates to the field of blockchain technology, and in particular, to a transaction method, a computer device, and a storage medium.
Background
At present, a logistics system on a block chain basically adopts a mode of evidence storage, namely, the whole logistics process is stored on the block chain, and therefore tampering cannot be achieved.
If a scene that a courier needs to transport an article A from Beijing to Guangzhou and the courier imagines that the article A should pass through the Hangzhou is set, a transaction tx1 is generated to indicate that the article A is sent to Guangzhou by the Hangzhou; in practice, the courier changes the route, so that the way A is mixed with the fertilizer, the courier does not remember that tx1 is generated and generates a transaction tx2, which indicates that the way A is mixed with the fertilizer and sent to Guangzhou; because only evidence is stored on the block chain, the block chain records that A is sent to Guangzhou from Hangzhou and also records that A is sent to Guangzhou from combined fertilizer. The above mechanism has no constraint on conflicting logistics information.
Disclosure of Invention
In view of the above-mentioned drawbacks or deficiencies in the prior art, it is desirable to provide a transaction method, a computer device and a storage medium for preventing conflicting logistics information from being recorded on a blockchain.
In a first aspect, the present invention provides a transaction method applicable to a blockchain node, including:
receiving a first registered commodity transaction; wherein the first registered merchandise transaction is generated by a first merchant of the first merchant selling the first merchandise through the blockchain in response to a first merchant request;
when the first registered commodity transaction is successfully executed, generating a first commodity pass certificate of the first commodity, and transferring the first commodity pass certificate to a first merchant account of a first merchant; wherein the first merchandise permit includes a first merchandise address attribute and a first merchandise holder attribute;
receiving a first subscription transaction; the first subscription transaction is generated by a first user end of a first user in response to a request of the first user for purchasing a second commodity of a second merchant, and the first subscription transaction comprises a first receiving address of the first user;
upon successful execution of the first subscription transaction, freezing assets for subscribing to the second item paid for by the first subscription transaction;
receiving a first shipment transaction; the first delivery transaction is generated by a second merchant terminal of a second merchant responding to the transmission of a second commodity to the first user, and comprises a voucher name of a second commodity voucher of the second commodity;
when the first delivery transaction is successfully executed, freezing a second commodity voucher corresponding to a second commodity subscribed by the first user;
receiving a first package transaction; wherein the first package offer transaction is generated by the first terminal of the first consignee who packages the second item in response to the package offer;
when the first goods collecting transaction is successfully executed, updating the attribute of the second goods holder of the frozen second goods voucher as a first deliverer, and updating the attribute of a second goods address of the second goods voucher as a first goods collecting area;
receiving a first receiving transaction; wherein the first receiving transaction is generated by the first user end in response to the first user signing for the second commodity;
and when the execution of the first goods receiving transaction is successful, unfreezing and transferring the frozen asset to a first merchant account of a second merchant, unfreezing and transferring the frozen second goods voucher to a first user account of a first user, updating the attribute of a holder of the second goods to the first user, and updating the attribute of the address of the second goods to the first goods receiving address.
In a second aspect, the present invention provides a transaction method applied to a blockchain node, including:
receiving a first subscription transaction; the method comprises the steps that a first subscription transaction is generated by a first user end of a first user in response to a first user request for purchasing a first commodity of a first merchant, and the first subscription transaction comprises a first receiving address of the first user;
upon successful performance of the first subscription transaction, freezing assets for subscribing to the first commodity paid for the first subscription transaction;
receiving a first shipment transaction; wherein the first shipment transaction is generated by a first merchant of a first merchant in response to sending the first item to the first user;
when the first delivery transaction is successfully executed, generating and freezing a first commodity circulation certificate according to the first delivery transaction; wherein the first physical distribution certificate includes a first holder attribute and a first address attribute;
receiving a first package transaction; wherein the first pick-up transaction is generated by the first terminal of the first consignee picking up the second item in response to picking up the second item;
updating the first holder attribute of the frozen first circulation certificate as a first delivery person when the first collection transaction is successfully executed, and updating the first address attribute of the first circulation certificate as a first collection area;
receiving a first receiving transaction; wherein the first receiving transaction is generated by the first user in response to the first user signing for the first item;
when the execution of the first receiving transaction is successful, the frozen asset is unfrozen and transferred to a first merchant account of the first merchant, the frozen first circulation certificate is unfrozen and transferred to a first user account of the first user, the first holder attribute is updated to the first user, and the first address attribute is updated to the first receiving address.
In a third aspect, the invention also provides an apparatus comprising one or more processors and memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform a transaction method provided in accordance with embodiments of the invention.
In a fourth aspect, the present invention also provides a storage medium storing a computer program that causes a computer to execute a transaction method provided according to embodiments of the present invention.
According to the transaction method, the computer device and the storage medium provided by the embodiments of the invention, when the first registered commodity transaction is successfully executed, the first commodity pass certificate of the first commodity is generated, and the first commodity pass certificate is transferred to the first merchant account of the first merchant; when the first delivery transaction is successfully executed, freezing a second commodity certificate corresponding to a second commodity subscribed by the first user; when the first goods collection transaction is successfully executed, updating the attribute of the second goods holder of the frozen second goods voucher to be the first delivery person, and updating the attribute of the second goods address of the second goods voucher to be the first goods collection area; and when the execution of the first goods receiving transaction is successful, unfreezing the frozen second goods certificate and transferring the second goods certificate to a first user account of a first user, updating the attribute of a holder of the second goods to the first user, and updating the attribute of the address of the second goods to the first goods receiving address, so that conflicting logistics information is prevented from being recorded on the block chain.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a transaction method according to an embodiment of the present invention.
Fig. 2 is a flow chart of another transaction method according to an embodiment of the invention.
Fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a flowchart of a transaction method according to an embodiment of the present invention. As shown in fig. 1, in this embodiment, the present invention provides a transaction method applicable to a blockchain node, including:
s10: receiving a first registered commodity transaction; wherein the first registered merchandise transaction is generated by a first merchant of the first merchant selling the first merchandise through the blockchain in response to a first merchant request;
s11: when the first registered commodity transaction is successfully executed, generating a first commodity voucher of the first commodity, and transferring the first commodity voucher to a first merchant account of a first merchant; the first commodity certificate comprises a first commodity address attribute and a first commodity holder attribute;
s12: receiving a first subscription transaction; the first subscription transaction is generated by a first user terminal of a first user in response to a request of the first user for purchasing a second commodity of a second merchant, and comprises a first receiving address of the first user;
s13: upon successful execution of the first subscription transaction, freezing assets for subscribing to the second item paid for by the first subscription transaction;
s14: receiving a first shipment transaction; the first delivery transaction is generated by a second merchant terminal of a second merchant responding to the transmission of a second commodity to the first user, and comprises a voucher name of a second commodity voucher of the second commodity;
s15: when the first delivery transaction is successfully executed, freezing a second commodity certificate corresponding to a second commodity subscribed by the first user;
s16: receiving a first package transaction; wherein the first pick-up transaction is generated by the first terminal of the first consignee picking up the second item in response to picking up the second item;
s17: when the first goods collecting transaction is successfully executed, updating the attribute of the second goods holder of the frozen second goods voucher as a first deliverer, and updating the attribute of a second goods address of the second goods voucher as a first goods collecting area;
s18: receiving a first receiving transaction; wherein the first receiving transaction is generated by the first user end in response to the first user signing for the second commodity;
s19: and when the execution of the first goods receiving transaction is successful, unfreezing and transferring the frozen asset to a first merchant account of a second merchant, unfreezing and transferring the frozen second goods to a first user account of a first user through a certificate, updating the attribute of a holder of the second goods to the first user, and updating the attribute of the address of the second goods to the first goods receiving address.
Specifically, suppose that a merchant A requests to sell a commodity A through a blockchain, a merchant B requests to sell a commodity B through the blockchain, and a merchant C requests to sell a commodity C through the blockchain; a user a purchases a commodity A through 10 certificates YYY;
the merchant end of the merchant A responds to the request of the merchant A to sell the commodity A through the blockchain, and a registered commodity transaction tx1 is generated;
the blockchain node performs step S10, receiving tx 1;
the block chain node executes step S11, and when the execution of tx1 is successful, generates a certification AAA of the article a;
the merchant end of the merchant B responds to the request of the merchant B to sell the goods B through the block chain, and generates a registered goods transaction tx 2;
the blockchain node performs step S10, receiving tx 2;
the block chain node executes step S11, and when tx2 is executed successfully, generates a voucher BBB of commodity B;
the merchant end of the merchant C sells the goods C through the block chain in response to the request of the merchant C, and generates a registered commodity transaction tx 3;
the blockchain node performs step S10, receiving tx 3;
the block chain node executes step S11, and when the tx3 is executed successfully, generates a certificate CCC for the commodity C;
the user side of the user a responds to the request of the user a to buy a commodity A through 10 certificates YYYY, and a subscription transaction tx4 is generated, wherein tx4 comprises the receiving address of the user a;
the blockchain node performs step S12, receiving tx 4;
the blockchain node performs step S13, and freezes 10YYY of user a upon success in performing tx 4;
the merchant side of merchant A generates a shipping transaction tx5 in response to sending a good A to user a, tx5 comprising 1 AAA;
the blockchain node performs step S14, receiving tx 5;
the blockchain node executes step S15, and freezes 1AAA when the execution of tx5 is successful;
the terminal of the local delivery member for collecting the commodity A responds to the commodity A to generate a commodity collecting transaction tx 6;
the blockchain node performs step S16, receiving tx 6;
the block chain node executes the step S17, and when the tx6 is executed successfully, the commodity holder attribute of 1AAA is updated to the local delivery person, and the commodity address attribute of 1AAA is updated to the collecting area where the local delivery person is located;
the user side of the user a responds to the user a to sign for the commodity A and generates a receiving transaction tx 7;
the blockchain node performs step S18, receiving tx 7;
the blockchain node performs step S19, and when the tx7 is successfully performed, unfreezes and transfers 10YYY to the merchant account of merchant a, unfreezes and transfers 1AAA to the user account of user a, updates the goods holder attribute of 1AAA to user a, and updates the goods address attribute of 1AAA to the receiving address of a.
The above-described embodiment prevents conflicting logistics information from being recorded on the block chain.
Preferably, the commodity voucher is further configured with an owner attribute, and the freezing of the second commodity voucher corresponding to the second commodity subscribed by the first user includes:
freezing a second commodity voucher corresponding to a second commodity subscribed by the first user;
updating the attribute of the second commodity owner of the frozen second commodity permit as the first user.
Specifically, the block link dots freeze 1AAA, and update the commodity owner attribute of 1AAA to user a.
Preferably, the block chain records the commodity shipping address of each commodity, and the step of freezing the assets for the second commodity for the subscription paid for the first subscription transaction comprises the following steps:
freezing assets for the second commodity for the first subscription transaction payment;
planning a logistics route according to the delivery address and the first receiving address of the second commodity;
updating the frozen second item holder attribute of the second item voucher to the first deliverer upon successful execution of the first package transaction, and updating the second item address attribute of the second item voucher to the first package area comprises:
judging whether a first collecting area where a first delivery person is located is included in the logistics route:
if yes, updating the attribute of the second commodity holder of the frozen second commodity voucher as a first delivery person, and updating the attribute of the second commodity address of the second commodity voucher as a first collecting area.
Specifically, suppose that the shipping address of the commodity a is beijing, and the receiving address of the user a is hangzhou;
freezing 1AAA by a block chain node;
block chain link points plan a logistics route according to Beijing and Hangzhou;
and judging whether the collecting area where the local delivery person is located is included in the planned logistics route by the block chain node:
if yes, the attribute of the commodity holder of the 1AAA is updated to a local delivery person, and the attribute of the commodity address of the 1AAA is updated to a collecting area where the local delivery person is located.
In further embodiments, the operation of configuring the first collecting area where the first delivery person is located not to be included in the logistics route, for example, configuring to thaw 1AAA, may be configured according to actual needs, and the same technical effect may be achieved.
Further preferably, before receiving the first receiving transaction, the method further comprises:
receiving a first sort transaction; wherein the first sort transaction is generated by the second terminal of the first sort center sorting the second item in response to sorting the second item delivered by the first delivery person;
judging whether the first sorting center is included in the logistics route:
if yes, updating the attribute of the second commodity holder to be the first sorting center, and updating the attribute of the second commodity address to be the location of the first sorting center;
receiving a first forwarded transaction; wherein the first forwarding transaction is generated by a third terminal of a second forwarder forwarding the second commodity in response to forwarding the second commodity;
judging whether a first transfer area where a second delivery person is located is included in the logistics route:
if so, the second item holder attribute is updated to the second consignee and the second item address attribute is updated to the first forwarding area.
Before the commodity A finally reaches the user a, the logistics information may be sorted and transferred for many times, and as long as the commodity holder attribute and the commodity address attribute of the frozen 1AAA are updated according to the actual situation, the technical effect of preventing conflicting logistics information from being recorded on the block chain can be achieved.
Preferably, when the first shipment transaction is successfully executed, the freezing the second commodity certificate corresponding to the second commodity subscribed by the first user includes:
and when the first goods delivery transaction is successfully executed, freezing a second goods voucher corresponding to a second goods subscribed by the first user, and updating the second goods address attribute of the second goods voucher to be the delivery address of the second goods.
Specifically, when the execution of tx5 is successful, the 1AAA is frozen, and the goods address attribute of the frozen 1AAA is updated to the shipping address of the goods a.
Preferably, the method further comprises:
receiving a first generation receipt transaction; wherein the first generation receipt transaction is generated by a terminal of a forwarder who ultimately dispatches the second item in response to the first user temporarily failing to sign for the first item;
within a first duration, determining whether a first arbitrated transaction is received:
if not, unfreezing the frozen asset and transferring to a first merchant account of a second merchant, unfreezing the frozen second commodity and transferring to a first user account of a first user, updating the attribute of a holder of the second commodity to the first user, and updating the attribute of the address of the second commodity to a first receiving address; wherein the first arbitrated transaction is generated by the first user in response to the first user not receiving the first item.
In more embodiments, the first duration may be configured according to actual requirements, for example, configured to be 24h, and the same technical effect may be achieved.
Fig. 2 is a flowchart of another transaction method according to an embodiment of the invention. As shown in fig. 2, in this embodiment, the present invention provides a transaction method applicable to a blockchain node, including:
s21: receiving a first subscription transaction; the method comprises the steps that a first subscription transaction is generated by a first user end of a first user in response to a first user request for purchasing a first commodity of a first merchant, and the first subscription transaction comprises a first receiving address of the first user;
s22: upon a successful execution of the first subscription transaction, freezing assets for subscribing to the first commodity paid for by the first subscription transaction;
s23: receiving a first shipment transaction; wherein the first shipment transaction is generated by a first merchant of the first merchant in response to sending the first item to the first user;
s24: when the first delivery transaction is successfully executed, generating and freezing a first commodity circulation certificate according to the first delivery transaction; wherein the first physical distribution certificate includes a first holder attribute and a first address attribute;
s25: receiving a first package transaction; wherein the first package offer transaction is generated by the first terminal of the first consignee who packages the second item in response to the package offer;
s26: updating the first holder attribute of the frozen first circulation certificate as a first delivery person when the first collection transaction is successfully executed, and updating the first address attribute of the first circulation certificate as a first collection area;
s27: receiving a first receiving transaction; wherein the first receiving transaction is generated by the first user end in response to the first user signing for the first commodity;
s28: when the execution of the first receiving transaction is successful, the frozen asset is thawed and transferred to a first merchant account of the first merchant, the frozen first circulation certificate is thawed and transferred to a first user account of the first user, the first holder attribute is updated to the first user, and the first address attribute is updated to the first receiving address.
The above-described embodiment differs from the embodiment shown in fig. 1 in that the block link point generates a logistics certificate based on the delivery transaction, the logistics certificate including an address attribute and a bearer attribute. The address attribute and the holder attribute of the logistics certificate are updated in real time, and the technical effect of preventing conflicting logistics information from being recorded on the block chain can be achieved.
Preferably, each merchant holds a commodity circulation certificate corresponding to a commodity to be sold on the block chain, and when the first delivery transaction is successfully executed, the generating and freezing of the first commodity circulation certificate according to the first delivery transaction comprises:
when the first delivery transaction is successfully executed, generating and freezing a first commodity circulation certificate according to the first delivery transaction and a first commodity circulation certificate corresponding to a first commodity; wherein the first commodity circulation certificate is a subsidiary circulation certificate of the first commodity circulation certificate.
The commodity certificate is the same as the prior art, and does not comprise the commodity address attribute and the commodity holder attribute; however, the commodity certificate is used as a sub certificate of the logistics certificate, the address attribute and the holder attribute of the logistics certificate are updated in real time, and the technical effect of preventing conflicting logistics information from being recorded on the block chain can be achieved as long as the address attribute and the holder attribute of the logistics certificate are updated in real time through the commodity certificate.
Preferably, the logistics certificate is configured with an owner attribute, and generating and freezing the first logistics certificate according to the first shipment transaction comprises:
generating and freezing a first logistics certificate according to the first delivery transaction;
updating the owner attribute of the frozen first circulation certificate as the first user.
Preferably, the block chain records the goods shipping address of each goods, and the step of freezing the assets for subscribing the first goods paid for by the first subscription transaction comprises the following steps:
freezing assets paid for the first subscription transaction for subscribing to the first commodity;
planning a logistics route according to a delivery address and a first receiving address of a first commodity;
updating the frozen first bearer attribute of the first circulation certificate as the first delivery person upon successful execution of a first package transaction, and updating the first address attribute of the first circulation certificate as a first package area comprises:
judging whether a first collecting area where a first delivery person is located is included in the logistics route:
if yes, updating the first bearer attribute of the frozen first circulation certificate as the first delivery person, and updating the first address attribute of the first circulation certificate as a first acquisition area.
Further preferably, before receiving the first receiving transaction, the method further comprises:
receiving a first sort transaction; wherein the first sort transaction is generated by a terminal of a first sort center that sorts the first item in response to sorting the first item delivered by the first carrier;
judging whether the first sorting center is located in the logistics route:
if yes, updating the attribute of the first holder as the first sorting center, and updating the attribute of the first address as the location of the first sorting center;
receiving a first forwarded transaction; wherein the first forwarding transaction is generated by a terminal of a second forwarder forwarding the first commodity in response to forwarding the first commodity;
judging whether a first transfer area where a second delivery person is located is included in the logistics route:
if so, the first holder attribute is updated to the second delivery person, and the first address attribute is updated to the first forwarding area.
Preferably, when the execution of the first delivery transaction is successful, the generating and freezing of the first circulation certificate according to the first delivery transaction comprises:
and when the first delivery transaction is successfully executed, generating and freezing a first commodity circulation certificate according to the first delivery transaction, and updating the first address attribute of the first commodity circulation certificate into the delivery address of the first commodity.
Preferably, the above method further comprises:
receiving a first generation receipt transaction; wherein the first generation receipt transaction is generated by a terminal of a forwarder who eventually dispatches the first commodity in response to the first user temporarily failing to sign for the first commodity;
within a first duration, determining whether a first arbitrated transaction is received:
if not, unfreezing and transferring the frozen asset to a first merchant account of a first merchant, unfreezing and transferring the frozen first commodity circulation certificate to a first user account of a first user, updating the attribute of the first holder to the first user, and updating the attribute of the first address to a first receiving address; wherein the first arbitrated transaction is generated by the first user in response to the first user not receiving the first item.
Preferably, the method further comprises:
and destroying the first circulation certificate after a second time length after the first goods receiving transaction is successfully executed.
Fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention. As shown in fig. 3, as another aspect, the present application also provides a computer apparatus including one or more Central Processing Units (CPUs) 301 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage section 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and data necessary for the operation of the computer apparatus are also stored. The CPU301, ROM302, and RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
The following components are connected to the I/O interface 305: an input portion 306 including a keyboard, a mouse, and the like; an output portion 307 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 308 including a hard disk and the like; and a communication section 309 including a network interface card such as a LAN card, a modem, or the like. The communication section 309 performs communication processing via a network such as the internet. A drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 310 as necessary, so that a computer program read out therefrom is mounted into the storage section 308 as necessary.
In particular, according to an embodiment of the present disclosure, the method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing any of the methods described above. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 309, and/or installed from the removable medium 311.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a computer-readable storage medium that exists separately and is not assembled into a computer device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present application.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each of the described units may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of such a unit or module does not in some way constitute a limitation on the unit or module itself.
The foregoing description is only exemplary of the preferred embodiments of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A method of trading, the method being applicable to a blockchain node, the method comprising:
receiving a first registered commodity transaction; wherein the first registered merchandise transaction is generated by a first merchant terminal of a first merchant in response to the first merchant requesting to sell a first merchandise via a blockchain;
when the first registered commodity transaction is successfully executed, generating a first commodity voucher of a first commodity, and transferring the first commodity voucher to a first merchant account of the first merchant; wherein the first merchandise permit includes a first merchandise address attribute and a first merchandise holder attribute;
receiving a first subscription transaction; wherein the first subscription transaction is generated by a first user of a first user in response to a request from the first user to purchase a second item of a second merchant, the first subscription transaction comprising a first shipping address of the first user;
upon a successful execution of the first subscription transaction, freezing assets for subscribing to the second commodity paid for by the first subscription transaction;
receiving a first shipment transaction; wherein the first shipment transaction is generated by a second merchant of the second merchant in response to sending the second item to the first user, the first shipment transaction including a passname of a second item passphrase for the second item;
when the first delivery transaction is successfully executed, freezing a second commodity certificate corresponding to a second commodity subscribed by the first user;
receiving a first package transaction; wherein the first package offer transaction is generated by a first terminal of a first consignee who packages the second item in response to packaging the second item;
updating the attribute of a second commodity holder of the frozen second commodity voucher to be the first deliverer and updating the attribute of a second commodity address of the second commodity voucher to be a first collecting area when the execution of the first collecting transaction is successful;
receiving a first receiving transaction; wherein the first shipment transaction is generated by the first user in response to the first user signing for the second item;
and when the execution of the first goods receiving transaction is successful, unfreezing and transferring the frozen assets to a first merchant account of the second merchant, unfreezing and transferring the frozen second goods voucher to a first user account of the first user, updating the attribute of the second goods holder to the first user, and updating the attribute of the second goods address to the first goods receiving address.
2. The method of claim 1, wherein the commodity voucher is further configured with a commodity owner attribute, and wherein freezing the second commodity voucher corresponding to the second commodity approved by the first user comprises:
freezing a second commodity voucher corresponding to a second commodity subscribed by the first user;
updating the frozen second merchandise owner attribute of the second merchandise permit to the first user.
3. The method of claim 1, wherein a commodity shipping address for each commodity is recorded on a blockchain, and wherein said freezing the assets paid for by said first subscription transaction for subscribing to said second commodity comprises:
freezing the asset paid for the first subscription transaction for subscription to the second commodity;
planning a logistics route according to the delivery address and the first receiving address of the second commodity;
the updating the frozen second item holder attribute of the second item certificate as the first deliverer and the updating the second item address attribute of the second item certificate as the first collecting area when the first collecting transaction is successfully executed comprises:
judging whether a first collecting area where the first delivery person is located is included in the logistics route:
if so, updating the attribute of the second commodity holder of the frozen second commodity voucher to be the first delivery person, and updating the attribute of the second commodity address of the second commodity voucher to be the first collecting area.
4. The method of claim 3, wherein prior to receiving the first shipping transaction, further comprising:
receiving a first sort transaction; wherein the first sort transaction is generated by a second terminal of a first sort center that sorts the second item in response to sorting the second item delivered by the first delivery person;
determining whether the first sort center location is included in the logistics route:
if yes, updating the attribute of the second commodity holder to be the first sorting center, and updating the attribute of the second commodity address to be the location of the first sorting center;
receiving a first forwarded transaction; wherein the first forwarding transaction is generated by a third terminal of a second courier forwarding the second item in response to forwarding the second item;
judging whether a first transfer area where the second delivery person is located is included in the logistics route:
if so, updating the second item holder attribute to the second delivery person, and updating the second item address attribute to the first forwarding area.
5. The method according to any one of claims 1 to 4, wherein the freezing a second merchandise certificate corresponding to a second merchandise subscribed by the first user when the first shipment transaction is successfully executed comprises:
and when the first delivery transaction is successfully executed, freezing a second commodity certificate corresponding to a second commodity subscribed by the first user, and updating a second commodity address attribute of the second commodity certificate to be a delivery address of the second commodity.
6. The method of any of claims 1-4, further comprising:
receiving a first generation receipt transaction; wherein the first generation receipt transaction is generated by a terminal of a shipper who ultimately dispatched the second item in response to the first user temporarily failing to sign for the first item;
within a first duration, determining whether a first arbitrated transaction is received:
if not, unfreezing the frozen asset and transferring to a first merchant account of the second merchant, unfreezing the frozen second commodity and transferring to a first user account of the first user, updating the attribute of the holder of the second commodity to the first user, and updating the attribute of the address of the second commodity to the first receiving address; wherein the first arbitrated transaction is generated by the first user in response to the first user not receiving the first item.
7. A method of trading, the method being applicable to a blockchain node, the method comprising:
receiving a first subscription transaction; wherein the first subscription transaction is generated by a first user of a first user in response to a request by the first user to purchase a first commodity of a first merchant, the first subscription transaction comprising a first shipping address of the first user;
upon a successful execution of the first subscription transaction, freezing assets for subscribing to the first commodity paid for by the first subscription transaction;
receiving a first shipment transaction; wherein the first shipment transaction is generated by a first merchant location of the first merchant in response to sending the first item to the first user;
when the first delivery transaction is executed successfully, generating and freezing a first commodity circulation certificate according to the first delivery transaction; wherein the first physical transfer certificate includes a first holder attribute and a first address attribute;
receiving a first package transaction; wherein the first pick-up transaction is generated by a first terminal of a first consignee picking up a second item in response to picking up the second item;
updating the first holder attribute of the frozen first circulation certificate as the first delivery person and the first address attribute of the first circulation certificate as a first collecting area when the first collecting transaction is successfully executed;
receiving a first receiving transaction; wherein the first shipping transaction is generated by the first user in response to the first user signing for the first item;
when the execution of the first shipping transaction is successful, unfreezing and transferring the frozen asset to a first merchant account of the first merchant, unfreezing and transferring the frozen first logistics certificate to a first user account of the first user, updating the first holder attribute to the first user, and updating the first address attribute to the first shipping address.
8. The method of claim 7, wherein each merchant holds a commodity voucher corresponding to a commodity sold on a blockchain, and wherein generating and freezing a first commodity voucher according to the first shipment transaction upon successful execution of the first shipment transaction comprises:
when the first delivery transaction is successfully executed, generating and freezing a first commodity circulation certificate according to the first delivery transaction and a first commodity circulation certificate corresponding to the first commodity; wherein the first commodity circulation certificate is a child circulation certificate of the first commodity circulation certificate.
9. A computer device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-8.
10. A storage medium storing a computer program, characterized in that the program, when being executed by a processor, carries out the method according to any one of claims 1-8.
CN202110246900.4A 2021-03-05 2021-03-05 Transaction method, computer device and storage medium Active CN112950117B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110246900.4A CN112950117B (en) 2021-03-05 2021-03-05 Transaction method, computer device and storage medium
PCT/CN2021/143840 WO2022183837A1 (en) 2021-03-05 2021-12-31 Transaction method, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110246900.4A CN112950117B (en) 2021-03-05 2021-03-05 Transaction method, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN112950117A CN112950117A (en) 2021-06-11
CN112950117B true CN112950117B (en) 2022-07-15

Family

ID=76228535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110246900.4A Active CN112950117B (en) 2021-03-05 2021-03-05 Transaction method, computer device and storage medium

Country Status (2)

Country Link
CN (1) CN112950117B (en)
WO (1) WO2022183837A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112950117B (en) * 2021-03-05 2022-07-15 杭州复杂美科技有限公司 Transaction method, computer device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109272388A (en) * 2018-09-25 2019-01-25 杭州复杂美科技有限公司 A kind of purchase method based on block chain, equipment and storage medium
CN109636590A (en) * 2018-12-21 2019-04-16 众安信息技术服务有限公司 Based on the logical method and apparatus for confirming existing P2P digital asset transfer of block chain
CN110580618A (en) * 2018-06-11 2019-12-17 触信(厦门)智能科技有限公司 Commodity transaction method and system for block chain intelligent contracts
CN110728511A (en) * 2018-06-28 2020-01-24 厦门本能管家科技有限公司 Commodity transaction method and system based on block chain
CN111476584A (en) * 2020-04-08 2020-07-31 杭州复杂美科技有限公司 Public welfare consumption method, equipment and storage medium
CN111612392A (en) * 2020-04-03 2020-09-01 上海明略人工智能(集团)有限公司 Logistics monitoring method and system based on block chain
CN113592478A (en) * 2021-08-02 2021-11-02 杭州复杂美科技有限公司 Digital commodity transaction method, computer device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9922380B2 (en) * 2014-03-31 2018-03-20 Monticello Enterprises LLC System and method for providing messenger application for product purchases
US20170085555A1 (en) * 2015-07-14 2017-03-23 Fmr Llc Point-to-Point Transaction Guidance Apparatuses, Methods and Systems
WO2019168786A1 (en) * 2018-02-28 2019-09-06 Walmart Apollo, Llc Blockchain-based system and method for crowdsourced delivery
CN113095749A (en) * 2018-05-11 2021-07-09 创新先进技术有限公司 Logistics information transmission method, system and device based on block chain
CN109389466A (en) * 2018-09-25 2019-02-26 杭州复杂美科技有限公司 A kind of delivery of cargo method, equipment and storage medium based on block chain
CN112950117B (en) * 2021-03-05 2022-07-15 杭州复杂美科技有限公司 Transaction method, computer device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110580618A (en) * 2018-06-11 2019-12-17 触信(厦门)智能科技有限公司 Commodity transaction method and system for block chain intelligent contracts
CN110728511A (en) * 2018-06-28 2020-01-24 厦门本能管家科技有限公司 Commodity transaction method and system based on block chain
CN109272388A (en) * 2018-09-25 2019-01-25 杭州复杂美科技有限公司 A kind of purchase method based on block chain, equipment and storage medium
CN109636590A (en) * 2018-12-21 2019-04-16 众安信息技术服务有限公司 Based on the logical method and apparatus for confirming existing P2P digital asset transfer of block chain
CN111612392A (en) * 2020-04-03 2020-09-01 上海明略人工智能(集团)有限公司 Logistics monitoring method and system based on block chain
CN111476584A (en) * 2020-04-08 2020-07-31 杭州复杂美科技有限公司 Public welfare consumption method, equipment and storage medium
CN113592478A (en) * 2021-08-02 2021-11-02 杭州复杂美科技有限公司 Digital commodity transaction method, computer device and storage medium

Also Published As

Publication number Publication date
WO2022183837A1 (en) 2022-09-09
CN112950117A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
US20170316293A1 (en) System and method for arranging shipment and insurance for an item
TWI276826B (en) Supply chain visibility for real-time tracking of goods
US20170061368A1 (en) Method and apparatus for processing logistics path information
KR102324121B1 (en) Cargo transportation arrangement platform system using smart car dispatching
CN112700046A (en) Intelligent warehouse-dividing packaging method and device, computer equipment and storage medium
CN110659859B (en) E-commerce order inventory ERP management method and system
CN112270501B (en) Supply chain logistics cloud system based on software as a service (SaaS)
CN102034200A (en) M-commerce (Mobile commerce) method and system
CN112950117B (en) Transaction method, computer device and storage medium
US20200272991A1 (en) Intelligent dynamic container routing
CN107491920A (en) Logistics platform and system are carried without car
KR20000030645A (en) Method of Electronic Commerce
CN112001664A (en) Method, device, equipment and storage medium for generating return task
CN112308475B (en) Customs clearance system, customs clearance method, customs clearance device and electronic equipment
KR100349607B1 (en) System and method for optimizing transportation
CN115525665A (en) Information processing method and device, electronic equipment and computer readable medium
CN108492062A (en) A kind of self-defined waybill numbering system of client
CN113220786B (en) Logistics certificate storage method, computer equipment and storage medium
CN110807610A (en) Distribution method and device
CN114841769A (en) Parcel information updating method and device
CN113780923A (en) Method and device for sending piece, electronic equipment and medium
US20200272985A1 (en) Dynamic distributed smart contracting
CN113762841A (en) Waybill processing method and device, electronic equipment and storage medium
Saha et al. How logistics is playing a significant role in shaping up an e-commerce business
KR102625819B1 (en) The system for carry in and out registration and inland transportation of imported cargo using blockchain and operating method of the same

Legal Events

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