Resource processing method, device, electronic device and storage medium

By receiving resource allocation failure information in the resource processing server, transferring it to the transit resource account, and performing resource allocation processing, the problem of resource allocation failure in the interaction between the terminal and the server is solved, and the resource allocation success rate and user experience are improved.

CN114416362BActive Publication Date: 2025-05-06BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210028992.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-11
Publication Date
2025-05-06
Estimated Expiration
2042-01-11

AI Technical Summary

Technical Problem

During the interaction between the terminal and the server, resource allocation may fail due to poor network and other reasons, resulting in the inability to return resources to the terminal in time, affecting the user experience.

Method used

By receiving resource allocation failure information, determining the pending resources, transferring them to the transit resource account, and re-allocation processing is performed to the target terminal based on the resources in the transit resource account.

Benefits of technology

The success rate of the resource processing server returning resources to the target terminal is improved, ensuring that resources can be allocated to the terminal in a timely manner, and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114416362B_ABST
    Figure CN114416362B_ABST
Patent Text Reader

Abstract

The present disclosure is about a resource processing method, device, electronic device and storage medium, and the method includes: receiving resource allocation failure information for a target object, the resource allocation failure information carries the target resource quantity; determining the pending resources corresponding to the target object; transferring the pending resources of the target resource quantity to a transit resource account; and performing resource allocation processing to a target terminal according to the pending resources in the transit resource account. It can be seen that, through the technical solution provided by the embodiment of the present disclosure, when performing resource allocation processing to a target terminal, by transferring the pending resources corresponding to the target object to the transit resource account, since the pending resources are the resources transferred by the target terminal to the resource processing server during the interaction between the target terminal and the resource processing server, the pending resources are sufficient, and the corresponding resources can be successfully allocated to the target terminal, that is, the success rate of the resource processing server returning resources to the target terminal is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a resource processing method, device, electronic device and storage medium. Background Art

[0002] With the gradual popularization of terminals, terminals have become an indispensable part of users' daily work and life. For example, many users can use terminals to buy their favorite products online, which involves the interaction between the terminal and the server. During the interaction between the terminal and the server, the terminal will transfer resources to the server. However, in actual applications, the interaction between the terminal and the server may fail due to poor network conditions, and the server needs to return the resources to the terminal.

[0003] In order to return resources to the terminal in time, the related technology usually returns resources through the resources reserved by the merchant. However, if the resources reserved by the merchant are insufficient, the corresponding resources cannot be deducted from the reserved resources to the terminal, resulting in failure to return resources to the terminal. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a resource processing method, device, electronic device and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a resource processing method is provided, the method comprising:

[0006] receiving resource allocation failure information for a target object, the resource allocation failure information carrying the target resource quantity; the resource allocation failure information is generated in response to a target terminal performing resource allocation processing on a resource allocation request for the target object when the resource allocation processing fails;

[0007] Determine the resources to be processed corresponding to the target object;

[0008] Transfer the target number of resources to be processed to the transit resource account;

[0009] According to the resources to be processed in the transit resource account, resource allocation processing is performed to the target terminal.

[0010] Optionally, the performing resource allocation processing to the target terminal according to the resources to be processed in the transit resource account includes:

[0011] Allocating the resources to be processed in the transit resource account to the allocated resource account;

[0012] The resource allocation process is performed on the target terminal using the resources to be processed in the resource allocation account.

[0013] Optionally, the method further includes:

[0014] When the resource allocation process to the target terminal fails, transferring the to-be-processed resources in the transit resource account to the remaining resource account of the target terminal;

[0015] When receiving the resource extraction request of the target terminal, resource allocation processing is performed on the target terminal according to the to-be-processed resources in the remaining resource account.

[0016] Optionally, the method further includes:

[0017] Sending the resource allocation request; the resource allocation request carries the target resource quantity;

[0018] Receive a resource allocation processing result; the resource allocation processing result includes a first allocation processing result and a second allocation processing result, the first allocation processing result is used to indicate that the resource allocation processing is successful, and the second allocation processing result is used to indicate that the resource allocation processing fails;

