Resource processing method, device, electronic equipment and medium

By deducting the historical resource transfer amount from the total resource transfer amount accumulated by the task, the current sub-task resource transfer amount is obtained, and the resources are delivered when the preset conditions are met, the problem of inaccurate compensation resource transfer in the resource processing scenario is solved, and the problem of inaccurate compensation resource transfer in the resource processing scenario is improved. Resource transfer accuracy and target account experience.

CN114327887BActive Publication Date: 2024-12-10BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111601969.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-12-10
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

In some resource processing scenarios, when the target account stops execution or withdraws the target operation event, the compensation resources provided cannot be effectively transferred, which affects the accuracy of resource transfer and the target account experience.

Method used

By deducting the transferred historical resource transfers from the total resource transfer amount accumulated by the task, the resource transfer amount of the current subtask is obtained, and the resources are transferred to the target account when the preset conditions are met, improving the accuracy of resource transfer and optimizing the target Account experience.

Benefits of technology

It improves the accuracy of resource transfer, and when the current sub-task resource transfer amount meets the preset conditions, it reasonably delivers resources to the target account, improving the experience of the target account.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114327887B_ABST
    Figure CN114327887B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a resource processing method, device, electronic device and medium, the resource processing method comprising: in response to a task processing request initiated by a user, obtaining a first resource, the first resource comprising historical resources corresponding to at least one historical subtask that has been processed in the task and current resources corresponding to a current subtask to be processed; obtaining a total resource transfer amount corresponding to the task based on the first resource and the second resource, the second resource being a compensation resource configured for the task when the task is generated; obtaining a resource transfer amount corresponding to the current subtask based on the total resource transfer amount and the historical resource transfer amount corresponding to the at least one historical subtask. According to the resource processing method, device, electronic device and medium of the present disclosure, in certain resource processing scenarios, the compensation resources provided by the transfer platform to the target account can improve the accuracy of resource transfer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and more specifically, to a resource processing method, device, electronic device and medium. Background Art

[0002] With the increasing maturity and rapid development of Internet technology, there are more and more scenarios involving resource processing in the network, such as online transactions, online service experience, etc. At present, in these scenarios, the platform can provide certain compensation resources for the target account that executes the target operation event. However, it often happens that the target account stops executing or withdraws the target operation event. How to transfer the provided compensation resources in this case is a problem that needs to be solved at present. Summary of the invention

[0003] The present disclosure provides a resource processing method, device, electronic device and medium to at least solve the problems in the above-mentioned related technologies.

[0004] According to a first aspect of an embodiment of the present disclosure, a resource processing method is provided, comprising: in response to a task processing request, obtaining a first resource, the first resource comprising historical resources corresponding to at least one historical subtask that has been processed in the task and current resources corresponding to a current subtask to be processed; obtaining a total resource transfer amount corresponding to the task based on the first resource and a second resource, the second resource being a compensation resource configured for the task when the task is generated; and obtaining a resource transfer amount corresponding to the current subtask based on the total resource transfer amount and the historical resource transfer amount corresponding to the at least one historical subtask.

[0005] Optionally, the obtaining of the first resource in response to the task processing request includes: obtaining the historical resource and the current resource respectively in response to the task processing request; and determining a resource obtained by adding the historical resource and the current resource as the first resource.

[0006] Optionally, obtaining the total resource transfer amount corresponding to the task based on the first resource and the second resource includes: taking the quotient of the first resource and the total resources corresponding to the task, wherein the total resources are resources other than preset resources configured for the task when the task is generated, and the preset resources represent the execution cost corresponding to the task when the task is executed; and multiplying the quotient result and the second resource to obtain the total resource transfer amount corresponding to the task.

[0007] Optionally, obtaining the resource transfer amount corresponding to the current subtask based on the total resource transfer amount and the historical resource transfer amount corresponding to the at least one historical subtask includes: subtracting the total resource transfer amount corresponding to the task from the historical resource transfer amount corresponding to the at least one historical subtask, and determining the difference as the resource transfer amount corresponding to the current subtask.

