[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN118296059A - Resource processing method, apparatus, computer device, storage medium, and program product - Google Patents

Resource processing method, apparatus, computer device, storage medium, and program product Download PDF

Info

Publication number
CN118296059A
CN118296059A CN202410368662.8A CN202410368662A CN118296059A CN 118296059 A CN118296059 A CN 118296059A CN 202410368662 A CN202410368662 A CN 202410368662A CN 118296059 A CN118296059 A CN 118296059A
Authority
CN
China
Prior art keywords
resource
address
transfer
return
addresses
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410368662.8A
Other languages
Chinese (zh)
Inventor
邹均胜
武想益
方舜宇
江志辉
林炽杰
蓝思茵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202410368662.8A priority Critical patent/CN118296059A/en
Publication of CN118296059A publication Critical patent/CN118296059A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0837Return transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/50Business processes related to the communications industry

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Human Resources & Organizations (AREA)
  • General Health & Medical Sciences (AREA)
  • Fuzzy Systems (AREA)
  • Primary Health Care (AREA)
  • Technology Law (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure relates to the technical field of big data, and particularly discloses a resource processing method, a device, computer equipment, a storage medium and a program product. The method comprises the following steps: responding to a resource return request of a target resource address, and acquiring a resource transfer record list of the target resource address; determining a resource return address from each transfer-in resource address; transferring resources from the target resource address to the resource return address. Wherein the resource transfer-in record list comprises at least one transfer-in resource address. By adopting the method, the potential safety hazard existing in the resource return mode can be reduced.

Description

Resource processing method, apparatus, computer device, storage medium, and program product
Technical Field
The present application relates to the field of big data technology, and in particular, to a resource processing method, apparatus, computer device, storage medium, and program product.
Background
With the rise of living standard, the flow or transfer of resources is more and more frequent, and common resources include entity resources and electronic resources. For example, the physical resource transfer may be transferring a physical item from one location to another; electronic resource transfer may be the transfer of a virtual item from one network address to another.
The resource transfer-related scenarios are very numerous, and may be, for example, resource return or resource transfer. Taking the resource return of electronic resources as an example, in the related art, when the resource return processing is performed, the resource return is generally implemented by providing a specific resource return address, and then transferring the corresponding resource amount to the resource return address.
However, the resource return mode in the related art has a certain potential safety hazard.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a resource processing method, apparatus, computer device, storage medium, and program product, which can reduce the potential safety hazard existing in the resource return method.
In a first aspect, the present application provides a resource processing method, including:
Responding to a resource return request of a target resource address, and acquiring a resource transfer record list of the target resource address; the resource transfer record list comprises at least one transfer resource address;
determining a resource return address from each transfer-in resource address;
Transferring resources from the target resource address to the resource return address.
In one embodiment, the resource return request includes a return platform identification and a return scenario identification; determining a resource return address from each of the transfer-in resource addresses, including:
determining a resource return mode according to the return platform identifier and the return scene identifier;
And determining the resource return address from the transferred resource addresses according to the resource return mode.
In one embodiment, determining the resource return address from the transferred-in resource addresses according to the resource return mode includes:
if the resource return mode is to return the resources according to the resource transfer time, acquiring the resource transfer time of each transfer resource address recorded in the resource transfer record list;
and determining a resource return address from each transfer-in resource address according to the resource transfer-in time of each transfer-in resource address.
In one embodiment, determining the resource return address from each of the diverted resource addresses according to the resource diverted time of each diverted resource address includes:
Sequencing the transfer-in resource addresses according to the resource transfer-in time of the transfer-in resource addresses;
Determining the first N addresses in the time-ordered transferred resource addresses as resource return addresses; n is an integer greater than or equal to 1.
In one embodiment, determining the resource return address from the transferred-in resource addresses according to the resource return mode includes:
If the resource return mode is to return the resources according to the resource transfer quantity, acquiring the resource transfer quantity of each transfer resource address recorded in the resource transfer record list;
And determining a resource return address from each transfer-in resource address according to the resource transfer-in quantity of each transfer-in resource address.
In one embodiment, determining the resource return address from each diverted resource address according to the resource diverted amount and the resource diverted time of each diverted resource address includes:
Sequencing the transferred resource addresses according to the resource transfer quantity of the transferred resource addresses;
M addresses with the longest transfer time from the current time in the transfer-in resource addresses after the resource quantity sequencing are determined to be resource return addresses; m is an integer greater than or equal to 1.
In one embodiment, transferring resources from a target resource address to a resource return address includes:
Determining the resource return amount corresponding to the resource return address from the resource transfer record list;
And transferring the resources from the target resource address to the resource return address according to the resource return amount corresponding to the resource return address.
In one embodiment, the resource return address includes a plurality of addresses, and determining, from the resource transfer record list, a resource return amount corresponding to the resource return address includes:
Respectively obtaining the resource transfer quantity corresponding to each address in the resource return address from the resource transfer record list;
and determining each resource transfer-in quantity as a resource return quantity of the corresponding address.
In one embodiment, transferring the resource from the target resource address to the resource return address according to the resource return amount corresponding to the resource return address includes:
If the resource return amount corresponding to the resource return address is larger than a preset return threshold value, dividing the resource return amount corresponding to the resource return address into a plurality of reference resource amounts; each reference resource amount is smaller than the return threshold;
And transferring the resources with the same reference resource quantity from the target resource address to the resource return address respectively.
In one embodiment, transferring the resource from the target resource address to the resource return address according to the resource return amount corresponding to the resource return address includes:
Determining a resource return channel of the resource return address according to the resource transfer channel of the resource return address recorded in the resource transfer record detail table;
and returning the resources with the same resource return quantity to the resource return address according to the resource return channel.
In one embodiment, the method further comprises:
and responding to at least one resource transfer request transferred to the resource address, and transferring the resource quantity indicated by the resource transfer request from each transfer resource address to the target resource address.
In one embodiment, the method further comprises:
Acquiring resource transfer information of each transfer resource address to a target resource address; the resource transfer information at least comprises transfer resource quantity, resource transfer time and a resource transfer channel;
And storing the resource transfer information of each transfer resource address into a resource transfer record list.
In a second aspect, the present application also provides a resource processing device, including:
The request response module is used for responding to the resource return request of the target resource address and acquiring a resource transfer record list of the target resource address; the resource transfer-in record details comprise at least one transfer-in resource address;
the address determining module is used for determining a resource return address from each transfer-in resource address;
And the resource return module is used for transferring the resource from the target resource address to the resource return address.
In a third aspect, the application also provides a computer device comprising a memory storing a computer program and a processor implementing the steps of the method of any one of the embodiments of the first aspect described above when the computer program is executed by the processor.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the embodiments of the first aspect described above.
In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method of any of the embodiments of the first aspect described above.
The resource processing method, the device, the computer equipment, the storage medium and the program product respond to the resource return request of the target resource address, firstly acquire the resource transfer record list of the target resource address, then determine the resource return address from the transfer resource address in the resource transfer record list, and finally transfer the resource from the target resource address to the resource return address. Wherein the resource transfer-in record list comprises at least one transfer-in resource address. In the method, on the basis of acquiring a resource transfer record list of a target resource address, a resource return address is determined from a plurality of transfer resource addresses in the target resource address, and the original path of the resource in the target resource address is returned to the address which has undergone resource transfer with the target resource address, which is equivalent to considering the risk factors existing in the resource return address in the process of transferring the resource in the target resource address, so that the safety and objectivity of the resource return address are ensured to a certain extent, and the safety of the resource in the target resource address is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is an internal block diagram of a computer device in one embodiment;
FIG. 2 is a flow diagram of a method of resource processing in one embodiment;
FIG. 3 is a flow chart of a resource processing method according to another embodiment;
FIG. 4 is a flow chart of a resource processing method according to another embodiment;
FIG. 5 is a flow chart of a resource processing method according to another embodiment;
FIG. 6 is a flow chart of a method of processing resources according to another embodiment;
FIG. 7 is a flow chart of a method of processing resources according to another embodiment;
FIG. 8 is a flow chart of a method of processing resources according to another embodiment;
FIG. 9 is a flow chart of a method of processing resources according to another embodiment;
FIG. 10 is a flow chart of a method of processing resources according to another embodiment;
FIG. 11 is a flowchart of a resource processing method according to another embodiment;
FIG. 12 is a block diagram of a resource processing device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The resource processing method provided by the embodiment of the application can be applied to the computer equipment shown in fig. 1, wherein the computer equipment can be a terminal, and the internal structure diagram of the computer equipment can be shown in fig. 1. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a resource processing method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the architecture shown in fig. 1 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements may be implemented, as a particular computer device may include more or less components than those shown, or may be combined with some components, or may have a different arrangement of components.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments.
It should be noted that, in the technical scheme of the application, the acquisition, storage, use, processing and the like of the data all conform to the relevant regulations of national laws and regulations.
The target resource address can receive the resources with different transfer-in resource amounts transferred in different resource transfer-in channels by each transfer-in resource address at different resource transfer-in times. In order to facilitate clear and concise description of the technical scheme provided by the application, a resource return mode of the scheme is described by taking one resource transfer between different transfer resource addresses and target resource addresses as an example.
The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
In an exemplary embodiment, as shown in fig. 2, there is provided a resource processing method, including the steps of:
S201, responding to a resource return request of a target resource address, and acquiring a resource transfer record list of the target resource address; the resource transfer record list includes at least one transfer resource address.
Wherein, the target resource address refers to the position of the storage resource, for example, in the field of logistics transmission, the target resource address can be the warehouse address of the storage article; in the communication field, the target resource address may be an email box storing the communication message; in the financial field, the target resource address may be an electronic account storing an electronic resource.
In the embodiment of the application, under the condition that the target resource address stores the resource, the resource record detail table corresponding to the target resource address is obtained in response to the resource return request. In an actual scenario, the resource record detail table stores each resource transfer detail of the target resource address, such as a resource transfer time, a transfer resource address, a resource transfer amount, a resource transfer platform, and the like.
S202, determining a resource return address from each transfer-in resource address.
And determining one or more resource return addresses from a plurality of transfer-in resource addresses in the resource transfer-in record list according to a preset determination rule.
Optionally, determining a plurality of resource return addresses according to the sequence from big to small or from small to big based on the amount of the transferred resources of the transferred resource addresses; or determining a plurality of resource return addresses according to the sequence from far to near or from near to far based on the resource transfer time of transferring the resource address; or determining the transfer-in resource address corresponding to the resource transfer platform as a resource return address based on the resource transfer-in platform.
S203, transferring the resource from the target resource address to the resource return address.
And returning the resources in the target resource address to the resource return address according to the resource transfer quantity corresponding to the resource return address.
And when the resource return address is one, returning the resources in the target resource address to the resource return address according to the resource transfer quantity corresponding to the resource return address.
When the number of the resource return addresses is multiple, the resources in the target resource address can be divided into the same number of parts as the number of the resource return addresses according to the resource transfer quantity corresponding to each resource return address, and then the resources in the target resource address are returned to each resource return address respectively.
In the embodiment of the application, in response to a resource return request of a target resource address, a resource transfer record list of the target resource address is firstly obtained, then a resource return address is determined from the transfer resource address in the resource transfer record list, and finally the resource is transferred from the target resource address to the resource return address. Wherein the resource transfer-in record list comprises at least one transfer-in resource address. In the method, on the basis of acquiring a resource transfer record list of a target resource address, a resource return address is determined from a plurality of transfer resource addresses in the target resource address, and the original path of the resource in the target resource address is returned to the address which has undergone resource transfer with the target resource address, which is equivalent to considering the risk factors existing in the resource return address in the process of transferring the resource in the target resource address, so that the safety and objectivity of the resource return address are ensured to a certain extent, and the safety of the resource in the target resource address is further improved.
The foregoing embodiments do not limit the manner of determining the resource return address in the case of taking each transfer-in resource address as a basis, that is, the resource return address may be determined in a plurality of determination manners. Based on this, one implementation of determining the resource retirement address is described below.
In one exemplary embodiment, as shown in FIG. 3, the resource retraction request includes a retraction platform identification and a retraction scenario identification; determining a resource return address from each of the transfer-in resource addresses, including:
s301, determining a resource return mode according to the return platform identification and the return scene identification.
The fallback platform identification represents a channel, such as a first application program interface identification, a second application program interface identification, etc., that originated the resource fallback request.
The return scenario identification indicates the purpose of initiating resource return, such as resource transfer-in exception, target resource address cancellation, etc.
The terminal may store in advance a mapping relationship between the return platform identifier, the return scene identifier, and the resource return mode, and in this case, the terminal may match the resource return mode in the mapping relationship table with the return platform identifier and the return scene identifier.
In the embodiment of the application, the resource return mode comprises the following steps: the common single return is performed according to the resource return address and the resource return amount provided by the user; batch differential withdrawal can be divided into withdrawal treatment according to the dimension of difference from near to far, withdrawal treatment according to the dimension of distance from far to near, and withdrawal treatment according to the amount of resource transfer. Taking the case that N resource transfer addresses are used for generating N resource transfer to the target resource address, the three differential return modes are respectively further described as follows:
① And performing resource return processing from far to near according to time.
Taking the example that N resource transfer addresses generate N resource transfer to a target resource address, the resource transfer time corresponding to each resource transfer is respectively expressed as: t 1、t2,......,tN, wherein t 1≥t2≥...≥tn.
The corresponding resource transfer amount of each resource transfer is respectively expressed as: RECHARGEAMT 1、RechargeAmt2,......,RechargeAmtN, and meets the following requirements:
(1)
Wherein k represents the kth resource transfer, RECHARGEAMT k represents the resource transfer amount corresponding to the kth resource transfer, and AccountAmt is the resource return amount returned by the target resource address.
Then, for the previous (N-1) resource transfer record, the resource transfer is the original path and all returns, namely
(2)
In the above formula, k is more than or equal to 1 and less than N, refundAmt k represents the resource return amount of the kth resource return.
For the last, i.e., nth, resource transfer record, the expression for the resource return amount RefundAmt N is as follows:
(3)
② And performing resource return processing from far to near according to time.
Taking the example that N resource transfer addresses generate N resource transfer to a target resource address, the resource transfer time corresponding to each resource transfer is respectively expressed as: t 1、t2,......,tN, wherein t 1≤t2≤...≤tn.
The corresponding resource transfer amount of each resource transfer is respectively expressed as: RECHARGEAMT 1、RechargeAmt2,......,RechargeAmtN, and meets the following requirements:
(4)
Wherein k represents the kth resource transfer, RECHARGEAMT k represents the resource transfer amount corresponding to the kth resource transfer, and AccountAmt is the resource return amount returned by the target resource address.
Then, for the previous (N-1) resource transfer record, the transfer resource quantity is originally and completely returned, namely
(5)
In the above formula, k is more than or equal to 1 and less than N, refundAmt k represents the resource return amount of the kth resource return.
For the last, i.e., nth, resource transfer record, the expression for the resource return amount RefundAmt N is as follows:
(6)
③ And carrying out resource return processing according to the resource transfer quantity.
And obtaining the transfer-in resource quantity of each transfer-in resource address from the resource transfer-in record detail table according to the residual resource quantity of the target resource address, and further screening m transfer-in resource addresses and corresponding resource transfer-in quantities, wherein the m transfer-in resource addresses are larger than or equal to the residual resource quantity of the target resource address. I.e.
(7)
Where m is the minimum integer value satisfying the above inequality, and RECHARGEAMT satisfies the following requirements:
RechargeAmt1≥RechargeAmt2≥...≥RechargeAmtm (8)
Then, for the previous (m-1) resource transfer record, the transfer resource quantity is originally and completely returned, namely
(9)
In the above formula, k is more than or equal to 1 and less than m, refundAmt k represents the resource return amount of the kth resource return.
For the last, i.e., mth, resource transfer record, the expression for the retract amount RefundAmt m is as follows:
(10)
In another scenario, the terminal may further store a resource return prediction model, input the return platform identifier and the return scenario identifier as inputs to the resource return prediction model, and obtain an output result of the resource return model, and a resource return mode.
S302, determining a resource return address from the transferred resource addresses according to the resource return mode.
And according to the resource return mode, determining the matching degree of each transfer-in resource address and the resource return mode, and then determining the transfer-in resource address meeting the matching degree requirement as the resource return address.
In the embodiment of the application, the resource return mode is determined based on the return platform identification and the return scene identification, and the determined result is naturally accurate and effective on the basis of multidimensional and reliable determination. And then, according to the resource return mode, quickly and accurately determining the resource return address from the transferred resource addresses.
Next, an implementation manner of determining the resource return address from the transferred-in resource addresses according to the resource return mode in the foregoing embodiment S302 "as shown in fig. 4, includes:
s401, if the resource return mode is to return the resources according to the resource transfer time, acquiring the resource transfer time of each transfer resource address recorded in the resource transfer record list.
The resource record list stores the resource transfer time of each transfer resource address, and on the basis, if the resource return mode is to return the resource according to the resource transfer time, the resource transfer time of each transfer resource address can be obtained from the resource transfer record list.
S402, determining a resource return address from each transfer-in resource address according to the resource transfer-in time of each transfer-in resource address.
And sequencing the transfer-in resource addresses according to the time sequence, and then determining one or more resource return addresses according to the sequenced transfer-in resource addresses.
Illustratively, the shift-in resource address whose resource shift-in time is closest to the current time is determined as the resource return address, or the shift-in resource address whose resource shift-in time is farthest from the current time is determined as the resource return address.
In the embodiment of the application, the resource return address is determined from each transfer-in resource address according to the resource transfer-in time of each transfer-in resource address, and the resource transfer-in time is objectively stored in the resource transfer-in record detail table, which means that the basis for determining the resource return address is also objectively and accurately, so that the way of determining the resource return address avoids the interference of human subjective factors and improves the effectiveness of the resource return address.
The manner in which the resource return address is determined based on the resource transfer time is further described below by way of one embodiment. In one exemplary embodiment, as shown in fig. 5, determining a resource return address from each of the diverted resource addresses according to the resource diverted time of each diverted resource address includes:
s501, sorting the transferred resource addresses according to the resource transfer time of the transferred resource addresses.
Optionally, under the circumstance that the resources with the resource addresses with the nearer transfer times are returned preferentially, sorting the transfer resource addresses according to the sequence that the resource transfer time of each transfer resource address is from the near to the far from the current moment.
Optionally, under the scenario of preferentially returning the resources with the resource addresses with far transfer times, the resource addresses with the transfer times can be sorted according to the sequence from far to near from the current moment.
S502, determining the first N addresses in each transferred resource address after time sequencing as resource return addresses; n is an integer greater than or equal to 1.
Under the condition that each transfer-in resource address after time sequencing is acquired, numbering is carried out on each transfer-in resource address from small to large from 1, and the transfer-in resource address corresponding to the first N numbers is determined to be a resource return address. Because the embodiment of the application does not limit the number of the resource return addresses, N is an integer greater than or equal to 1.
In the embodiment of the application, the time sorting is carried out on each transfer-in resource address according to the resource transfer-in time of each transfer-in resource address, then the first N addresses in each transfer-in resource address after time sorting are determined as resource return addresses according to the time difference between the resource transfer-in time of each transfer-in resource address and the current moment, and the mode of determining the resource return addresses is simple in logic, reliable in basis and easy to realize.
Next, an implementation manner of determining the resource return address from the transferred-in resource addresses according to the resource return mode in the foregoing embodiment S302 "as shown in fig. 6, includes:
S601, if the resource return mode is to return the resources according to the resource transfer quantity, acquiring the resource transfer quantity of each transfer resource address recorded in the resource transfer record list.
Taking one resource transfer between different transfer resource addresses and target resource addresses as an example, the resource transfer amount refers to the amount of resources transferred from each transfer resource address to the target resource address. For the target resource address, the resource transfer-in quantity can reflect the influence degree between the transfer-in resource address and the target resource address to a certain extent, namely, the larger the resource transfer-in quantity is, the larger the influence degree of the transfer-in resource address on the target resource address is, the smaller the resource transfer-in quantity is, and the smaller the influence degree of the transfer-in resource address on the target resource address is.
The resource record list stores the resource transfer-in quantity of each transfer-in resource address, and on the basis, if the resource return mode is to return the resource according to the resource transfer-in quantity, the resource transfer-in quantity of each transfer-in resource address can be obtained from the resource transfer-in record list.
S602, determining a resource return address from each transfer-in resource address according to the resource transfer-in quantity of each transfer-in resource address.
And sorting the transfer-in resource addresses according to the values of the transfer-in quantity of the resources, and determining one or more resource return addresses according to the sorted transfer-in resource addresses.
Illustratively, the roll-in resource address with the largest roll-in amount of the resource is determined as the resource return address, or a plurality of roll-in resource addresses with the roll-in amount of the resource larger than a certain preset roll-in amount threshold value are determined as the resource return address.
In the embodiment of the application, the resource return address is determined from each transfer-in resource address according to the resource transfer-in quantity of each transfer-in resource address, and the influence degree between the transfer-in resource address and the target resource address is reflected to a certain extent because the resource transfer-in quantity is objectively stored in the resource transfer-in record detail table, which means that the influence degree between the transfer-in resource address and the target resource address is considered while the interference of human subjective factors is avoided by the way of determining the resource return address, so that the determined resource return address has credibility and accuracy.
The manner in which the resource return address is determined based on the amount of resource transfers is further described below by way of one embodiment. In one exemplary embodiment, as shown in fig. 7, determining a resource return address from each of the diverted resource addresses according to the resource diverted amount and the resource diverted time of each diverted resource address includes:
s701, sorting the transferred resource addresses according to the resource transfer quantity of the transferred resource addresses.
And sequencing the transferred resource addresses according to the sequence of the resource transfer quantity of the transferred resource addresses from big to small (or from small to big).
S702, determining M addresses with the longest transfer time from the current time in each transfer-in resource address after the sequencing of the resource quantity as resource return addresses; m is an integer greater than or equal to 1.
When each transfer-in resource address after each resource amount ordering is acquired, numbering is performed from 1 for each transfer-in resource address from small to large, then, M addresses with the transfer-in time farthest from the current time are determined as resource return addresses, and in another scenario, M addresses with the transfer-in time closest to the current time may be determined as resource return addresses.
It should be noted that, because the number of the resource return addresses is not limited in the embodiment of the present application, M is an integer greater than or equal to 1.
In the embodiment of the application, the transfer-in resource addresses are sequenced according to the transfer-in quantity and the transfer-in time of the resources, so that the determined resource return addresses simultaneously meet the resource transfer-in quantity requirement and the transfer-in time requirement, and the resource return is supported under the resource return scenes with different complexity degrees.
In one exemplary embodiment, as shown in FIG. 8, transferring a resource from a target resource address to a resource return address includes:
s801, determining the resource return amount corresponding to the resource return address from the resource transfer record list.
The resource record list stores the resource transfer-in quantity of each transfer-in resource address, and the resource return address is determined from the transfer-in resource address, so that the resource record list naturally stores the resource transfer-in quantity of the resource return address.
Then the resource transfer amount of each resource return address can be determined as the resource return amount corresponding to the resource return address under the condition that each resource return address is determined. The resource return address may be one address or a plurality of addresses.
In one exemplary embodiment, the resource return address includes an address, and the resource transfer amount of the resource return address is determined from the resource transfer record list as the resource return amount of the resource return address.
In an exemplary embodiment, the resource return address includes a plurality of addresses, and the resource return amounts corresponding to the addresses in the resource return address are respectively obtained from the resource return record list, and then the resource return amounts are determined as the resource return amounts of the corresponding addresses.
Under the condition that the resource return address comprises a plurality of addresses, the resource transfer quantity corresponding to each resource return address can be read in batches from the resource transfer record list, then the resource return quantity of each resource return address is determined in batches, and compared with the mode of inquiring one by one and determining the resource return quantity, the method for determining the resource return quantity shortens the determination time of the resource return quantity, and further improves the resource return efficiency.
S802, transferring the resource from the target resource address to the resource return address according to the resource return amount corresponding to the resource return address.
And dividing the resources corresponding to the resource return amount from the target resource address to the resource return address on the basis of determining the resource return amount of the resource return address for any resource return address, and completing resource return.
In the embodiment of the application, the resource return amount of the resource return address is determined according to the resource return amount of the resource return address recorded in the resource return record list, and the resource corresponding to the resource return amount is transferred from the target resource address to the resource return address, namely, the original path of the resource returned from the resource return address is returned, so that the potential safety hazard of the resource transfer mode in the target resource address is eliminated.
In the process of resource return, a single resource return upper limit and a return channel are set for each resource return address, so that the safety of each resource return operation is ensured. Based on this, the resource retraction method will be described below from two dimensions of the resource retraction amount and the retraction path, respectively.
The manner in which the resource is returned according to the amount of returned resource will be further described below.
In an exemplary embodiment, as shown in fig. 9, transferring resources from a target resource address to a resource return address according to a resource return amount corresponding to the resource return address includes:
s901, if the resource return amount corresponding to the resource return address is larger than a preset return threshold, dividing the resource return amount corresponding to the resource return address into a plurality of reference resource amounts; each reference resource amount is less than the backoff threshold.
The retraction threshold refers to a single resource retraction upper limit supported by the resource retraction address. Different resource retirement addresses correspond to different retirement thresholds.
If the resource return amount corresponding to the resource return address is smaller than or equal to a preset return threshold value, the resource return amount is directly returned to the target resource address.
If the resource return amount corresponding to the resource return address is greater than the preset return threshold, dividing the resource return amount corresponding to the resource return address so that the divided reference resource amounts are smaller than the return threshold, and returning the divided reference resource amounts to the target resource address in batches. Note that, when the reference resource amount is smaller than the backoff threshold, the reference resource amounts may be the same or different.
S902, transferring the resources with the same reference resource quantity from the target resource address to the resource return address.
When the plurality of reference resource amounts are divided, determining resources which are the same as the reference resource amounts from the target resource address, and respectively transferring the corresponding resources from the target resource address to the resource return address.
In the embodiment of the application, under the condition that the resource return amount corresponding to the resource return address is larger than the preset return threshold, the resource return amount is divided and the resource return is carried out for a plurality of times, so that the return mode is more flexible, and the resource return amount can be returned as much as the number while meeting the return threshold.
The manner in which the resource is returned according to the resource return channel is further described below.
In an exemplary embodiment, as shown in fig. 10, transferring resources from a target resource address to a resource return address according to a resource return amount corresponding to the resource return address includes:
s1001, determining a resource return channel of the resource return address according to the resource return channel of the resource return address recorded in the resource return record list.
The resource record list stores the resource transfer channels of each transfer resource address, and the resource return address is determined from the transfer resource address, so the resource record list naturally stores the resource transfer channels of the resource return address.
In the embodiment of the application, under the condition of determining the resource return address, the resource transfer channel of the resource return address is determined as the resource return channel of the resource return address. That is, the channel from the target resource address to the resource return address returns the resource is consistent with the channel from the resource return address to the target resource address.
S1002, returning the resources with the same resource return quantity to the resource return address according to the resource return channel.
And returning the resources with the same resource return quantity in the target resource address to the resource return address through the resource return channel by the original path to finish the resource return.
In the embodiment of the application, the resource is returned to the resource return address through the resource transfer channel of the resource return address, which is equivalent to the channel of returning the resource from the target resource address to the resource return address, and is also the channel of transferring the resource from the resource return address to the target resource address, so that the convenient transfer and return of the resource can be realized only by reserving one resource transfer channel between the target resource address and the resource return address.
In practical applications, the resource return request of the target resource address is performed based on the storage of the resource in the target resource address, and then the step of transferring the resource in the target resource address is described.
In an exemplary embodiment, the method further comprises:
and responding to at least one resource transfer request transferred to the resource address, and transferring the resource quantity indicated by the resource transfer request from each transfer resource address to the target resource address.
The resource transfer-in request is generated for other transfer-in resource addresses according to the demand of the target resource address transfer-in resource. Each transfer-in resource address corresponds to one resource transfer-in request, and the resource amounts indicated by different resource transfer-in requests can be the same or different.
For each transfer-in resource address, responding to the resource transfer-in request, determining the resource corresponding to the resource quantity indicated by the resource transfer-in request from the transfer-in resource address, and transferring the resource from the transfer-in resource address to the target resource address according to the resource transfer-in channel between the transfer-in resource address and the target resource address.
In the embodiment of the application, for each transfer-in resource address, the resource quantity indicated by the resource transfer-in request is transferred from each transfer-in resource address to the target resource address in response to the resource transfer-in request, so that the target resource address is supported to receive the resource transfer-in of different resource transfer-in channels and different resource quantities, and the scene of receiving the transfer-in resource by the target resource address is improved.
As is clear from the foregoing embodiments, the contents and the generation method of the resource transfer record list will be described below based on the transfer resource list in which the target resource address is recorded in the resource transfer record list.
In an exemplary embodiment, as shown in fig. 11, the method further comprises:
S1101, obtaining resource transfer information of each transfer resource address to a target resource address; the resource transfer information at least comprises transfer resource quantity, resource transfer time and resource transfer channel.
It should be noted that, the target resource address may receive the resource transfer request before responding to the resource return request, and generate the resource transfer record list, or may receive the resource transfer request and update the resource transfer record list in the process of the resource return request, which is not limited in this embodiment of the present application.
The target resource address can receive the resources with different transfer-in resource amounts transferred in different resource transfer-in channels by each transfer-in resource address at different resource transfer-in times.
And recording a piece of corresponding resource transfer information for each resource transfer operation of the target resource address, wherein the corresponding resource transfer information comprises transfer resource quantity, resource transfer time, resource transfer channel and the like.
And S1102, storing the resource transfer information of each transfer resource address into a resource transfer record list.
And generating a group of resource transfer information every time the target resource address transfers to one resource, and recording the resource transfer information in a resource transfer recording list of the target resource address.
Taking the financial field as an example, please refer to table 1, table 1 is the registration content in the record list for the resource transfer.
TABLE 1
It should be noted that, table 1 is only a schematic diagram of the contents of the resource transfer record list, and in practical application, other transfer list information may also be included, which is not limited in this embodiment of the present application.
In the embodiment of the application, the transfer-in resource quantity, the resource transfer-in time and the resource transfer-in channel corresponding to each transfer-in resource address are used as the resource transfer-in information and stored in the resource transfer-in record detail table, and each resource transfer-in record of the target resource address is recorded from multiple dimensions so as to be convenient for tracing the resources in the target resource address subsequently.
In one embodiment, a method for processing resources is provided, the method comprising:
(1) And responding to at least one resource transfer request transferred to the resource address, and transferring the resource quantity indicated by the resource transfer request from each transfer resource address to the target resource address.
(2) Acquiring resource transfer information of each transfer resource address to a target resource address; the resource transfer information at least comprises transfer resource quantity, resource transfer time and resource transfer channel.
(3) And storing the resource transfer information of each transfer resource address into a resource transfer record list.
(4) Responding to a resource return request of a target resource address, and acquiring a resource transfer record list of the target resource address; the resource transfer record list includes at least one transfer resource address.
The resource return request comprises a return platform identifier and a return scene identifier.
(5) And determining a resource return mode according to the return platform identifier and the return scene identifier.
(6) And determining the resource return address from the transferred resource addresses according to the resource return mode.
Optionally, if the resource return mode is to return the resource according to the resource transfer time, acquiring the resource transfer time of each transfer resource address recorded in the resource transfer record list; sequencing the transfer-in resource addresses according to the resource transfer-in time of the transfer-in resource addresses; determining the first N addresses in the time-ordered transferred resource addresses as resource return addresses; n is an integer greater than or equal to 1.
Optionally, if the resource return mode is to return the resource according to the resource transfer amount, acquiring the resource transfer amount of each transfer resource address recorded in the resource transfer recording list; sequencing the transferred resource addresses according to the resource transfer quantity of the transferred resource addresses; m addresses with the longest transfer time from the current time in the transfer-in resource addresses after the resource quantity sequencing are determined to be resource return addresses; m is an integer greater than or equal to 1.
(7) And respectively acquiring the resource transfer quantity corresponding to each address in the resource return address from the resource transfer record list.
(8) And determining the transfer-in quantity of each resource as the resource return quantity corresponding to the resource return address.
(9) If the resource return amount corresponding to the resource return address is larger than a preset return threshold value, dividing the resource return amount corresponding to the resource return address into a plurality of reference resource amounts; each reference resource amount is less than the backoff threshold.
(10) And determining a resource return channel of the resource return address according to the resource transfer channel of the resource return address recorded in the resource transfer record detail table.
(11) And transferring the resources with the same reference resource quantity from the target resource address to the resource return address according to the resource return channel.
In the embodiment of the application, in response to a resource return request of a target resource address, a resource transfer record list of the target resource address is firstly obtained, then a resource return address is determined from the transfer resource address in the resource transfer record list, and finally the resource is transferred from the target resource address to the resource return address. Wherein the resource transfer-in record list comprises at least one transfer-in resource address. In the method, on the basis of acquiring a resource transfer record list of a target resource address, a resource return address is determined from a plurality of transfer resource addresses in the target resource address, and the original path of the resource in the target resource address is returned to the address which has undergone resource transfer with the target resource address, which is equivalent to considering the risk factors existing in the resource return address in the process of transferring the resource in the target resource address, so that the safety and objectivity of the resource return address are ensured to a certain extent, and the safety of the resource in the target resource address is further improved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a resource processing device for realizing the above related resource processing method. The implementation of the solution provided by the apparatus is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more resource processing apparatus provided below may refer to the limitation of the resource processing method hereinabove, and will not be repeated herein.
In one exemplary embodiment, as shown in fig. 12, there is provided a resource processing apparatus including: a request response module 1201, an address determination module 1202, and a resource retraction module 1203, wherein:
A request response module 1201, configured to obtain a resource transfer record list of the target resource address in response to a resource return request of the target resource address; the resource transfer-in record details comprise at least one transfer-in resource address;
An address determining module 1202, configured to determine a resource return address from each transferred-in resource address;
a resource retraction module 1203 is configured to transfer resources from the target resource address to the resource retraction address.
In an exemplary embodiment, the address determining module comprises a first determining unit and a second determining unit, wherein:
the first determining unit is used for determining a resource return mode according to the return platform identifier and the return scene identifier;
And the second determining unit is used for determining the resource return address from the transferred resource addresses according to the resource return mode.
In an exemplary embodiment, the second determining unit includes: a first acquisition subunit and a second acquisition subunit, wherein:
the first obtaining subunit is used for obtaining the resource transfer time of each transfer-in resource address recorded in the resource transfer-in record list if the resource transfer-in mode is that the resource is returned according to the resource transfer-in time;
and the second acquisition subunit is used for determining a resource return address from each transfer-in resource address according to the resource transfer-in time of each transfer-in resource address.
In an exemplary embodiment, the second obtaining subunit is further configured to sort the respective transfer-in resource addresses according to a resource transfer-in time of the respective transfer-in resource addresses; determining the first N addresses in the time-ordered transferred resource addresses as resource return addresses; n is an integer greater than or equal to 1.
In an exemplary embodiment, the second determining unit includes: a third acquisition subunit and a fourth acquisition subunit, wherein:
the third obtaining subunit is used for obtaining the resource transfer quantity of each transfer resource address recorded in the resource transfer record list if the resource return mode is to return the resource according to the resource transfer quantity;
and the fourth acquisition subunit is used for determining a resource return address from each transfer-in resource address according to the resource transfer-in quantity of each transfer-in resource address.
In an exemplary embodiment, the fourth obtaining subunit is further configured to sort the respective transfer-in resource addresses according to the resource transfer-in amounts of the respective transfer-in resource addresses; m addresses with the longest transfer time from the current time in the transfer-in resource addresses after the resource quantity sequencing are determined to be resource return addresses; m is an integer greater than or equal to 1.
In one exemplary embodiment, resource return module 1203 includes: a third determination unit and a resource transfer unit, wherein:
the third determining unit is used for determining the resource return amount corresponding to the resource return address from the resource transfer record list;
and the resource transfer unit is used for transferring the resources from the target resource address to the resource return address according to the resource return amount corresponding to the resource return address.
In an exemplary embodiment, the third determining unit includes: a third acquisition subunit and a retract amount determination subunit, wherein:
The third obtaining subunit is used for obtaining the resource transfer-in quantity corresponding to each address in the resource return address from the resource transfer-in record detail table;
and the return amount determining subunit is used for determining each resource transfer amount as the resource return amount of the corresponding address.
In an exemplary embodiment, the resource transferring unit is further configured to divide the resource return amount corresponding to the resource return address into a plurality of reference resource amounts if the resource return amount corresponding to the resource return address is greater than a preset return threshold; each reference resource amount is smaller than the return threshold; and transferring the resources with the same reference resource quantity from the target resource address to the resource return address respectively.
In an exemplary embodiment, the resource transfer unit is further configured to determine a resource return channel of the resource return address according to a resource transfer channel of the resource return address recorded in the resource transfer record list; and returning the resources with the same resource return quantity to the resource return address according to the resource return channel.
In an exemplary embodiment, the resource processing device further includes: and the resource transfer module is used for responding to at least one resource transfer request transferred to the resource address and transferring the resource quantity indicated by the resource transfer request from each transfer resource address to the target resource address.
In an exemplary embodiment, the resource processing device further includes: the system comprises an information acquisition module and an information recording module, wherein:
The information acquisition module is used for acquiring resource transfer information of each transfer resource address to a target resource address; the resource transfer information at least comprises transfer resource quantity, resource transfer time and a resource transfer channel;
And the information recording module is used for storing the resource transfer information of each transfer resource address into the resource transfer recording list.
The respective modules in the above-described resource processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In an exemplary embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor performing the steps of the method embodiments described above when the computer program is executed.
In one exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method embodiments described above. In an exemplary embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are both information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (16)

1. A method of resource processing, the method comprising:
responding to a resource return request of a target resource address, and acquiring a resource transfer record list of the target resource address; the resource transfer-in record list comprises at least one transfer-in resource address;
Determining a resource return address from each transfer-in resource address;
transferring resources from the target resource address to the resource return address.
2. The method of claim 1, wherein the resource retraction request includes a retraction platform identification and a retraction scenario identification; the determining the resource return address from the transferred resource addresses comprises the following steps:
determining a resource return mode according to the return platform identifier and the return scene identifier;
And determining a resource return address from the transferred resource addresses according to the resource return mode.
3. The method of claim 2, wherein said determining a resource fallback address from each of said transferred-in resource addresses in accordance with said resource fallback mode comprises:
if the resource return mode is to return the resource according to the resource transfer time, acquiring the resource transfer time of each transfer resource address recorded in the resource transfer record list;
And determining a resource return address from each transfer-in resource address according to the resource transfer-in time of each transfer-in resource address.
4. The method of claim 3, wherein said determining a resource return address from each of said diverted resource addresses based on a resource diverted time for each of said diverted resource addresses comprises:
Sorting the transfer-in resource addresses according to the resource transfer-in time of the transfer-in resource addresses;
Determining the first N addresses in the time-ordered transferred resource addresses as the resource return addresses; and N is an integer greater than or equal to 1.
5. The method of claim 2, wherein said determining a resource fallback address from each of said transferred-in resource addresses in accordance with said resource fallback mode comprises:
if the resource return mode is to return the resources according to the resource transfer quantity, acquiring the resource transfer quantity of each transfer resource address recorded in the resource transfer record detail table;
and determining a resource return address from each transfer-in resource address according to the resource transfer-in quantity of each transfer-in resource address.
6. The method of claim 5, wherein determining a resource return address from each of the diverted resource addresses based on the resource diverted amount and the resource diverted time of each of the diverted resource addresses comprises:
Sorting the transferred resource addresses according to the resource transfer quantity of the transferred resource addresses;
M addresses with the longest transfer time from the current time in the transfer-in resource addresses after the resource quantity sequencing are determined to be the resource return addresses; and M is an integer greater than or equal to 1.
7. The method of any of claims 1-6, wherein the transferring resources from the target resource address to the resource return address comprises:
Determining the resource return amount corresponding to the resource return address from the resource transfer record list;
And transferring the resource from the target resource address to the resource return address according to the resource return amount corresponding to the resource return address.
8. The method of claim 7, wherein the resource return address comprises a plurality of addresses, and wherein determining the resource return amount corresponding to the resource return address from the resource transfer-to-record list comprises:
Respectively obtaining the resource transfer quantity corresponding to each address in the resource return address from the resource transfer record list;
And determining each resource transfer-in quantity as a resource return quantity of the corresponding address.
9. The method of claim 7, wherein transferring resources from the target resource address to the resource return address according to the resource return amount corresponding to the resource return address comprises:
if the resource return amount corresponding to the resource return address is larger than a preset return threshold, dividing the resource return amount corresponding to the resource return address into a plurality of reference resource amounts; each of the reference resource amounts is less than the backoff threshold;
and transferring the resources with the same reference resource quantity from the target resource address to the resource return address respectively.
10. The method of claim 7, wherein transferring resources from the target resource address to the resource return address according to the resource return amount corresponding to the resource return address comprises:
determining a resource return channel of the resource return address according to the resource transfer channel of the resource return address recorded in the resource transfer record detail table;
and returning the resources with the same resource return quantity to the resource return address according to the resource return channel.
11. The method according to any one of claims 1-6, further comprising:
and responding to the resource transfer-in request of the at least one transfer-in resource address, and transferring the resource quantity indicated by the resource transfer-in request from each transfer-in resource address to the target resource address.
12. The method of claim 11, wherein the method further comprises:
Acquiring resource transfer information of each transfer resource address to the target resource address; the resource transfer information at least comprises transfer resource quantity, resource transfer time and a resource transfer channel;
And storing the resource transfer information of each transfer resource address into the resource transfer record list.
13. A resource processing apparatus, the apparatus comprising:
the request response module is used for responding to a resource return request of a target resource address and acquiring a resource transfer record list of the target resource address; the resource transfer-in record details comprise at least one transfer-in resource address;
the address determining module is used for determining a resource return address from the transfer-in resource addresses;
And the resource return module is used for transferring the resource from the target resource address to the resource return address.
14. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 12 when the computer program is executed.
15. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 12.
16. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 12.
CN202410368662.8A 2024-03-28 2024-03-28 Resource processing method, apparatus, computer device, storage medium, and program product Pending CN118296059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410368662.8A CN118296059A (en) 2024-03-28 2024-03-28 Resource processing method, apparatus, computer device, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410368662.8A CN118296059A (en) 2024-03-28 2024-03-28 Resource processing method, apparatus, computer device, storage medium, and program product

Publications (1)

Publication Number Publication Date
CN118296059A true CN118296059A (en) 2024-07-05

Family

ID=91682204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410368662.8A Pending CN118296059A (en) 2024-03-28 2024-03-28 Resource processing method, apparatus, computer device, storage medium, and program product

Country Status (1)

Country Link
CN (1) CN118296059A (en)

Similar Documents

Publication Publication Date Title
CN116303657A (en) Group image generation method, group image generation device, computer device, and storage medium
CN117370488A (en) Data processing method, device, electronic equipment and computer readable storage medium
CN117332766A (en) Flow chart generation method, device, computer equipment and storage medium
CN118296059A (en) Resource processing method, apparatus, computer device, storage medium, and program product
CN116932935A (en) Address matching method, device, equipment, medium and program product
CN117390098A (en) Data analysis method, device, computer equipment and storage medium
CN116861107A (en) Business content display method, device, equipment, medium and product
CN117473130A (en) Service processing method, device, equipment, medium and program product
CN117033766A (en) Service processing behavior prediction method, device, computer equipment and storage medium
CN116488986A (en) Event-driven message touch method, system and device and storage medium
CN115758271A (en) Data processing method, data processing device, computer equipment and storage medium
CN112420168B (en) Method, device, equipment and storage medium for writing data into database
CN117435589A (en) Data transfer method, device, computer equipment and storage medium
CN116866419A (en) Information pushing method, device, computer equipment and storage medium
CN116910115A (en) Group query method, device, computer equipment and storage medium
CN118154300A (en) Mortgage parameter processing method, mortgage parameter processing device, computer equipment and storage medium
CN117172896A (en) Prediction method, prediction apparatus, computer device, storage medium, and program product
CN118193396A (en) Test method, test apparatus, computer device, storage medium, and program product
CN118628105A (en) Resource transfer data processing method, device, computer equipment and storage medium
CN117152428A (en) Model training method, device, computer equipment and computer readable storage medium
CN117033451A (en) Searching method, searching device, computer equipment and storage medium
CN117407418A (en) Information acquisition method, information acquisition device, computer apparatus, storage medium, and program product
CN117909550A (en) Query method, query device, computer equipment and storage medium
CN118608138A (en) Virtual resource transfer method, device, computer equipment, storage medium and product
CN117238017A (en) Face recognition method, device, computer equipment and storage medium

Legal Events

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