Resource interaction processing method, related device and medium

By obtaining the replenishment cost rate of resource supply sources, the target resource supply source with the lowest replenishment cost is selected for resource replenishment, which solves the problem of high resource replenishment cost in resource interaction and improves resource utilization efficiency.

CN120929233APending Publication Date: 2025-11-11TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410578785.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-10
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

In resource interaction, existing technologies struggle to effectively reduce resource replenishment overhead, leading to unnecessary costs during the resource interaction process.

Method used

By obtaining the replenishment cost rate of the resource supply source of the first node, the target resource supply source with the minimum replenishment cost is selected for resource replenishment. The replenishment cost rates of multiple resource supply sources are considered in order to reduce the resource replenishment cost in resource interaction.

Benefits of technology

By selecting the resource supply source with the lowest replenishment cost, the resource replenishment cost in resource interaction can be effectively reduced, thereby improving resource utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120929233A_ABST
    Figure CN120929233A_ABST
Patent Text Reader

Abstract

The invention provides a resource interaction processing method, a related device and a medium. The method comprises the following steps: in response to a resource occupation request of a first node to a second node, obtaining a first number of resources from the second node, issuing the resources to the first node, and generating an occupation voucher of the first number of resources; determining a plurality of resource supply sources corresponding to the first node in response to a resource complementation request of the first node for the occupancy voucher; obtaining a complement overhead rate of each resource supply source; determining a target resource supply source in the plurality of resource supply sources based on the complementation overhead rate of each resource supply source; a complement overhead for the target resource provisioning source is determined based on the complement overhead rate for the target resource provisioning source, and the first number of resources is provided from the target resource provisioning source to the second node along with the complement overhead. According to the invention, the resource complementation overhead in resource interaction can be reduced. The method and the device can be applied to various scenes such as big data, block chains and cloud technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of big data technology, and in particular to a resource interaction processing method, related apparatus and medium. Background Technology

[0002] Currently, with the advent of the data era, data nodes frequently interact with each other, incurring overhead. For example, a first node might use resources from a second node while performing a task. In compensation, the first node might release an equal amount of resources to the second node when idle. However, due to the time-sensitive nature of resources, the additional resources may not be sufficient to offset the cost of the second node providing resources to the first, resulting in replenishment overhead. Minimizing resource replenishment overhead during resource interactions is a key challenge. Summary of the Invention

[0003] This disclosure provides a resource interaction processing method, related apparatus, and medium that can reduce resource replenishment overhead during resource interaction.

[0004] According to one aspect of this disclosure, a resource interaction processing method is provided, the method comprising:

[0005] In response to the resource occupancy request of the first node to the second node, a first number of resources are obtained from the second node and distributed to the first node, and occupancy certificates for the first number of resources are generated.

[0006] In response to the resource replenishment request from the first node for the occupied certificate, determine multiple resource supply sources corresponding to the first node;

[0007] Obtain the replenishment overhead rate for each of the resource supply sources;

[0008] Based on the replenishment cost rate of each of the resource supply sources, a target resource supply source is determined among the multiple resource supply sources;

[0009] Based on the replenishment cost rate of the target resource supply source, the replenishment cost of the target resource supply source is determined, and the first number of resources, along with the replenishment cost, are provided from the target resource supply source to the second node.

[0010] According to one aspect of this disclosure, a resource interaction processing apparatus is provided, the apparatus comprising:

[0011] The first acquisition unit is configured to respond to the resource occupancy request of the first node to the second node, acquire a first number of resources from the second node and distribute them to the first node, and generate occupancy certificates for the first number of resources.

[0012] The first determining unit is configured to determine multiple resource supply sources corresponding to the first node in response to the resource replenishment request from the first node for the occupancy certificate.

[0013] The second acquisition unit is used to acquire the replenishment overhead rate of each of the resource supply sources;

[0014] The second determining unit is used to determine a target resource supply source among the multiple resource supply sources based on the replenishment overhead rate of each of the resource supply sources.

[0015] The processing unit is configured to determine the replenishment cost of the target resource supply source based on the replenishment cost rate of the target resource supply source, and provide the first number of resources along with the replenishment cost from the target resource supply source to the second node.

[0016] Optionally, the supplementation cost rate includes the supplementation cost rate set for different ranges of the first number;

[0017] The second determining unit is used for:

[0018] For each of the resource supply sources, determine the first number range to which the first number belongs;

[0019] Determine the replenishment cost rate corresponding to the first number range;

[0020] Based on the first number and the replenishment cost rate, the replenishment cost of the resource supply source is determined;

[0021] The resource supply source with the lowest replenishment cost is determined as the target resource supply source.

[0022] Optionally, the first determining unit is used to:

[0023] In response to the resource replenishment request, obtain the node credential information provided by the first node;

[0024] Based on the node credential information, a resource supply source query request for the first node is sent to the target platform so that the target platform performs a first verification of the resource supply source query request. After the first verification is passed, multiple resource supply sources of the first node are found in a predetermined database based on the node credential information.

[0025] Based on the response feedback from the target platform, multiple resource supply sources corresponding to the first node are determined.

[0026] Optionally, the first verification of the resource supply source query request includes:

[0027] Determine the target signature and request timestamp carried in the resource supply source query request;

[0028] Perform the first sub-verification based on the target signature;

[0029] The second sub-verification is performed based on the time difference between the requested timestamp and the current time.

[0030] Optionally, the predetermined database includes candidate node credentials for multiple candidate nodes and candidate resource supply sources corresponding to each candidate node credential;

[0031] The step of searching for multiple resource supply sources for the first node in a predetermined database based on the node credential information includes:

[0032] For each candidate node, the candidate node credential is compared with the node credential information;

[0033] If it is determined that the candidate node credential is consistent with the node credential information, then the candidate resource supply source corresponding to the candidate node credential is determined as one of the multiple resource supply sources corresponding to the first node.

[0034] Optionally, the predetermined database is constructed in the following manner:

[0035] Obtain the candidate node identifier of multiple candidate nodes, as well as the supply source index, supply source type, and supply source name of the candidate resource supply source for each candidate node;

[0036] Based on the candidate node identifier, construct the candidate node credential for the candidate node;

[0037] For each candidate node, the candidate node credential identifier is determined as the keyword, and the supply source index, supply source type, and supply source name of the candidate resource supply source are determined as the values;

[0038] The predetermined database is constructed based on the mapping relationship between the multiple keywords and the multiple values.

[0039] Optionally, the second determining unit is used to:

[0040] Determine the number of resources for each of the resource supply sources;

[0041] For each of the resource supply sources, the replenishment cost of the resource supply source is determined based on the first number and the replenishment cost rate;

[0042] Based on the replenishment cost and the comparison between the number of resources and the first number, the matching score between the resource supply source and the resource replenishment request is determined;

[0043] The target resource supply source is determined from among the multiple resource supply sources based on the multiple matching scores.

[0044] Optionally, determining the target resource supply source among the multiple resource supply sources based on multiple matching scores includes:

[0045] Based on the multiple matching scores, the multiple resource supply sources are sorted.

[0046] The multiple resource supply sources in the sorting are grouped to obtain multiple supply source groups;

[0047] The target display strategy is determined from multiple candidate display strategies;

[0048] Based on multiple supply source groups, using the target display strategy, multiple resource supply sources are displayed on the first page in the order stated, so that the resource supply sources of different supply source groups are displayed in different ways;

[0049] Based on the first node's selection operation of multiple resource supply sources on the first page, the resource supply source selected by the first node is determined as the target resource supply source.

[0050] Optionally, determining the target display strategy from multiple candidate display strategies includes:

[0051] Obtain the node information of the first node;

[0052] Based on the node information, a first target node that meets the first condition in terms of node similarity with the first node is selected from multiple candidate nodes, and the first usage frequency of the first target node for each of the candidate display strategies is determined.

[0053] Based on the first usage frequency, a target display strategy is determined from among the multiple candidate display strategies.

[0054] Optionally, determining the target display strategy from multiple candidate display strategies includes:

[0055] Determine the location information of the first node;

[0056] Based on the location information, a second target node whose positional relationship with the first node satisfies the second condition is selected from multiple candidate nodes, and the second usage frequency of the second target node for each of the candidate display strategies is determined;

[0057] Based on the second usage frequency, a target display strategy is determined from among the multiple candidate display strategies.

[0058] Optionally, the processing unit includes:

[0059] The verification module is used to perform a second verification on the target resource supply source;

[0060] An interaction module is configured to, if the second verification is determined to be successful, provide the first number of resources, along with the replenishment overhead, from the target resource supply source to the second node.

[0061] Optionally, the verification module is used for:

[0062] Determine the source index, resource type, and number of resources corresponding to each resource type of the target resource source;

[0063] The supply source index is compared with a set of preset candidate supply source indices;

[0064] If it is determined that there exists a candidate supply source index that matches the supply source index, then the supply source resource type is compared with the resource type of the resource provided by the second node;

[0065] If it is determined that there exists a supply source resource type that matches the resource type, then the number of supply source resources of the supply source resource type that matches the resource type is compared with the first number;

[0066] If it is determined that the number of supply source resources is greater than or equal to the first number, the second verification is deemed successful.

[0067] Optionally, the resource interaction processing device further includes an update unit, the update unit being used for:

[0068] The resource status of the resource supply source is updated for the first time;

[0069] The occupancy certificates of the first number of resources are updated a second time.

[0070] According to one aspect of this disclosure, an electronic device is provided, including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the resource interaction processing method as described above.

[0071] According to one aspect of this disclosure, a computer-readable storage medium is provided, the storage medium storing a computer program that, when executed by a processor, implements the resource interaction processing method described above.

[0072] According to one aspect of this disclosure, a computer program product is provided, the computer program product including a computer program that is read and executed by a processor of a computer device, causing the computer device to perform the resource interaction processing method as described above.

[0073] In this embodiment of the disclosure, when a first node occupies the resources of a second node and generates a resource replenishment request, multiple resource supply sources corresponding to the first node are identified, and the replenishment cost rate of each resource supply source is obtained. Based on the replenishment cost rates of each resource supply source, a target resource supply source is determined from the multiple resource supply sources, and the replenishment cost of the target resource supply source is determined based on its replenishment cost rate. In this case, since the replenishment cost in resource interaction comprehensively considers that the first node can be replenished by one of the multiple resource supply sources, and the replenishment costs generated by the multiple resource supply sources will not be the same due to their different replenishment cost rates, the replenishment cost determined in this comprehensive manner can minimize the resource replenishment cost in resource interaction.

[0074] Other features and advantages of this disclosure will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the disclosure. The objectives and other advantages of this disclosure may be realized and obtained by means of the structures particularly pointed out in the description, claims and drawings. Attached Figure Description

[0075] The accompanying drawings are provided to further understand the technical solutions of this disclosure and constitute a part of the specification. They are used together with the embodiments of this disclosure to explain the technical solutions of this disclosure and do not constitute a limitation on the technical solutions of this disclosure.

[0076] Figure 1 This is a system architecture diagram of a resource interaction processing method applied according to an embodiment of the present disclosure;

[0077] Figures 2A-2E A schematic diagram is shown illustrating the application of the resource interaction processing method according to an embodiment of the present disclosure in a resource interaction scenario;

[0078] Figure 3 This is a flowchart of a resource interaction processing method according to an embodiment of the present disclosure;