[0019] When the resource allocation processing result is the second allocation processing result, the resource allocation failure information is generated.

[0020] Optionally, the method further includes:

[0021] Generate a target processing result for resource allocation processing to the target terminal, the target processing result comprising a first processing result and a second processing result, the first processing result is used to indicate that resource allocation to the target terminal is successful, and the second processing result is used to indicate that resource allocation to the target terminal fails;

[0022] When the target processing result is the first processing result, a resource processing state for the target object is updated.

[0023] According to a second aspect of an embodiment of the present disclosure, a resource processing device is provided, the device comprising:

[0024] A resource allocation failure information receiving module is configured to receive resource allocation failure information for a target object, wherein the resource allocation failure information carries the target resource quantity; the resource allocation failure information is generated in response to a target terminal performing resource allocation processing on a resource allocation request for the target object when the resource allocation processing fails;

[0025] A to-be-processed resource determination module, configured to determine the to-be-processed resource corresponding to the target object;

[0026] A first to-be-processed resource transfer module is configured to transfer the to-be-processed resources of the target resource quantity to the transit resource account;

[0027] The first resource allocation module is configured to perform resource allocation processing to the target terminal according to the resources to be processed in the transit resource account.

[0028] Optionally, the first resource allocation module is specifically configured to execute:

[0029] Allocating the resources to be processed in the transit resource account to the allocated resource account;

[0030] The resource allocation process is performed on the target terminal using the resources to be processed in the resource allocation account.

[0031] Optionally, the device further comprises:

[0032] A second to-be-processed resource transfer module is configured to transfer the to-be-processed resources in the transit resource account to the remaining resource account of the target terminal when the resource allocation process to the target terminal fails;

[0033] The second resource allocation module is configured to perform resource allocation processing to the target terminal according to the to-be-processed resources in the remaining resource account when receiving a resource extraction request from the target terminal.

[0034] Optionally, the device further comprises:

[0035] A resource allocation request sending module, configured to execute and send the resource allocation request; the resource allocation request carries the target resource quantity;

[0036] A resource allocation processing result receiving module is configured to execute receiving a resource allocation processing result; the resource allocation processing result includes a first allocation processing result and a second allocation processing result, the first allocation processing result is used to indicate that the resource allocation processing is successful, and the second allocation processing result is used to indicate that the resource allocation processing fails;

[0037] The resource allocation failure information generating module is configured to generate the resource allocation failure information when the resource allocation processing result is the second allocation processing result.

[0038] Optionally, the device further comprises:

[0039] a target processing result generating module, configured to generate a target processing result of resource allocation processing to the target terminal, the target processing result comprising a first processing result and a second processing result, the first processing result being used to indicate that resource allocation to the target terminal is successful, and the second processing result being used to indicate that resource allocation to the target terminal is unsuccessful;

[0040] The resource processing state updating module is configured to update the resource processing state for the target object when the target processing result is the first processing result.

[0041] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0042] processor;

[0043] memory for storing processor executable instructions;

[0044] According to the fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is enabled to execute a resource processing method, which includes the steps of the resource processing method described in the first aspect.

[0045] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided. When the computer is run on the computer, the computer executes the steps of the resource processing method described in the first aspect.

[0046] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0047] The technical solution provided by the embodiment of the present disclosure can be applied to a resource processing server. Specifically, receiving resource allocation failure information for a target object; determining the pending resources corresponding to the target object; transferring the pending resources of the target resource quantity to a transit resource account; and performing resource allocation processing to the target terminal according to the pending resources in the transit resource account. It can be seen that through the technical solution provided by the embodiment of the present disclosure, when performing resource allocation processing to the target terminal, by transferring the pending resources corresponding to the target object to the transit resource account, since the pending resources are the resources transferred by the target terminal to the resource processing server during the interaction between the target terminal and the resource processing server, the pending resources are sufficient, and the corresponding resources can be successfully allocated to the target terminal, that is, the success rate of the resource processing server returning resources to the target terminal is improved.