[0008] Optionally, it also includes: when the resource transfer amount corresponding to the current subtask meets a preset transfer condition, the resources after the resource transfer amount corresponding to the current subtask is transferred from the current resources are sent out.

[0009] Optionally, the first resource does not include processing resources, and the processing resources represent processing costs corresponding to when the at least one historical subtask and the current subtask are processed.

[0010] According to a second aspect of an embodiment of the present disclosure, a resource processing device is provided, including: a first acquisition unit, configured to: acquire a first resource in response to a task processing request, the first resource including historical resources corresponding to at least one historical subtask that has been processed in the task and current resources corresponding to a current subtask to be processed; a second acquisition unit, configured to: acquire a total resource transfer amount corresponding to the task based on the first resource and the second resource, the second resource being a compensation resource configured for the task when the task is generated; a third acquisition unit, configured to: obtain the resource transfer amount corresponding to the current subtask based on the total resource transfer amount and the historical resource transfer amount corresponding to the at least one historical subtask.

[0011] Optionally, the first acquisition unit may be configured to: in response to the task processing request, respectively acquire the historical resource and the current resource; and determine a resource obtained by adding the historical resource and the current resource as the first resource.

[0012] Optionally, the second acquisition unit is configured to: calculate the quotient of the first resource and the total resources corresponding to the task, wherein the total resources are the resources configured for the task when the task is generated except for the preset resources, and the preset resources represent the execution cost corresponding to the task when the task is executed; multiply the quotient result and the second resource to obtain the total resource transfer amount corresponding to the task.

[0013] Optionally, the third acquisition unit is configured to: subtract the total resource transfer amount corresponding to the task from the historical resource transfer amount corresponding to the at least one historical subtask, and determine the difference as the resource transfer amount corresponding to the current subtask.

[0014] Optionally, it further includes a resource delivery unit, which is configured to: when the resource transfer amount corresponding to the current subtask meets the preset transfer conditions, send out the resources after transferring the resource transfer amount corresponding to the current subtask from the current resources.

[0015] Optionally, the first resource does not include processing resources, and the processing resources represent processing costs corresponding to when the at least one historical subtask and the current subtask are processed.

[0016] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: at least one processor; and at least one memory storing computer executable instructions, wherein the computer executable instructions, when executed by the at least one processor, prompt the at least one processor to execute a resource processing method according to the present disclosure.

[0017] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium storing instructions is provided, characterized in that when the instructions are executed by at least one processor, the at least one processor is prompted to execute the resource processing method according to the present disclosure.

[0018] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, and instructions in the computer program product can be executed by a processor of a computer device to complete the resource processing method according to the present disclosure.

[0019] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0020] According to the resource processing method, device, electronic device and medium disclosed in the present invention, the resource transfer amount corresponding to the current subtask is obtained by deducting the transferred historical resource transfer amount of the task from the total accumulated resource transfer amount of the task. In certain resource processing scenarios, the compensation resources provided by the transfer platform to the target account improve the accuracy of resource transfer. In addition, when the resource transfer amount corresponding to the current subtask reaches the preset transfer condition, the resources after the resource transfer amount corresponding to the current subtask is transferred from the current resources will be delivered to the target account, which can take care of the experience of the object corresponding to the target account to a certain extent.

[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0023] Figure 1 1 is an exemplary system architecture 100 illustrating in which exemplary embodiments of the present disclosure may be applied.

[0024] Figure 2 is a flowchart illustrating a resource processing method according to an exemplary embodiment of the present disclosure.

[0025] Figure 3 is a schematic diagram illustrating an order 300 according to an exemplary embodiment of the present disclosure.

[0026] Figure 4 is a flow chart illustrating transferring compensation resources according to an exemplary embodiment of the present disclosure.

[0027] Figure 5 is a block diagram illustrating a resource processing device according to an exemplary embodiment of the present disclosure.