[0079] Figures 4A-4B This is a schematic diagram illustrating the implementation process of a resource interaction processing method according to an embodiment of the present disclosure;

[0080] Figure 5 This is a flowchart illustrating the determination of multiple resource supply sources corresponding to a first node according to an embodiment of this disclosure;

[0081] Figure 6This is a flowchart illustrating the first verification of a resource supply source query request according to an embodiment of the present disclosure;

[0082] Figure 7 This is a flowchart illustrating the process of finding multiple resource supply sources for a first node in a predetermined database according to an embodiment of this disclosure;

[0083] Figure 8 This is a flowchart illustrating the construction of a predetermined database according to an embodiment of the present disclosure;

[0084] Figure 9 This is a schematic diagram of the structure of a predetermined database according to an embodiment of the present disclosure;

[0085] Figure 10 This is a flowchart illustrating the process of determining a target resource supply source among multiple resource supply sources according to an embodiment of the present disclosure;

[0086] Figure 11 This is a flowchart illustrating the determination of a target resource supply source among multiple resource supply sources according to another embodiment of this disclosure;

[0087] Figure 12 This is a flowchart illustrating the determination of a target resource supply source based on a matching score according to an embodiment of the present disclosure;

[0088] Figure 13 This is a flowchart illustrating the determination of a target display strategy from multiple candidate display strategies according to an embodiment of the present disclosure;

[0089] Figure 14 This is a flowchart illustrating the determination of a target display strategy from multiple candidate display strategies according to an embodiment of the present disclosure;

[0090] Figure 15 This is a flowchart illustrating how a first number of resources, along with replenishment overhead, are provided from a target resource supply source to a second node according to an embodiment of this disclosure.

[0091] Figure 16 This is a flowchart of a second verification of a target resource supply source according to an embodiment of the present disclosure;

[0092] Figure 17 This is a schematic diagram illustrating the implementation process of comparing a supply source index and multiple candidate supply source indices according to an embodiment of this disclosure;

[0093] Figure 18 This is a flowchart of information updating according to an embodiment of the present disclosure;

[0094] Figure 19 This is a flowchart of determining the second node and the first number according to an embodiment of the present disclosure;

[0095] Figure 20 This is a flowchart of determining a predetermined sequence according to another embodiment of the present disclosure;

[0096] Figure 21 This is a schematic diagram illustrating the implementation details of a resource interaction processing method according to an embodiment of the present disclosure;

[0097] Figure 22 This is a block diagram of a resource interaction processing apparatus according to an embodiment of the present disclosure;

[0098] Figure 23 This is a terminal structure diagram of a resource interaction processing method according to an embodiment of the present disclosure;

[0099] Figure 24 This is a server structure diagram of a resource interaction processing method according to an embodiment of the present disclosure. Detailed Implementation

[0100] To make the objectives, technical solutions, and advantages of this disclosure clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and are not intended to limit the scope of this disclosure.

[0101] Before providing a further detailed description of the embodiments of this disclosure, the terms and concepts used in these embodiments are explained, and they are subject to the following interpretations:

[0102] Artificial Intelligence (AI) is the theory, methods, technology, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that attempts to understand the essence of intelligence and produce a new kind of intelligent machine that can react in a way similar to human intelligence. AI studies the design principles and implementation methods of various intelligent machines, enabling them to have perception, reasoning, and decision-making capabilities. AI technology is a comprehensive discipline involving a wide range of fields, encompassing both hardware and software technologies. Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, pre-trained model technology, operating / interactive systems, and mechatronics. Pre-trained models, also known as large models or foundational models, can be widely applied to downstream tasks in various AI fields after fine-tuning. AI software technologies mainly include computer vision, speech processing, natural language processing, and machine learning / deep learning. With the research and advancement of artificial intelligence (AI) technology, AI is being studied and applied in various fields, such as smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, autonomous driving, drones, robots, smart healthcare, and smart customer service. It is believed that with the development of technology, AI will be applied in more fields and play an increasingly important role.

[0103] System architecture and scenario description of the embodiments disclosed herein

[0104] Figure 1 This is a system architecture diagram of the resource interaction processing method applied according to embodiments of the present disclosure. It includes an object terminal 140, an Internet 130, a gateway 120, a resource interaction processing server 110, a predetermined database 150, etc.

[0105] The target terminal 140 includes various forms such as desktop computers, laptops, PDAs (personal digital assistants), mobile phones, vehicle terminals, home theater terminals, and dedicated terminals. Furthermore, it can be a single device or a collection of multiple devices. The target terminal 140 can communicate with the Internet 130 via wired or wireless means to exchange data. The target terminal 140 has a resource interaction platform. This platform is used by the first node to trigger resource interaction requests and occupy resources from the second node. After occupation, the platform replenishes the resources of the second node, thus returning the occupied resources.

[0106] Resource interaction processing server 110 refers to a computer system that can provide certain services to object terminal 140. Compared with ordinary object terminal 140, resource interaction processing server 110 has higher requirements in terms of stability, security, and performance. Resource interaction processing server 110 can be a single high-performance computer in a network platform, a cluster of multiple high-performance computers, a portion of a single high-performance computer (e.g., a virtual machine), or a combination of portions of multiple high-performance computers (e.g., virtual machines). Resource interaction processing server 110 includes various types of services, and the implementation of each service of resource interaction processing server 110 is often associated with some intermediate databases or storage media. Resource interaction processing server 110 is used to receive resource occupancy requests from the first node, provide resources from other nodes to the first node, and replenish resources for nodes whose resources have been occupied by the first node according to the resource replenishment requests of the first node.

[0107] Gateway 120, also known as an internetwork connector or protocol converter, is a computer system or device that acts as a translator, enabling network interconnection at the transport layer. It bridges the gap between two systems using different communication protocols, data formats, languages, or even completely different architectures. Gateways can also provide filtering and security functions. Messages sent from object terminal 140 to resource interaction processing server 110 are forwarded to the corresponding server via gateway 120. Messages sent from resource interaction processing server 110 to object terminal 140 are also forwarded to the corresponding object terminal 140 via gateway 120.

[0108] The embodiments disclosed herein can be applied in various scenarios, such as Figures 2A-2E The resource interaction scenarios shown are as follows.

[0109] like Figure 2A As shown, when node 1 needs to obtain resources from other nodes, node 1 triggers a resource interaction process on the resource interaction platform. The resource interaction process page on the platform displays a prompt field: "Please enter the node identifier of the node from which you want to obtain resources, and the amount of resources." It also provides editing areas for entering the node identifier and the resource amount. Based on this, node 1 enters "K77" in the node identifier editing area and "1000" in the resource amount editing area, then clicks the "Confirm" button. This confirms that 1000 resources from the node with node identifier K77 will be exchanged with node 1.

[0110] like Figure 2BAs shown, when node 1 clicks the "Confirm" button, a prompt field will be displayed on the page: "1000 resources have been extracted from node K77 and resource occupancy certificate A has been generated." This indicates that 1000 resources have been issued from node K77 to node 1 according to node 1's request, and a resource occupancy certificate for the request has been created to record this resource interaction transaction.

[0111] like Figure 2C As shown, when Node 1 needs to replenish resources for a node that has been using resources, Node 1 will trigger a resource replenishment process in the resource interaction platform. At this time, the resource replenishment process page of the resource interaction platform will display a prompt field: "Please enter the node identifier of the node whose resources need to be replenished, and the number of resources to be replenished," and provide editing areas for entering the node identifier and editing areas for entering the number of resources to be replenished. Based on this, the node enters "K77" in the editing area for entering the node identifier and "1000" in the editing area for entering the number of resources to be replenished, and clicks the "Confirm" button. Based on this, it is determined that 1000 resources will be replenished to the node with the node identifier K77, thus returning the 1000 resources previously used.

[0112] like Figure 2D As shown, when node 1 clicks the "Confirm" button, the page displays the multiple resource sources available to node 1, along with the costs incurred when using resources from each source for resource replenishment. Specifically, replenishing resources using source 1 requires an additional 10 resources; replenishing resources using source 2 requires an additional 12 resources; replenishing resources using source 3 requires an additional 14 resources; replenishing resources using source 4 requires an additional 7 resources; replenishing resources using source 7 requires an additional 5 resources; and replenishing resources using source 5 requires an additional 20 resources. Based on this, node 1 selects source 7 as the resource provider for resource replenishment and clicks the "Confirm" button.

[0113] like Figure 2E As shown, when node 1 clicks the "Confirm" button, a prompt field will appear on the page: "Transferring 1000 resources along with overhead to node K77, please wait patiently...", indicating that 1000 resources are being extracted from supply source 7 and transferred to node K77 to replenish the resources previously occupied by node 1. Compared to other supply sources, choosing supply source 7 can reduce resource overhead.

[0114] General Description of Embodiments in this Disclosure

[0115] According to one embodiment of this disclosure, a resource interaction processing method is provided.

[0116] This resource interaction processing method is generally used in business scenarios where resource interactions are frequent, such as... Figures 2A-2E The resource interaction scenario is shown. This disclosure provides a scheme for selecting a resource supplier to replenish resources for nodes with resource occupancy based on the replenishment overhead rate of the resource supplier, which can reduce the resource replenishment overhead in resource interaction.

[0117] like Figure 3 As shown, a resource interaction processing method according to an embodiment of this disclosure may include:

[0118] Step 310: In response to the resource occupancy request from the first node to the second node, obtain a first number of resources from the second node and distribute them to the first node, and generate occupancy certificates for the first number of resources.

[0119] Step 320: In response to the resource replenishment request from the first node for the occupancy certificate, determine the multiple resource supply sources corresponding to the first node;

[0120] Step 330: Obtain the replenishment cost rate for each resource supply source;

[0121] Step 340: Based on the replenishment cost rate of each resource supply source, determine the target resource supply source among multiple resource supply sources;

[0122] Step 350: Based on the replenishment cost rate of the target resource supply source, determine the replenishment cost of the target resource supply source, and provide the first number of resources along with the replenishment cost from the target resource supply source to the second node.

[0123] Steps 310-350 are described in detail below.

[0124] In step 310, in response to the first node's resource occupancy request to the second node, a first number of resources are obtained from the second node and distributed to the first node, and occupancy certificates for the first number of resources are generated.

[0125] The first node refers to a user or object that performs an interactive operation in resource interaction. The first node can also refer to one of the cloud nodes in a cloud computing environment when multiple cloud nodes cooperate to perform a task.

[0126] A second node refers to a resource-providing organization or platform that is distinct from the first node in resource interaction. A second node can also refer to another cloud node, distinct from the first node, when multiple cloud nodes collaborate to execute tasks in cloud computing.

[0127] A resource occupancy request is a request generated by the first node when it wants to return the first number of resources to the second node after occupying the first number of resources from the second node.

[0128] The first number indicates the amount of resources that the first node will occupy.

[0129] Resources can refer to physical or virtual items capable of performing interactive operations. Resources can also refer to the processing power of each cloud node in cloud computing.

[0130] The occupancy certificate is used to prove the occupancy operation of the first node in written form, and also to indicate the first number of resources occupied by the first node in the second node, the occupancy time, and other specific information.

[0131] In this specific implementation, when the first node encounters resource shortages while performing certain tasks or resource interaction transactions, it requests the server to occupy resources from other nodes (such as the second node) to compensate for its own resource deficiency. Based on this, the server first receives the first node's resource occupation request from the second node. Then, with the second node's permission, the server obtains a first number of resources from the second node and distributes them to the first node, ensuring that the first node has sufficient resources to perform related tasks or transactions. Simultaneously, to record the first node's resource occupation operation, the server also records the time the first node sent the request, the object of the resource occupation (the second node), and the number of resources occupied, generating an occupation certificate for the first number of resources.

