Resource interaction service processing method and device based on block chain, and computer equipment
Through the interactive service processing contracts of the blockchain network, the target interactive service is automatically screened and executed, which solves the problem of difficult order synchronization in the traditional way and achieves efficient and secure digital resource interaction.
Patent Information
- Application Number
- CN202410015246.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2025-07-04
AI Technical Summary
Under the traditional digital resource entrusted deduction method, order business cannot be synchronized between multiple merchants, resulting in duplicate execution and waste of resources, low business processing efficiency, and inflexible adjustment of order content.
Deploy interactive service processing contracts through the blockchain network, filter participants based on business configuration information, determine target interactive services, and automatically perform digital resource interactions, and use contracts to achieve regular triggering and secure transfers.
It improves the efficiency of interactive business processing, avoids business omissions and information loss, reduces cumbersome operations, and enhances the security of resource interaction.
Smart Images

Figure CN120258924A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular, to a method, apparatus, computer device, storage medium, and computer program product for resource interaction service processing based on blockchain. Background Art
[0002] With the development of computer technology and the popularization and use of various application programs or application platforms, in order to improve the service processing efficiency of different application programs and reduce cumbersome operations, the method of digital resource entrusted withholding has emerged.
[0003] Traditionally, the user can grant the entrusted withholding permission to different service platforms, such as food delivery application platforms and shopping application platforms. A service platform with the entrusted withholding permission, such as a food delivery application platform, can regularly trigger and execute the order service with the user and simultaneously conduct digital resource withholding, thereby avoiding cumbersome manual order placement operations and resource transfer operations, etc., and improving the service processing efficiency.
[0004] However, under the traditional method of digital resource entrusted withholding, since there may be multiple different service providers on different service platforms. For example, there are usually multiple different merchants on a food delivery application platform. If the digital resource entrusted withholding permission is granted to numerous merchants, due to the inability to synchronize order services among numerous merchants, it is easy to occur the situation of wasting digital resources due to repeated execution of order services, and the service content of specific order services cannot be flexibly adjusted, and there is still a problem of low service processing efficiency. Summary of the Invention
[0005] Based on this, in view of the above technical problems, it is necessary to provide a method, apparatus, computer device, storage medium, and computer program product for resource interaction service processing based on blockchain that can improve the interaction service processing efficiency on different service platforms and ensure the effective utilization of digital resources.
[0006] In a first aspect, this application provides a method for resource interaction service processing based on blockchain, including:
[0007] During a preset interaction service processing period, call an interaction service processing contract deployed on a blockchain network, and screen each candidate participant on a service platform according to service configuration information corresponding to a first participant to determine a second participant;
[0008] Call the interaction service processing contract, and determine a target interaction service between the first participant and the second participant according to the service configuration information;
[0009] Obtain the target digital resource interaction volume corresponding to the target interaction service, and call the interaction service processing contract to transfer the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the service platform.
[0010] In a second aspect, the present application further provides a blockchain-based resource interaction service processing device, including:
[0011] A second participant determination module, configured to, within a preset interaction service processing cycle, call an interaction service processing contract deployed on a blockchain network, and screen each candidate participant on the service platform according to service configuration information corresponding to a first participant to determine a second participant;
[0012] A target interaction service determination module, configured to call the interaction service processing contract and determine a target interaction service between the first participant and the second participant according to the service configuration information;
[0013] A digital resource transfer module, configured to obtain a target digital resource interaction volume corresponding to the target interaction service, and call the interaction service processing contract to transfer the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the service platform.
[0014] In a third aspect, the present application further provides a computer device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0015] Within a preset interaction service processing cycle, call an interaction service processing contract deployed on a blockchain network, and screen each candidate participant on the service platform according to service configuration information corresponding to a first participant to determine a second participant;
[0016] Call the interaction service processing contract and determine a target interaction service between the first participant and the second participant according to the service configuration information;
[0017] Obtain a target digital resource interaction volume corresponding to the target interaction service, and call the interaction service processing contract to transfer the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the service platform.
[0018] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0019] Within a preset interactive service processing cycle, call the interactive service processing contract deployed on the blockchain network, and screen each candidate participant on the service platform according to the service configuration information corresponding to the first participant to determine the second participant;
[0020] Call the interactive service processing contract, and determine the target interactive service between the first participant and the second participant according to the service configuration information;
[0021] Obtain the target digital resource interaction volume corresponding to the target interactive service, and call the interactive service processing contract to transfer the target digital resource interaction volume in the contract digital resource pool associated with the interactive service processing contract to the platform digital resource pool deployed on the service platform.
[0022] Fifthly, the present application also provides a computer program product, including a computer program, which when executed by a processor implements the following steps:
[0023] Within a preset interactive service processing cycle, call the interactive service processing contract deployed on the blockchain network, and screen each candidate participant on the service platform according to the service configuration information corresponding to the first participant to determine the second participant;
[0024] Call the interactive service processing contract, and determine the target interactive service between the first participant and the second participant according to the service configuration information;
[0025] Obtain the target digital resource interaction volume corresponding to the target interactive service, and call the interactive service processing contract to transfer the target digital resource interaction volume in the contract digital resource pool associated with the interactive service processing contract to the platform digital resource pool deployed on the service platform.
[0026] In the above blockchain-based resource interaction service processing method, device, computer device, storage medium, and computer program product, within a preset interaction service processing cycle, an interaction service processing contract deployed on the blockchain network is called. According to the service configuration information corresponding to the first participant, each candidate participant on the service platform is screened to determine the second participant, and the target interaction service between the first participant and the second participant is determined. Thus, the target interaction service can be triggered regularly and executed automatically by using the interaction service processing contract, without manual participation and information collection, which can avoid the situation of missing execution of interaction services or missing order information, and improve the processing efficiency of interaction services. Further, by obtaining the target digital resource interaction volume corresponding to the target interaction service and calling the interaction service processing contract, the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract is transferred to the platform digital resource pool deployed on the service platform, and data resource interaction between each participant can be achieved based on the interaction service processing contract without passing through a third-party platform or third-party channel, reducing cumbersome digital resource interaction operations and enhancing the security of the digital resource interaction process. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] To more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0028] Figure 1 It is a schematic structural diagram of a data sharing system in an embodiment;
[0029] Figure 2 It is a schematic structural diagram of a blockchain in an embodiment;
[0030] Figure 3 It is a schematic diagram of the generation process of a new block in an embodiment;
[0031] Figure 4 It is an application environment diagram of a blockchain-based resource interaction service processing method in an embodiment;
[0032] Figure 5 It is a schematic flowchart of a blockchain-based resource interaction service processing method in an embodiment;
[0033] Figure 6 It is a schematic flowchart of determining the second participant in an embodiment;
[0034] Figure 7Schematic flowchart of a blockchain-based resource interaction service processing method in another embodiment;
[0035] Figure 8 Schematic flowchart of a blockchain-based resource interaction service processing method in yet another embodiment;
[0036] Figure 9 Schematic flowchart of a blockchain-based takeaway order placement interaction process in one embodiment;
[0037] Figure 10 Block diagram of the structure of a blockchain-based resource interaction service processing apparatus in one embodiment;
[0038] Figure 11 Internal structure diagram of a computer device in one embodiment. Detailed implementation manners
[0039] To make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0040] Before specific description, some terms related to the present application will be described. Blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. Blockchain, in essence, is a decentralized database, a string of data blocks generated by using cryptographic methods. Each data block contains information about a batch of network transactions, which is used to verify the validity (anti-counterfeiting) of the information and generate the next block. Blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer.
[0041] The underlying blockchain platform may include processing modules such as user management, basic services, smart contracts, and operation monitoring. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintaining the generation of public and private keys (account management), key management, and the maintenance of the correspondence between the real identity of users and blockchain addresses (permission management). And under authorization, it supervises and audits the transaction situations of certain real identities, and provides the rule configuration for risk control (risk control and audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and after reaching a consensus on valid requests, records them on the storage. For a new business request, the basic service first performs interface adaptation parsing and authentication processing (interface adaptation), then encrypts the business information through a consensus algorithm (consensus management), and after encryption, transmits it intact and consistently to the shared ledger (network communication), and records and stores it; the smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define contract logic through a certain programming language, publish it to the blockchain (contract registration), and according to the logic of the contract terms, call keys or other events to trigger execution, complete the contract logic, and at the same time also provide functions for contract upgrade and cancellation; the operation monitoring module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation during the product release process, and the visual output of the real-time state during product operation, such as: alarms, monitoring network conditions, monitoring the health status of node devices, etc. The platform product service layer provides the basic capabilities and implementation frameworks of typical applications. Developers can build on these basic capabilities and overlay the characteristics of the business to complete the blockchain implementation of the business logic. The application service layer provides application services based on the blockchain solution for business participants to use.
[0042] In the embodiments of this application, the blockchain-based resource interaction service processing method specifically relates to blockchain technology and can be applied to a data sharing system. Refer to Figure 1 the data sharing system shown in the figure. The data sharing system 100 refers to a system used for data sharing between nodes. The data sharing system may include multiple nodes 101, and the multiple nodes 101 may refer to each client in the data sharing system. Each node 101 can receive input information during normal operation and maintain the shared data in the data sharing system based on the received input information. To ensure information interconnection within the data sharing system, there may be information connections between each node in the data sharing system, and nodes can transmit information through the above-mentioned information connections. For example, when any node in the data sharing system receives input information, other nodes in the data sharing system obtain the input information according to the consensus algorithm and store the input information as data in the shared data, so that the data stored on all nodes in the data sharing system is consistent.
[0043] For each node in the data sharing system, there is a corresponding node identifier, and each node in the data sharing system can store the node identifiers of other nodes in the data sharing system, so that subsequently, according to the node identifiers of other nodes, the generated blocks can be broadcast to other nodes in the data sharing system. Each node can maintain a node identifier list as shown in the following table, and store the node name and node identifier corresponding to each other in this node identifier list. Among them, the node identifier can be an IP (Internet Protocol) address and any other information that can be used to identify the node.
[0044] Each node in the data sharing system stores an identical blockchain. The blockchain consists of multiple blocks. See Figure 2 , the blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores the input information feature value, version number, timestamp, and difficulty value. The block body stores the input information. The next block of the genesis block uses the genesis block as the parent block. The next block also includes a block header and a block body. The block header stores the input information feature value of the current block, the block header feature value of the parent block, version number, timestamp, and difficulty value, and so on. This makes the block data stored in each block in the blockchain associated with the block data stored in the parent block, ensuring the security of the input information in the block.
[0045] The specific types of blockchain include public blockchain, private blockchain, and consortium blockchain. Among them, the public blockchain (Public Blockchain) is a publicly owned blockchain, and the access and writing permissions are open to everyone. The private blockchain (Private Blockchain) is a privately owned blockchain, and the access and writing permissions are only controlled by a certain organization or institution. The consortium blockchain (Consortium Blockchain) is a blockchain of institutional alliances, and the access and writing permissions are only open to the nodes that join the alliance. The differences between different types of blockchains lie in the access and writing permissions and the degree of decentralization.
[0046] Specifically, when generating each block in the blockchain, see Figure 3, including steps such as submitting a transaction, broadcasting a transaction, pre-executing a transaction, proposing a block, verifying a block, consensus voting, and submitting a block. Specifically, a client submits a blockchain transaction, such as a contract creation, a call transaction, a certificate management transaction, etc. Then, the transaction is broadcast to other nodes in the consortium through the network. Next, the block-producing node selects a batch of transactions from the transaction pool, schedules and executes them in parallel to obtain results, generates a directed acyclic graph, and broadcasts the generated block and the directed acyclic graph to other consensus nodes through the consensus module. During the process of verifying the block, the proposed block is received, the transactions are executed in parallel based on the directed acyclic graph, and it is verified whether the results are consistent. If the results are consistent, then based on the corresponding consensus mechanism, a consensus vote is carried out on the proposed block. The block that has completed the consensus vote is submitted to the ledger for disk writing operation.
[0047] In the embodiment of the present application, the blockchain-based resource interaction service processing method can be applied to an application environment as Figure 4 shown. The application environment includes a first participant 402, a blockchain network 404, a service processing server 406, a service platform 408, and a second participant 410, and an interaction service processing contract 412 is deployed on the blockchain network 404. Among them, communication connections are established between the first participant 402 and the service processing server 406, between the first participant 402 and the service platform 408, between the service processing server 406 and the service platform 408, and between the service platform 408 and the second participant 410, and communication connections are also established between the blockchain network 404 and the first participant 402, the service processing server 406, the service platform 408, and the second participant 410 respectively.
[0048] Specifically, the service processing server 406 calls the interaction service processing contract 412 deployed on the blockchain network 404 within a preset interaction service processing cycle to obtain service configuration information corresponding to the first participant 402, screens each candidate participant on the service platform 408 according to the service configuration information to determine the second participant 410, and determines the target interaction service between the first participant 402 and the second participant 410 by calling the interaction service processing contract 412 according to the service configuration information corresponding to the first participant 402.
[0049] Further, the service processing server 406 obtains the target digital resource interaction volume corresponding to the target interaction service, and calls the interaction service processing contract 412 to transfer the target digital resource interaction volume in the contract digital resource pool 414 associated with the interaction service processing contract 412 to the platform digital resource pool 416 deployed on the service platform 408. Among them, the service processing server 406 can further detect the execution status of the target interaction service, and when it is determined that the execution status is completed, transfer the target digital resource interaction volume in the platform digital resource pool 416 to the second digital resource pool 418 deployed by the second participant 410.
[0050] Among them, the first participant 402 and the second participant 410 can be, but are not limited to, various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The service processing server 406 and the service platform 408 can be implemented by an independent server or a server cluster composed of multiple servers. The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, intelligent transportation, and assisted driving, etc.
[0051] In an exemplary embodiment, as Figure 5 shown, a blockchain-based resource interaction service processing method is provided. Taking the service processing server 406 in Figure 1 as an example, the following steps S502 to S506 are included. Among them:
[0052] Step S502, within a preset interaction service processing cycle, call the interaction service processing contract deployed on the blockchain network, and screen each candidate participant on the service platform according to the service configuration information corresponding to the first participant to determine the second participant.
[0053] Specifically, the service processing server obtains the current time point, and compares the current time point with the preset interaction service processing cycle to determine whether the current time point is within the preset interaction service processing cycle. If it is determined that the current time point is within the preset interaction service processing cycle, call the interaction service processing contract deployed on the blockchain network, obtain the service configuration information corresponding to the first participant, and screen each candidate participant on the service platform according to the service configuration information to determine the second participant.
[0054] Among them, the preset interactive service processing period can be a specific time point or a specific time range, such as 1 pm every day, or from 2 pm to 3 pm, or 2 pm every Tuesday, or from 3 pm to 4 pm every Wednesday, etc. It can also be a fixed time every month, such as 1 pm on the 15th of each month, or from 2 pm to 3 pm on the 20th of each month, etc. Similarly, the preset interactive service processing period can also be specific holidays such as the Mid-Autumn Festival, National Day, Christmas, and New Year's Day, etc. For another example, it can also be specific anniversaries such as employees' birthdays and company anniversaries, etc. Among them, when determining holidays such as the Mid-Autumn Festival and National Day, etc., activity products corresponding to different merchants (such as mooncakes, cakes, etc.) can be ordered. It can also be when it is a company anniversary or an employee's birthday, etc., products such as cakes can be ordered.
[0055] It can be understood that the preset interactive service processing period can be set and adjusted according to actual business requirements or specific application scenarios, and is not limited to a certain or certain specific values.
[0056] The interactive service processing contract deployed on the blockchain network can be understood as a smart contract with interactive service processing functions. That is, by calling the interactive service processing contract deployed on the blockchain network, the processing of target interactive services, the transfer processing of the digital resource interaction volume, etc. can be carried out. Among them, according to different actual functions or application scenarios, different smart contracts can be deployed on the blockchain network to achieve different functions or be applied to different specific scenarios.
[0057] Exemplarily, the business configuration information corresponding to the first participating party specifically includes the business order address information and category preference information corresponding to the first participating party, and also includes the first screening condition corresponding to the business order address information and the second screening condition corresponding to the category preference information. Among them, there are multiple different candidate participating parties on the business platform, and each candidate participating party corresponds to its own candidate business information. The candidate business information specifically includes the distance information associated with the business order address information and also includes the product category information. The first screening condition is used to screen the distance information in the candidate business information, while the second screening condition is used to screen the product category information in the candidate business information to determine the second participating party that meets the first screening condition and the second screening condition from each candidate participating party.
[0058] Optionally, the second participating party can be one or multiple. Similarly, the target interactive service can also be one or multiple. Specifically, since different second participating parties can provide multiple different candidate interactive services, one or more target interactive services can be determined from the multiple candidate interactive services provided by one second participating party. It is also possible to separately determine one or more target interactive services from the multiple candidate interactive services provided by different second participating parties.
[0059] In an exemplary embodiment, the first participating party may specifically be the order-placing object, the service platform may specifically be a food delivery application platform, each candidate participating party on the service platform may specifically be multiple candidate merchants on the food delivery application platform, the second participating party is specifically the target merchant obtained by screening according to the service configuration information of the order-placing object, and the target interaction service is the target food delivery order between the order-placing object and the target merchant determined according to the service configuration information.
[0060] Specifically, the service order address information corresponding to the first participating party represents the delivery address information of the food delivery order provided by the order-placing object, and the category preference information represents the product category preference corresponding to the food delivery order. For example, the preference for beverages (specifically including cold drinks, hot drinks, coffee, etc.), the preference for desserts (specifically including cakes, bread, pastries, etc.), the preference for fruits, and the preference for snacks, etc. Similarly, the distance information associated with the service order address information in the candidate service information represents the distance information between the candidate merchant and the delivery address information of the food delivery order, and the product category information in the candidate service information represents the product categories provided by the candidate merchant, which may be different categories such as providing beverages, or providing desserts, or providing fruits, or providing snacks, etc. At the same time, multiple different specific products may be included under different product categories.
[0061] Exemplarily, the first screening condition is used to screen the distance information in the candidate service information. For example, to screen candidate participating parties (i.e., candidate merchants) with a distance information less than 2 kilometers, specifically, it can screen out each candidate participating party with a distance information within 2 kilometers from the delivery address information according to the service order address information corresponding to the first participating party, that is, the delivery address information of the food delivery order provided by the order-placing object.
[0062] Further, the second screening condition is used to screen the product category information in the candidate service information. Specifically, it screens each candidate participating party (i.e., candidate merchants) that meets the first screening condition according to the product category preference corresponding to the food delivery order. For example, for the second screening condition with a product category preference for beverages, it can screen out each second participating party (i.e., target merchant) with a distance information within 2 kilometers from the delivery address information and providing the product category of beverages.
[0063] In an exemplary embodiment, the service configuration information further includes a third screening condition corresponding to the candidate participating party rating information, and the candidate service information further includes the candidate participating party rating information. The third screening condition is used to screen the rating information of each candidate participating party (i.e., candidate merchants). For example, according to the third screening condition that the rating information needs to be greater than 4 points, it screens out each candidate participating party with a rating information greater than 4 points from each candidate participating party.
[0064] Exemplarily, after screening out each candidate participant (i.e., candidate merchant) within a distance of 2 kilometers from the delivery address information of the takeaway order provided by the business order address information corresponding to the first participant, that is, the order placement object, and further screening the rating information of these candidate participants within 2 kilometers according to the third screening condition that the rating information is greater than 4 points, to screen out each candidate participant with a rating information greater than 4 points.
[0065] Further, after screening out each candidate merchant within a distance of 2 kilometers from the delivery address information and with a rating information greater than 4 points, and further screening each candidate merchant within a distance of 2 kilometers from the delivery address information and with a rating information greater than 4 points according to the product category preference corresponding to the takeaway order, such as the second screening condition of preferring beverages, then each second participant (i.e., the target merchant) that is within a distance of 2 kilometers from the delivery address information, has a rating information greater than 4 points, and provides a product category of beverages can be screened out.
[0066] Step S504, call the interactive service processing contract, and determine the target interactive service between the first participant and the second participant according to the service configuration information.
[0067] Among them, the service configuration information corresponding to the first participant, in addition to including the business order address information corresponding to the first participant, the category preference information, the first screening condition corresponding to the business order address information, and the second screening condition corresponding to the category preference information, also includes the number of business order objects and the single - time digital resource interaction volume, while the candidate service information, in addition to including the distance information associated with the business order address information and the product category information, also includes the product unit price information.
[0068] Specifically, the service processing server generates each candidate interactive service between the first participant and the second participant by calling the interactive service processing contract, according to the number of business order objects, the product category information, and the product unit price information, and obtains the order digital resource volume corresponding to each candidate interactive service, so as to screen each candidate interactive service according to the single - time digital resource interaction volume and the order digital resource volume, and determine at least one target interactive service.
[0069] Among them, by calling the interactive service processing contract, the service processing server can generate multiple candidate interactive services including the specific number of business order objects and involving different product categories provided by the second participant and the product unit price information of the corresponding product categories.
[0070] Further, the business processing server specifically generates the order digital resource quantity corresponding to each candidate interaction service based on the number of business order objects, product categories, and product unit price information of each product category involved in each candidate interaction service, and screens the order digital resource quantity corresponding to each candidate interaction service according to the single - time digital resource interaction quantity in the service configuration information. For example, it eliminates the candidate interaction services with an order digital resource quantity greater than the single - time digital resource interaction quantity, or retains the candidate interaction services with an order digital resource quantity less than the single - time digital resource interaction quantity, so as to obtain at least one target interaction service.
[0071] In an exemplary embodiment, taking the business platform as an example of a food delivery application platform for illustration, the number of business order objects can be understood as the quantity of products required for the food delivery orders provided by the ordering object. The single - time digital resource interaction quantity represents the maximum digital resource quota for a single food delivery order. And the product unit price information in the candidate service information represents the product unit price information corresponding to the specific products under each product category provided by the second participant (i.e., the selected target merchant). For example, if the product category provided by a second participant is cold drinks in beverages, then for different specific products under this product category (such as cold drinks), such as A cold drink, B cold drink, and C cold drink, there are respective product unit price information corresponding to their specific products.
[0072] Exemplarily, if the number of business order objects, that is, the quantity of products required for the food delivery orders provided by the ordering object, is 10, and the single - time digital resource interaction quantity, that is, the maximum digital resource quota for a single food delivery order, is 200. Among them, a second participant, that is, a selected target merchant, provides a product category of cold drinks in beverages. The specific products included in the cold drink category are A cold drink, B cold drink, and C cold drink. The product unit price of A cold drink is 10, the product unit price of B cold drink is 15, and the product unit price of C cold drink is 20. Then, according to the required quantity of products (such as 10), choices can be made among A cold drink, B cold drink, and C cold drink. For example, choose 2 servings of A cold drink, 2 servings of B cold drink, and 6 servings of C cold drink, or choose 1 serving of A cold drink, 1 serving of B cold drink, and 8 servings of C cold drink, etc. Thus, multiple different candidate interaction services (i.e., candidate food delivery orders) can be generated respectively according to the different quantities of the selected specific products and the unit prices of each specific product.
[0073] Further, the business processing server determines the order digital resource quantity corresponding to each candidate interaction service (i.e., candidate food delivery order) by calling the interaction service processing contract, based on the quantity of different specific products selected in each candidate interaction service and the unit price of each selected product. Furthermore, the order digital resource quantity of each candidate interaction service can be compared with the single - time digital resource interaction quantity, i.e., the maximum digital resource quota for a single food delivery order (such as 200), so as to screen each candidate interaction service according to the comparison result. For example, eliminate the candidate interaction services with an order digital resource quantity greater than the single - time digital resource interaction quantity (such as 200), or retain the candidate interaction services with an order digital resource quantity less than the single - time digital resource interaction quantity (such as 200), and thus at least one target interaction service can be obtained.
[0074] Step S506: Obtain the target digital resource interaction quantity corresponding to the target interaction service, and call the interaction service processing contract to transfer the target digital resource interaction quantity in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the business platform.
[0075] Specifically, the business processing server obtains the target digital resource interaction quantity corresponding to the determined target interaction service and calls the interaction service processing contract deployed on the blockchain network to perform a digital resource transfer operation. Specifically, it transfers the target digital resource interaction quantity in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the business platform, thereby subtracting the target digital resource interaction quantity from the original digital resource quota of the contract digital resource pool to obtain the current digital resource quota corresponding to the contract digital resource pool, and adding the target digital resource interaction quantity to the original digital resource quantity of the platform digital resource pool to obtain the current digital resource quantity corresponding to the platform digital resource pool.
[0076] Among them, the contract digital resource pool associated with the interaction service processing contract can be specifically understood as a smart contract wallet corresponding to the smart contract with interaction service processing functions, which stores a preset amount of digital resources for transfer to the platform digital resource pool deployed on the business platform. Among them, the platform digital resource pool deployed on the business platform can be specifically understood as the business platform, such as the platform wallet deployed on the food delivery application platform, which is used to receive and store the target digital resource interaction quantity transferred from the contract digital resource pool (i.e., the smart contract wallet).
[0077] In an exemplary embodiment, after transferring the target digital resource interaction quantity in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the business platform, it further includes:
[0078] Detect the execution status of the target interaction service; if it is determined that the execution status is execution completed, transfer the target digital resource interaction volume in the platform digital resource pool to the second digital resource pool deployed by the second participant.
[0079] Specifically, the service processing server detects the execution status of the target interaction service between the first participant and the second participant by invoking the interaction service processing contract, where the execution status includes in execution, execution failed, and execution completed. If it is determined that the execution status is execution completed, that is, if it is determined that the second participant (i.e., the target merchant) has delivered the specific products required by the first participant (i.e., the order placement object) to the delivery address of the corresponding takeaway order, it indicates that the execution status of the target interaction service is execution completed. Furthermore, transfer the target digital resource interaction volume in the platform digital resource pool to the second digital resource pool deployed by the second participant.
[0080] Among them, different second participants each deploy their own second digital resource pools, which can be understood as different target merchants each deploy their own merchant wallets to receive and store the target digital resource interaction volume corresponding to the target interaction service transferred from the platform digital resource pool deployed by the business platform (i.e., the platform wallet deployed by the takeaway application platform).
[0081] In an exemplary embodiment, after invoking the interaction service processing contract and determining the target interaction service between the first participant and the second participant according to the service configuration information, it further includes:
[0082] If it is determined that there are multiple target interaction services, obtain the current digital resource quota corresponding to the contract digital resource pool, and compare the target digital resource interaction volumes corresponding to each target interaction service with the current digital resource quota respectively to generate multiple comparison results;
[0083] According to each comparison result, screen out the to-be-executed interaction services whose target digital resource interaction volumes are less than the current digital resource quota;
[0084] Invoke the interaction service processing contract to perform resource transfer processing according to the target digital resource interaction volume corresponding to the to-be-executed interaction service.
[0085] Among them, since different second participants can provide multiple different candidate interaction services, one or more target interaction services can be determined from the multiple candidate interaction services provided by one second participant, or one or more target interaction services can be respectively determined from the multiple candidate interaction services provided by different second participants.
[0086] Specifically, when it is determined that there are multiple target interaction services, the service processing server obtains the current amount of digital resources corresponding to the contract digital resource pool, and compares the target digital resource interaction amounts corresponding to each target interaction service with the current amount of digital resources respectively, generating multiple comparison results. Among them, the comparison results include that the target digital resource interaction amount is less than the current amount of digital resources, and that the target digital resource interaction amount is not less than the current amount of digital resources.
[0087] Furthermore, the service processing server can screen out the to-be-executed interaction services with the target digital resource interaction amount less than the current amount of digital resources according to each comparison result, including the comparison result that the target digital resource interaction amount is less than the current amount of digital resources and the comparison result that the target digital resource interaction amount is not less than the current amount of digital resources, so as to call the interaction service processing contract and perform resource transfer processing according to the target digital resource interaction amount corresponding to the to-be-executed interaction service.
[0088] Specifically, the service processing server calls the interaction service processing contract and sequentially transfers the target digital resource interaction amount in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the service platform according to the determined target digital resource interaction amounts corresponding to different to-be-executed interaction services.
[0089] Among them, when it is determined that there are multiple target interaction services, different target interaction services can be further matched according to the current amount of digital resources corresponding to the contract digital resource pool to obtain the target interaction services that can be supported by the current amount of digital resources in the contract digital resource pool, so as to reduce the situation of resource transfer operation failures and reduce the prompt information triggered due to the insufficient current amount of digital resources in the contract digital resource pool.
[0090] In the above blockchain-based resource interaction service processing method, within a preset interaction service processing cycle, an interaction service processing contract deployed on the blockchain network is called. According to the service configuration information corresponding to the first participating party, each candidate participating party on the service platform is screened to determine the second participating party, and the target interaction service between the first participating party and the second participating party is determined. Thus, the target interaction service can be triggered regularly and executed automatically by using the interaction service processing contract, without manual participation and information collection, which can avoid the situation of missed execution of interaction services or missing order information, so as to improve the processing efficiency of interaction services. Further, by obtaining the target digital resource interaction volume corresponding to the target interaction service and calling the interaction service processing contract, the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract is transferred to the platform digital resource pool deployed on the service platform, and the data resource interaction between each participating party can be realized based on the interaction service processing contract without passing through a third-party platform or a third-party channel, reducing the cumbersome digital resource interaction operations and improving the security of the digital resource interaction process.
[0091] In an exemplary embodiment, as Figure 6 shown, the step of determining the second participating party, that is, within a preset interaction service processing cycle, calling the interaction service processing contract deployed on the blockchain network, and screening each candidate participating party on the service platform according to the service configuration information corresponding to the first participating party to determine the second participating party, includes steps S602 to S608. Among them:
[0092] Step S602, if it is determined that the current time point is within the preset interaction service processing cycle, then trigger an interaction service processing request.
[0093] Specifically, the service processing server determines whether the current time point is within the preset interaction service processing cycle by obtaining the current time point and comparing the current time point with the preset interaction service processing cycle. If it is determined that the current time point is within the preset interaction service processing cycle, then trigger an interaction service processing request.
[0094] Among them, the interaction service processing request is used to call the interaction service processing contract to execute the target interaction service, and further transfer the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the service platform.
[0095] Step S604, in response to the interaction service processing request, obtain the service configuration information corresponding to the first participating party deployed by the interaction service processing contract.
[0096] Specifically, the service processing server responds to the triggered interactive service processing request and accesses the interactive service processing contract deployed on the blockchain network to obtain the service configuration information corresponding to the first participant deployed in the interactive service processing contract.
[0097] The service configuration information corresponding to the first participant specifically includes business order address information, category preference information, a first screening condition corresponding to the business order address information, a second screening condition corresponding to the category preference information, and a third screening condition corresponding to the candidate participant scoring information. Among them, the first screening condition is used to screen the distance information in the candidate service information, the second screening condition is used to screen the product category information in the candidate service information, and the third screening condition is used to screen the scoring information of each candidate participant.
[0098] Step S606: Obtain each candidate participant on the service platform and the candidate service information associated with each candidate participant.
[0099] Specifically, the service processing server responds to the triggered interactive service processing request, obtains each candidate participant on the service platform, and simultaneously obtains the candidate service information associated with each candidate participant. Among them, the candidate service information includes distance information associated with the business order address information, product category information, and candidate participant scoring information.
[0100] Step S608: Invoke the interactive service processing contract, and screen each candidate participant according to the service configuration information and each candidate service information to determine at least one second participant.
[0101] Specifically, the service processing server invokes the interactive service processing contract to screen each candidate participant according to the business order address information to obtain each initial participant whose distance information meets the first screening condition. Further, the service processing server screens each initial participant according to the category preference information to obtain at least one second participant whose product category information meets the second screening condition.
[0102] Among them, the first screening condition is used to screen the distance information in the candidate service information, the second screening condition is used to screen the product category information in the candidate service information, and thus at least one second participant whose distance information meets the first screening condition and whose product category information meets the second screening condition can be screened out. That is, the second participant can be one or more.
[0103] Exemplarily, the first participating party may specifically be the order-placing object, the service platform may specifically be a food delivery application platform, each candidate participating party on the service platform may specifically be multiple candidate merchants on the food delivery application platform, the second participating party is specifically the target merchant obtained after screening according to the service configuration information of the order-placing object, and the target interaction service is the target food delivery order between the order-placing object and the target merchant determined according to the service configuration information.
[0104] Specifically, the service order address information corresponding to the first participating party represents the delivery address information of the food delivery order provided by the order-placing object, and the category preference information represents the product category preference corresponding to the food delivery order. The distance information associated with the service order address information in the candidate service information represents the distance information between the candidate merchant and the delivery address information of the food delivery order, and the product category information represents the product categories provided by the candidate merchant, which may be different categories such as beverages and desserts, and multiple different specific products may be included respectively under different product categories.
[0105] Optionally, the first screening condition is used to screen the distance information in the candidate service information. For example, to screen candidate participating parties (i.e., candidate merchants) with a distance information less than 2 kilometers, specifically, according to the delivery address information of the food delivery order provided by the order-placing object, each candidate participating party with a distance information within 2 kilometers from the delivery address information can be screened out. Among them, the second screening condition is used to screen the product category information in the candidate service information, specifically, according to the product category preference corresponding to the food delivery order. For example, for the second screening condition with a product category preference for beverages, each candidate participating party (i.e., candidate merchant) that meets the first screening condition can be screened, and each second participating party (i.e., target merchant) with a distance information within 2 kilometers from the delivery address information and providing product categories of beverages can be screened out.
[0106] In an exemplary embodiment, by invoking the interaction service processing contract, screening each candidate participating party according to the service configuration information and each candidate service information to determine at least one second participating party, including:
[0107] Invoking the interaction service processing contract to screen each initial participating party to obtain each intermediate participating party whose candidate participating party scoring information meets the third screening condition; screening each intermediate participating party according to the category preference information to obtain at least one second participating party whose product category information meets the second screening condition.
[0108] Specifically, since the service configuration information further includes a third screening condition corresponding to the candidate participant scoring information, and the candidate service information further includes the candidate participant scoring information, after invoking the interactive service processing contract to screen each candidate participant based on the service order address information and obtaining each initial participant whose distance information meets the first screening condition, the interactive service processing contract is further invoked to screen each initial participant to obtain each intermediate participant whose candidate participant scoring information meets the third screening condition. Finally, the interactive service processing contract can be invoked to screen each intermediate participant according to the category preference information to obtain at least one second participant whose product category information meets the second screening condition.
[0109] Exemplarily, taking the first participant as the order placement object, the service platform as a food delivery application platform, each candidate participant as multiple candidate merchants on the food delivery application platform, and the second participant as the selected target merchant as an example, the third screening condition is used to screen the candidate participant scoring information. For example, according to the third screening condition that the scoring information needs to be greater than 4 points, each intermediate participant with a scoring information greater than 4 points is screened out from each initial participant.
[0110] Specifically, after screening the distance information in the candidate service information according to the first screening condition, that is, according to the delivery address information of the food delivery order provided by the order placement object, each initial participant whose distance information from this delivery address information is within 2 kilometers is screened out. Further, according to the third screening condition that the scoring information is greater than 4 points, the scoring information of these initial participants within 2 kilometers is screened to screen out each intermediate participant with a scoring information greater than 4 points.
[0111] Further, after screening out each intermediate participant whose distance information from the delivery address information is within 2 kilometers and whose scoring information is greater than 4 points, further screening is performed on each intermediate participant whose distance information from the delivery address information is within 2 kilometers and whose scoring information is greater than 4 points according to the product category preference corresponding to the food delivery order, such as the second screening condition of preferring beverages. Then, each second participant (i.e., the target merchant) whose distance information from the delivery address information is within 2 kilometers, whose scoring information is greater than 4 points, and whose provided product category is beverages can be screened out.
[0112] In an exemplary embodiment, by invoking the interactive service processing contract, product category screening can be further performed according to the current weather conditions, whether the merchant is open, and information such as anniversaries and specific holidays, so as to flexibly select different products of the corresponding target merchant on the basis of selecting the target merchant.
[0113] For example, when screening candidate merchants according to the current weather conditions, the specific current temperature can be obtained, and appropriate target merchants can be screened based on the current specific temperature. For example, if the temperature is higher than 35 degrees, target merchants that provide cold drinks as the product category are selected; if the temperature is lower than 15 degrees, target merchants that provide hot drinks as the product category are selected, etc.
[0114] In this embodiment, if it is determined that the current time point is within the preset interactive service processing cycle, an interactive service processing request is triggered and responded to, so as to obtain the service configuration information corresponding to the first participating party deployed by the interactive service processing contract, each candidate participating party on the service platform, and the candidate service information associated with each candidate participating party. Further, by invoking the interactive service processing contract, each candidate participating party is screened according to the service configuration information and each candidate service information, and at least one second participating party is determined, realizing the acquisition and collection of service configuration information and candidate service information by using the interactive service processing contract, without manual participation and information collection, avoiding the situation of missing order information related to interactive services, and at the same time, accurately screening and matching each candidate participating party according to the service configuration information and each candidate service information, without frequent manual screening and operation, further improving the processing efficiency of interactive services.
[0115] In an exemplary embodiment, as Figure 7 shown, a method for processing resource interaction services based on blockchain is provided. Taking the service processing server 406 in Figure 1 as an example for illustration, it includes the following steps S701 to step S711. Among them:
[0116] Step S701, receiving an interactive service processing contract deployment request, and obtaining the first participating party carried by the interactive service processing contract deployment request and the service configuration information corresponding to the first participating party.
[0117] Specifically, if the service processing server detects an interactive service processing contract deployment request, it receives the interactive service processing contract deployment request, and obtains the first participating party carried by the interactive service processing contract deployment request and the service configuration information corresponding to the first participating party.
[0118] Among them, the service configuration information corresponding to the first participating party specifically includes the service order address information and category preference information corresponding to the first participating party, and also includes the first screening condition corresponding to the service order address information, the second screening condition corresponding to the category preference information, the third screening condition corresponding to the candidate participating party score information, the number of service order objects, and the single digital resource interaction volume and other data.
[0119] Exemplarily, the first participating party may specifically be the order placement object, the business platform may specifically be the food delivery application platform, each candidate participating party on the business platform may specifically be multiple candidate merchants on the food delivery application platform, and the second participating party is specifically the target merchant obtained after screening according to the business configuration information of the order placement object.
[0120] Furthermore, the business order address information corresponding to the first participating party represents the delivery address information of the food delivery order provided by the order placement object, the category preference information represents the product category preference corresponding to the food delivery order, and the business order object quantity can be understood as the required product quantity of the food delivery order provided by the order placement object, while the single digital resource interaction quantity represents the maximum digital resource quota for a single food delivery order. Among them, the first screening condition is used to screen the distance information in the candidate business information, the second screening condition is used to screen the product category information in the candidate business information, and the third screening condition is used to screen the scoring information of each candidate participating party.
[0121] Step S702: Generate contract code data according to the business configuration information, and deploy the contract code data as an interactive business processing contract in the blockchain network.
[0122] Specifically, in the stage of deploying the interactive business processing contract, the business processing server can generate contract code data according to the business configuration information corresponding to the first participating party, including the business order address information and category preference information corresponding to the first participating party, the first screening condition corresponding to the business order address information, the second screening condition corresponding to the category preference information, the third screening condition corresponding to the candidate participating party scoring information, the business order object quantity, and the single digital resource interaction quantity, etc., that is, solidify each business configuration information corresponding to the first participating party into contract code data.
[0123] Furthermore, deploy the contract code data generated according to the business configuration information corresponding to the first participating party as an interactive business processing contract in the blockchain network. Among them, the interactive business processing contract can be understood as a smart contract with interactive business processing functions, and a smart contract, namely Smart Contract, is a program that automatically executes predefined rules and is deployed on the blockchain network. As a part of the blockchain application program, the smart contract can implement complex decentralized applications and business logics. Furthermore, by solidifying each business configuration information corresponding to the first participating party into contract code data, the contract code data can be deployed as an interactive business processing contract in the blockchain network, so as to subsequently call the interactive business processing contract to implement the execution processing of the target interactive business and the transfer processing of the digital resource interaction quantity, etc.
[0124] Step S703: Construct a contract digital resource pool associated with the interactive service processing contract, and receive a preset amount of digital resources transferred from the first digital resource pool deployed by the first participant.
[0125] Specifically, for the interactive service processing contract deployed on the blockchain network, the service processing server further constructs a contract digital resource pool associated with the interactive service processing contract, so as to receive a preset amount of digital resources transferred from the first digital resource pool deployed by the first participant through the contract digital resource pool.
[0126] Among them, the contract digital resource pool associated with the interactive service processing contract can be specifically understood as a smart contract wallet corresponding to the smart contract with interactive service processing functions, in which a preset amount of digital resources transferred from the first digital resource pool deployed by the first participant is stored, and the corresponding target digital resource interaction amounts are respectively transferred to the platform digital resource pool deployed on the service platform from the preset amount of digital resources stored therein according to different target interactive services.
[0127] Step S704: If it is determined that the current time point is within the preset interactive service processing period, trigger an interactive service processing request, and in response to the interactive service processing request, obtain the service configuration information corresponding to the first participant deployed by the interactive service processing contract.
[0128] Specifically, the service processing server determines whether the current time point is within the preset interactive service processing period by obtaining the current time point and comparing the current time point with the preset interactive service processing period. If it is determined that the current time point is within the preset interactive service processing period, an interactive service processing request is triggered.
[0129] Furthermore, the service processing server accesses the interactive service processing contract deployed on the blockchain network by responding to the triggered interactive service processing request, so as to obtain the service configuration information corresponding to the first participant deployed by the interactive service processing contract.
[0130] Step S705: Obtain each candidate participant on the service platform and the candidate service information associated with each candidate participant.
[0131] Specifically, the service processing server obtains each candidate participant on the service platform by responding to the triggered interactive service processing request, and simultaneously obtains the candidate service information associated with each candidate participant. Among them, the candidate service information includes distance information associated with the service order address information, product category information, and candidate participant rating information.
[0132] Step S706: Invoke the interactive service processing contract, and screen each candidate participant according to the service order address information to obtain each initial participant whose distance information meets the first screening condition.
[0133] Specifically, the first screening condition is used to screen the distance information in the candidate business information. Then, the service processing server can determine the distance information between the business order address information and each candidate participant by invoking the interactive service processing contract, and screen each distance information according to the first screening condition to obtain each initial participant whose distance information meets the first screening condition.
[0134] Exemplarily, the first screening condition is specifically to screen each initial participant with a distance information less than 2 kilometers. Specifically, it can screen out each initial participant whose distance information from the delivery address information of the takeaway order provided by the order placement object, that is, the business order address information corresponding to the first participant, is within 2 kilometers.
[0135] Step S707: Invoke the interactive service processing contract to screen each initial participant to obtain each intermediate participant whose candidate participant scoring information meets the third screening condition.
[0136] Specifically, the third screening condition is used to screen the candidate participant scoring information. Then, the service processing server can screen the candidate participant scoring information of each initial participant according to the third screening condition by invoking the interactive service processing contract to obtain each intermediate participant whose candidate participant scoring information meets the third screening condition.
[0137] Exemplarily, the third screening condition is specifically to screen each intermediate participant with a candidate participant scoring information greater than 4 points. Then, according to the third screening condition that the scoring information needs to be greater than 4 points, each intermediate participant with a scoring information greater than 4 points can be screened out from each initial participant.
[0138] Optionally, after screening the distance information in the candidate business information according to the first screening condition, that is, screening out each initial participant whose distance information from the delivery address information of the takeaway order provided by the order placement object, that is, the business order address information corresponding to the first participant, is within 2 kilometers, further screen the scoring information of each of these initial participants within 2 kilometers according to the third screening condition that the scoring information is greater than 4 points to screen out each intermediate participant with a scoring information greater than 4 points.
[0139] Step S708: Screen each intermediate participant according to the category preference information to obtain at least one second participant whose product category information meets the second screening condition.
[0140] Specifically, the second screening condition is used to screen the product category information in the candidate business information. Then, the service processing server can call the interactive service processing contract to screen each intermediate participant according to the second screening condition, and obtain at least one second participant whose product category information meets the second screening condition.
[0141] Exemplarily, if the second screening condition is that the product category preference is a preference for beverages, then each intermediate participant can be screened according to the second screening condition that the product category preference is a preference for beverages, and at least one second participant who provides beverages as the product category can be obtained.
[0142] Optionally, after screening out each intermediate participant whose distance information from the delivery address information is within 2 kilometers and whose rating information is greater than 4 points, further screen each intermediate participant whose distance information from the delivery address information is within 2 kilometers and whose rating information is greater than 4 points according to the product category preference corresponding to the takeaway order, such as the second screening condition of a preference for beverages. Then, each second participant (i.e., the target merchant) whose distance information from the delivery address information is within 2 kilometers, whose rating information is greater than 4 points, and who provides beverages as the product category can be screened out.
[0143] Step S709: Call the interactive service processing contract to generate each candidate interactive service between the first participant and the second participant according to the number of business order objects, product category information, and product unit price information.
[0144] Specifically, the service processing server calls the interactive service processing contract to generate each candidate interactive service between the first participant and the second participant according to the number of business order objects, product category information, and product unit price information, that is, generates multiple candidate interactive services including the specific number of business order objects and involving different product categories provided by the second participant and the product unit price information of the corresponding product categories.
[0145] Step S710: Obtain the order digital resource amount corresponding to each candidate interactive service, and screen each candidate interactive service according to the single - time digital resource interaction amount and the order digital resource amount to determine at least one target interactive service.
[0146] Specifically, the service processing server generates the order digital resource amount corresponding to each candidate interactive service according to the number of business order objects, product category, and product unit price information of the product category involved in each candidate interactive service.
[0147] Further, the service processing server may screen the order digital resource amounts corresponding to each candidate interaction service according to the single - time digital resource interaction amount in the service configuration information. For example, it may eliminate each candidate interaction service with an order digital resource amount greater than the single - time digital resource interaction amount, or retain each candidate interaction service with an order digital resource amount less than the single - time digital resource interaction amount, and thus at least one target interaction service can be obtained.
[0148] Step S711: Obtain the target digital resource interaction amount corresponding to the target interaction service, and call the interaction service processing contract to transfer the target digital resource interaction amount in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the service platform.
[0149] Specifically, the service processing server obtains the target digital resource interaction amount corresponding to the determined target interaction service, and calls the interaction service processing contract deployed on the blockchain network to execute the digital resource transfer operation. Specifically, it transfers the target digital resource interaction amount in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the service platform, thereby subtracting the target digital resource interaction amount from the original digital resource quota of the contract digital resource pool to obtain the current digital resource quota corresponding to the contract digital resource pool, and adding the target digital resource interaction amount to the original digital resource amount of the platform digital resource pool to obtain the current digital resource amount corresponding to the platform digital resource pool.
[0150] The above blockchain-based resource interaction service processing method obtains the first participating party carried in the received interaction service processing contract deployment request and the service configuration information corresponding to the first participating party, generates contract code data according to the service configuration information, and uses the contract code data obtained by solidifying the service configuration information as the interaction service processing contract to be deployed in the blockchain network, and constructs a contract digital resource pool associated with the interaction service processing contract to receive the preset digital resource amount transferred from the first digital resource pool deployed by the first participating party. Therefore, the method of pre-configuring and deploying the interaction service processing contract can be adopted, eliminating the need for temporary manual information collection or cumbersome operations, reducing the situation of information loss, and improving the service processing efficiency. Further, within the preset interaction service processing cycle, the interaction service processing contract deployed in the blockchain network is called, and according to the service configuration information corresponding to the first participating party, each candidate participating party on the service platform is screened to determine the second participating party, and the target interaction service between the first participating party and the second participating party is determined. The target digital resource interaction amount in the contract digital resource pool associated with the interaction service processing contract is transferred to the platform digital resource pool deployed on the service platform, enabling data resource interaction between participating parties based on the interaction service processing contract without the need for a third-party platform or third-party channel, reducing cumbersome digital resource interaction operations, and enhancing the security of the digital resource interaction process.
[0151] In an exemplary embodiment, as Figure 8 shown, a blockchain-based resource interaction service processing method is provided. Taking the service processing server 406 in Figure 1 as an example, the method includes the following steps S802 to S818. Among them:
[0152] Step S802: Within the preset interaction service processing cycle, call the interaction service processing contract deployed in the blockchain network, and screen each candidate participating party on the service platform according to the service configuration information corresponding to the first participating party to determine the second participating party.
[0153] Specifically, the service processing server obtains the current time point and compares the current time point with the preset interaction service processing cycle to determine whether the current time point is within the preset interaction service processing cycle. If it is determined that the current time point is within the preset interaction service processing cycle, an interaction service processing request is triggered, and in response to the triggered interaction service processing request, the interaction service processing contract deployed in the blockchain network is accessed to obtain the service configuration information corresponding to the first participating party deployed in the interaction service processing contract.
[0154] Further, the service processing server obtains each candidate participant on the service platform and candidate service information associated with each candidate participant by invoking the interactive service processing contract deployed on the blockchain network, so as to screen each candidate participant according to the service configuration information and each candidate service information, and determine at least one second participant.
[0155] In an exemplary embodiment, the service processing server invokes the interactive service processing contract to screen each candidate participant according to the service order address information, and obtains each initial participant whose distance information meets the first screening condition. Further, the service processing server screens each initial participant according to the category preference information, and obtains at least one second participant whose product category information meets the second screening condition.
[0156] In an exemplary embodiment, the service processing server invokes the interactive service processing contract to screen each candidate participant according to the service order address information, obtains each initial participant whose distance information meets the first screening condition, and invokes the interactive service processing contract to screen each initial participant, and obtains each intermediate participant whose candidate participant scoring information meets the third screening condition. Further, the service processing server invokes the interactive service processing contract to screen each intermediate participant according to the category preference information, and obtains at least one second participant whose product category information meets the second screening condition.
[0157] Step S804: Invoke the interactive service processing contract to determine the target interactive service between the first participant and the second participant according to the service configuration information.
[0158] Specifically, the service processing server generates each candidate interactive service between the first participant and the second participant by invoking the interactive service processing contract according to the service order object quantity, product category information, and product unit price information, and obtains the order digital resource quantity corresponding to each candidate interactive service, so as to screen each candidate interactive service according to the single - time digital resource interaction quantity and the order digital resource quantity, and determine at least one target interactive service.
[0159] Step S806: Obtain the target digital resource interaction quantity corresponding to the target interactive service and the current digital resource amount corresponding to the contract digital resource pool, and compare the current digital resource amount with the target digital resource interaction quantity.
[0160] Specifically, after determining the target interactive service between the first participant and the second participant, the service processing server further obtains the target digital resource interaction quantity corresponding to the target interactive service, and obtains the current digital resource amount corresponding to the contract digital resource pool associated with the interactive service processing contract, so as to compare the current digital resource amount with the target digital resource interaction quantity.
[0161] Among them, by comparing the current amount of digital resources with the target digital resource interaction volume, the obtained comparison result includes that the target digital resource interaction volume is less than the current amount of digital resources, and that the target digital resource interaction volume is not less than the current amount of digital resources.
[0162] Step S808: If it is determined that the current amount of digital resources is not less than the target digital resource interaction volume, then call the interaction service processing contract, and transfer the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed by the service platform.
[0163] Specifically, if, after comparing the current amount of digital resources with the target digital resource interaction volume, it is determined according to the comparison result that the current amount of digital resources is not less than the target digital resource interaction volume, then the service processing server calls the interaction service processing contract, and transfers the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed by the service platform.
[0164] Among them, in the contract digital resource pool associated with the interaction service processing contract, a preset amount of digital resources transferred from the first digital resource pool deployed by the first participant is stored. After multiple digital resource transfer operations, the amount of digital resources in the contract digital resource pool continuously decreases. Therefore, before each execution of the digital resource transfer operation, it is necessary to obtain the current amount of digital resources corresponding to the contract digital resource pool, and compare the current amount of digital resources with the target digital resource interaction volume to determine whether the contract digital resource pool supports this digital resource transfer operation, that is, whether it holds enough digital resources to be transferred out.
[0165] After step S806 is executed, step S810 is executed. If it is determined that the current amount of digital resources is less than the target digital resource interaction volume, then call the interaction service processing contract, suspend the current interaction service, and feedback a prompt message.
[0166] Specifically, if, after comparing the current amount of digital resources with the target digital resource interaction volume, it is determined according to the comparison result that the current amount of digital resources is less than the target digital resource interaction volume, it indicates that the contract digital resource pool cannot support this digital resource transfer operation, that is, it does not hold enough digital resources to be transferred out. Therefore, the service processing server can call the interaction service processing contract to suspend the current interaction service and feedback a prompt message. Among them, the prompt message includes a prompt message indicating that the current digital resource amount is insufficient and needs to be transferred in again.
[0167] After step S808 is executed, step S812 is executed to detect the execution status of the target interaction service.
[0168] Specifically, the business processing server calls the interactive business processing contract to detect the execution status of the target interactive business between the first participant and the second participant, where the execution status includes in execution, execution failure, and execution completion.
[0169] Step S814, if it is determined that the execution status is execution completion, transfer the target digital resource interaction volume in the platform digital resource pool to the second digital resource pool deployed by the second participant.
[0170] Specifically, if it is determined that the execution status of the target interactive business is execution completion, that is, if it is determined that the second participant (i.e., the target merchant) has delivered the specific products required by the first participant (i.e., the order placement object) to the delivery address of the corresponding takeaway order, it indicates that the execution status of the target interactive business is execution completion. Furthermore, transfer the target digital resource interaction volume in the platform digital resource pool to the second digital resource pool deployed by the second participant.
[0171] Among them, different second participants respectively deploy their own second digital resource pools, which can be understood as different target merchants respectively deploy their own merchant wallets to receive and store the target digital resource interaction volume corresponding to the target interactive business transferred from the platform digital resource pool deployed by the business platform (i.e., the platform wallet deployed by the takeaway application platform).
[0172] After executing step S812, execute step S816. If it is determined that the execution status is execution completion, obtain the business scoring information corresponding to the target interactive business.
[0173] Specifically, if it is determined that the execution status of the target interactive business is execution completion, that is, if it is determined that the second participant (i.e., the target merchant) has delivered the specific products required by the first participant (i.e., the order placement object) to the delivery address of the corresponding takeaway order, it indicates that the execution status of the target interactive business is execution completion. Further obtain the business scoring information corresponding to the target interactive business.
[0174] Among them, after completing the target interactive business between the first participant and the second participant, the first participant can input the business scoring information for the second participant based on the business platform, and the business scoring information can be used to reflect the business satisfaction degree and score of the first participant for the second participant.
[0175] Step S818, according to the business scoring information, perform adjustment processing on each candidate participant to obtain the adjusted candidate participants. The adjustment processing includes eliminating the candidate participants whose business scoring information does not meet the recommendation conditions and promoting the candidate participants whose business scoring information meets the recommendation conditions to the top.
[0176] Specifically, after obtaining the business scoring information of the second participating party input by the first participating party based on the business platform, further adjust and process each candidate participating party according to the business scoring information. For example, eliminate candidate participating parties whose business scoring information does not meet the recommendation conditions, and top up candidate participating parties whose business scoring information meets the recommendation conditions, etc., to obtain each adjusted candidate participating party.
[0177] Among them, the recommendation condition can specifically be that the scoring information of the candidate participating party is greater than a preset score value. For example, if the business score of the candidate participating party is greater than 4 points, then each candidate participating party with a business score not greater than 4 points can be eliminated, and each candidate participating party with a business score greater than 4 points can be topped up, etc. It can be understood that the preset score value can be adjusted and set according to actual needs and specific application scenarios, and is not limited to a certain or certain specific values.
[0178] Furthermore, each adjusted candidate participating party can be used to determine the second participating party corresponding to the first participating party in the next preset interactive business processing cycle. Thus, by eliminating candidate participating parties whose business scoring information does not meet the recommendation conditions and topping up candidate participating parties whose business scoring information meets the recommendation conditions, the screening and determination efficiency for the second participating party can be further improved, and the cumbersome operations of repeated comparison and screening can be reduced.
[0179] In an exemplary embodiment, as Figure 9 shown, a blockchain-based takeaway order placement interaction process is provided. Referring to Figure 9 it can be known that taking the business platform as an example of a takeaway platform, in the blockchain-based takeaway order placement method, the involved interacting parties specifically include the first participating party, i.e., the order placement object, the interactive business processing contract deployed in the blockchain network, the business platform, i.e., the takeaway application platform, and the second participating party, i.e., the selected target merchant. Among them, the first participating party, i.e., the order placement object, deploys a first digital resource pool (i.e., the object wallet), the blockchain network deploys a contract digital resource pool (i.e., the smart contract wallet) associated with the interactive business processing contract, the business platform, i.e., the takeaway application platform, deploys a platform resource pool (i.e., the platform wallet), and the second participating party, i.e., the target merchant, deploys a second digital resource pool (i.e., the merchant wallet).
[0180] Among them, in the deployment stage (or configuration stage) of the interactive business processing contract, by solidifying the business configuration information corresponding to the first participating party into contract code data, and taking the contract code data obtained by solidifying the business configuration information as the interactive business processing contract deployed in the blockchain network to complete automatic order placement according to the business configuration information through the execution of the interactive business processing contract. At the same time, by constructing a contract digital resource pool associated with the interactive business processing contract to receive and store the preset digital resource amount transferred from the first digital resource pool deployed by the first participating party.
[0181] Further, before placing an order, there may be situations such as changes in the object structure and category preferences. Therefore, it is necessary to regularly update the business configuration information according to information such as changes in the object structure and category preferences. For example, adjust the first screening condition, the second screening condition, and the third condition in the business configuration information, so that the ordered products can meet the actual needs.
[0182] Similarly, in the takeout order placement stage (or application stage) based on the blockchain, the interactive business processing contract deployed through the blockchain network is used to access the business platform, that is, the takeout application platform. According to the business configuration information corresponding to the first participating party (i.e., the order placement object), each candidate participating party (i.e., candidate merchant) on the business platform is screened to determine the second participating party (i.e., the target merchant). A specific quantity of takeout products is ordered according to the business configuration information, and automatic payment is made. The digital resources in the contract digital resource pool (i.e., the smart contract wallet) are transferred to the platform digital resource pool (i.e., the platform wallet) of the takeout application platform. At the same time, by passing the business order address of the takeout order, after the business processing, that is, the order delivery is completed, the platform digital resource pool (i.e., the platform wallet) of the takeout application platform transfers resources to the second digital resource pool (i.e., the merchant wallet) deployed by the second participating party, that is, the target merchant, according to the digital resource quantity corresponding to the completed order.
[0183] Specifically, the interactive process of takeout order placement based on the blockchain specifically includes the interactive business processing contract deployment stage and the takeout order placement stage based on the blockchain. Among them, referring to Figure 9 It can be seen that in the interactive business processing contract deployment stage, it includes: 1) The first participating party, that is, the order placement object, transfers a preset digital resource quantity in its own deployed first digital resource pool, that is, the object wallet, to the contract digital resource pool associated with the interactive business processing contract.
[0184] And in the takeout order placement stage based on the blockchain, it includes:
[0185] 2) If it is determined that the preset interactive business processing cycle is reached, the interactive business processing contract deployed through the blockchain network is called to access the business platform, that is, the takeout application platform, and each candidate participating party (i.e., candidate merchant) on the business platform is screened according to the business configuration information corresponding to the first participating party (i.e., the order placement object) to determine the second participating party (i.e., the target merchant).
[0186] 3) The interactive business processing contract is called to determine the target interactive business (i.e., the target takeout order) between the first participating party and the second participating party according to the business configuration information.
[0187] 4) Obtain the target digital resource interaction volume corresponding to the target interaction service, and call the interaction service processing contract to transfer the target digital resource interaction volume in the contract digital resource pool (i.e., the smart contract wallet) associated with the interaction service processing contract to the platform digital resource pool (i.e., the platform wallet) deployed by the service platform.
[0188] 5) The service platform feeds back the business order address information included in the business configuration information to the second participant.
[0189] 6) The second participant conducts order delivery according to the business order address information.
[0190] 7) If it is determined that the order delivery is successful, transfer the target digital resource interaction volume in the platform digital resource pool (i.e., the platform wallet) to the second digital resource pool (i.e., the merchant wallet) deployed by the second participant (i.e., the target merchant).
[0191] The above blockchain-based resource interaction service processing method, within a preset interaction service processing period, calls the interaction service processing contract deployed on the blockchain network, screens each candidate participant on the service platform according to the business configuration information corresponding to the first participant, determines the second participant, and calls the interaction service processing contract to determine the target interaction service between the first participant and the second participant according to the business configuration information. Thus, it can utilize the interaction service processing contract to achieve the regular triggering and automatic execution of the target interaction service, without manual participation and information collection, and can avoid the situation of missed execution of interaction services or missing order information, so as to improve the processing efficiency of interaction services. Further, by obtaining the target digital resource interaction volume corresponding to the target interaction service and the current digital resource amount corresponding to the contract digital resource pool, comparing the current digital resource amount with the target digital resource interaction volume, and when it is determined that the current digital resource amount is not less than the target digital resource interaction volume, calling the interaction service processing contract to transfer the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed by the service platform, and when it is determined that the execution status of the target interaction service is completed, transferring the target digital resource interaction volume in the platform digital resource pool to the second digital resource pool deployed by the second participant, and without passing through a third-party platform or a third-party channel, the data resource interaction between each participant can be realized based on the interaction service processing contract, reducing the cumbersome digital resource interaction operations and enhancing the security of the digital resource interaction process.
[0192] It should be understood that although the steps in the flowcharts involved in the above embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0193] Based on the same inventive concept, an embodiment of the present application further provides a blockchain-based resource interaction service processing device for implementing the above-mentioned blockchain-based resource interaction service processing method. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the blockchain-based resource interaction service processing device provided below can refer to the limitations on the blockchain-based resource interaction service processing method in the above text, and will not be repeated here.
[0194] In an exemplary embodiment, as Figure 10 shown, a blockchain-based resource interaction service processing device is provided, including: a second participant determination module 1002, a target interaction service determination module 1004, and a digital resource transfer module 1006, where:
[0195] The second participant determination module 1002 is configured to, within a preset interaction service processing cycle, call an interaction service processing contract deployed on the blockchain network, and screen each candidate participant on the service platform according to the service configuration information corresponding to the first participant to determine the second participant;
[0196] The target interaction service determination module 1004 is configured to call the interaction service processing contract and determine the target interaction service between the first participant and the second participant according to the service configuration information;
[0197] The digital resource transfer module 1006 is configured to obtain the target digital resource interaction volume corresponding to the target interaction service, and call the interaction service processing contract to transfer the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the service platform.
[0198] In the above blockchain-based resource interaction service processing device, within a preset interaction service processing cycle, an interaction service processing contract deployed on the blockchain network is called. According to the service configuration information corresponding to the first participating party, each candidate participating party on the service platform is screened to determine the second participating party, and the target interaction service between the first participating party and the second participating party is determined. Thus, the periodic triggering and automatic execution of the target interaction service can be realized by using the interaction service processing contract, without manual participation and information collection, and the situation of missed execution of the interaction service or missing order information can be avoided, so as to improve the processing efficiency of the interaction service. Further, by obtaining the target digital resource interaction volume corresponding to the target interaction service and calling the interaction service processing contract, the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract is transferred to the platform digital resource pool deployed on the service platform, and the data resource interaction between each participating party can be realized based on the interaction service processing contract without passing through a third-party platform or a third-party channel, reducing the cumbersome digital resource interaction operations and improving the security of the digital resource interaction process.
[0199] In an exemplary embodiment, the second participating party determination module is further configured to:
[0200] If it is determined that the current time point is within the preset interaction service processing cycle, an interaction service processing request is triggered; in response to the interaction service processing request, the service configuration information corresponding to the first participating party deployed by the interaction service processing contract is obtained; the candidate participating parties on the service platform and the candidate service information associated with each candidate participating party are obtained; the interaction service processing contract is called, and according to the service configuration information and each candidate service information, each candidate participating party is screened to determine at least one second participating party.
[0201] In an exemplary embodiment, the service configuration information includes service order address information, category preference information, a first screening condition corresponding to the service order address information, and a second screening condition corresponding to the category preference information; the candidate service information includes distance information associated with the service order address information and product category information; the second participating party determination module is further configured to:
[0202] Call the interaction service processing contract, screen each candidate participating party according to the service order address information, and obtain each initial participating party whose distance information meets the first screening condition; screen each initial participating party according to the category preference information, and obtain at least one second participating party whose product category information meets the second screening condition.
[0203] In an exemplary embodiment, the service configuration information further includes a third screening condition corresponding to the candidate participating party scoring information, and the candidate service information further includes the candidate participating party scoring information; the second participating party determination module is further configured to:
[0204] Invoke the interactive service processing contract to screen each initial participant, and obtain each intermediate participant whose candidate participant scoring information meets the third screening condition; according to the category preference information, screen each intermediate participant to obtain at least one second participant whose product category information meets the second screening condition.
[0205] In an exemplary embodiment, the service configuration information further includes the number of service order objects and the single digital resource interaction volume, and the candidate service information further includes the product unit price information; the target interaction service determination module is further configured to:
[0206] Invoke the interactive service processing contract, generate each candidate interactive service between the first participant and the second participant according to the number of service order objects, product category information, and product unit price information; obtain the order digital resource volume corresponding to each candidate interactive service, and screen each candidate interactive service according to the single digital resource interaction volume and the order digital resource volume to determine at least one target interactive service.
[0207] In an exemplary embodiment, a blockchain-based resource interaction service processing apparatus is provided, further including:
[0208] The interactive service processing contract deployment request receiving module is configured to receive an interactive service processing contract deployment request, and obtain the first participant carried by the interactive service processing contract deployment request and the service configuration information corresponding to the first participant;
[0209] The contract code data generation module is configured to generate contract code data according to the service configuration information, and deploy the contract code data as an interactive service processing contract in the blockchain network;
[0210] The contract digital resource pool construction module is configured to construct a contract digital resource pool associated with the interactive service processing contract, and receive a preset digital resource volume transferred from the first digital resource pool deployed by the first participant.
[0211] In an exemplary embodiment, a blockchain-based resource interaction service processing apparatus is provided, further including an execution status detection module for detecting the execution status of the target interactive service;
[0212] The digital resource transfer module is further configured to: if it is determined that the execution status is execution completed, transfer the target digital resource interaction volume in the platform digital resource pool to the second digital resource pool deployed by the second participant.
[0213] In an exemplary embodiment, a blockchain-based resource interaction service processing apparatus is provided, further including:
[0214] A service scoring information acquisition module, configured to acquire service scoring information corresponding to a target interaction service if it is determined that the execution status is execution completed;
[0215] A candidate participant adjustment module, configured to adjust each candidate participant according to the service scoring information to obtain each adjusted candidate participant. The adjustment process includes eliminating candidate participants whose service scoring information does not meet the recommendation conditions and promoting candidate participants whose service scoring information meets the recommendation conditions to the top.
[0216] In an exemplary embodiment, a blockchain-based resource interaction service processing device is provided, further including a first comparison module, configured to acquire the current amount of digital resources corresponding to a contract digital resource pool and compare the current amount of digital resources with the target digital resource interaction volume;
[0217] A digital resource transfer module is further configured to: if it is determined that the current amount of digital resources is not less than the target digital resource interaction volume, call an interaction service processing contract to transfer the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the service platform;
[0218] A prompt information feedback module, configured to: if it is determined that the current amount of digital resources is less than the target digital resource interaction volume, call an interaction service processing contract to suspend the current interaction service and feedback prompt information.
[0219] In an exemplary embodiment, a blockchain-based resource interaction service processing device is provided, further including:
[0220] A second comparison module, configured to: if it is determined that there are multiple target interaction services, compare the target digital resource interaction volumes corresponding to the respective target interaction services with the current amount of digital resources respectively to generate multiple comparison results;
[0221] A to-be-executed interaction service screening module, configured to screen out to-be-executed interaction services whose target digital resource interaction volumes are less than the current amount of digital resources according to the respective comparison results;
[0222] A digital resource transfer module is further configured to: call an interaction service processing contract to perform resource transfer processing according to the target digital resource interaction volume corresponding to the to-be-executed interaction service.
[0223] Each module in the above blockchain-based resource interaction service processing device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or stored in a memory in a computer device in the form of software, so as to be called by the processor to execute the operations corresponding to the above respective modules.
[0224] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structural diagram may be as shown in Figure 11 . The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as a preset interaction service processing cycle, an interaction service processing contract, service configuration information corresponding to a first participant, each candidate participant on a service platform, a second participant, a target interaction service, a target digital resource interaction volume, a contract digital resource pool, and a platform digital resource pool. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a method for processing resource interaction services based on a blockchain.
[0225] Those skilled in the art can understand that Figure 11 the structure shown in is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0226] In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, it implements the steps in the above-mentioned method for processing resource interaction services based on a blockchain.
[0227] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, it implements the steps in the above-mentioned method for processing resource interaction services based on a blockchain.
[0228] In an exemplary embodiment, a computer program product is provided, including a computer program which, when executed by a processor, implements the steps in the above-mentioned blockchain-based resource interaction service processing method. It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0229] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned method embodiments. Among them, any reference to a memory, database, or other medium used in the various embodiments provided in this application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the various embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include blockchain-based distributed databases, etc., without limitation. The processors involved in the various embodiments provided in this application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0230] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.
[0231] The above embodiments only express several implementation manners of the present application, and the description thereof is relatively specific and detailed, but it should not be construed as a limitation on the scope of the patent of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several deformations and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A method for processing resource interaction services based on blockchain, characterized in that, The method includes: During a preset interactive service processing cycle, invoking an interactive service processing contract deployed on a blockchain network, and screening each candidate participant on a service platform according to service configuration information corresponding to a first participant to determine a second participant; Invoking the interactive service processing contract, and determining a target interactive service between the first participant and the second participant according to the service configuration information; Obtaining a target digital resource interaction volume corresponding to the target interactive service, and invoking the interactive service processing contract to transfer the target digital resource interaction volume in a contract digital resource pool associated with the interactive service processing contract to a platform digital resource pool deployed on the service platform.
2. The method according to claim 1, wherein The step of, during a preset interactive service processing cycle, invoking an interactive service processing contract deployed on a blockchain network, and screening each candidate participant on a service platform according to service configuration information corresponding to a first participant to determine a second participant includes: If it is determined that the current time point is within the preset interactive service processing cycle, triggering an interactive service processing request; Responding to the interactive service processing request, and obtaining service configuration information corresponding to the first participant deployed by the interactive service processing contract; Obtaining each candidate participant on the service platform and candidate service information associated with each candidate participant; Invoking the interactive service processing contract, and screening each candidate participant according to the service configuration information and each candidate service information to determine at least one second participant.
3. The method according to claim 2, characterized in that, The service configuration information includes service order address information, category preference information, a first screening condition corresponding to the service order address information, and a second screening condition corresponding to the category preference information; the candidate service information includes distance information associated with the service order address information and product category information; The step of invoking the interactive service processing contract, and screening each candidate participant according to the service configuration information and each candidate service information to determine at least one second participant includes: Invoking the interactive service processing contract, and screening each candidate participant according to the service order address information to obtain each initial participant whose distance information meets the first screening condition; Screening each initial participant according to the category preference information to obtain at least one second participant whose product category information meets the second screening condition.
4. The method according to claim 3, wherein The service configuration information further includes a third screening condition corresponding to candidate participant scoring information, and the candidate service information further includes candidate participant scoring information; the method further includes: Invoking the interactive service processing contract, and screening each initial participant to obtain each intermediate participant whose candidate participant scoring information meets the third screening condition; Screening each intermediate participant according to the category preference information to obtain at least one second participant whose product category information meets the second screening condition.
5. The method according to claim 3 or 4, characterized in that, The business configuration information further includes the number of business order objects and the amount of digital resource interaction per time, and the candidate business information further includes product unit price information; Invoking the interaction service processing contract, and determining a target interaction service between the first participating party and the second participating party according to the business configuration information, includes: Invoking the interaction service processing contract, and generating respective candidate interaction services between the first participating party and the second participating party according to the number of business order objects, the product category information, and the product unit price information; Obtaining the order digital resource amount corresponding to each candidate interaction service, and screening each candidate interaction service according to the amount of digital resource interaction per time and the order digital resource amount to determine at least one target interaction service.
6. The method according to any one of claims 1 to 4, characterized in that Before determining the second participating party by screening each candidate participating party on the business platform according to the business configuration information corresponding to the first participating party by invoking the interaction service processing contract deployed on the blockchain network within a preset interaction service processing period, it further includes: Receiving an interaction service processing contract deployment request, and obtaining the first participating party carried in the interaction service processing contract deployment request and the business configuration information corresponding to the first participating party; Generating contract code data according to the business configuration information, and deploying the contract code data as an interaction service processing contract in the blockchain network; Constructing a contract digital resource pool associated with the interaction service processing contract, and receiving a preset digital resource amount transferred from the first digital resource pool deployed by the first participating party.
7. The method according to any one of claims 1 to 4, characterized in that After transferring the target digital resource interaction amount in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the business platform, the method further includes: Detecting the execution status of the target interaction service; If it is determined that the execution status is completed, transferring the target digital resource interaction amount in the platform digital resource pool to the second digital resource pool deployed by the second participating party.
8. The method according to claim 7, characterized in that, After detecting the execution status of the target interaction service, the method further includes: If it is determined that the execution status is completed, obtaining business scoring information corresponding to the target interaction service; Performing an adjustment process on each candidate participating party according to the business scoring information to obtain adjusted candidate participating parties; the adjustment process includes eliminating candidate participating parties whose business scoring information does not meet the recommendation conditions and topping candidate participating parties whose business scoring information meets the recommendation conditions.
9. The method according to any one of claims 1 to 4, characterized in that, Before transferring the target digital resource interaction amount in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the business platform, it further includes: Obtaining the current digital resource quota corresponding to the contract digital resource pool, and comparing the current digital resource quota with the target digital resource interaction amount; If it is determined that the current amount of the digital resources is not less than the target digital resource interaction volume, then call the interaction service processing contract, and transfer the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the service platform; If it is determined that the current amount of the digital resources is less than the target digital resource interaction volume, then call the interaction service processing contract, suspend the current interaction service, and feedback a prompt message.
10. The method according to claim 9, wherein The method further includes: If it is determined that there are multiple target interaction services, then compare the target digital resource interaction volumes corresponding to each of the target interaction services with the current amount of the digital resources respectively to generate multiple comparison results; According to each of the comparison results, screen out the to-be-executed interaction services whose target digital resource interaction volumes are less than the current amount of the digital resources; Call the interaction service processing contract to perform resource transfer processing according to the target digital resource interaction volume corresponding to the to-be-executed interaction service.
11. A resource interaction service processing device based on blockchain, characterized in that, The device includes: A second participant determination module, configured to, within a preset interaction service processing period, call an interaction service processing contract deployed on a blockchain network, and screen each candidate participant on the service platform according to the service configuration information corresponding to a first participant to determine a second participant; A target interaction service determination module, configured to call the interaction service processing contract and determine a target interaction service between the first participant and the second participant according to the service configuration information; A digital resource transfer module, configured to obtain a target digital resource interaction volume corresponding to the target interaction service, and call the interaction service processing contract to transfer the target digital resource interaction volume in the contract digital resource pool associated with the interaction service processing contract to the platform digital resource pool deployed on the service platform.
12. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 10 are implemented.
14. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 10 are implemented.