[0048] 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

[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0050] Figure 1 is a flow chart of a resource processing method according to an exemplary embodiment;

[0051] Figure 2 yes Figure 1 A flowchart of an implementation of S140;

[0052] Figure 3 is a flow chart showing another resource processing method according to an exemplary embodiment;

[0053] Figure 4 is a flow chart of a resource processing system according to an exemplary embodiment;

[0054] Figure 5 is a block diagram of a resource processing device according to an exemplary embodiment;

[0055] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0056] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments 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 appended claims.

[0057] In the related art, in the process of returning resources to the terminal, resources are usually returned through the resources reserved by the merchant. Once the reserved resources are insufficient, it may lead to failure to return resources to the terminal. In addition, resources can only be returned to the terminal after the resources reserved by the merchant are sufficient; if the resources reserved by the merchant are always insufficient, it will lead to failure to return resources to the terminal, which will seriously affect the user experience.

[0058] In order to solve the above problems, the embodiments of the present disclosure first provide a resource processing method, device, electronic device and storage medium.

[0059] In the first aspect, a resource processing method provided by an embodiment of the present disclosure is first described in detail.

[0060] The resource processing method provided by the embodiment of the present disclosure can be applied to a resource processing server.

[0061] Figure 1 is a flow chart of a resource processing method according to an exemplary embodiment. Figure 1 As shown, the method may include the following steps:

[0062] In step S110 , resource allocation failure information for a target object is received.

[0063] The resource allocation failure information carries the target resource quantity; the resource allocation failure information is generated when the resource allocation process fails in response to the target terminal performing resource allocation process on the resource allocation request of the target object.

[0064] Specifically, if an exception occurs during the interaction between the target terminal and the resource processing server, the target terminal initiates a resource allocation request for the target object to the resource processing server. The target object may be a target commodity involved in the interaction between the target terminal and the resource processing server, etc. The present embodiment of the disclosure does not specifically limit this.

[0065] After receiving the resource allocation request sent by the target terminal, the resource processing server sends the resource allocation request to the third-party resource server, and receives the resource allocation processing result sent by the third-party resource server in response to the resource allocation request, the resource allocation processing result including the first allocation processing result used to indicate the success of the resource allocation processing and the second allocation processing result used to indicate the failure of the resource allocation processing. If the resource allocation processing result is the first allocation processing result used to indicate the success of the resource allocation processing, it means that the resource cannot be allocated to the target terminal through the third-party resource server. At this time, resource allocation failure information is generated, and the resource allocation failure information carries the target resource quantity. That is, the resource allocation failure information for the target object is received.

[0066] In step S120, the to-be-processed resources corresponding to the target object are determined.

[0067] Specifically, each object corresponds to corresponding resources to be processed. Compared with the resources to be allocated to the target terminal, the amount of resources to be processed is sufficient. Therefore, in order to successfully allocate resources to the target terminal in subsequent steps, after receiving the resource allocation failure information for the target object, the resources to be processed corresponding to the target object are determined.

[0068] In step S130, the target resource quantity of resources to be processed is transferred to the transit resource account.

[0069] The disclosed embodiment sets a transit resource account, the purpose of which is to transfer sufficient resources to the transit resource account, so as to successfully allocate resources to the target terminal through the resources in the transit resource account. Therefore, after determining the pending resources corresponding to the target object, the pending resources of the target resource amount can be transferred to the transit resource account, thereby ensuring that there are sufficient resources in the transit resource account.

[0070] In step S140, resource allocation processing is performed to the target terminal according to the resources to be processed in the transit resource account.

[0071] From the above description, it can be seen that the resource allocation failure information carries the target resource quantity, that is, the number of resources that need to be allocated to the target terminal is the target resource quantity, and the transit resource account has pending resources of the target resource quantity, that is, there are sufficient resources in the transit resource account. Therefore, the pending resources in the transit resource account are transferred to the target terminal, thereby realizing resource allocation to the target terminal.