[0132] In step 320, in response to the resource replenishment request from the first node for the occupancy certificate, multiple resource supply sources corresponding to the first node are determined.

[0133] The resource supply source refers to the relevant institution or resource pool associated with the first node that provides resources.

[0134] To save space, the specific implementation process of determining the multiple resource supply sources corresponding to the first node in the embodiments of this disclosure will be described in detail below, and will not be repeated here.

[0135] In step 330, the replenishment cost rate for each resource supply source is obtained.

[0136] The replenishment cost rate is used to indicate the cost incurred when a resource supply source provides a certain number of units of resources for replenishment.

[0137] In this specific implementation, the replenishment cost rate of each resource supply source is determined by the relevant resource management platform of the resource supply source. Therefore, with authorization, one can request the replenishment cost rate of each resource supply source from each resource management platform, or request and query the replenishment cost rates of resource supply sources published by each resource management platform from a trusted third-party platform.

[0138] In step 340, the target resource supply source is determined from multiple resource supply sources based on the replenishment cost rate of each resource supply source.

[0139] The target resource supply source refers to the resource supply source that is ultimately selected and needs to provide resources when performing resource replenishment operations.

[0140] To save space, the specific implementation process of determining the target resource supply source among multiple resource supply sources based on the replenishment overhead rate of each resource supply source in this embodiment will be described in detail below, and will not be repeated here.

[0141] like Figure 4A As shown, on the target platform, the cost of resource replenishment varies depending on the resource source used. Specifically, when resource replenishment is achieved using resource sources A, C, and D, each resource extraction incurs an additional cost of 0.01% of the extracted resources. However, when resource replenishment is achieved using resource source B, no additional resource cost is incurred for each extraction.

[0142] In step 350, based on the replenishment cost rate of the target resource supply source, the replenishment cost of the target resource supply source is determined, and a first number of resources along with the replenishment cost are provided from the target resource supply source to the second node.

[0143] The replenishment cost is used to indicate the amount of cost incurred when the target resource supply source provides a first number of resources to replenish the resource.

[0144] In the specific implementation of this embodiment, firstly, the replenishment cost rate of the target resource supply source is multiplied by a first number to obtain the replenishment cost of the target resource supply source; then, the first number of resources along with the replenishment cost are provided from the target resource supply source to the second node.

[0145] like Figure 4BAs shown, in a specific example, the resource interaction processing method is applied to a payment scenario. Specifically, when the first node needs to perform a resource replenishment operation, the object terminal first displays the resource occupancy vouchers generated by the previous resource occupancy operations of the first node. Among them, the resources occupied by occupancy voucher 1 and occupancy voucher 2 are not replenished, while the resources occupied by occupancy voucher 3 have been replenished. At this time, the first node selects to replenish the resources for occupancy voucher 1. Next, the object terminal displays a page for the resource replenishment process for occupancy voucher 1. The first node first enters the number of resources to be replenished this time as "200" in the editing area and selects one-time resource replenishment. In addition, the page also prompts "Using supply source 1 for replenishment has the lowest cost". At this time, the first node clicks the "Confirm Replenishment" button and enters the page for selecting resource supply sources. According to the prompt fields, the first node selects "Resource Supply Source 1" from resource supply source 1, resource supply source 2, resource supply source 3 and resource supply source 4 to execute the resource replenishment process. Finally, the page will display "Resource replenishment complete!", with 200 resources replenished and zero replenishment cost. This achieves the goal of replenishing resources occupied by the previous resource operation without incurring replenishment costs, thus saving resources of the first node.

[0146] In another specific example, the resource interaction processing method is applied to a cloud node cooperation scenario in cloud computing. Specifically, when the first node (cloud node A with two cores) is executing a task and finds that its processing power is insufficient for the task, the first node requests a portion of the processing power of the second node (cloud node B with four cores). Based on this, the second node provides some of its processing power (one of its four cores) to the first node, making the first node a cloud node with three cores, thus enabling it to execute the task normally. After cloud node A completes the above task, it will replenish the occupied core to the second node. At the same time, to compensate for the overhead, cloud node A will also provide a portion of its own processing power as compensation for the overhead to the second node. Since cloud node A has various processing capabilities, different processing capabilities are provided by different resource providers. Based on this, according to the compensation overhead rate corresponding to different processing capabilities, a target resource provider is determined to provide processing power (resources). The target resource provider then provides the occupied core and the additional processing power to the second node.

[0147] Through steps 310-350 above, in this embodiment of the present disclosure, when a first node occupies the resources of a second node and generates a resource replenishment request, multiple resource supply sources corresponding to the first node are identified, the replenishment cost rate of each resource supply source is obtained, a target resource supply source is determined among the multiple resource supply sources based on the replenishment cost rate of each resource supply source, and the replenishment cost of the target resource supply source is determined based on the replenishment cost rate of the target resource supply source. In this case, since the replenishment cost in resource interaction comprehensively considers that the first node can be replenished by one of the multiple resource supply sources, and the replenishment cost generated by the multiple resource supply sources will not be the same due to different replenishment cost rates, the replenishment cost determined in this comprehensive manner can minimize the resource replenishment cost in resource interaction.

[0148] The above is a general description of steps 310-350. Since steps 310 and 330 have been detailed in the above general description, the specific implementations of steps 320, 340 and 350 will be described in detail below.

[0149] Detailed description of step 320

[0150] In step 320, in response to the resource replenishment request from the first node for the occupancy certificate, multiple resource supply sources corresponding to the first node are determined.

[0151] Please refer to Figure 5 In some embodiments, step 320 specifically includes, but is not limited to, the following steps 510-530:

[0152] Step 510: In response to the resource replenishment request, obtain the node credential information provided by the first node;

[0153] Step 520: Based on the node credential information, send a resource supply source query request for the first node to the target platform so that the target platform can perform the first verification of the resource supply source query request. After the first verification is passed, search for multiple resource supply sources of the first node in the predetermined database based on the node credential information.

[0154] Step 530: Based on the response feedback from the target platform, determine the multiple resource supply sources corresponding to the first node.

[0155] Steps 510-530 are described in detail below.

[0156] In step 510, in response to the resource replenishment request, the node credential information provided by the first node is obtained.

[0157] Node credentials are used to indicate the proof provided by the first node in response to the resource replenishment request. Node credentials include, but are not limited to, the node identifier or node index provided by the first node, zero-knowledge proofs generated based on the node identifier or node index, etc.

[0158] In this specific implementation, when the first node initiates a resource replenishment request, it provides information such as a node identifier or node index to prove its identity, and zero-knowledge proofs generated based on the node identifier or node index, as node credentials. Based on this, with authorization, the server, in response to the resource replenishment request, obtains the node credentials provided by the first node from the various information provided by the first node.

[0159] In step 520, based on the node credential information, a resource supply source query request for the first node is sent to the target platform so that the target platform can perform a first verification of the resource supply source query request. After the first verification is passed, multiple resource supply sources for the first node are found in the predetermined database based on the node credential information.

[0160] The target platform refers to the application platform on which the first node executes the resource replenishment request.

[0161] The resource supply source query request is used to trigger the process of finding the resource supply sources associated with the first node on the target platform.

[0162] The first verification is used to verify the time validity and source validity of the resource supply source query request.

[0163] The pre-defined database is used to store and record specific information about the multiple resource supply sources associated with each node.

[0164] In this specific implementation, firstly, a resource supply source query request for the first node is generated based on the node credential information. Next, the resource supply source query request for the first node is sent to the target platform to query the resource supply sources associated with the first node.

[0165] Furthermore, when the target platform receives a resource supply source query request, it first verifies the time validity and source legitimacy of the request. Only after the first verification is passed will it call the pre-defined database to find multiple resource supply sources for the first node and generate a response based on the search results.

[0166] To save space, the specific process of performing the first verification of the resource supply source query request and the specific process of finding multiple resource supply sources of the first node in the predetermined database based on the node credential information in this embodiment of the present disclosure will be described in detail below, and will not be repeated here.

[0167] In step 530, based on the response feedback from the target platform, multiple resource supply sources corresponding to the first node are determined.

[0168] The response feedback is used to indicate the search results of the resource supply source corresponding to the first node found by the target platform.

[0169] In this specific implementation, after the target platform locates multiple resource supply sources for the first node in a predetermined database and generates a response based on the search results, the target platform returns the response. Based on this, the server parses out the multiple resource supply sources corresponding to the first node according to the received response.

[0170] The advantage of this embodiment is that after receiving a resource replenishment request, the server will generate a query request based on the node credential information provided by the first node, and request the resource supply source associated with the first node in the target platform based on the query request, so as to find the target resource supply source as the supply source to provide the replenished resources, thereby achieving the effect of resource replenishment.

[0171] Please refer to Figure 6 In some embodiments, the process of performing a first verification of a resource supply source query request specifically includes, but is not limited to, the following steps 610-630:

[0172] Step 610: Determine the target signature and request timestamp carried in the resource supply source query request;

[0173] Step 620: Perform the first sub-verification based on the target signature;

[0174] Step 630: Perform a second sub-verification based on the time difference between the request timestamp and the current time.

[0175] Steps 610-630 are described in detail below.

[0176] In step 610, the target signature and request timestamp carried in the resource supply source query request are determined.

[0177] The target signature is used to instruct the server that generated the resource supply source query request to sign the resource supply source query request using its own target private key.

[0178] The request timestamp is used to indicate the point in time when the server generated the resource provider query request.

[0179] In a specific implementation of this embodiment, with authorization, after receiving a resource supply source query request, the target platform parses the resource supply source query request to obtain the target signature and request timestamp carried in the resource supply source query request.

[0180] In step 620, the first sub-verification is performed based on the target signature.

[0181] The first sub-verification is used to verify the source legitimacy of the resource supply source query request.

[0182] In this specific implementation, firstly, with authorization, the target public key, publicly available from the server sending the resource supply source query request, is obtained from the server sending the request or from a trusted third-party platform. The target public key and the aforementioned target private key form a key pair. Next, the target signature is de-signed using the target public key to obtain the de-signing result. If the de-signing result indicates successful de-signing using the target public key, it means the target signature was encrypted using the target private key, the resource supply source query request originated from the server, and the source is legitimate; therefore, the first sub-verification is successful. If the de-signing result indicates failure to de-sign using the target public key, it means the target signature was not encrypted using the target private key, the resource supply source query request did not originate from the server, and the source is illegitimate; therefore, the first sub-verification is unsuccessful.

[0183] In step 630, a second sub-verification is performed based on the time difference between the request timestamp and the current time.

[0184] The second sub-verification is used to verify the time validity of resource supply source query requests.

[0185] The current time indicates the current point in time.

[0186] The time difference is used to indicate how close or distant the point in time is between the time when the resource supply source query request was generated and the current time.

[0187] In this specific implementation, firstly, the time difference between the request timestamp and the current time is calculated. Next, it is determined whether the time difference is less than a preset time value. If the time difference is less than the preset time value, it indicates that the resource supply source query request was generated relatively recently and is valid; therefore, the second sub-verification is considered successful. If the time difference is greater than or equal to the preset time value, it indicates that the resource supply source query request was generated relatively late and has expired; therefore, the second sub-verification is considered unsuccessful. Furthermore, if both the first and second sub-verifications pass, the first verification is considered successful; if either the first or second sub-verification fails, the first verification is considered unsuccessful.