[0028] Figure 6 is a block diagram illustrating an electronic device 600 according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.

[0031] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.

[0032] There is a resource processing method in the related technology, which transfers the provided compensation resources in proportion according to the specific circumstances of the target account withdrawing the target operation event. However, in some resource processing scenarios (for example, a task includes multiple subtasks, and each subtask corresponds to fewer resources, and the target account initiates processing requests for the multiple subtasks of the task in batches multiple times), this method cannot transfer the compensation resources. Another resource processing method is to directly transfer all compensation resources, but it will affect the experience of the object corresponding to the target account.

[0033] In order to solve the problem that the provided compensation resources cannot be transferred in certain resource processing scenarios, the present disclosure proposes a resource processing method, device electronic device and medium. Specifically, the resource transfer amount corresponding to the current subtask is obtained by deducting the transferred historical resource transfer amount of the task from the total accumulated resource transfer amount of the task. In certain resource processing scenarios, the compensation resources provided by the transfer platform to the target account can be transferred, thereby improving the accuracy of resource transfer. In addition, when the resource transfer amount corresponding to the current subtask reaches the preset transfer condition, the resources after the resource transfer amount corresponding to the current subtask is transferred from the current resources will be delivered to the target account, which can take care of the experience of the object corresponding to the target account to a certain extent. Below, reference will be made to Figures 1 to 6 A resource processing method, apparatus, electronic device, and medium according to exemplary embodiments of the present disclosure are described in detail.

[0034] It should be noted that the data involved in this disclosure are all authorized by users or fully authorized by all parties.

[0035] Figure 1 1 is an exemplary system architecture 100 illustrating in which exemplary embodiments of the present disclosure may be applied.

[0036] like Figure 1As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. Users can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages (for example, for sending task processing requests or receiving resource processing information). Various applications related to resource processing may be installed on the terminal devices 101, 102, 103, such as game APPs, shopping APPs or live broadcast APPs. The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices with display screens and capable of performing resource processing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, etc. When the terminal devices 101, 102, and 103 are software, they can be installed in the electronic devices listed above, and can be implemented as multiple software or software modules (for example, to provide distributed services), or as a single software or software module. No specific limitation is made here.

[0037] The server 105 may be a server that provides various services, such as a background server that provides support for multimedia applications installed on the terminal devices 101, 102, and 103. The background server may parse, store, and process received data such as task processing requests.

[0038] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0039] Figure 2 is a flowchart illustrating a resource processing method according to an exemplary embodiment of the present disclosure.

[0040] Reference Figure 2 In step 201, in response to a task processing request, a first resource is obtained, wherein the first resource includes a historical resource corresponding to at least one historical subtask that has been processed in the task and a current resource corresponding to a current subtask to be processed.

[0041] Here, the task is a target operation event (e.g., purchasing game props, video resources, goods, or booking a paid live broadcast, etc.) generated by the target account in the platform (e.g., game platform, video platform, shopping platform, live broadcast platform, etc.), and the task processing is the target account stopping the execution or revoking the target operation event (e.g., initiating a prop return application, a video resource return application, a commodity return application, or canceling a paid live broadcast reservation, etc.), and the task includes at least one subtask. Resources are virtual resources that exist in the form of data in the network. In some embodiments, the task can be an order, and the task processing can be a resource return for the order. Figure 3 is a schematic diagram showing an order 300 according to an exemplary embodiment of the present disclosure, referring to Figure 3 In the scenario of returning goods for an order, order 300 includes multiple goods. The target account can apply for a return of all goods in order 300 at one time, or apply for a return of multiple goods in order 300 in batches multiple times. When the amount of goods applied for return each time is low or the subsidy (i.e., compensation resources) provided by the platform to order 300 is small, applying for a return of multiple goods in order 300 in batches multiple times may cause the platform to be unable to transfer subsidies due to accuracy problems. At this time, the total return amount of order 300 (i.e., the first resource) can be obtained first. The total return amount includes the historical return amount of order 300 (i.e., historical resources) and the current amount to be returned (i.e., current resources). The historical return amount and the current amount to be returned are added together to obtain the total return amount of order 300. That is, in response to the task processing request, the historical resources and the current resources can be obtained respectively, and the resource obtained by adding the historical resources and the current resources is determined as the first resource. Here, the first resource does not include processing resources, and the processing resources represent at least one historical subtask and the processing cost corresponding to when the current subtask is processed. For example, in the scenario of returning goods for order 300, the processing resources are the return costs required for returning the goods. When the goods in order 300 are returned, the returned goods will incur a return cost when they are mailed. When performing the return processing, the introduction of return costs can be avoided, which can simplify the processing process.