[0072] The technical solution provided by the embodiment of the present disclosure can be applied to a resource processing server. Specifically, receiving resource allocation failure information for a target object; determining the pending resources corresponding to the target object; transferring the pending resources of the target resource quantity to a transit resource account; and performing resource allocation processing to the target terminal according to the pending resources in the transit resource account. It can be seen that through the technical solution provided by the embodiment of the present disclosure, when performing resource allocation processing to the target terminal, by transferring the pending resources corresponding to the target object to the transit resource account, since the pending resources are the resources transferred by the target terminal to the resource processing server during the interaction between the target terminal and the resource processing server, the pending resources are sufficient, and the corresponding resources can be successfully allocated to the target terminal, that is, the success rate of the resource processing server returning resources to the target terminal is improved.

[0073] exist Figure 1 Based on the embodiment shown, in order to facilitate recording of resource transfer conditions, in one implementation, S140. Performing resource allocation processing on the target terminal according to the resources to be processed in the transit resource account may include the following steps: Figure 2 As shown, they are step S141 and step S142 respectively:

[0074] In step S141, the resources to be processed in the transit resource account are transferred to the allocated resource account.

[0075] Specifically, in actual applications, in order to facilitate recording of resource transfer conditions, the transit resource account can be used to receive the target resource quantity of pending resources, and the allocation resource account can be used to allocate the target resource quantity of pending resources to the target terminal, that is, the resource quantity of pending resources received by the transit resource account is equal to the resource quantity of resources allocated by the allocation resource account. Based on this, the pending resources in the transit resource account can be transferred to the allocation resource account.

[0076] In step S142, resource allocation processing is performed on the target terminal by allocating the resources to be processed in the resource account.

[0077] From the above description, it can be seen that the resource allocation failure information carries the target resource quantity, that is, the number of resources that need to be allocated to the target terminal is the target resource quantity, and there are pending resources of the target resource quantity in the allocated resource account, that is, there are sufficient resources in the allocated resource account. Therefore, the pending resources in the allocated resource account are transferred to the target terminal, thereby realizing resource allocation to the target terminal.

[0078] It can be seen that, through the technical solution provided by this embodiment, since there are sufficient resources in the allocated resource account, it can be guaranteed that the corresponding resources are successfully allocated to the target terminal. In addition, it is convenient to record the resource transfer situation.

[0079] exist Figure 1 On the basis of the embodiment shown, in order to further ensure successful allocation of resources to the target terminal, in one implementation, the resource processing method may further include the following steps: Figure 3 As shown, they are step S150 and step S160 respectively:

[0080] Step S150: when resource allocation to the target terminal fails, the resources to be processed in the transit resource account are transferred to the remaining resource account of the target terminal.

[0081] In this implementation, there is a remaining resource account corresponding to the target terminal in the resource processing server, and the user can extract resources from the remaining resource account.

[0082] In the process of allocating resources to the target terminal, the resource allocation process may fail due to reasons such as slow network. At this time, the resources to be processed in the terminal resource account can be transferred to the remaining resource account of the target terminal.

[0083] Step S160: upon receiving a resource extraction request from a target terminal, resource allocation processing is performed on the target terminal according to the resources to be processed in the remaining resource account.

[0084] Specifically, the resource processing server transfers the target resource quantity of unprocessed resources to the remaining resource account. Therefore, there are sufficient resources in the remaining resource account. Therefore, the unprocessed resources in the remaining resource account can be allocated to the target terminal, thereby successfully allocating resources to the target terminal.

[0085] It can be seen that through the technical solution provided by this embodiment, when the resource allocation processing to the target terminal through the pending resources in the transit resource account fails, the resources can be further allocated to the target terminal through the pending resources in the remaining resource account, thereby improving the success rate of allocating resources to the target terminal.

[0086] In the above Figures 1 to 3Based on the illustrated embodiment, before step S110, the method may further include the following steps, namely step a to step c:

[0087] Step a: Send a resource allocation request.

[0088] The resource allocation request carries the target resource quantity.