[0188] The advantages of this embodiment are that it considers verifying the legitimacy of the source and the validity of the time of the resource supply source query request. It verifies whether the resource supply source query request originates from the server based on the designing of the signature carried in the request, thereby improving the source security of the resource supply source query request. It also verifies the validity of the time of the resource supply source query request based on the difference between the timestamp of the request and the current time, thereby improving the timeliness of the request. This enhances the comprehensiveness and accuracy of the verification of resource supply source query requests and reduces the risk of information leakage caused by malicious sending of such requests by other parties.

[0189] In this embodiment of the disclosure, the predetermined database includes candidate node credentials for multiple candidate nodes and candidate resource supply sources corresponding to each candidate node credential.

[0190] Candidate nodes are used to indicate nodes that can perform various resource interaction activities or execute various cloud services on the target platform. Candidate nodes include first nodes and second nodes.

[0191] Candidate node credentials refer to information used to indicate the identity and characteristics of each candidate node.

[0192] Candidate resource supply sources refer to the resource supply sources associated with each candidate node on the target platform.

[0193] Please refer to Figure 7 In some embodiments, the process of finding multiple resource supply sources of the first node in a predetermined database based on node credential information specifically includes, but is not limited to, the following steps 710-720:

[0194] Step 710: For each candidate node, compare the candidate node credentials with the node credential information;

[0195] Step 720: If it is determined that the candidate node certificate is consistent with the node certificate information, then the candidate resource supply source corresponding to the candidate node certificate is determined as one of the multiple resource supply sources corresponding to the first node.

[0196] Steps 710-720 are described in detail below.

[0197] In step 710, for each candidate node, the candidate node credentials and node credential information are compared.

[0198] In the specific implementation of this embodiment, for each candidate node, the candidate node credential and the node credential information are compared to determine whether the candidate node credential and the node credential information are consistent.

[0199] In step 720, if it is determined that the candidate node credential is consistent with the node credential information, then the candidate resource supply source corresponding to the candidate node credential is determined as one of the multiple resource supply sources corresponding to the first node.

[0200] In this specific implementation, if the candidate node credential of a candidate node is determined to be consistent with the node credential information, it indicates that the candidate node is the first node. Based on this, the candidate resource supply sources corresponding to the candidate node credential of the candidate node are extracted from a predetermined database, and the candidate resource supply sources corresponding to the candidate node credential are determined as multiple resource supply sources corresponding to the first node.

[0201] The advantage of this embodiment is that, based on the candidate node credentials of each candidate node and the comparison with the node credential information, the first node is found in the predetermined database, and the candidate resource supply source corresponding to the first node is extracted from the predetermined database, which can improve the search efficiency and accuracy of the resource supply source of the first node.

[0202] Please refer to Figure 8 In some embodiments, the pre-defined database is constructed in the following manner:

[0203] Step 810: Obtain the candidate node identifiers of multiple candidate nodes, as well as the supply source index, supply source type, and supply source name of the candidate resource supply source for each candidate node;

[0204] Step 820: Construct candidate node credentials for candidate nodes based on candidate node identifiers;

[0205] Step 830: For each candidate node, determine the candidate node credential identifier as the key, and determine the candidate resource supply source index, supply source type, and supply source name as the value;

[0206] Step 840: Construct a predetermined database based on the mapping relationship between multiple keywords and multiple values.

[0207] Steps 810-840 are described in detail below.

[0208] In step 810, the candidate node identifiers of multiple candidate nodes, as well as the supply source index, supply source type, and supply source name of the candidate resource supply source for each candidate node are obtained.

[0209] Candidate node identifiers are used to distinguish different candidate nodes, uniquely marking each candidate node. Candidate node identifiers can consist of letters, numbers, or a combination of letters and numbers.

[0210] The supply source index is used to uniquely identify each candidate resource supply source.

[0211] The supply source type indicates the category to which each candidate resource supply source belongs. Different supply source types result in different resources that the candidate resource supply sources can provide.

[0212] The supply source name is used to indicate the specific name of each candidate resource supply source.

[0213] In the specific implementation of this embodiment, after obtaining authorization from each candidate node, the candidate node identifiers of multiple candidate nodes are obtained, and the supply source index, supply source type, and supply source name of each candidate resource supply source associated with each candidate node on the target platform are obtained.

[0214] In step 820, candidate node credentials for candidate nodes are constructed based on candidate node identifiers.

[0215] In a specific implementation of this embodiment, the candidate node identifier can be directly used as the candidate node credential. Alternatively, to improve the privacy of candidate node information, a zero-knowledge circuit can be used. The candidate node identifier is input into the zero-knowledge circuit, and the zero-knowledge proof output by the zero-knowledge circuit is used as the candidate node credential.

[0216] In step 830, for each candidate node, the candidate node credential identifier is determined as the key, and the candidate resource supply source index, supply source type, and supply source name are determined as values.

[0217] In the specific implementation of this embodiment, for each candidate node, the candidate node credential identifier is first determined as the key; then the supply source index, supply source type, and supply source name of each candidate resource supply source are concatenated into a string, and the string is used as the value value.

[0218] In step 840, a predetermined database is constructed based on the mapping relationship between multiple keywords and multiple values.

[0219] In the specific implementation of this embodiment, the mapping relationship between each keyword and each value is recorded as a data entry, and multiple data entries are stored in the same database to obtain a predetermined database.

[0220] like Figure 9As shown, the pre-defined database records candidate node credentials (keys) for six candidate nodes and related information (values) for candidate resource suppliers. Specifically, the candidate node credential for node D is Qw13afg, and the corresponding information for the candidate resource suppliers includes the supplier index, supplier type, and supplier name for resource supplier 1, resource supplier 5, and resource supplier 7. The candidate node credential for node F is Kqa589, and the corresponding information for the candidate resource suppliers includes the supplier index, supplier type, and supplier name for resource supplier 2, resource supplier 3, and resource supplier 6. The candidate node credential for node C is Sqa158, and the corresponding information for the candidate resource suppliers includes the supplier index, supplier type, and supplier name for resource supplier 3, resource supplier 1, and resource supplier 4. The candidate node credential for node M is Pg12a23, and the corresponding information for the candidate resource supplier includes the supplier index, supplier type, and supplier name for resource supplier 1. The candidate node credential for node N is Pg12a23, and the relevant information for the corresponding candidate resource suppliers includes the supplier index, supplier type, and supplier name for resource supplier 2, resource supplier 3, and resource supplier 5. The candidate node credential for node P is Oqe893a, and the relevant information for the corresponding candidate resource suppliers includes the supplier index, supplier type, and supplier name for resource supplier 1 and resource supplier 8.

[0221] The advantage of this embodiment is that it introduces the concept of key-value pairs, using the candidate node credentials constructed based on the candidate node identifiers of each candidate node as the key, and constructing the supply source index, supply source type, and supply source name of the candidate resource supply source associated with each candidate node as the value. Based on the mapping relationship of multiple keys and multiple values, a predetermined database is constructed, which can improve the rationality of information storage in the predetermined database and also improve the efficiency of information retrieval.

[0222] Detailed description of step 340

[0223] In step 340, the target resource supply source is determined from multiple resource supply sources based on the replenishment cost rate of each resource supply source.

[0224] In the specific implementation of this embodiment, since the replenishment overhead rates of different resource supply sources often differ, in order to reduce replenishment overhead, the resource supply source with the smallest replenishment overhead among multiple resource supply sources is often selected as the target resource supply source based on the replenishment overhead rate.

[0225] Please refer to Figure 10In some embodiments, the supplementary overhead rate includes a supplementary overhead rate set for different ranges of the first number, and step 340 specifically includes, but is not limited to, the following steps 1010-1040:

[0226] Step 1010: For each resource supply source, determine the range of the first number to which the first number belongs;

[0227] Step 1020: Determine the replenishment cost rate corresponding to the first number range;

[0228] Step 1030: Based on the first number and the replenishment cost rate, determine the replenishment cost of the resource supply source;

[0229] Step 1040: Determine the resource supply source with the lowest replenishment cost as the target resource supply source.

[0230] Steps 1010-1040 are described in detail below.

[0231] In step 1010, for each resource supply source, a first number range to which the first number belongs is determined.

[0232] The first number range is used to indicate the specific interval in which the first number is located.

[0233] In a specific implementation of this embodiment, for each resource supply source, with authorization, multiple first number ranges of the resource supply source and the replenishment cost rate corresponding to each first number range are obtained. Then, based on the first number corresponding to the resource replenishment request, the first number range in which the first number is located is determined from the multiple first number ranges, and the first number range in which the first number is located is taken as the target range.

[0234] In step 1020, the replenishment cost rate corresponding to the first number range is determined.

[0235] In the specific implementation of this embodiment, among the supplementary overhead rates corresponding to each first number range, the supplementary overhead rate corresponding to the first number range (target range) where the first number is located is found, and the supplementary overhead rate corresponding to the found first number range is used as the target overhead rate.

[0236] In step 1030, the replenishment cost of the resource supply source is determined based on the first number and the replenishment cost rate.

[0237] In the specific implementation of this embodiment, for each resource supply source, the first number is multiplied by the replenishment cost rate (target cost rate) to obtain the replenishment cost of the resource supply source.

[0238] In step 1040, the resource supply source with the lowest replenishment cost is determined as the target resource supply source.

[0239] In the specific implementation of this embodiment, firstly, the replenishment costs of each resource supply source are compared. Then, among the multiple resource supply sources, the resource supply source with the lowest replenishment cost is determined as the target resource supply source.

[0240] For example, regarding resource supply sources, when the first number is between 0 and 100, the replenishment expenditure rate is 0.01%; when the first number is between 101 and 1000, the replenishment expenditure rate is 0.02%; and when the first number is between 1001 and 10000, the replenishment expenditure rate is 0.03%. Based on this, when the first number is 5000, the range of the first number is 1001 to 10000, and the replenishment expenditure rate is 0.03%.

[0241] The advantage of this embodiment is that it takes into account the fact that the replenishment cost rate will be different under different first number ranges. It can determine the replenishment cost rate to be used by each resource supply source according to the number range in which the first number is located, and determine the replenishment cost of each resource supply source based on the first number and the replenishment cost rate. The resource supply source with the minimum replenishment cost is determined as the target resource supply source, which can meet the requirement of minimizing the replenishment cost as much as possible.

[0242] In addition to the above-mentioned automated search and calculation of the resource supply source with the minimum replenishment cost to determine the target resource supply source, this disclosure also provides a scheme for determining the target resource supply source based on a custom selection of the first node, which improves the flexibility of the selection of the target resource supply source.

[0243] Please refer to Figure 11 In some other embodiments, step 340 specifically includes, but is not limited to, the following steps 1110-1140:

[0244] Step 1110: Determine the number of resources for each resource supply source;

[0245] Step 1120: For each resource supply source, determine the replenishment cost of the resource supply source based on the first number and the replenishment cost rate;

[0246] Step 1130: Based on the replenishment cost and the comparison between the number of resources and the first number, determine the resource supply source and the matching score with the resource replenishment request;

[0247] Step 1140: Based on multiple matching scores, determine the target resource supply source among multiple resource supply sources.