[0042] In step 202, the total resource transfer amount corresponding to the task is obtained according to the first resource and the second resource. Here, the second resource is the compensation resource configured for the task when the task is generated.

[0043] According to an exemplary embodiment of the present disclosure, the quotient of the first resource and the total resource corresponding to the task can be first calculated, wherein the total resource is the resource other than the preset resource configured for the task when the task is generated, and the preset resource represents the execution cost corresponding to the task when it is executed. For example, in the scenario of returning goods for order 300, the preset resource is the delivery cost that the target account should pay for order 300 when order 300 is generated. In the entire process of returning goods, the introduction of the delivery cost is avoided, which can simplify the processing process. The total return amount of order 300 can be first divided by the total amount (i.e., the total resources) to obtain the proportion of the total return amount of order 300 to the total amount. Here, the total amount is the total amount corresponding to the goods paid by the target account other than the delivery cost when order 300 is generated. Then, multiply the division result by the subsidy (i.e., the second resource) configured by the platform for order 300 to obtain the total subsidy transfer amount of the order (i.e., the total resource transfer amount corresponding to the task). Here, the total subsidy transfer amount is the cumulative subsidy amount to be transferred for order 300 as of now.

[0044] In step 203, the resource transfer amount corresponding to the current subtask is obtained according to the total resource transfer amount and the historical resource transfer amount corresponding to the at least one historical subtask.

[0045] According to an exemplary embodiment of the present disclosure, the total resource transfer amount corresponding to the task may be subtracted from the historical resource transfer amount corresponding to the at least one historical subtask, and the difference may be determined as the resource transfer amount corresponding to the current subtask. For example, in the scenario of returning goods for order 300, the total subsidy transfer amount obtained in step 102 may be subtracted from the accumulated subsidy amount to be transferred for the returned goods before the current goods to be returned (i.e., the historical resource transfer amount) to obtain the current subsidy amount to be transferred. When the target account applies for the return of multiple goods in order 300 in batches for multiple times, each return generates a corresponding subsidy amount to be transferred, and thus the accumulated subsidy amount to be transferred (i.e., the historical resource transfer amount) may be obtained. According to an exemplary embodiment of the present disclosure, when the resource transfer amount corresponding to the current subtask meets the preset transfer conditions, the resources after the resource transfer amount corresponding to the current subtask is transferred from the current resources are sent out. For example, in the scenario of returning goods for order 300, when the current subsidy amount to be transferred meets the transfer standard of the platform, the current subsidy to be transferred is transferred. Specifically, in some commodity return scenarios, the current applied commodity return amount may be low and / or the amount of the platform subsidy itself is also low, resulting in the current amount of the subsidy to be transferred being very small (for example, the current amount of the subsidy to be transferred is 0.001), and there is no need to transfer the subsidy at this time. Only when the current subsidy to be transferred meets the transfer standard of the platform (for example, when the amount of the subsidy to be transferred reaches the percentile level, the subsidy is transferred), the current subsidy to be transferred is transferred. It can transfer the platform subsidy, improve the transfer accuracy of the subsidy, and take care of the experience of the object corresponding to the target account to a certain extent.

[0046] In order to more clearly demonstrate the solution shown in the present disclosure, the solution shown in the present disclosure is described below by way of example in combination with a specific implementation scenario.