[0089] Specifically, after receiving the resource allocation request sent by the target terminal, the resource processing server may first send a resource allocation request to a third-party resource server, so as to allocate resources to the target terminal through the third-party resource server.

[0090] Step b: receiving resource allocation processing results.

[0091] The resource allocation processing result includes a first allocation processing result and a second allocation processing result. The first allocation processing result is used to indicate that the resource allocation processing is successful, and the second allocation processing result is used to indicate that the resource allocation processing fails.

[0092] Specifically, after receiving the resource allocation request, the third-party resource server responds to the resource allocation request and feeds back the resource allocation processing result to the resource processing server. When the resource allocation processing of the third-party resource server is successful, the resource allocation processing result is a first allocation processing result used to indicate the success of the resource allocation processing; when the resource allocation processing of the third-party resource server fails, the resource allocation processing result is a second allocation processing result used to indicate the failure of the resource allocation processing.

[0093] Step c: when the resource allocation processing result is the second allocation processing result, generate resource allocation failure information.

[0094] Specifically, if the resource allocation processing result is the first allocation processing result for indicating successful resource allocation processing, it means that resources cannot be allocated to the target terminal through the third-party resource server. At this time, resource allocation failure information is generated, and the resource allocation failure information carries the target resource quantity.

[0095] It can be seen that through the technical solution provided by this implementation, before receiving the resource allocation failure information, it is possible to try to allocate resources to the target terminal through a third-party resource server. If the resources cannot be successfully allocated to the target terminal through the third-party resource server, the resources are allocated to the target terminal through the transit resource account, which further improves the success rate of allocating resources to the target terminal.

[0096] In the above Figures 1 to 3 Based on the illustrated embodiment, the resource processing method may further include the following steps, namely step c and step d:

[0097] Step c: generating a target processing result for performing resource allocation processing on the target terminal.

[0098] The target processing result includes a first processing result and a second processing result. The first processing result is used to indicate that resource allocation to the target terminal is successful, and the second processing result is used to indicate that resource allocation to the target terminal is unsuccessful.

[0099] Specifically, the above-mentioned embodiments can realize resource allocation processing to the target terminal. After the resource allocation processing to the target terminal, a target processing result for resource allocation to the target terminal can be generated. The target processing result can include a first processing result for characterizing the success of resource allocation to the target terminal and a second processing result for characterizing the failure of resource allocation to the target terminal.

[0100] Step d: when the target processing result is the first processing result, update the resource processing state for the target object.

[0101] Specifically, when the processing result is the first processing result indicating successful resource allocation to the target terminal, the resource processing state for the target object is updated. For example, the resource processing state may be updated from resources to be allocated to allocated resources.

[0102] It can be seen that through the technical solution provided by this embodiment, after allocating resources to the target terminal, the resource processing status for the target object can be updated in time to avoid repeated attempts to allocate resources to the target terminal, thereby saving the consumption of the resource processing server.

[0103] In order to describe the solution clearly, the resource processing method provided by the embodiment of the present disclosure will be described in detail below in conjunction with the resource processing system.

[0104] like Figure 4 As shown, in the process of allocating resources to the target terminal, the target terminal 410 , the resource processing server 420 and the third-party resource server 430 are involved, wherein the resource processing server 420 may include a resource transfer server 421 and a resource allocation server 422 .

[0105] Specifically, during the process of interaction between the target terminal and the resource server, if an interaction abnormality occurs, the target terminal executes the step of sending a resource allocation request to the resource processing server.

[0106] After receiving the resource allocation request, the resource processing server sends the resource allocation request to the third-party resource server and performs resource allocation processing;

[0107] When the resource allocation process of the third-party resource server fails, the third-party resource server executes to send a second allocation process result indicating the failure of the resource allocation process to the resource processing server;

[0108] After receiving the second allocation processing result, the resource processing server generates resource allocation failure information.