[0248] Steps 1110-1140 are described in detail below.

[0249] In step 1110, the number of resources for each resource supply source is determined.

[0250] The resource number is used to indicate the total number of resources from each resource supply source.

[0251] In the specific implementation of this embodiment, with authorization, the total number of resources possessed by each resource supply source is obtained, thus obtaining the resource quantity of each resource supply source.

[0252] In step 1120, for each resource supply source, the replenishment cost of the resource supply source is determined based on the first number and the replenishment cost rate.

[0253] In the specific implementation of this embodiment, the specific implementation process of step 1120 is similar to that of step 1030 described above. To save space, it will not be described again.

[0254] In step 1130, based on the replenishment cost and the comparison between the number of resources and the first number, the resource supply source and the matching score with the resource replenishment request are determined.

[0255] The matching score indicates how well each resource provider matches the resource replenishment request. A higher matching score indicates that the resource provider is more suitable as a provider for the first number of resources required by the resource replenishment request.

[0256] In this specific implementation, firstly, for each resource supply source, the number of resources is compared with a first number. Next, for resource supply sources whose number of resources is greater than or equal to the first number, different matching scores are assigned to each resource supply source based on the magnitude of the replenishment cost. Specifically, the replenishment cost is input to a preset function, and the output of the preset function is used as the matching score between the resource supply source and the resource replenishment request. The preset function is a decreasing function with the replenishment cost as the independent variable and the matching score as the dependent variable. Furthermore, for resource supply sources whose number of resources is less than the first number, the matching score between the resource supply source and the resource replenishment request is set to zero.

[0257] In step 1140, a target resource supply source is determined from multiple resource supply sources based on multiple matching scores.

[0258] In the specific implementation of this embodiment, the resource supply source with the larger matching score is selected as the target resource supply source based on multiple matching scores.

[0259] The advantage of this embodiment is that it determines the target resource supply source based on the custom selection of the first node, determines the matching score of each resource supply source according to the different compensation costs, and selects the resource supply source with the larger matching score as the target resource supply source according to the different matching scores, thereby improving the flexibility of the selection of the target resource supply source.

[0260] In addition to selecting the resource supply source with the higher matching score as the target resource supply source, this solution also provides a method to determine the target resource supply source based on the custom selection of the first node, which increases the freedom of the target resource supply source.

[0261] Please refer to Figure 12 In some embodiments, step 1140 specifically includes, but is not limited to, the following steps 1210-1250:

[0262] Step 1210: Sort multiple resource supply sources based on multiple matching scores;

[0263] Step 1220: Group the multiple resource supply sources in the sorting to obtain multiple supply source groups;

[0264] Step 1230: Determine the target display strategy from multiple candidate display strategies;

[0265] Step 1240: Based on multiple supply source groups, use the target display strategy to display multiple resource supply sources in sorted order on the first page, so that the resource supply sources of different supply source groups are displayed differently;

[0266] Step 1250: Based on the selection operation of multiple resource supply sources by the first node on the first page, determine the target resource supply source by the resource supply source selected by the first node.

[0267] Steps 1210-1250 are described in detail below.

[0268] In step 1210, multiple resource supply sources are sorted based on multiple matching scores.

[0269] In this specific implementation, the resource supply sources are sorted in descending order of their matching scores to obtain a ranking of the resource supply sources. Specifically, resource supply sources ranked earlier in the list have higher matching scores, while those ranked later have lower matching scores.

[0270] In step 1220, the multiple resource supply sources in the sorting are grouped to obtain multiple supply source groups.

[0271] A supply source group refers to a group of multiple resource supply sources that are adjacent in the sorting.

[0272] In this specific implementation, for multiple resource supply sources in the sorting, the multiple resource supply sources are grouped in an equidistant grouping manner, so that multiple adjacent resource supply sources are grouped in the same group, forming multiple supply source groups. For example, when the sorting is [resource supply source 8, resource supply source 3, resource supply source 2, resource supply source 6, resource supply source 4, resource supply source 7, resource supply source 5, resource supply source 1], then the supply source groups can be [resource supply source 8, resource supply source 3], [resource supply source 2, resource supply source 6], [resource supply source 4, resource supply source 7], [resource supply source 5, resource supply source 1].

[0273] In step 1230, a target display strategy is determined from multiple candidate display strategies.

[0274] Candidate display strategies are used to indicate how each resource supply source is displayed.

[0275] Among them, the candidate display strategy is used to indicate the display color of the resource supply sources in each supply source group when the resource supply sources are distinguished by color; it is also used to indicate the display graphics of the resource supply sources in each supply source group when the resource supply sources are distinguished by graphics, etc.

[0276] For example, the candidate display strategy indicates that each resource provider is distinguished by color: the resource providers of the group with the highest matching score are displayed in red; the resource providers of the group with the second highest matching score are displayed in orange; the resource providers of the group with the lowest matching score are displayed in green, and so on.

[0277] To save space, the determination of the target display strategy from multiple candidate display strategies in this disclosure will be described in detail below. It will not be repeated here.

[0278] In step 1240, based on multiple supply source groups, a target display strategy is used to display multiple resource supply sources in sorted order on the first page, so that the resource supply sources of different supply source groups are displayed differently.

[0279] In this specific implementation, firstly, the display method of each resource source in each supply source group is determined according to the target display strategy. Then, on the first page, the resource sources of each supply source group are displayed in a predetermined display method according to their sorting order. The display methods of resource sources in different supply source groups are different, while the display methods of resource sources within the same supply source group are the same.

[0280] In step 1250, based on the first node's selection operation of multiple resource supply sources on the first page, the resource supply source selected by the first node is determined as the target resource supply source.

[0281] In this specific implementation, when multiple resource providers are displayed on the first page according to a sorted order and a predetermined display method, the first node can determine the compatibility between each resource provider and the resource replenishment request on the first page. Based on this, the first node will select one of the multiple resource providers on the first page to provide the resources required for the resource replenishment request through the selected resource provider. Based on this, the server can determine the target resource provider based on the first node's selection operation of multiple resource providers on the first page.

[0282] The advantage of this embodiment is that it determines the target resource supply source based on the custom selection of the first node, determines the matching score of each resource supply source according to the different compensation costs, and displays each resource supply source in different ways according to the different matching scores. This allows the first node to select the resource supply source with the smaller compensation cost and the higher matching score as the target resource supply source, thereby improving the flexibility and freedom of the selection of the target resource supply source.

[0283] Please refer to Figure 13 In some embodiments, step 1230 specifically includes, but is not limited to, the following steps 1310-1330:

[0284] Step 1310: Obtain the node information of the first node;

[0285] Step 1320: Based on node information, select the first target node from multiple candidate nodes whose node similarity with the first node meets the first condition, and determine the first usage frequency of the first target node for each candidate display strategy.

[0286] Step 1330: Based on the first usage frequency, determine the target display strategy from multiple candidate display strategies.

[0287] Steps 1310-1330 are described in detail below.

[0288] In step 1310, the node information of the first node is obtained.

[0289] Node information is used to indicate the node characteristics of the first node. Node information includes, but is not limited to, node attribute characteristics such as the node type and node creation time of the first node.

[0290] In this specific implementation, since the node information of each candidate node is often recorded in the server's background log, the node information of the first node is obtained from the server's background log with authorization.

[0291] In step 1320, based on node information, a first target node that meets the first condition in terms of node similarity with the first node is selected from multiple candidate nodes, and the first usage frequency of the first target node for each candidate display strategy is determined.

[0292] Node similarity is used to indicate the degree of similarity between the node features of the first node and the candidate nodes.

[0293] The first condition is used to measure whether the similarity of the node features between the first node and the candidate nodes meets the requirements.

[0294] The first usage frequency is used to indicate the number of times the first target node is selected and used for each candidate display strategy within a fixed time range.

[0295] In this specific implementation, firstly, a similarity algorithm is used to calculate the similarity between the node information of each candidate node and the node information of the first node, obtaining the node similarity between each candidate node and the first node. Next, based on the node similarity, nodes whose node similarity meets a first condition are selected from the candidate nodes as the first target nodes, wherein the node similarity of the first target nodes is not less than a predetermined similarity. Further, with authorization, the first usage frequency of each first target node for each candidate display strategy is obtained from the server's log information.

[0296] In step 1330, a target display strategy is determined from multiple candidate display strategies based on the first usage frequency.

[0297] In the specific implementation of this embodiment, firstly, for each candidate display strategy, the first usage frequency of all first target nodes for the candidate display strategy is accumulated to obtain the first total usage frequency. Then, the candidate display strategy with the largest first total usage frequency is selected as the target display strategy; or, one of the candidate display strategies with a first total usage frequency greater than a preset threshold is randomly selected as the target display strategy.

[0298] The advantage of this embodiment is that, based on the similarity of candidate nodes and the first node in node features, candidate nodes whose node similarity meets the first condition are taken as first target nodes, and based on the frequency of use of each candidate display strategy by each first target node, the candidate display strategy with higher usage frequency is taken as the target display strategy. It can determine the strategy preference of the first node more quickly and accurately by taking the display strategies selected by other candidate nodes as a reference based on the node features of the first node, thereby improving the accuracy of strategy selection.

[0299] Please refer to Figure 14 In some embodiments, step 1230 specifically includes, but is not limited to, the following steps 1410-1430:

[0300] Step 1410: Determine the location information of the first node;

[0301] Step 1420: Based on location information, select a second target node from multiple candidate nodes whose positional relationship with the first node satisfies the second condition, and determine the second usage frequency of the second target node for each candidate display strategy;

[0302] Step 1430: Based on the second usage frequency, determine the target display strategy from multiple candidate display strategies.

[0303] Steps 1410-1430 are described in detail below.

[0304] In step 1410, the location information of the first node is determined.

[0305] Location information is used to indicate the geographical location of the first node, or to indicate the cloud space to which the first node belongs in the network environment.

[0306] In this specific implementation, step 1410 is similar to step 1310 described above. The difference lies in the information obtained. To save space, it will not be repeated here.

[0307] In step 1420, based on location information, a second target node whose positional relationship with the first node satisfies the second condition is selected from multiple candidate nodes, and the second usage frequency of the second target node for each candidate display strategy is determined.

[0308] Positional relationships are used to indicate the distance between the first node and the candidate nodes.

[0309] The second condition is used to measure whether the distance between the first node and the candidate node meets the requirements.

[0310] The second usage frequency is used to indicate the number of times the second target node is selected and used within a fixed time range for each candidate display strategy.

[0311] In the specific implementation of this embodiment, the specific implementation process of step 1420 is similar to that of step 1320 described above. To save space, it will not be described again.

[0312] In step 1430, a target display strategy is determined from multiple candidate display strategies based on the second usage frequency.

[0313] In the specific implementation of this embodiment, the specific implementation process of step 1430 is similar to that of step 1330 described above. To save space, it will not be described again.

[0314] The advantage of this embodiment is that, based on the degree of correlation (distance) between the candidate node and the first node in terms of location, the candidate node whose distance meets the second condition is selected as the second target node, and based on the frequency of use of each candidate display strategy by each second target node, the candidate display strategy with higher usage frequency is selected as the target display strategy. It can determine the strategy preference of the first node more quickly and accurately by taking the display strategy selected by other candidate nodes as a reference based on the location of the first node, thereby improving the accuracy of strategy selection.

[0315] Detailed description of step 350