[0047] The related technology divides the current resources by the total resources, and uses the product of the division result and the compensation resources as the current resource transfer amount.

[0048] The present disclosure first adds the historical resources to the current resources to obtain the first resource; then divides the first resource by the total resource, and multiplies the division result by the second resource to obtain the total resource transfer amount; finally, subtracts the historical resource transfer amount from the total resource transfer amount to obtain the current resource transfer amount.

[0049] In the commodity trading scenario, the total resource is the total order amount, the historical resource is the order amount of the returned sub-orders in the order, the current resource is the order amount of the sub-orders to be returned in the order, the compensation resource (i.e., the second resource) is the subsidy provided by the platform for the order, the current resource transfer amount is the currently available subsidy transfer amount, and the preset transfer condition is that when the currently available subsidy transfer amount reaches the percentile level, the subsidy transfer amount will be transferred. Here, the total order amount is 100, and the subsidy provided by the platform for the order is 0.02.

[0050] Assuming that the amount of refund applied for each time is 10, and the amount of resource transfer that can be obtained each time using the relevant technology is 10 / 100*0.02=0.002, the amount of resource transfer generated by each refund does not meet the preset transfer conditions, and the platform is always unable to transfer compensation resources. The process of transferring compensation resources using the solution shown in this disclosure can be as follows: Figure 4 shown. Figure 4 is a flowchart showing a transfer compensation resource according to an exemplary embodiment of the present disclosure, referring to Figure 4 , first obtain the current resource transfer amount, then determine whether the current resource transfer amount meets the preset transfer conditions, if yes, transfer the current resource transfer amount from the current resources, if not, obtain a new current resource transfer amount, and perform judgment until the new current resource transfer amount meets the preset transfer conditions, and transfer the new current resource transfer amount from the new current resources. Specifically, for the case where the amount of each application for return is 10, the current resource transfer amounts that the platform can obtain are 10 / 100*0.02=0.002, 20 / 100*0.02-0=0.004, 30 / 100*0.02-0=0.006, 40 / 100*0.02-0=0.008, 50 / 100*0.02-0=0.01, among which, the first four times because they did not meet the preset transfer conditions, the amount of resource transfer that the platform can transfer is 0, but the fifth time because the preset transfer conditions were met, the subsidy amount that the platform can transfer is 0.01.

[0051] In the scenario of booking multiple paid live broadcasts, the total resources are the total number of virtual resources consumed by the booking, the historical resources are the number of virtual resources corresponding to the canceled paid live broadcasts, the current resources are the number of virtual resources corresponding to the current live broadcast to be canceled, the compensation resources are the number of virtual resources subsidized by the platform for this booking, and the current resource transfer amount is the number of subsidized virtual resource transfers available in the current live broadcast to be canceled. The preset transfer condition is that when the number of subsidized virtual resource transfers available in the current live broadcast to be canceled reaches 1, it will be transferred. Here, the number of virtual resources paid for booking multiple paid live broadcasts is 10, and the number of virtual resources subsidized by the platform for this booking is 1. Assuming that the number of virtual resources corresponding to each paid live broadcast is 1, and each time the user cancels a paid live broadcast reservation, the amount of resource transfer that can be obtained each time using the relevant technology is 1 / 10*1=0.1. Each cancellation fails to meet the resource transfer standard, and the platform is always unable to transfer the compensation resources. However, using the solution shown in the present disclosure, referring to Figure 4 The process of transferring compensation resources is shown. The current resource transfer amounts that the platform can obtain are 1 / 10*1=0.1, 2 / 10*0.1-0=0.2, 3 / 10*1-0=0.3, ..., 10 / 10*1-0=1. At the 10th cancellation, the number of virtual resources that the platform can transfer is 1.

[0052] Figure 5 is a block diagram illustrating a resource processing device according to an exemplary embodiment of the present disclosure.