[0109] The resource transfer server may transfer the target resource quantity to be processed to the transit resource account, and allocate resources to the target terminal through the transit resource account. Alternatively, the resource allocation server may transfer the target resource in the transit resource account to the allocation resource account, and allocate resources to the target terminal through the allocation resource account.

[0110] If resource allocation to the target terminal fails, the resource transfer server may transfer the pending resources in the transit resource account to the remaining resource account of the target terminal, and allocate resources to the target terminal through the remaining resource account.

[0111] It can be seen that, through the technical solution provided by the embodiment of the present disclosure, when allocating resources to the target terminal through the transfer resource account or the allocation resource account, there are sufficient resources, which can improve the success rate of resource allocation. Moreover, when resource allocation fails, resources can also be allocated to the target terminal through the remaining resource account, further improving the success rate of resource allocation.

[0112] In a second aspect, the present disclosure provides a resource processing device, such as Figure 5 As shown, the device comprises:

[0113] The resource allocation failure information receiving module 510 is configured to receive resource allocation failure information for a target object, wherein the resource allocation failure information carries the target resource quantity; the resource allocation failure information is generated in response to a target terminal performing resource allocation processing on a resource allocation request for the target object when the resource allocation processing fails;

[0114] A to-be-processed resource determination module 520 is configured to determine the to-be-processed resource corresponding to the target object;

[0115] The first to-be-processed resource transfer module 530 is configured to transfer the to-be-processed resources of the target resource quantity to the transit resource account;

[0116] The first resource allocation module 540 is configured to perform resource allocation processing to the target terminal according to the resources to be processed in the transit resource account.

[0117] The technical solution provided by the embodiment of the present disclosure can be applied to a resource processing server. Specifically, receiving resource allocation failure information for a target object; determining the pending resources corresponding to the target object; transferring the pending resources of the target resource quantity to a transit resource account; and performing resource allocation processing to the target terminal according to the pending resources in the transit resource account. It can be seen that through the technical solution provided by the embodiment of the present disclosure, when performing resource allocation processing to the target terminal, by transferring the pending resources corresponding to the target object to the transit resource account, since the pending resources are the resources transferred by the target terminal to the resource processing server during the interaction between the target terminal and the resource processing server, the pending resources are sufficient, and the corresponding resources can be successfully allocated to the target terminal, that is, the success rate of the resource processing server returning resources to the target terminal is improved.

[0118] Optionally, the first resource allocation module is specifically configured to execute:

[0119] Transferring the resources to be processed in the transit resource account to the allocated resource account;

[0120] The resource allocation process is performed on the target terminal using the resources to be processed in the resource allocation account.

[0121] Optionally, the device further comprises:

[0122] A second to-be-processed resource transfer module is configured to transfer the to-be-processed resources in the transit resource account to the remaining resource account of the target terminal when the resource allocation process to the target terminal fails;

[0123] The second resource allocation module is configured to perform resource allocation processing to the target terminal according to the to-be-processed resources in the remaining resource account when receiving a resource extraction request from the target terminal.

[0124] Optionally, the device further comprises:

[0125] A resource allocation request sending module, configured to execute and send the resource allocation request; the resource allocation request carries the target resource quantity;

[0126] A resource allocation processing result receiving module is configured to execute receiving a resource allocation processing result; the resource allocation processing result includes a first allocation processing result and a second allocation processing result, the first allocation processing result is used to indicate that the resource allocation processing is successful, and the second allocation processing result is used to indicate that the resource allocation processing fails;

[0127] The resource allocation failure information generating module is configured to generate the resource allocation failure information when the resource allocation processing result is the second allocation processing result.

[0128] Optionally, the device further comprises:

[0129] a target processing result generating module, configured to generate a target processing result of resource allocation processing to the target terminal, the target processing result comprising a first processing result and a second processing result, the first processing result being used to indicate that resource allocation to the target terminal is successful, and the second processing result being used to indicate that resource allocation to the target terminal is unsuccessful;

[0130] The resource processing state updating module is configured to update the resource processing state for the target object when the target processing result is the first processing result.

[0131] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0132] processor;