[0316] In step 350, based on the replenishment cost rate of the target resource supply source, the replenishment cost of the target resource supply source is determined, and a first number of resources along with the replenishment cost are provided from the target resource supply source to the second node.

[0317] When the first node selects a resource supply source, the target resource supply source determined by the first node may not be one that reduces the replenishment cost, which would prevent effective reduction of resource costs. Therefore, this disclosure provides a scheme to verify the target resource supply source before resource replenishment, enabling the resource replenishment operation to be performed only after successful verification, thereby increasing the probability of reducing replenishment costs during resource replenishment.

[0318] Please refer to Figure 15 In some embodiments, the process of providing a first number of resources, along with replenishment costs, from the target resource supply source to the second node specifically includes, but is not limited to, the following steps 1510-1520:

[0319] Step 1510: Conduct a second verification of the target resource supply source;

[0320] Step 1520: If the second verification is successful, provide the first number of resources along with replenishment costs from the target resource supply source to the second node.

[0321] Steps 1510-1520 are described in detail below.

[0322] In step 1510, a second verification is performed on the target resource supply source.

[0323] The second verification is used to verify whether the target resource supply source is a resource supply source that can reduce the replenishment cost.

[0324] To save space, the specific process of performing a second verification of the target resource supply source in this embodiment will be described in detail below, and will not be repeated here.

[0325] In step 1520, if the second verification is successful, the first number of resources, along with replenishment costs, are provided from the target resource supply source to the second node.

[0326] In the specific implementation of this embodiment, if the second verification is passed, it indicates that the target resource supply source is a resource supply source that can reduce the compensation cost. The first number of resources along with the compensation cost are taken out from the target resource supply source, and the taken out first number of resources along with the compensation cost are provided to the second node.

[0327] The advantage of this embodiment is that the scheme of verifying the target resource supply source before resource replenishment enables the target resource supply source to perform the resource replenishment operation only after successful verification, which increases the probability of reducing replenishment overhead during resource replenishment and can minimize replenishment overhead as much as possible.

[0328] Please refer to Figure 16 In some embodiments, the process of performing a second verification of the target resource supply source specifically includes, but is not limited to, the following steps 1610-1650:

[0329] Step 1610: Determine the source index, resource type, and number of resources corresponding to each resource type of the target resource source;

[0330] Step 1620: Compare the supply source index with multiple preset candidate supply source indices;

[0331] Step 1630: If it is determined that there is a candidate supply source index that matches the supply source index, then compare the supply source resource type with the resource type of the resource provided by the second node;

[0332] Step 1640: If it is determined that there is a supply source resource type that matches the resource type, then compare the number of supply source resources of the supply source resource type that matches the resource type with the first number;

[0333] Step 1650: If the number of supply source resources is determined to be greater than or equal to the first number, the second verification is confirmed to be successful.

[0334] Steps 1610-1650 are described in detail below.

[0335] In step 1610, the source index, resource type, and number of resources corresponding to each resource type of the target resource source are determined.

[0336] The supply source index is used to uniquely identify the supply source of the target resource.

[0337] The resource type of the supply source indicates the category to which each resource in the target resource supply source belongs. Different categories of resources may differ in their function, purpose, and origin.

[0338] The number of supply source resources is used to indicate the total number of resources in the target resource supply source.

[0339] In the specific implementation of this embodiment, the process of step 1610 is similar to that of step 810 described above. To save space, it will not be described again.

[0340] In step 1620, the supply source index is compared with a set of multiple candidate supply source indices.

[0341] The candidate supply source index is used to indicate pre-determined resource supply sources that can reduce replenishment costs.

[0342] In the specific implementation of this embodiment, the supply source index is compared one by one with a plurality of preset candidate supply source indices to determine whether the supply source index is the same as one of the plurality of preset candidate supply source indices.

[0343] like Figure 17 As shown, the index lookup table contains six candidate supply sources that can reduce compensation costs, along with their respective candidate supply source indices. Specifically, the candidate supply source index for candidate supply source 1 is K77; for candidate supply source 2, it is K88; for candidate supply source 3, it is K79; for candidate supply source 4, it is K33; for candidate supply source 11, it is K74; and for candidate supply source 23, it is K53. Therefore, when the supply source index of the target resource supply source is K77, it indicates that the target resource supply source is candidate supply source 1, and the target resource supply source is determined to be the resource supply source that can reduce compensation costs.

[0344] In step 1630, if it is determined that there is a candidate supply source index that matches the supply source index, then the supply source resource type and the resource type of the resource provided by the second node are compared.

[0345] The resource type provided by the second node indicates the specific category of the resource provided by the second node. In this embodiment of the disclosure, the resource type can be a classification based on the resource's source and function.

[0346] For example, in cloud computing, the resources provided by each node are the processing capabilities of each node for different business needs.

[0347] In this specific implementation, if it is determined that a candidate source index matches the source index, it indicates that the target resource source is a pre-determined resource source that can reduce the compensation overhead. Next, the resource type of the source is compared with the resource type provided by the second node to determine whether the resource type of the source is the same as the resource type provided by the second node.

[0348] In step 1640, if it is determined that there is a supply source resource type that matches the resource type, the number of supply source resources of the supply source resource type that matches the resource type is compared with the first number.

[0349] In the specific implementation of this embodiment, since the target resource supplier can provide one or more types of resources, it is necessary to compare the supply source types corresponding to the various resources of the target resource supplier with the resource types. If it is determined that there is a supply source resource type that matches the resource type, then it is determined that the target resource supplier has resources that are the same as the resources provided by the second node. Next, the number of supply source resources of the same resource type as the resource type is compared with the first number to determine whether the total number of resources that are the same as the resources provided by the second node in the target resource supplier meets the compensation requirement.

[0350] In step 1650, if it is determined that the number of supply source resources is greater than or equal to the first number, the second verification is determined to be successful.

[0351] In this specific implementation, if the number of supply source resources is determined to be greater than or equal to the first number, it indicates that the total number of resources provided by the second node of the target resource supply source that have the same resources meets the compensation requirement. Based on this, the second verification is determined to be successful. Furthermore, if no candidate supply source index matches the supply source index, or if no supply source resource type matches the resource type, or if the number of supply source resources is less than the first number, the second verification is considered to have failed.

[0352] The advantage of this embodiment is that, based on the source index, resource type, and number of resources corresponding to each resource type of the target resource source, it verifies whether the target resource source is a resource source that can reduce the compensation cost, whether the number of resources of the target resource source meets the requirements, and whether the resource type of the target resource source meets the requirements. This enables comprehensive verification of the target resource source and improves the accuracy of verification.

[0353] Please refer to Figure 18 In some embodiments, after providing a first number of resources along with replenishment overhead from the target resource supply source to the second node, the resource interaction processing method further includes, but is not limited to, the following steps 1810-1820:

[0354] Step 1810: Perform the first update on the resource status of the resource supply source;

[0355] Step 1820: Perform a second update on the occupancy certificates of the first number of resources.

[0356] Steps 1810-1820 are described in detail below.

[0357] In step 1810, the resource status of the resource supply source is updated for the first time.

[0358] Resource status is used to indicate the increase or decrease of resources in the resource supply source, as well as the execution status of resource interactions.

[0359] In this specific implementation, after providing the first number of resources along with replenishment costs from the target resource source to the second node, the resource reduction amount of the target resource source is determined based on the resources and replenishment costs exchanged from the target resource source to the second node. The current resource quantity of the target resource source is then determined based on this reduction amount, and the original resource quantity is replaced with the current quantity to update the resource increase / decrease status in the target resource source's resource status. Furthermore, based on the completion status of providing the first number of resources along with replenishment costs from the target resource source to the second node, when the exchange of the first number of resources along with replenishment costs is completed, the exchange status is updated from "in progress" to "completed," thereby updating the execution status of resource exchanges in the resource status.

[0360] In step 1820, the occupancy certificates of the first number of resources are updated for the second time.

[0361] In the specific implementation of this embodiment, after the first number of resources along with the replenishment overhead are provided from the target resource supply source to the second node, the occupancy certificate of the first number of resources is set from the valid state to the invalid state, or the occupancy certificate of the first number of resources is set from the unprocessed state to the executed state, so as to improve the timeliness of the occupancy certificate and avoid repeatedly generating resource replenishment requests and repeatedly replenishing resources for the same occupancy certificate.

[0362] The advantage of this embodiment is that after providing a first number of resources along with replenishment costs from the target resource supply source to the second node according to the resource replenishment request, updating the resource status and occupancy certificate of the target resource supply source can improve the accuracy of the record of the resource status of the target resource supply source and the timeliness of the occupancy certificate, thereby improving the security of resource interaction.

[0363] One embodiment of this disclosure describes the method for determining the second node and the first number.

[0364] Since the first node often requests resource allocation from one or more nodes, when multiple candidate nodes are consuming resources, the first node needs to determine which candidate nodes it should allocate resources to when performing resource replenishment. Therefore, this disclosure provides a scheme for simultaneously replenishing resources from multiple nodes, improving the flexibility and convenience of resource replenishment.

[0365] Please refer to Figure 19 In some embodiments, the second node and the first number are determined in the following way:

[0366] Step 1910: Display the second page;

[0367] Step 1920: In response to the first node's selection operation on the second page for at least one candidate node, determine the intermediate node;

[0368] Step 1930: In response to the resource replenishment setting operation for each intermediate node, determine the resource replenishment number for each intermediate node;

[0369] Step 1940: Aggregate multiple intermediate nodes into a second node, and integrate multiple resource supplement numbers into a first number.

[0370] Steps 1910-1940 are described in detail below.

[0371] In step 1910, the second page is displayed.

[0372] The second page refers to a display interface used for presentation and interaction.

[0373] The second page displays multiple candidate nodes arranged in a predetermined order, each carrying a candidate occupancy certificate.

[0374] The predefined order is used to determine the order in which each candidate node is displayed.

[0375] Candidate occupancy certificates are used to indicate the resource occupancy status of the first node for each candidate node.

[0376] In this specific implementation, when there are multiple candidate nodes with occupied resources, before the first node can perform a resource replenishment operation, it needs to determine which candidate nodes the first node should replenish and collectively identify the multiple candidate nodes as the second node. Based on this, when the first object triggers a resource replenishment request, a second page is first displayed to the first node to determine the nodes included in the second node and the amount of resources each node needs to replenish.

[0377] In step 1920, in response to the first node's selection operation on the second page for at least one candidate node, an intermediate node is determined.

[0378] An intermediate node refers to one or more candidate nodes selected by the first node on the second page.

[0379] In a specific implementation of this embodiment, when the first node selects a candidate node that needs resource supplementation on the second page, the server will respond to the first node's selection operation for at least one candidate node on the second page, determine the at least one candidate node selected by the first node, and use the selected at least one candidate node as an intermediate node.

[0380] In step 1930, in response to the resource replenishment setting operation for each intermediate node, the resource replenishment number for each intermediate node is determined.

[0381] The resource replenishment number indicates how much resource the first node will replenish for intermediate nodes based on the candidate occupancy certificate. The resource replenishment number for each intermediate node is less than or equal to the resource number indicated by the candidate occupancy certificate.

[0382] In this specific implementation, for each selected intermediate node, a window for editing and supplementing resource quantities is displayed on the second page, allowing the first node to set the number of resources to be supplemented for each intermediate node in the window for editing and supplementing resource quantities. Based on this, in response to the operation of setting the number of supplemented resources for each intermediate node, the number of resources to be supplemented set by the first node in the window for editing and supplementing resource quantities for each intermediate node is obtained, thus obtaining the number of resources supplemented for each intermediate node.