[0053] Reference Figure 5 According to an exemplary embodiment of the present disclosure, a resource processing device 500 may include a first acquisition unit 501 , a second acquisition unit 502 , and a third acquisition unit 503 .

[0054] The first acquisition unit 501 may acquire a first resource in response to a task processing request, wherein the first resource includes a historical resource corresponding to at least one historical subtask that has been processed in the task and a current resource corresponding to a current subtask to be processed. According to an exemplary embodiment of the present disclosure, the first acquisition unit 501 may acquire the historical resource and the current resource respectively in response to the task processing request, and determine the resource obtained by adding the historical resource and the current resource as the first resource.

[0055] The second acquisition unit 502 may acquire the total resource transfer amount corresponding to the task according to the first resource and the second resource, where the second resource is the compensation resource configured for the task when the task is generated. According to an exemplary embodiment of the present disclosure, the second acquisition unit 502 may find the quotient of the first resource and the total resource corresponding to the task, where the total resource is the resource other than the preset resource configured for the task when the task is generated, and the preset resource represents the execution cost corresponding to the task when it is executed, and the total resource transfer amount corresponding to the task may be obtained by multiplying the quotient result and the second resource.

[0056] The third acquisition unit 503 may obtain the resource transfer amount corresponding to the current subtask according to the total resource transfer amount and the historical resource transfer amount corresponding to the at least one historical subtask. According to an exemplary embodiment of the present disclosure, the third acquisition unit 503 may make a difference between the total resource transfer amount corresponding to the task and the historical resource transfer amount corresponding to the at least one historical subtask, and determine the difference as the resource transfer amount corresponding to the current subtask. According to an exemplary embodiment of the present disclosure, the resource processing device 500 also includes a resource delivery unit 504, and the resource delivery unit 504 may deliver the resources after transferring the resource transfer amount corresponding to the current subtask from the current resources when the resource transfer amount corresponding to the current subtask meets the preset transfer condition.

[0057] Figure 6 is a block diagram of an electronic device 600 according to an exemplary embodiment of the present disclosure.

[0058] Reference Figure 6 The electronic device 600 includes at least one memory 601 and at least one processor 602, wherein the at least one memory 601 stores a set of computer executable instructions, and when the computer executable instruction set is executed by the at least one processor 602, a resource processing method according to an exemplary embodiment of the present disclosure is executed.

[0059] As an example, the electronic device 600 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above instruction set. Here, the electronic device 600 is not necessarily a single electronic device, but may also be any device or circuit capable of executing the above instruction (or instruction set) individually or in combination. The electronic device 600 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.

[0060] In the electronic device 600, the processor 602 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not limitation, the processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.

[0061] The processor 602 may execute instructions or codes stored in the memory 601, which may also store data. Instructions and data may also be sent and received over a network via a network interface device, which may employ any known transmission protocol.

[0062] The memory 601 may be integrated with the processor 602, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 601 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory 601 and the processor 602 may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 602 can read files stored in the memory.

[0063] In addition, the electronic device 600 may further include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device 600 may be connected to each other via a bus and / or a network.

[0064] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium storing instructions may also be provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to execute the resource processing method according to the present disclosure. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.

[0065] According to an exemplary embodiment of the present disclosure, a computer program product may also be provided. Instructions in the computer program product may be executed by a processor of a computer device to implement the resource processing method according to the exemplary embodiment of the present disclosure.

[0066] According to the resource processing method, device, electronic device and medium disclosed in the present invention, the resource transfer amount corresponding to the current subtask is obtained by deducting the transferred historical resource transfer amount of the task from the total accumulated resource transfer amount of the task. In certain resource processing scenarios, the compensation resources provided by the transfer platform to the target account improve the accuracy of resource transfer. In addition, when the resource transfer amount corresponding to the current subtask reaches the preset transfer condition, the resources after the resource transfer amount corresponding to the current subtask is transferred from the current resources will be delivered to the target account, which can take care of the experience of the object corresponding to the target account to a certain extent.