[0133] memory for storing processor executable instructions;

[0134] The processor is configured to execute the resource processing method described in the first aspect.

[0135] The technical solution provided by the embodiment of the present disclosure can be applied to a resource processing server. Specifically, receiving resource allocation failure information for a target object; determining the pending resources corresponding to the target object; transferring the pending resources of the target resource quantity to a transit resource account; and performing resource allocation processing to the target terminal according to the pending resources in the transit resource account. It can be seen that through the technical solution provided by the embodiment of the present disclosure, when performing resource allocation processing to the target terminal, by transferring the pending resources corresponding to the target object to the transit resource account, since the pending resources are the resources transferred by the target terminal to the resource processing server during the interaction between the target terminal and the resource processing server, the pending resources are sufficient, and the corresponding resources can be successfully allocated to the target terminal.

[0136] Figure 6 6 is a block diagram of a device 600 for processing resources according to an exemplary embodiment. For example, the device 600 may be provided as a server. Figure 6 , the apparatus 600 includes a processing component 622, which further includes one or more processors, and a memory resource represented by a memory 632 for storing instructions executable by the processing component 622, such as an application. The application stored in the memory 632 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 622 is configured to execute instructions to perform the above method...

[0137] The device 600 may also include a power supply component 626 configured to perform power management of the device 600, a wired or wireless network interface 650 configured to connect the device 600 to a network, and an input / output (I / O) interface 658. The device 600 may operate based on an operating system stored in the memory 632, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.

[0138] According to the fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is enabled to execute a resource processing method, which includes the steps of the resource processing method described in the first aspect.

[0139] The technical solution provided by the embodiment of the present disclosure can be applied to a resource processing server. Specifically, receiving resource allocation failure information for a target object; determining the pending resources corresponding to the target object; transferring the pending resources of the target resource quantity to a transit resource account; and performing resource allocation processing to the target terminal according to the pending resources in the transit resource account. It can be seen that through the technical solution provided by the embodiment of the present disclosure, when performing resource allocation processing to the target terminal, by transferring the pending resources corresponding to the target object to the transit resource account, since the pending resources are the resources transferred by the target terminal to the resource processing server during the interaction between the target terminal and the resource processing server, the pending resources are sufficient, and the corresponding resources can be successfully allocated to the target terminal, that is, the success rate of the resource processing server returning resources to the target terminal is improved.

[0140] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided. When the computer program product is run on a computer, the computer executes the steps of the resource processing method described in the first aspect.

[0141] The technical solution provided by the embodiment of the present disclosure can be applied to a resource processing server. Specifically, receiving resource allocation failure information for a target object; determining the pending resources corresponding to the target object; transferring the pending resources of the target resource quantity to a transit resource account; and performing resource allocation processing to the target terminal according to the pending resources in the transit resource account. It can be seen that through the technical solution provided by the embodiment of the present disclosure, when performing resource allocation processing to the target terminal, by transferring the pending resources corresponding to the target object to the transit resource account, since the pending resources are the resources transferred by the target terminal to the resource processing server during the interaction between the target terminal and the resource processing server, the pending resources are sufficient, and the corresponding resources can be successfully allocated to the target terminal, that is, the success rate of the resource processing server returning resources to the target terminal is improved.

[0142] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, DSL (Digital Subscriber Line)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD (Digital Versatile Disc)), or a semiconductor medium (eg, an SSD (Solid State Disk)), etc.

[0143] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0144] 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.

[0145] 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: The method comprises: receiving resource allocation failure information for a target object, the resource allocation failure information carrying the target resource quantity; the resource allocation failure information is generated in response to a target terminal performing resource allocation processing on a resource allocation request for the target object when the resource allocation processing fails; Determine the resources to be processed corresponding to the target object; Transfer the target number of resources to be processed to the transit resource account; Allocate resources to the target terminal according to the resources to be processed in the transit resource account; The step of allocating resources to the target terminal according to the resources to be processed in the transit resource account includes: Transferring the resources to be processed in the transit resource account to the allocated resource account; The resource allocation process is performed on the target terminal using the resources to be processed in the resource allocation account.