[0383] In step 1940, multiple intermediate nodes are aggregated into a second node, and multiple resource supplement numbers are integrated into a first number.

[0384] In the specific implementation of this embodiment, firstly, multiple intermediate nodes are integrated to form a set, and the intermediate nodes of this set are collectively used as the second node, that is, the second node includes multiple intermediate nodes (child nodes). Next, multiple resource replenishment numbers are integrated, and the sum of multiple resource replenishment numbers is used as the first number.

[0385] The advantage of this embodiment is that it can simultaneously supplement resources for multiple nodes. For interactive operations on the second page, multiple intermediate nodes are aggregated into a second node, and the resource supplementation number of each intermediate node is integrated into a first number, which can improve the flexibility and convenience of resource supplementation.

[0386] Please refer to Figure 20 In some embodiments, the predetermined order is determined in the following way:

[0387] Step 2010: For each candidate node, determine the resource replenishment period and resource interaction parameters indicated by the candidate occupancy certificate of the candidate node;

[0388] Step 2020: Determine the total score of each candidate node based on the resource replenishment deadline and resource interaction parameters;

[0389] Step 2030: Determine the predetermined order based on the total score.

[0390] Steps 2010-2030 are described in detail below.

[0391] In step 2010, for each candidate node, the resource replenishment period indicated by the candidate occupancy certificate of the candidate node and the resource interaction parameters are determined.

[0392] The resource replenishment deadline indicates the deadline by which the first node must replenish the resources it has occupied.

[0393] Resource interaction parameters are used to indicate the additional resources that the candidate node's resources are to provide.

[0394] In the specific implementation of this embodiment, firstly, for each candidate node, with authorization, the candidate occupancy certificate generated by the first node after occupying resources on each candidate node is obtained. Next, the content of the candidate occupancy certificate is extracted to obtain the resource replenishment period and resource interaction parameters indicated by the candidate occupancy certificate of the candidate node.

[0395] In step 2020, the total score of each candidate node is determined based on the resource replenishment deadline and resource interaction parameters.

[0396] The total score indicates the urgency of resource replenishment for each candidate node. The higher the total score of a candidate node, the more urgently it needs to replenish resources.

[0397] In this specific implementation, firstly, based on the time difference between the resource replenishment deadline and the current time, each candidate node is assigned a first predetermined score, wherein the larger the time difference between the candidate nodes, the smaller the first predetermined score. Next, based on the magnitude of the resource interaction parameters, each candidate node is assigned a second predetermined score in descending order of the resource interaction parameters, wherein the larger the resource interaction parameters, the larger the second predetermined score. Further, a first weight and a second weight are obtained, and the sum of the first weight and the second weight is 1. Finally, for each candidate node, the product of the first weight and the first predetermined score, and the product of the second weight and the second predetermined score, are added together to obtain the total score of the candidate node.

[0398] In step 2030, a predetermined order is determined based on the total score.

[0399] In this specific implementation, each candidate node is sorted in descending order of total score to obtain a predetermined order.

[0400] The advantage of this embodiment is that, based on the resource replenishment deadline indicated by the candidate occupancy certificate of each candidate node and the resource interaction parameters, a score calculation method is introduced, which makes the candidate nodes with closer resource replenishment deadlines and larger nearby resources indicated by the resource interaction parameters displayed first, so that the first node can prioritize replenishing resources for candidate nodes with higher urgency according to a predetermined order, thereby improving the rationality of resource replenishment.

[0401] Detailed implementation diagrams of the resource interaction processing method in this embodiment of the disclosure.

[0402] The following reference Figure 21 The following provides a detailed and exemplary description of the implementation details of the resource interaction processing method according to the embodiments of this disclosure.

[0403] In step 2101, the first node requests to occupy a first number of resources of the second node;

[0404] In step 2102, the resource interaction processing server distributes a first number of resources from the second node to the first node;

[0405] In step 2103, the first node requests the resource interaction processing server to replenish the resources of the second node;

[0406] In step 2104, the resource interaction processing server requests the target platform to query the resource supply source of the first node;

[0407] In step 2105, the target platform performs a first verification of the resource supply source query request;

[0408] In step 2106, after the first verification is passed, the target platform searches for the resource supply source of the first node in the predetermined database;

[0409] In step 2107, the pre-defined database sends the search results back to the target platform;

[0410] In step 2108, the target platform responds to the resource supply source query request from the resource interaction processing server;

[0411] In step 2109, the resource interaction processing server determines the multiple resource supply sources corresponding to the first node;

[0412] In step 2110, the resource interaction processing server displays multiple resource supply sources to the first node;

[0413] In step 2111, the first node selects the target resource supply source;

[0414] In step 2112, the resource interaction processing server performs a second verification of the target resource supply source;

[0415] In step 2113, the resource interaction processing server determines the replenishment cost based on the replenishment cost rate of the target resource supply source and the first number;

[0416] In step 2114, the resource interaction processing server provides the first number of resources along with the compensation overhead to the second node;

[0417] In step 2115, the resource interaction processing server indicates that the first node has completed resource replenishment.

[0418] It is understood that the specific processes of steps 2101-2102 are similar to step 310 in the above embodiments. The specific processes of steps 2103-2109 are similar to step 320 in the above embodiments. The specific processes of steps 2110-2111 are similar to steps 1210-1250 in the above embodiments. The specific processes of step 2112 are similar to steps 1610-1650 in the above embodiments. The specific processes of steps 2113-2115 are similar to step 350 in the above embodiments. To save space, they will not be described in detail here.

[0419] Description of apparatus and devices according to embodiments of this disclosure

[0420] It is understood that although the steps in the above flowcharts are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated in this embodiment, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the above flowcharts may include multiple steps or multiple stages. These steps or stages are not necessarily completed 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 performed alternately or in turn with other steps or at least some of the steps or stages in other steps.

[0421] It should be noted that in various specific embodiments of this application, when processing is required based on data related to the characteristics of the target object, such as target object attribute information or a set of attribute information, the permission or consent of the target object will be obtained first. Furthermore, the collection, use, and processing of this data will comply with relevant laws, regulations, and standards. In addition, when embodiments of this application require obtaining target object attribute information, separate permission or consent from the target object will be obtained through pop-ups or redirection to a confirmation page. Only after obtaining the target object's separate permission or consent will the necessary target object-related data for the normal operation of the embodiments of this application be obtained.

[0422] Figure 22 A schematic diagram of the structure of a resource interaction processing device 2200 provided in an embodiment of this disclosure. The resource interaction processing device 2200 includes:

[0423] The first acquisition unit 2210 is used to respond to the resource occupancy request of the first node to the second node, acquire a first number of resources from the second node and distribute them to the first node, and generate occupancy certificates for the first number of resources.

[0424] The first determining unit 2220 is used to determine multiple resource supply sources corresponding to the first node in response to the resource replenishment request of the first node for the occupancy certificate.

[0425] The second acquisition unit 2230 is used to acquire the replenishment cost rate of each resource supply source;

[0426] The second determining unit 2240 is used to determine the target resource supply source among multiple resource supply sources based on the replenishment cost rate of each resource supply source.

[0427] The processing unit 2250 is used to determine the replenishment cost of the target resource supply source based on the replenishment cost rate of the target resource supply source, and to provide a first number of resources along with the replenishment cost from the target resource supply source to the second node.

[0428] Optionally, the replenishment expense rate includes replenishment expense rates set for different ranges of the first number;

[0429] The second determining unit 2240 is used for:

[0430] For each resource supply source, determine the range of the first number to which the first number belongs;

[0431] Determine the replenishment cost rate corresponding to the first range of numbers;

[0432] Based on the first number and the replenishment expenditure rate, determine the replenishment expenditure of the resource supply source;

[0433] The resource supply source with the lowest replenishment cost is identified as the target resource supply source.

[0434] Optionally, the first determining unit 2220 is used for:

[0435] In response to a resource replenishment request, obtain the node credential information provided by the first node;

[0436] Based on the node credential information, a resource supply source query request for the first node is sent to the target platform so that the target platform can perform the first verification of the resource supply source query request. After the first verification is passed, multiple resource supply sources for the first node are found in the predetermined database based on the node credential information.

[0437] Based on the response feedback from the target platform, multiple resource supply sources corresponding to the first node are identified.

[0438] Optionally, a first verification is performed on the resource supply source query request, including:

[0439] Determine the target signature and request timestamp carried in the resource supply source query request;

[0440] Perform the first sub-verification based on the target signature;

[0441] The second sub-verification is performed based on the time difference between the request timestamp and the current time.

[0442] Optionally, the pre-defined database includes candidate node credentials for multiple candidate nodes, and candidate resource supply sources corresponding to each candidate node credential;

[0443] Based on the node credential information, multiple resource supply sources for the first node are identified in the predefined database, including:

[0444] For each candidate node, compare the candidate node credentials with the node credential information;

[0445] If the candidate node credentials are determined to be consistent with the node credentials information, then the candidate resource supply source corresponding to the candidate node credentials will be determined as one of the multiple resource supply sources corresponding to the first node.

[0446] Optionally, the reservation database is constructed in the following way:

[0447] Obtain the candidate node identifier of multiple candidate nodes, as well as the supply source index, supply source type, and supply source name of the candidate resource supply source for each candidate node;

[0448] Based on the candidate node identifier, construct the candidate node credential;

[0449] For each candidate node, the candidate node credential identifier is determined as the key, and the supply source index, supply source type, and supply source name of the candidate resource supply source are determined as the values;

[0450] A predefined database is constructed based on the mapping relationship between multiple keywords and multiple values.

[0451] Optionally, the second determining unit 2240 is used for:

[0452] Determine the amount of resources from each resource supply source;

[0453] For each resource supply source, the replenishment cost of the resource supply source is determined based on the first number and the replenishment cost rate;

[0454] Based on the replenishment cost and the comparison between the number of resources and the first number, the resource supply source and the matching score with the resource replenishment request are determined;

[0455] Based on multiple matching scores, the target resource supply source is determined from multiple resource supply sources.

[0456] Optionally, based on multiple matching scores, the target resource supply source is determined from multiple resource supply sources, including:

[0457] Multiple resource supply sources are sorted based on multiple matching scores;

[0458] Group the multiple resource sources in the sorting process to obtain multiple source groups;

[0459] The target display strategy is determined from multiple candidate display strategies;

[0460] Based on multiple supply source groups, a target display strategy is used to display multiple resource supply sources in sorted order on the first page, so that the resource supply sources of different supply source groups are displayed differently;

[0461] Based on the first node's selection of multiple resource supply sources on the first page, the resource supply source selected by the first node is determined as the target resource supply source.

[0462] Optionally, a target display strategy is determined from multiple candidate display strategies, including:

[0463] Get the node information of the first node;

[0464] Based on node information, a first target node that meets the first condition in terms of node similarity with the first node is selected from multiple candidate nodes, and the first usage frequency of the first target node for each candidate display strategy is determined.

[0465] Based on the first usage frequency, the target display strategy is determined from multiple candidate display strategies.

[0466] Optionally, a target display strategy is determined from multiple candidate display strategies, including:

[0467] Determine the location information of the first node;