[0067] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0068] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A resource processing method, characterized in that: include: In response to a task processing request, acquiring a first resource, the first resource comprising a historical resource corresponding to at least one historical subtask that has been processed in the task and a current resource corresponding to a current subtask to be processed; Acquire a total resource transfer amount corresponding to the task according to the first resource and the second resource, wherein the second resource is a compensation resource configured for the task when the task is generated; Subtracting the total resource transfer amount corresponding to the task from the historical resource transfer amount corresponding to the at least one historical subtask, and determining the difference as the resource transfer amount corresponding to the current subtask; When the resource transfer amount corresponding to the current subtask meets the preset transfer condition, the resources after the resource transfer amount corresponding to the current subtask is transferred from the current resources will be sent out, wherein the preset transfer condition is that the resource transfer amount corresponding to the current subtask exceeds a preset threshold.

2. The resource processing method according to claim 1, characterized in that: The step of obtaining the first resource in response to the task processing request includes: Responding to the task processing request, respectively acquiring the historical resources and the current resources; A resource obtained by adding the historical resource and the current resource is determined as the first resource.

3. The resource processing method according to claim 1, characterized in that: The acquiring the total resource transfer amount corresponding to the task according to the first resource and the second resource includes: Finding a quotient of the first resource and the total resource corresponding to the task, wherein the total resource is the resource configured for the task when the task is generated except for the preset resource, and the preset resource represents the execution cost corresponding to the task when it is executed; The quotient is multiplied by the second resource to obtain the total resource transfer amount corresponding to the task.

4. The resource processing method according to any one of claims 1 to 3, characterized in that: The first resource does not include processing resources, and the processing resources represent processing costs corresponding to when the at least one historical subtask and the current subtask are processed.

5. A resource processing device, characterized in that: include: A first acquisition unit is configured to: in response to a task processing request, acquire a first resource, wherein the first resource includes a historical resource corresponding to at least one historical subtask that has been processed in the task and a current resource corresponding to a current subtask to be processed; A second acquisition unit is configured to: acquire a total resource transfer amount corresponding to the task according to the first resource and a second resource, wherein the second resource is a compensation resource configured for the task when the task is generated; A third acquisition unit is configured to: subtract the total resource transfer amount corresponding to the task from the historical resource transfer amount corresponding to the at least one historical subtask, and determine the difference as the resource transfer amount corresponding to the current subtask; The resource delivery unit is configured to: when the resource transfer amount corresponding to the current subtask meets the preset transfer condition, send out the resources after the resource transfer amount corresponding to the current subtask is transferred from the current resources, wherein the preset transfer condition is that the resource transfer amount corresponding to the current subtask exceeds a preset threshold.

6. The resource processing device according to claim 5, characterized in that: The first acquisition unit is configured as follows: Responding to the task processing request, respectively acquiring the historical resources and the current resources; A resource obtained by adding the historical resource and the current resource is determined as the first resource.

7. The resource processing device according to claim 5, characterized in that: The second acquisition unit is configured as follows: Finding a quotient of the first resource and the total resource corresponding to the task, wherein the total resource is the resource configured for the task when the task is generated except for the preset resource, and the preset resource represents the execution cost corresponding to the task when it is executed; The quotient is multiplied by the second resource to obtain the total resource transfer amount corresponding to the task.

8. The resource processing device according to any one of claims 5 to 7, characterized in that: The first resource does not include processing resources, and the processing resources represent processing costs corresponding to when the at least one historical subtask and the current subtask are processed.

9. An electronic device, characterized in that: include: at least one processor; at least one memory storing computer executable instructions, Wherein, when the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to execute the resource processing method according to any one of claims 1 to 4.

10. A computer-readable storage medium storing instructions, characterized in that: When the instructions are executed by at least one processor, the at least one processor is prompted to execute the resource processing method according to any one of claims 1 to 4.

11. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by at least one processor, the resource processing method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Processing method of user request and processing device of user request

    CN106067128A

  • Resource processing method and device

    CN110245992A