2. The method according to claim 1, characterized in that The method further comprises: When the resource allocation process to the target terminal fails, transferring the to-be-processed resources in the transit resource account to the remaining resource account of the target terminal; When receiving the resource extraction request of the target terminal, resource allocation processing is performed on the target terminal according to the to-be-processed resources in the remaining resource account.

3. The method according to any one of claims 1 to 2, characterized in that: The method further comprises: Sending the resource allocation request; the resource allocation request carries the target resource quantity; Receive a resource allocation processing result; the resource allocation processing result includes a first allocation processing result and a second allocation processing result, the first allocation processing result is used to indicate that the resource allocation processing is successful, and the second allocation processing result is used to indicate that the resource allocation processing fails; When the resource allocation processing result is the second allocation processing result, the resource allocation failure information is generated.

4. The method according to any one of claims 1 to 2, characterized in that: The method further comprises: Generate a target processing result for resource allocation processing to the target terminal, the target processing result comprising a first processing result and a second processing result, the first processing result is used to indicate that resource allocation to the target terminal is successful, and the second processing result is used to indicate that resource allocation to the target terminal fails; When the target processing result is the first processing result, a resource processing state for the target object is updated.

5. A resource processing device, characterized in that: The device comprises: A resource allocation failure information receiving module is configured to receive resource allocation failure information for a target object, wherein the resource allocation failure information carries the target resource quantity; the resource allocation failure information is generated in response to a target terminal performing resource allocation processing on a resource allocation request for the target object when the resource allocation processing fails; A to-be-processed resource determination module, configured to determine the to-be-processed resource corresponding to the target object; A first to-be-processed resource transfer module is configured to transfer the to-be-processed resources of the target resource quantity to the transit resource account; A first resource allocation module is configured to perform resource allocation processing to the target terminal according to the resources to be processed in the transit resource account; The first resource allocation module is specifically configured to execute: Transferring the resources to be processed in the transit resource account to the allocated resource account; The resource allocation process is performed on the target terminal using the resources to be processed in the resource allocation account.

6. The device according to claim 5, characterized in that The device also includes: A second to-be-processed resource transfer module is configured to transfer the to-be-processed resources in the transit resource account to the remaining resource account of the target terminal when the resource allocation process to the target terminal fails; The second resource allocation module is configured to perform resource allocation processing to the target terminal according to the to-be-processed resources in the remaining resource account when receiving a resource extraction request from the target terminal.

7. The device according to any one of claims 5 to 6, characterized in that The device also includes: A resource allocation request sending module, configured to execute and send the resource allocation request; the resource allocation request carries the target resource quantity; A resource allocation processing result receiving module is configured to execute receiving a resource allocation processing result; the resource allocation processing result includes a first allocation processing result and a second allocation processing result, the first allocation processing result is used to indicate that the resource allocation processing is successful, and the second allocation processing result is used to indicate that the resource allocation processing fails; The resource allocation failure information generating module is configured to generate the resource allocation failure information when the resource allocation processing result is the second allocation processing result.

8. The device according to any one of claims 5 to 6, characterized in that The device also includes: a target processing result generating module, configured to generate a target processing result of resource allocation processing to the target terminal, the target processing result comprising a first processing result and a second processing result, the first processing result being used to indicate that resource allocation to the target terminal is successful, and the second processing result being used to indicate that resource allocation to the target terminal is unsuccessful; The resource processing state updating module is configured to update the resource processing state for the target object when the target processing result is the first processing result.

9. An electronic device, characterized in that: include: processor; memory for storing processor executable instructions; The processor is configured to execute the resource processing method described in any one of claims 1-4.

10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal is enabled to execute a resource processing method, which includes the steps of the resource processing method according to any one of claims 1-4.

11. A computer program product, characterized in that When it runs on a computer, it enables the computer to execute the steps of the resource processing method described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Transaction processing method, device and equipment

    CN112016921A