[0468] Based on location information, a second target node whose positional relationship with the first node satisfies the second condition is selected from multiple candidate nodes, and the second usage frequency of the second target node for each candidate display strategy is determined.

[0469] Based on the second usage frequency, the target display strategy is determined from multiple candidate display strategies.

[0470] Optionally, the processing unit 2250 includes:

[0471] A verification module (not shown) is used to perform a second verification of the target resource supply source;

[0472] An interaction module (not shown) is used to provide a first number of resources, along with replenishment overhead, from the target resource supply source to the second node if the second verification is determined to be successful.

[0473] Optionally, the verification module (not shown) is used for:

[0474] Determine the source index, resource type, and number of resources corresponding to each resource type for the target resource;

[0475] Compare the supply source index with multiple preset candidate supply source indices;

[0476] If it is determined that there is a candidate supply source index that matches the supply source index, then the supply source resource type and the resource type of the resource provided by the second node are compared.

[0477] If it is determined that there exists a supply source resource type that matches the resource type, then the number of supply source resources of the supply source resource type that matches the resource type is compared with the first number;

[0478] If the number of supply resources is determined to be greater than or equal to the first number, the second verification is considered successful.

[0479] Optionally, the resource interaction processing apparatus 2200 further includes an update unit (not shown), which is used for:

[0480] The resource status of the resource supply source is updated for the first time;

[0481] The occupancy certificates for the first number of resources are updated a second time.

[0482] Reference Figure 23 , Figure 23 To implement the resource interaction processing method of this embodiment, the terminal includes the following components: a radio frequency (RF) circuit 2310, a memory 2315, an input unit 2330, a display unit 2340, a sensor 2350, an audio circuit 2360, a wireless fidelity (WiFi) module 2370, a processor 2380, and a power supply 2390. Those skilled in the art will understand that... Figure 23 The terminal structure shown does not constitute a limitation on mobile phones or computers and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0483] The RF circuit 2310 can be used to receive and transmit signals during information transmission or calls. In particular, it receives downlink information from the base station and processes it with the processor 2380; in addition, it transmits uplink data to the base station.

[0484] The memory 2315 can be used to store software programs and modules. The processor 2380 executes various functional applications and data processing of the target terminal by running the software programs and modules stored in the memory 2315.

[0485] The input unit 2330 can be used to receive input numeric or character information, and to generate key signal inputs related to the settings and function control of the target terminal. Specifically, the input unit 2330 may include a touch panel 2331 and other input devices 2332.

[0486] Display unit 2340 can be used to display input or provided information, as well as various menus of the target terminal. Display unit 2340 may include display panel 2341.

[0487] Audio circuitry 2360, speaker 2361, and microphone 2362 provide an audio interface.

[0488] In this embodiment, the processor 2380 included in the terminal can execute the resource interaction processing method of the previous embodiment.

[0489] The terminals disclosed in this embodiment include, but are not limited to, mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle terminals, and aircraft. The embodiments of this invention can be applied to various scenarios, including but not limited to data security, blockchain, data storage, and information technology.

[0490] Figure 24This is a partial structural block diagram of a server for implementing the resource interaction processing method of this disclosure embodiment. The server can vary significantly due to different configurations or performance, and may include one or more central processing units (CPUs) 2422 (e.g., one or more processors) and memory 2432, and one or more storage media 2430 (e.g., one or more mass storage devices) for storing application programs 2442 or data 2444. The memory 2432 and storage media 2430 may be temporary or persistent storage. The program stored in the storage media 2430 may include one or more modules (not shown in the figure), each module including a series of instruction operations on the server. Furthermore, the CPU 2422 may be configured to communicate with the storage media 2430 and execute the series of instruction operations in the storage media 2430 on the server.

[0491] The server may also include one or more power supplies 2426, one or more wired or wireless network interfaces 2450, one or more input / output interfaces 2458, and / or one or more operating systems 2441, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0492] The central processing unit 2422 in the server can be used to execute the resource interaction processing method of the embodiments of this disclosure.

[0493] This disclosure also provides a computer-readable storage medium for storing program code for executing the resource interaction processing methods of the foregoing embodiments.

[0494] This disclosure also provides a computer program product comprising a computer program. A processor of a computer device reads and executes the computer program, causing the computer device to perform the resource interaction processing method described above.

[0495] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in this disclosure and the foregoing drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “including,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatuses.

[0496] It should be understood that in this disclosure, "at least one item" means one or more, and "more than one" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0497] It should be understood that in the description of the embodiments disclosed herein, "multiple" means two or more, "greater than", "less than", "exceeding" etc. are understood to exclude the number itself, and "above", "below", "within" etc. are understood to include the number itself.

[0498] In the several embodiments provided in this disclosure, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.

[0499] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0500] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0501] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0502] It should also be understood that the various implementation methods provided in this disclosure can be combined arbitrarily to achieve different technical effects.

[0503] The above is a detailed description of the embodiments of this disclosure. However, this disclosure is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this disclosure. All such equivalent modifications or substitutions are included within the scope defined by the claims of this disclosure.

Claims

1. A resource interaction processing method, characterized in that, The method includes: In response to the resource occupancy request of the first node to the second node, a first number of resources are obtained from the second node and distributed to the first node, and occupancy certificates for the first number of resources are generated. In response to the resource replenishment request from the first node for the occupied certificate, determine multiple resource supply sources corresponding to the first node; Obtain the replenishment overhead rate for each of the resource supply sources; Based on the replenishment cost rate of each of the resource supply sources, a target resource supply source is determined among the multiple resource supply sources; Based on the replenishment cost rate of the target resource supply source, the replenishment cost of the target resource supply source is determined, and the first number of resources, along with the replenishment cost, are provided from the target resource supply source to the second node.

2. The resource interaction processing method according to claim 1, characterized in that, The supplementary expense rate includes the supplementary expense rate set for different ranges of the first number; The step of determining the target resource supply source among the multiple resource supply sources based on the replenishment cost rate of each of the resource supply sources includes: For each of the resource supply sources, determine the first number range to which the first number belongs; Determine the replenishment cost rate corresponding to the first number range; Based on the first number and the replenishment cost rate, the replenishment cost of the resource supply source is determined; The resource supply source with the lowest replenishment cost is determined as the target resource supply source.

3. The resource interaction processing method according to claim 1, characterized in that, In response to the resource replenishment request from the first node for the occupancy certificate, the method determines multiple resource supply sources corresponding to the first node, including: In response to the resource replenishment request, obtain the node credential information provided by the first node; Based on the node credential information, a resource supply source query request for the first node is sent to the target platform so that the target platform performs a first verification of the resource supply source query request. After the first verification is passed, multiple resource supply sources of the first node are found in a predetermined database based on the node credential information. Based on the response feedback from the target platform, multiple resource supply sources corresponding to the first node are determined.

4. The resource interaction processing method according to claim 3, characterized in that, The first verification of the resource supply source query request includes: Determine the target signature and request timestamp carried in the resource supply source query request; Perform the first sub-verification based on the target signature; The second sub-verification is performed based on the time difference between the requested timestamp and the current time.

5. The resource interaction processing method according to claim 3, characterized in that, The predetermined database includes candidate node credentials for multiple candidate nodes, and candidate resource supply sources corresponding to each candidate node credential. The step of searching for multiple resource supply sources for the first node in a predetermined database based on the node credential information includes: For each candidate node, the candidate node credential is compared with the node credential information; If it is determined that the candidate node credential is consistent with the node credential information, then the candidate resource supply source corresponding to the candidate node credential is determined as one of the multiple resource supply sources corresponding to the first node.

6. The resource interaction processing method according to claim 5, characterized in that, The pre-defined database is constructed in the following manner: Obtain the candidate node identifier of multiple candidate nodes, as well as the supply source index, supply source type, and supply source name of the candidate resource supply source for each candidate node; Based on the candidate node identifier, construct the candidate node credential for the candidate node; For each candidate node, the candidate node credential identifier is determined as the keyword, and the supply source index, supply source type, and supply source name of the candidate resource supply source are determined as the values; The predetermined database is constructed based on the mapping relationship between the multiple keywords and the multiple values.

7. The resource interaction processing method according to claim 1, characterized in that, The step of determining the target resource supply source among the multiple resource supply sources based on the replenishment cost rate of each of the resource supply sources includes: Determine the number of resources for each of the resource supply sources; For each of the resource supply sources, the replenishment cost of the resource supply source is determined based on the first number and the replenishment cost rate; Based on the replenishment cost and the comparison between the number of resources and the first number, the matching score between the resource supply source and the resource replenishment request is determined; The target resource supply source is determined from among the multiple resource supply sources based on the multiple matching scores.

8. The resource interaction processing method according to claim 7, characterized in that, The step of determining the target resource supply source from among the multiple resource supply sources based on multiple matching scores includes: Based on the multiple matching scores, the multiple resource supply sources are sorted. The multiple resource supply sources in the sorting are grouped to obtain multiple supply source groups; The target display strategy is determined from multiple candidate display strategies; Based on multiple supply source groups, using the target display strategy, multiple resource supply sources are displayed on the first page in the order stated, so that the resource supply sources of different supply source groups are displayed in different ways; Based on the first node's selection operation of multiple resource supply sources on the first page, the resource supply source selected by the first node is determined as the target resource supply source.

9. The resource interaction processing method according to claim 1, characterized in that, The step of providing the first number of resources, along with the replenishment overhead, from the target resource supply source to the second node includes: A second verification is performed on the target resource supply source; If the second verification is successful, the first number of resources, along with the replenishment overhead, are provided from the target resource supply source to the second node.

10. The resource interaction processing method according to claim 9, characterized in that, The second verification of the target resource supply source includes: Determine the source index, resource type, and number of resources corresponding to each resource type of the target resource source; The supply source index is compared with a set of preset candidate supply source indices; If it is determined that there exists a candidate supply source index that matches the supply source index, then the supply source resource type is compared with the resource type of the resource provided by the second node; If it is determined that there exists a supply source resource type that matches the resource type, then the number of supply source resources of the supply source resource type that matches the resource type is compared with the first number; If it is determined that the number of supply source resources is greater than or equal to the first number, the second verification is deemed successful.

11. The resource interaction processing method according to claim 1, characterized in that, After providing the first number of resources along with the replenishment overhead from the target resource supply source to the second node, the method further includes: The resource status of the resource supply source is updated for the first time; The occupancy certificates of the first number of resources are updated a second time.

12. A resource interaction processing device, characterized in that, The device includes: The first acquisition unit is configured to respond to the resource occupancy request of the first node to the second node, acquire a first number of resources from the second node and distribute them to the first node, and generate occupancy certificates for the first number of resources. The first determining unit is configured to determine multiple resource supply sources corresponding to the first node in response to the resource replenishment request from the first node for the occupancy certificate. The second acquisition unit is used to acquire the replenishment overhead rate of each of the resource supply sources; The second determining unit is used to determine a target resource supply source among the multiple resource supply sources based on the replenishment overhead rate of each of the resource supply sources. The processing unit is configured to determine the replenishment cost of the target resource supply source based on the replenishment cost rate of the target resource supply source, and provide the first number of resources along with the replenishment cost from the target resource supply source to the second node.

13. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the resource interaction processing method according to any one of claims 1 to 11.

14. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the resource interaction processing method according to any one of claims 1 to 11.

15. A computer program product comprising a computer program that is read and executed by a processor of a computer device, causing the computer device to perform the resource interaction processing method according to any one of claims 1 to 11.