CN113011607A - Resource recovery method, device, equipment and storage medium - Google Patents

Resource recovery method, device, equipment and storage medium Download PDF

Info

Publication number
CN113011607A
CN113011607A CN202110208282.4A CN202110208282A CN113011607A CN 113011607 A CN113011607 A CN 113011607A CN 202110208282 A CN202110208282 A CN 202110208282A CN 113011607 A CN113011607 A CN 113011607A
Authority
CN
China
Prior art keywords
resource
channel
target
recovery
recovered
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.)
Granted
Application number
CN202110208282.4A
Other languages
Chinese (zh)
Other versions
CN113011607B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110208282.4A priority Critical patent/CN113011607B/en
Publication of CN113011607A publication Critical patent/CN113011607A/en
Application granted granted Critical
Publication of CN113011607B publication Critical patent/CN113011607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/30Administration of product recycling or disposal
    • 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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • 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
    • G06Q40/06Asset management; Financial planning or analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02WCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
    • Y02W90/00Enabling technologies or technologies with a potential or indirect contribution to greenhouse gas [GHG] emissions mitigation

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Marketing (AREA)
  • General Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Game Theory and Decision Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Sustainable Development (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Educational Administration (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides a resource recovery method, a device, equipment and a storage medium, which relate to the technical field of computers, and the method comprises the following steps: and determining a resource recovery amount threshold value based on the total resource amount to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the target resource channel, so that the resource recovery amount threshold value is the total resource amount to be recovered corresponding to the target resource channel, and is not only the resource amount allocated to the target recovery object from the target resource channel. When the resources of the target recovery object are requested to be recovered, if the requested resource recovery amount is not larger than the resource recovery amount threshold value, the server recovers the resources allocated to the target recovery object to the target resource channel according to the requested resource recovery amount, and when the total to-be-recovered resource amount of the target resource channel is large enough, all the resources allocated to the target recovery object can be recovered through the target resource channel without recovering the resources of the target recovery object through a plurality of resource channels, so that the flexibility of resource recovery is improved.

Description

Resource recovery method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a resource recovery method, a resource recovery device, resource recovery equipment and a storage medium.
Background
When an object requests a resource, the resource platform generally supports the allocation of resources of different resource channels for the same object, and when the resource platform recovers the resource, the resource requested by the object can only recover the original resource channel. For example, the target object requests 100 resources from the resource platform, the resource platform allocates 50 resources from the resource channel 1 to the target object, 30 resources from the resource channel 2 to the target object, and 20 resources from the resource channel 3 to the target object. In resource recovery, 50 parts of the resources of the target object are returned to the resource channel 1, 30 parts of the resources of the target object are returned to the resource channel 2, and 20 parts of the resources of the target object are returned to the resource channel 3.
When resources are allocated to a plurality of objects corresponding to the same user, resources may need to be recovered from a plurality of resource channels for each object, so that resource recovery is not flexible enough.
Disclosure of Invention
The embodiment of the application provides a resource recovery method, a resource recovery device, a resource recovery equipment and a storage medium, which are used for improving the flexibility of resource recovery.
In one aspect, an embodiment of the present application provides a resource recovery method, which specifically includes:
receiving a resource recovery request, wherein the resource recovery request is sent by a terminal device in response to a resource recovery operation triggered by a target account, and the resource recovery request carries a resource recovery amount requested by a target recovery object and a channel identifier of a target resource channel;
acquiring a resource recovery amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, wherein the resource recovery amount threshold is determined based on the total resource amount to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the target resource channel;
and if the requested resource recovery amount is not greater than the resource recovery amount threshold, recovering the resources allocated to the target recovery object to the target resource channel according to the requested resource recovery amount, and sending a resource recovery success message to the terminal equipment.
In one aspect, an embodiment of the present application provides a resource recovery method, which specifically includes:
responding to a resource recovery operation triggered by a target account, sending a resource recovery request to a server, wherein the resource recovery request carries a request resource recovery amount of a target recovery object and a channel identifier of a target resource channel, so that the server obtains a resource recovery amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, and the resource recovery amount threshold is determined based on a total resource amount to be recovered of each recovery object in the target account and a resource proportion to be recovered corresponding to the target resource channel; if the requested resource recovery amount is not greater than the resource recovery amount threshold, recovering the resources allocated to the target recovery object to the target resource channel according to the requested resource recovery amount, and sending a resource recovery success message to the terminal device;
and displaying the resource recycling success message on a display interface.
In one aspect, an embodiment of the present application provides a resource recovery device, where the device specifically includes:
the system comprises a receiving module, a resource recovery module and a resource management module, wherein the receiving module is used for receiving a resource recovery request, the resource recovery request is sent by a terminal device in response to a resource recovery operation triggered by a target account, and the resource recovery request carries a resource recovery amount requested by a target recovery object and a channel identifier of a target resource channel;
the matching module is used for acquiring a resource recovery amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, wherein the resource recovery amount threshold is determined based on the total resource amount to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the target resource channel;
a processing module, configured to, if the requested resource recovery amount is not greater than the resource recovery amount threshold, recover the resource allocated to the target recovery object to the target resource channel according to the requested resource recovery amount;
and the first sending module is used for sending the resource recycling success message to the terminal equipment.
Optionally, the processing module is further configured to:
and according to the request resource recovery amount, after the resources allocated to the target recovery object are recovered to the target resource channel, updating the proportion of the resources to be recovered corresponding to the target resource channel and the proportion of the resources to be recovered corresponding to other resource channels except the target resource channel according to the request resource recovery amount.
Optionally, the receiving module is further configured to:
before receiving a resource recovery request, receiving an object resource query request, where the object resource query request is sent by the terminal device in response to a first query operation triggered by a resource amount to be recovered for the target recovery object, and the object resource query request carries an object identifier of the target recovery object;
the matching module is further configured to:
obtaining the amount of resources to be recycled of the target recycling object based on the object identification of the target recycling object;
the first sending module is further configured to:
and sending the resource amount to be recovered of the target object to the terminal equipment so that the terminal equipment displays the resource amount to be recovered of the target object in a display interface.
Optionally, the receiving module is further configured to:
before receiving a resource recovery request, receiving a channel resource query request, wherein the channel resource query request is sent by the terminal device in response to a second query operation triggered by a resource recovery amount threshold corresponding to each resource channel, and the channel resource query request carries a channel identifier of each resource channel corresponding to the target account;
the matching module is further configured to:
respectively acquiring the proportion of resources to be recovered corresponding to each resource channel based on the channel identification of each resource channel;
the processing module is further configured to:
respectively determining resource recovery quantity threshold values corresponding to the resource channels according to the total resource quantity to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the resource channels;
the first sending module is further configured to:
and sending the resource recovery quantity threshold value corresponding to each resource channel to the terminal equipment so that the terminal equipment displays the resource recovery quantity threshold value corresponding to each resource channel in a display interface.
Optionally, the receiving module is further configured to:
receiving a resource allocation request, wherein the resource allocation request is sent by the terminal device in response to a resource allocation operation triggered by the target account, and the resource allocation request carries a request resource allocation amount of a target allocation object and a channel identifier of the target resource channel;
the matching module is further configured to:
acquiring the residual resource amount of the target resource channel based on the channel identification of the target resource channel;
the processing module is further configured to:
if the requested resource allocation amount is not larger than the residual resource amount of the target resource channel, allocating the resources in the target resource channel to the target allocation object according to the requested resource allocation amount;
the first sending module is further configured to:
and sending a resource allocation success message to the terminal equipment.
Optionally, the processing module is further configured to:
and after the resources in the target resource channel are allocated to the target allocation object according to the requested resource allocation amount, updating the proportion of the resources to be recovered corresponding to the target resource channel and the proportion of the resources to be recovered corresponding to other resource channels except the target resource channel according to the requested resource allocation amount.
In one aspect, an embodiment of the present application provides a resource recovery device, where the device specifically includes:
a second sending module, configured to send a resource recovery request to a server in response to a resource recovery operation triggered for a target account, where the resource recovery request carries a requested resource recovery amount of a target recovery object and a channel identifier of a target resource channel, so that the server obtains, based on the channel identifier of the target resource channel, a resource recovery amount threshold corresponding to the target resource channel, where the resource recovery amount threshold is determined based on a total to-be-recovered resource amount of each recovery object in the target account and a to-be-recovered resource ratio corresponding to the target resource channel; if the requested resource recovery amount is not greater than the resource recovery amount threshold, recovering the resources allocated to the target recovery object to the target resource channel according to the requested resource recovery amount, and sending a resource recovery success message to the terminal device;
and the display module is used for displaying the resource recycling success message on a display interface.
Optionally, the second sending module is further configured to:
responding to a resource recovery operation triggered by a target account, sending a resource recovery request to a server in response to a first query operation triggered by a resource amount to be recovered of the target recovery object before sending the resource recovery request to the server, wherein the object resource query request carries an object identifier of the target recovery object, so that the server obtains the resource amount to be recovered of the target recovery object based on the object identifier of the target recovery object, and sends the resource amount to be recovered of the target recovery object to the terminal device;
the display module is further configured to:
and displaying the quantity of the resources to be recovered of the target recovery object in the display interface.
Optionally, the second sending module is further configured to:
the method comprises the steps of responding to a resource recovery operation triggered by a target account, responding to a second query operation triggered by a resource recovery amount threshold value corresponding to each resource channel before sending a resource recovery request to a server, and sending a channel resource query request to the server, wherein the channel resource query request carries a channel identifier of each resource channel corresponding to the target account, so that the server respectively obtains a proportion of resources to be recovered corresponding to each resource channel based on the channel identifier of each resource channel; respectively determining resource recovery quantity threshold values corresponding to the resource channels according to the total resource quantity to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the resource channels; sending the resource recovery quantity threshold value corresponding to each resource channel to the terminal equipment;
the display module is further configured to:
and displaying the resource recovery quantity threshold value respectively corresponding to each resource channel in the display interface.
Optionally, the second sending module is further configured to:
responding to a resource allocation operation triggered by the target account, and sending a resource allocation request to a server, wherein the resource allocation request carries a request resource allocation amount of a target allocation object and a channel identifier of the target resource channel, so that the server acquires the residual resource amount of the target resource channel based on the channel identifier of the target resource channel; if the requested resource allocation amount is not greater than the residual resource amount of the target resource channel, allocating the resources in the target resource channel to the target allocation object according to the requested resource allocation amount, and sending a resource allocation success message to the terminal device;
the display module is further configured to:
and displaying the successful resource allocation message on the display interface.
In the embodiment of the application, the resource recovery amount threshold is determined based on the total to-be-recovered resource amount of each recovery object in the target account and the to-be-recovered resource proportion corresponding to the target resource channel, so that the resource recovery amount threshold is the total to-be-recovered resource amount corresponding to the target resource channel, and is not only the resource amount allocated to the target recovery object from the target resource channel. If the requested resource recovery amount is not greater than the resource recovery amount threshold, the resources allocated to the target recovery object are recovered to the target resource channel according to the requested resource recovery amount, that is, when the total resource amount to be recovered corresponding to the target resource channel is large enough, all the resources allocated to the target recovery object can be recovered from the target resource channel without recovering the resources allocated to the target recovery object from the plurality of resource channels, so that the flexibility of resource recovery is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a resource recycling method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for querying an amount of resources to be recovered of a target recovery object according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for querying a resource recovery threshold of a resource channel according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a display interface provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a display interface provided in an embodiment of the present application;
fig. 7 is a schematic flowchart of a method for querying a proportion of resources to be recovered in a resource channel according to an embodiment of the present application;
fig. 8 is a flowchart illustrating a resource allocation method according to an embodiment of the present application;
fig. 9 is a flowchart illustrating a resource allocation method according to an embodiment of the present application;
fig. 10 is a schematic flowchart of a resource recycling method according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a resource recycling apparatus according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of a resource recycling apparatus according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a computer device according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a data sharing system according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of a blockchain according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
For convenience of understanding, terms referred to in the embodiments of the present invention are explained below.
The proportions are as follows: a proportion of the total number of shares, in the present example, the share multiplied by the net value is equal to the asset.
The following is a description of the design concept of the embodiments of the present application.
When an object requests a resource, the resource platform generally supports the allocation of resources of different resource channels for the same object, and when the resource platform recovers the resource, the resource requested by the object can only recover the original resource channel. The resource platform is taken as a financing platform, and the resource channel is taken as a capital channel for example. The financial product M has 100 shares purchased with funds in the funds channel a, 50 shares purchased with funds in the funds channel B, and 200 shares purchased with funds in the funds channel C. When the user redeems the financial product M, 100 parts of the financial product M are redeemed to the funding channel a, 50 parts of the financial product M are redeemed to the funding channel B, and 200 parts of the financial product M are redeemed to the funding channel C.
When a user holds a plurality of financial products, each financial product needs to be redeemed from a plurality of funding channels, resulting in an inflexible resource recovery. Taking a resource platform as a financing platform and a resource channel as a fund channel, for example, as shown in table 1:
table 1.
Capital channel A/share Capital channel B/share Capital channel C/share
Financing product M 100 50 200
Financing product N 300 100 100
The financial product M has 100 shares purchased with funds in the funds channel a, 50 shares purchased with funds in the funds channel B, and 200 shares purchased with funds in the funds channel C. The financial product N has 300 shares purchased with funds in the funds channel a, 100 shares purchased with funds in the funds channel B, and 100 shares purchased with funds in the funds channel C.
When the user redeems the financial product M and the financial product N, 100 shares of the financial product M are redeemed to the fund channel A, 50 shares of the financial product M are redeemed to the fund channel B, and 200 shares of the financial product M are redeemed to the fund channel C. 300 parts of the financial product N are redeemed to the funding channel a, 100 parts of the financial product N are redeemed to the funding channel B, and 100 parts of the financial product N are redeemed to the funding channel C.
As can be seen from the above example, the user holds two financial products M and N, and the purchase funds of the two financial products are derived from three fund channels, so that the two financial products need to be redeemed from the three fund channels, resulting in insufficient resource recycling flexibility.
In view of this, an embodiment of the present application provides a resource recovery method, which specifically includes: the terminal equipment responds to a resource recovery operation triggered by the target account and sends a resource recovery request to the server, wherein the resource recovery request carries a resource recovery request amount of a target recovery object and a channel identifier of a target resource channel. The server acquires a resource recovery amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, wherein the resource recovery amount threshold is determined based on the total resource amount to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the target resource channel. And if the requested resource recycling amount is not larger than the resource recycling amount threshold value, recycling the resources allocated to the target recycling object to the target resource channel according to the requested resource recycling amount, and sending a resource recycling success message to the terminal equipment. And the terminal equipment displays the successful message of resource recovery on a display interface.
The resource platform is taken as a financing platform, and the resource channel is taken as a capital channel for example. When the financial product M and the financial product N are set to be purchased, the net value of the financial product M and the net value of the financial product N are both 1 yuan, 100 shares of the financial product M are purchased by using the fund of the fund channel A, 50 shares of the financial product M are purchased by using the fund of the fund channel B, and 200 shares of the financial product M are purchased by using the fund of the fund channel C. The financial product N has 300 shares purchased with funds in the funds channel a, 100 shares purchased with funds in the funds channel B, and 100 shares purchased with funds in the funds channel C.
And converting the shares into assets according to the net value, and obtaining the total assets to be recovered Y of the financial product M and the financial product N which are 850 yuan, wherein the assets to be recovered of the fund channel A are 400 yuan, the assets to be recovered of the fund channel B are 150 yuan, and the assets to be recovered of the fund channel C are 300 yuan.
Taking the ratio of the assets to be recovered in the fund channel to the total assets to be recovered of each financing product as the proportion of the assets to be recovered in the fund channel, and then the proportion of the assets to be recovered in the fund channel A
Figure BDA0002950179530000091
Proportion of assets to be recovered in capital channel B
Figure BDA0002950179530000092
Proportion of assets to be recovered for capital channel C
Figure BDA0002950179530000093
After a period of time, if the net value of the financing product M and the financing product N is changed to 2 yuan, the total assets Y to be recovered of the financing product M and the financing product N is 1700 yuan. Taking the product of the ratio of the total assets to be recovered of the financial product M and the financial product N to be recovered to the assets to be recovered of the fund channel as the threshold value of the asset recovery amount of the fund channel, and then taking the threshold value Z of the asset recovery amount of the fund channel A as the threshold valueA=XAX Y is 800 yuan, and the asset recovery amount threshold value Z of the fund channel BB=XB300 x Y, asset recovery threshold Z for capital channel CC=XCX Y600 yuan.
When the user requests the redemption of 350 shares of the financial product M through the fund channel A, the asset recovery amount threshold Z of the fund channel A is set according to the net value of the financial product MAShare recovery threshold Z converted into capital channel AA′800 ÷ 2 ÷ 400 share. Since the share of the financing product M requested for redemption is less than the share recovery amount threshold for the funding channel A, 350 shares of the financing product M may be redeemed in their entirety to the funding channel A.
In the embodiment of the application, the resource recovery amount threshold is determined based on the total to-be-recovered resource amount of each recovery object in the target account and the to-be-recovered resource proportion corresponding to the target resource channel, so that the resource recovery amount threshold is the total to-be-recovered resource amount corresponding to the target resource channel, and is not only the resource amount allocated to the target recovery object from the target resource channel. If the requested resource recovery amount is not greater than the resource recovery amount threshold, the resources allocated to the target recovery object are recovered to the target resource channel according to the requested resource recovery amount, that is, when the total resource amount to be recovered corresponding to the target resource channel is large enough, all the resources allocated to the target recovery object can be recovered through the target resource channel, and the resources allocated to the target recovery object do not need to be recovered through a plurality of resource channels, so that the flexibility of resource recovery is improved.
Since the funds of each financing product are returned to the original fund channel when being redeemed, in order to determine each resource channel to be redeemed and the redemption share of each resource channel more quickly when being redeemed, the financing products need to be marked when being purchased, the marked contents at least comprise the purchase shares of each fund channel, and the purchase shares of each financing product on each resource channel are different, so that the marked contents of each financing product are different, and the management cost of the resource platform is high.
In view of this, in the embodiment of the present application, each recycling object in the target account is marked with the proportion of resources to be recycled of each resource channel, and the proportion of resources to be recycled of each resource channel marked by each recycling object is the same, and the proportion of resources to be recycled of each resource channel may be updated according to the resource recycling and resource allocation conditions of each object in the target account. The method simplifies the content marked on the recovery object, and is convenient for managing the recovery object, thereby improving the efficiency of resource management and reducing the cost of resource management.
Fig. 1 is a system architecture diagram applicable to the resource recycling method in the embodiment of the present application, and the system architecture diagram at least includes a first terminal device 101 and a server 102.
The terminal device 101 is installed with resource processing applications, such as a financial application, a live application, a video application, and the like. The resource handling application may be a pre-installed client, a web page version application, or an applet embedded in other applications, etc. Terminal device 101 may include, among other things, one or more processors 1011, memory 1012, I/O interface 1013 to interact with server 102, and display panel 1014. The terminal device 101 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like.
Server 102 is a background server for the resource processing application and provides services for the resource processing application. The server 102 may include one or more processors 1021, memory 1022, and an I/O interface 1023 to interact with the terminal device 101, and the like. In addition, server 102 may also configure database 1024. The server 102 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like. The terminal device 101 and the server 102 may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
The terminal device 101 sends a resource recovery request to the server 102 in response to a resource recovery operation triggered for the target account, where the resource recovery request carries a requested resource recovery amount of the target recovery object and a channel identifier of the target resource channel. The server 102 obtains a resource recovery amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, wherein the resource recovery amount threshold is determined based on the total resource amount to be recovered of each recovery object in the target account and the proportion of the resource to be recovered corresponding to the target resource channel. If the requested resource recovery amount is not greater than the resource recovery amount threshold, resources allocated to the target recovery object are recovered to the target resource channel according to the requested resource recovery amount, and a resource recovery success message is sent to the terminal device 101. The terminal device 101 displays the resource recycling success message on the display interface.
Based on the system architecture diagram shown in fig. 1, an embodiment of the present application provides a flow of a resource recycling method, where the method may be executed by a computer device, and the computer device may be the terminal device and the server in fig. 1, as shown in fig. 2, and includes the following steps:
in step S201, the terminal device sends a resource recovery request to the server in response to a resource recovery operation triggered for the target account.
Specifically, the resources in the embodiment of the present application may be economic resources such as assets and shares, or storage resources such as a memory, computing resources such as a processor, network resources such as a bandwidth, and the like. The resource recovery request carries the request resource recovery amount of the target recovery object and the channel identifier of the target resource channel. The recycling object can be a financial product such as fund, stock, etc., or a multimedia product such as a live broadcast application, a video application, an image processing application, etc., or other products related to resource allocation and resource recycling, which is not listed here.
Step S202, the server obtains a resource recovery threshold corresponding to the target resource channel based on the channel identification of the target resource channel.
The resource recovery amount threshold is determined based on the total resource amount to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the target resource channel. In specific implementation, each recycling object in the target account is marked with the proportion of resources to be recycled of each resource channel, the proportion of the resources to be recycled of each resource channel marked by each recycling object is the same, and the proportion of the resources to be recycled of each resource channel can be updated according to the resource recycling and resource allocation conditions of each object in the target account.
The total amount of resources to be reclaimed for each reclaimed object in the target account can be fixed and unchanged. For example, when the resource is a memory occupied by the video, the total memory occupied by each video in the target account is a total memory pre-allocated to each video.
The total amount of resources to be recovered of each recovery object in the target account may also fluctuate, and when the terminal device sends a resource recovery request to the server in response to a resource recovery operation triggered for the target account, the total amount of resources to be recovered of each recovery object in the target account may be equal to the total amount of resources pre-allocated to each recovery object, or may be greater than or less than the total amount of resources pre-allocated to each recovery object. For example, when the resource is an asset corresponding to a fund, the total asset of each fund in the target account may fluctuate with the fluctuation of the fund.
When a resource recovery amount threshold is determined based on the total resource amount to be recovered of each recovery object in the target account and the proportion of resources to be recovered corresponding to the target resource channel, the embodiment of the application at least provides the following two implementation modes:
in the first embodiment, the product of the total to-be-recovered resource amount of each recovery object in the target account and the to-be-recovered resource proportion corresponding to the target resource channel is used as the resource recovery amount threshold.
And in the second implementation mode, the product of the total resource amount to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the target resource channel is determined to obtain the resource amount to be recovered of the target resource channel. And then comparing the quantity of the resources to be recovered of the target resource channel with the quantity of the resources to be recovered of the target recovery object, if the quantity of the resources to be recovered of the target resource channel is larger than the quantity of the resources to be recovered of the target recovery object, taking the quantity of the resources to be recovered of the target recovery object as a resource recovery quantity threshold, and otherwise, taking the quantity of the resources to be recovered of the target resource channel as a resource recovery quantity threshold.
In step S203, if the requested resource recovery amount is not greater than the resource recovery amount threshold, the resource allocated to the target recovery object is recovered to the target resource channel according to the requested resource recovery amount.
Specifically, if the requested resource recovery amount is smaller than the resource recovery amount threshold, a resource recovery failure message is sent to the terminal device, and the terminal device displays the resource recovery failure message on a display interface. And after the request resource recycling amount of the target recycling object is recycled to the target resource channel, the residual resource amount of the target resource channel increases the request resource recycling amount, and the resource amount to be recycled of the target resource channel decreases the request resource recycling amount.
Step S204, the server sends a resource recycling success message to the terminal equipment.
And step S205, the terminal device displays the resource recycling success message on a display interface.
Specifically, the message of successful resource recycling may be presented in the form of a pop window, a floating window, or the like.
In the embodiment of the application, the resource recovery amount threshold is determined based on the total to-be-recovered resource amount of each recovery object in the target account and the to-be-recovered resource proportion corresponding to the target resource channel, so that the resource recovery amount threshold is the total to-be-recovered resource amount corresponding to the target resource channel, and is not only the resource amount allocated to the target recovery object from the target resource channel. If the requested resource recovery amount is not greater than the resource recovery amount threshold, the resources allocated to the target recovery object are recovered to the target resource channel according to the requested resource recovery amount, that is, when the total resource amount to be recovered corresponding to the target resource channel is large enough, all the resources allocated to the target recovery object can be recovered through the target resource channel, and the resources allocated to the target recovery object do not need to be recovered through a plurality of resource channels, so that the flexibility of resource recovery is improved.
Optionally, after the step S203, the ratio of the resources to be recovered corresponding to the target resource channel and the ratio of the resources to be recovered corresponding to other resource channels except the target resource channel are updated according to the requested resource recovery amount.
In specific implementation, after the requested resource recycling amount of the target recycling object is recycled to the target resource channel, the remaining resource amount of the target resource channel increases the requested resource recycling amount to obtain the current remaining resource amount of the target resource channel. And reducing the resource quantity to be recovered of the target resource channel by the requested resource recovery quantity to obtain the current resource quantity to be recovered of the target resource channel.
Meanwhile, the total resource amount to be recycled of each recycling object in the target account subtracts the requested resource recycling amount to obtain the current total resource amount to be recycled of each recycling object in the target account. And then taking the ratio of the current resource quantity to be recovered of the target resource channel to the current total resource quantity to be recovered of each recovery object as the current resource proportion to be recovered of the target resource channel. And taking the ratio of the original resource quantity to be recovered of other resource channels to the current total resource quantity to be recovered of each recovery object as the current resource proportion to be recovered of other resource channels.
Illustratively, a user is set to purchase a financial product M and a financial product N using assets in a funds channel a, a funds channel B and a funds channel C, the assets to be recovered in each funds channel being shown in table 2:
table 2.
Capital channel A/yuan Capital channel B/yuan Capital channel C/yuan
400 150 300
The total assets to be recovered Y of the financing product M and the financing product N is 850 yuan, and the proportion of the assets to be recovered of the fund channel A
Figure BDA0002950179530000141
Proportion of assets to be recovered in capital channel B
Figure BDA0002950179530000142
Proportion of assets to be recovered for capital channel C
Figure BDA0002950179530000143
Determining an asset recovery amount threshold value Z of a fund channel A based on the total assets to be recovered and the proportion of the assets to be recovered of each fund channelA=XAX Y400 Yuan, asset recovery threshold Z for capital channel BB=XBX Y150 yuan, asset recovery threshold Z of capital channel CC=XCX Y300 yuan.
Setting 350 shares of the user requesting to redeem the financial product M through the fund channel A, and obtaining 350 Yuan of the assets of the financial product M redeemed through the fund channel A according to the current net value (1 Yuan) of the financial product M. Since the assets of the financial product M requested to be redeemed are less than the asset recovery amount threshold of the fund channel a, the assets of the financial product M are all redeemed to the fund channel a.
At this time, the assets to be recovered for each of the capital channels are shown in table 3:
table 3.
Capital channel A/yuan Capital channel B/yuan Capital channel C/yuan
50 150 300
And subtracting the assets to be recovered (350 yuan) of the financing product M from the original assets to be recovered (400 yuan) of the fund channel A to obtain the current assets to be recovered (50 yuan) of the fund channel A, wherein the assets to be recovered of the fund channel B and the fund channel C are not changed.
At this time, the process of the present invention,the total assets to be recovered of the reserved financing products N are 500 yuan, and the ratio of the current assets to be recovered of the fund channel A to the total assets to be recovered of the financing products N is used as the proportion of the current assets to be recovered of the fund channel A
Figure BDA0002950179530000151
Taking the ratio of the original assets to be recovered of the fund channel B to the total assets to be recovered of the financing product N as the proportion of the current assets to be recovered of the fund channel B
Figure BDA0002950179530000152
Taking the ratio of the original assets to be recovered of the capital channel C to the total assets to be recovered of the financial products N as the current proportion of the assets to be recovered of the capital channel C
Figure BDA0002950179530000153
In the embodiment of the application, after the request resource recovery amount of the target recovery object is recovered to the target resource channel, the asset proportion to be recovered of each resource channel is updated in time, so that a user can timely and accurately know the current resource amount to be recovered of each resource channel, a flexible resource recovery scheme is selected according to actual requirements, the flexibility of resource recovery is improved, and the user experience is improved.
Optionally, before the step S201, the terminal device may query the amount of the resource to be recovered of the target recovery object in response to a user operation, as shown in fig. 3, specifically including the following steps:
in step S301, the terminal device sends an object resource query request to the server in response to a first query operation triggered by the amount of the resource to be recovered for the target recovery object.
Specifically, the object resource query request carries an object identifier of the target recovery object, where the object identifier may be a name, a number, a picture, and the like.
Step S302, the server obtains the amount of resources to be recycled of the target recycling object based on the object identifier of the target recycling object.
Specifically, the amount of the resource to be recycled of the target recycling object may be fixed, for example, the target recycling object is set as a video application, the resource is a memory, and if 500M of memory is allocated to a certain video in the video application in advance, the amount of the resource to be recycled of the target recycling object is 500M of memory.
The amount of resources to be recovered of the target recovery object may also vary in a fluctuating manner, and the amount of resources to be recovered of the target recovery object may be equal to or larger than the amount of resources allocated to the target recovery object in advance.
For example, the target recycling object is set as a financial product Q, the net value of the financial product Q is 1, and the resource is an asset, where the asset is the product of the share and the net value. The user spends 500 dollars purchasing 500 shares of the financial product Q. After a period of time, if the net value of the financing product Q is 2, the amount of the resource to be recovered of the target recovery object is 1000 yuan at this time. If the net value of the financing product Q is 0.5, the amount of the resource to be recovered of the target recovery object is 250 yuan at this time. If the net value of the financing product Q is 1, the amount of the resource to be recovered of the target recovery object is 500 yuan at this time.
For another example, the target recycling object is set as a financial product Q, the net value of the financial product Q is 1, and the resource is a share. The user spends 500 yuan to purchase 500 shares of the financial product Q, and after a period of time, the share of the financial product Q is still 500 no matter whether the net value of the financial product Q changes or not, and then the amount of the resources to be recovered of the target recovery object is 500 shares.
Step S303, the server sends the resource amount to be recovered of the target object to the terminal equipment.
And step S304, the terminal equipment displays the resource quantity to be recovered of the target recovery object in a display interface.
Specifically, the message of successful resource recycling may be presented in the form of a pop window, a floating window, or the like.
In the embodiment of the application, the terminal device responds to a first query operation triggered by the amount of the resource to be recovered aiming at the target recovery object, acquires the amount of the resource to be recovered of the target recovery object from the server and displays the amount of the resource to be recovered to the user, so that the user can timely know the amount of the resource to be recovered of the target recovery object, and the user can conveniently recover the resource of the target recovery object according to actual requirements.
Optionally, before the step S201, the terminal device may query, in response to a user operation, a resource recovery amount threshold corresponding to each resource channel, as shown in fig. 4, specifically including the following steps:
step S401, the terminal device responds to a second query operation triggered by a resource recovery amount threshold corresponding to each resource channel, and sends a channel resource query request to the server.
Specifically, the channel resource query request carries a channel identifier of each resource channel corresponding to the target account. In addition, when the resource recovery amount threshold of each resource channel is queried for the target recovery object, the channel resource query request can also carry the object identifier of the target recovery object.
Step S402, the server respectively obtains the proportion of the resources to be recovered corresponding to each resource channel based on the channel identification of each resource channel.
Step S403, the server determines resource recycling amount thresholds corresponding to the resource channels respectively according to the total resource amount to be recycled of each recycling object in the target account and the resource proportion to be recycled corresponding to each resource channel.
Specifically, the product of the total to-be-recovered resource amount of each recovery object in the target account and the to-be-recovered resource proportion corresponding to each resource channel may be used as the resource recovery amount threshold corresponding to each resource channel.
Or the product of the total resource amount to be recovered of each recovery object in the target account and the proportion of the resource to be recovered corresponding to each resource channel can be determined to obtain the resource amount to be recovered of each resource channel. And aiming at each resource channel, comparing the resource quantity to be recovered of the resource channel with the resource quantity to be recovered of the target recovery object, if the resource quantity to be recovered of the resource channel is greater than the resource quantity to be recovered of the target recovery object, taking the resource quantity to be recovered of the target recovery object as a resource recovery quantity threshold, and otherwise, taking the resource quantity to be recovered of the resource channel as a resource recovery quantity threshold.
Step S404, the server sends the resource recovery threshold value corresponding to each resource channel to the terminal device.
Step S405, the terminal device displays the resource recovery quantity threshold value corresponding to each resource channel in the display interface.
Illustratively, the server maintains a proportion of assets to be recovered for each of the fund channels, wherein the proportion of assets to be recovered for fund channel A is
Figure BDA0002950179530000171
Proportion of assets to be recovered in capital channel B
Figure BDA0002950179530000172
Proportion of assets to be recovered for capital channel C
Figure BDA0002950179530000173
And the terminal equipment responds to a second query operation triggered by the threshold value of the to-be-recovered asset corresponding to each fund channel, and sends a channel asset query request to the server. The server respectively acquires the ratio X of the assets to be recovered based on the channel identification of each asset channelAAn asset to be recovered ratio XB and an asset to be recovered ratio XC.
The current assets to be recovered of each fund channel are set as shown in table 2, and the total assets to be recovered Y of the financial product M and the financial product N is 850 yuan. The server takes the product of the total to-be-recovered assets of each financing product in the target account and the proportion of the to-be-recovered assets corresponding to each fund channel as the asset recovery threshold corresponding to each fund channel, so that the asset recovery threshold ZA of the fund channel A is XA multiplied by Y which is 400 yuan, and the asset recovery threshold ZB of the fund channel B is multiplied by X which is 400 yuanBX Y150 yuan, asset recovery threshold Z of capital channel CC=XCX Y300 yuan. Threshold value Z of asset recovery quantity of serverAAsset recovery threshold ZBAnd an asset recovery threshold ZCAnd sending the data to the terminal equipment.
According to one possible implementation mode, the terminal equipment displays the asset recovery amount threshold value Z in the display interface aiming at various financial products in the target accountAAsset recovery threshold ZBAnd an asset recovery threshold ZC. For example, as shown in fig. 5, the terminal device displays a fund channel a, a fund channel B and a fund channel C in the display interface, and simultaneously displays assets to be recovered (350 yuan) held by the financial product M. The user can operate in the display interface to select the assets of the redeemed financial product M, and can select full redemption or partial redemption. Alternatively, a redeemed funds channel may be selected among the funds channel A, the funds channel B and the funds channel C, and the display interface displays the asset recovery threshold Z when the user selects the funds channel AA. When the user selects the fund channel B, the display interface displays the asset recovery threshold ZB. When the user selects the fund channel C, the display interface displays the asset recovery threshold ZC
In another possible implementation, the terminal device converts the asset recovery threshold of each of the fund channels into a share recovery threshold based on the net worth of the financial product. For example, if the financial product M is set to have a current net value of 2 yuan, the share recovery amount threshold Z of the fund channel A is setA′Share recovery threshold Z for fund channel B of 400 ÷ 2 ÷ 200 sharesA′Share recovery threshold Z for fund channel C of 150 ÷ 2 ÷ 75 sharesC′300 × 2 is 150 shares. As shown in fig. 6, the terminal device displays the fund channel a, the fund channel B, and the fund channel C in the display interface, while displaying the shares to be recovered (175 shares) held by the financial product M. The user can operate in the display interface to select the redeemed portion, either full redemption or partial redemption. Alternatively, a redeemed-funds channel may be selected among the funds channel A, the funds channel B and the funds channel C, and the display interface displays the share recovery amount threshold Z when the user selects the funds channel AA′. When the user selects the fund channel B, the display interface displays the share recovery amount threshold value ZB′. When the user selects the funds channel C, the display interface displaysShare recovery threshold ZC′
In the embodiment of the application, the terminal device responds to the second query operation triggered by the resource recovery amount threshold corresponding to each resource channel, acquires the resource recovery amount threshold corresponding to each resource channel from the server and displays the resource recovery amount threshold to the user, so that the user can timely know the available resources of each resource channel, the user can conveniently select the resource of the resource channel recovery target recovery object according to the actual requirement, and the flexibility of resource recovery is improved.
Optionally, before the step S201, the terminal device may query, in response to a user operation, a ratio of resources to be recovered corresponding to each resource channel, and then calculate, by the terminal device, a resource recovery amount threshold corresponding to each resource channel, as shown in fig. 7, specifically including the following steps:
step S701, the terminal device responds to a third query operation triggered by the resource proportion to be recovered corresponding to each resource channel, and sends a resource proportion query request to the server.
Specifically, the resource proportion query request carries channel identifiers of resource channels corresponding to the target account.
Step S702, the server respectively obtains the ratio of the resources to be recovered corresponding to each resource channel based on the channel identification of each resource channel.
Step S703, the server sends the ratio of the resource to be recovered corresponding to each resource channel to the terminal device.
Step S704, the terminal device determines a resource recycling amount threshold corresponding to each resource channel according to the total resource amount to be recycled of each recycling object in the target account and the resource ratio to be recycled corresponding to each resource channel.
Step S705, the terminal device displays the resource recovery amount threshold corresponding to each resource channel in the display interface.
The method for the terminal device to calculate the resource recovery threshold corresponding to each resource channel is the same as the calculation method of the server in the previous embodiment, and details are not repeated here.
Optionally, in addition to requesting, by the terminal device, to reclaim, from the server, the resource of the target reclamation object in the target account in response to the user operation, the terminal device may also request, from the server, to allocate, to the target allocation object in the target account, as shown in fig. 8, specifically including the following steps:
in step S801, the terminal device sends a resource allocation request to the server in response to a resource allocation operation triggered for the target account.
The resource allocation request carries the requested resource allocation amount of the target allocation object and the channel identifier of the target resource channel.
Step S802, the server obtains the residual resource amount of the target resource channel based on the channel identification of the target resource channel.
Step S803, if the requested resource allocation amount is not greater than the remaining resource amount of the target resource channel, the server allocates the resource in the target resource channel to the target allocation object according to the requested resource allocation amount.
Specifically, if the requested resource allocation amount is smaller than the remaining resource amount of the target resource channel, a resource allocation failure message is sent to the terminal device, and the terminal device displays the resource allocation failure message on a display interface.
Step S804, the server sends a message of successful resource allocation to the terminal device.
Step S805, the terminal device displays the resource allocation success message on the display interface.
Optionally, after the step S803, the ratio of the resources to be recovered corresponding to the target resource channel and the ratio of the resources to be recovered corresponding to other resource channels except the target resource channel are updated according to the requested resource allocation amount.
In specific implementation, after the resources requesting the resource allocation amount are allocated to the target allocation object from the target resource channel, the remaining resource amount of the target resource channel is decreased by the requested resource allocation amount, so as to obtain the current remaining resource amount of the target resource channel. And increasing the resource allocation amount of the request by the resource amount to be recovered of the target resource channel to obtain the current resource amount to be recovered of the target resource channel.
Meanwhile, the total resource amount to be recycled of each recycling object in the target account increases the requested resource allocation amount, and the current total resource amount to be recycled of each recycling object in the target account is obtained. And then taking the ratio of the current resource quantity to be recovered of the target resource channel to the current total resource quantity to be recovered of each recovery object as the current resource proportion to be recovered of the target resource channel. And taking the ratio of the original resource quantity to be recovered of other resource channels to the current total resource quantity to be recovered of each recovery object as the current resource proportion to be recovered of other resource channels.
Illustratively, the assets to be recovered for each of the fund channels are shown in Table 2, and the proportion of the assets to be recovered for fund channel A
Figure BDA0002950179530000211
Proportion of assets to be recovered in capital channel B
Figure BDA0002950179530000212
Proportion of assets to be recovered for capital channel C
Figure BDA0002950179530000213
The user is set to purchase 150 shares of financial products L, the net value of the financial products L is 1 Yuan, wherein 50 shares are purchased by using 50 Yuan in the fund channel A, 50 shares are purchased by using 50 Yuan in the fund channel B, and 50 shares are purchased by using 50 Yuan in the fund channel C. At this time, the assets to be recovered for each of the fund channels are as shown in table 4:
table 4.
Capital channel A/yuan Capital channel B/yuan Capital channel C/yuan
450 200 350
Adding the original assets to be recovered (400 yuan) of the fund channel A to the assets (50 yuan) distributed to the financing product L from the fund channel A to obtain the current assets to be recovered (450 yuan) of the fund channel A; adding the original assets to be recovered (150 yuan) of the fund channel B to the assets (50 yuan) distributed to the financing product L from the fund channel B to obtain the current assets to be recovered (200 yuan) of the fund channel B; the original assets to be recovered (300 yuan) of the fund channel C are added with the assets (50 yuan) distributed to the financing product L from the fund channel C to obtain the current assets to be recovered (350 yuan) of the fund channel C. The total assets to be recovered of the financing product L, the financing product M and the financing product N are 1000 yuan.
Taking the ratio of the current assets to be recovered of the fund channel A to the total assets to be recovered as the proportion of the current assets to be recovered of the fund channel A
Figure BDA0002950179530000214
Taking the ratio of the original assets to be recovered and the total assets to be recovered of the fund channel B as the current assets to be recovered ratio of the fund channel B
Figure BDA0002950179530000215
Taking the ratio of the original assets to be recovered of the fund channel C to the total assets to be recovered as the current assets to be recovered proportion of the fund channel C
Figure BDA0002950179530000216
In the embodiment of the application, after the resources requesting the resource allocation amount are allocated to the target allocation object from the target resource channel, the proportion of the assets to be recovered of each resource channel is updated in time, so that a user can timely and accurately know the current resource amount to be recovered of each resource channel, a flexible resource recovery scheme is selected according to actual requirements, the flexibility of resource recovery is improved, and the user experience is improved.
To better explain the embodiment of the present application, a resource allocation method and a resource recovery method provided by the embodiment of the present application are described below with reference to a financial scenario, first, a resource allocation method is introduced, where the method is performed by a terminal device, an intermediate server, and a service server interactively, as shown in fig. 9, and includes the following steps:
in step S901, the terminal device sends a purchase requisition to the intermediate server in response to an operation of purchasing the financial product L triggered for the target account.
The procurement request carries the identification of the financing product L, the purchased share and the fund channel, wherein the total purchased share is 150 shares, 50 shares are purchased by adopting 50 yuan in the fund channel A, 50 shares are purchased by adopting 50 yuan in the fund channel B, and 50 shares are purchased by adopting 50 yuan in the fund channel C.
In step S902, the intermediate server obtains the remaining assets of the fund channel a, the fund channel B, and the fund channel C.
And step S903, when the intermediate server determines that the residual assets of the fund channel A, the fund channel B and the fund channel C are all larger than 50 yuan, the intermediate server sends a purchase requisition file to the service server.
In step S904, the service server returns a purchase requisition file.
In step S905, the intermediate server updates the ratio of the assets to be recovered in the capital channel a, the capital channel B, and the capital channel C.
Specifically, the original proportion of assets to be recovered of the fund channel A is set
Figure BDA0002950179530000221
Proportion of assets to be recovered of capital channel script B
Figure BDA0002950179530000222
Original proportion of assets to be recovered in capital channel C
Figure BDA0002950179530000223
After a user purchases a financing product L, the assets to be recovered of each financing channel are shown in Table 4, the original assets to be recovered of the financing channel A (400 yuan) are added with the assets distributed to the financing product L from the financing channel A (50 yuan), and the current assets to be recovered of the financing channel A (450 yuan) are obtained; adding the original assets to be recovered (150 yuan) of the fund channel B to the assets (50 yuan) distributed to the financing product L from the fund channel B to obtain the current assets to be recovered (200 yuan) of the fund channel C; the original assets to be recovered (300 yuan) of the fund channel C are added with the assets (50 yuan) distributed to the financing product L from the fund channel C to obtain the current assets to be recovered (350 yuan) of the fund channel C. The total assets to be recovered of the financing product L, the financing product M and the financing product N are 1000 yuan.
Taking the ratio of the current assets to be recovered of the fund channel A to the total assets to be recovered as the proportion of the current assets to be recovered of the fund channel A
Figure BDA0002950179530000231
Taking the ratio of the original assets to be recovered and the total assets to be recovered of the fund channel B as the current assets to be recovered ratio of the fund channel B
Figure BDA0002950179530000232
Taking the ratio of the original assets to be recovered of the fund channel C to the total assets to be recovered as the current assets to be recovered proportion of the fund channel C
Figure BDA0002950179530000233
And step S906, the intermediate server sends a purchase applying success message to the terminal equipment.
In step S907, the terminal device displays the successful purchase applying message on the display interface.
The following describes a resource recycling method, which is executed by a terminal device, an intermediate server, and a service server interactively, as shown in fig. 10, including the following steps:
step S1001, the terminal device responds to a first query operation triggered by the financial product N and sends a first query request to the intermediate server.
And step S1002, the intermediate server returns the share and the net value of the financial product N.
And setting the share of the financing product N as 400 yuan and the net value as 1 yuan, and setting the assets to be recovered corresponding to the financing product N as 400 yuan.
Step S1003, the terminal device sends a second query request to the intermediate server in response to a second query operation triggered by the to-be-recovered asset proportion corresponding to each fund channel.
Step S1004, the intermediate server returns the proportion of the assets to be recovered corresponding to each fund channel.
Specifically, capital channel A is the current proportion of assets to be recovered
Figure BDA0002950179530000234
Capital channel B current proportion of assets to be recovered
Figure BDA0002950179530000235
Capital channel C current proportion of assets to be recovered
Figure BDA0002950179530000236
Step S1005, for the financial product N, the terminal device determines the share recycling amount threshold corresponding to each fund channel according to the total to-be-recycled assets of each financial product and the to-be-recycled asset proportion corresponding to each fund channel.
Specifically, the current net value of the financial product L, the financial product M, and the financial product N is 1 yuan, and the total assets Y to be recovered of the financial product L, the financial product M, and the financial product N is 1000 yuan. The product of the proportion of the total assets to be recovered of each financing product in the target account and the proportion of the assets to be recovered corresponding to each fund channel is calculated, and the obtained assets to be recovered of the fund channel A are 450 yuan, the assets to be recovered of the fund channel B are 250 yuan, and the assets to be recovered of the fund channel C are 350 yuan.
And aiming at the financial product N, converting the assets to be recovered of each fund channel into shares to be recovered by adopting the net value of the financial product N, and obtaining that the shares to be recovered of the fund channel A are 450 shares, the shares to be recovered of the fund channel B are 250 shares, and the shares to be recovered of the fund channel C are 350 shares.
Since the share to be recovered of the fund channel A is larger than the share of the financial product N, the share of the financial product N is used as the share recovery amount threshold of the fund channel A. And as the share to be recovered of the fund channel B and the fund channel C is smaller than the share of the financing product N, the share to be recovered of the fund channel B and the fund channel C is used as the share recovery amount threshold of the fund channel B and the fund channel C.
In step S1006, the terminal device displays the share and the net value of the financial product N and the share recovery amount threshold corresponding to each fund channel.
Step S1007, the terminal device transmits a redemption request to the intermediate server in response to the operation of redeeming the financial product N.
Specifically, the user selects 400 shares of the financial product N to redeem from the funding channel a, the redemption request carrying the redeemed shares of the financial product N and the identity of the funding channel a.
In step S1008, the intermediate server sends a redemption file to the business server upon determining that the redeemed share of the financial product N is not greater than the share recovery threshold of the fund channel A.
At step S1009, the business server returns a redemption confirmation file.
Step S1010, the intermediate server updates the proportion of the assets to be recovered of the fund channel A, the fund channel B and the fund channel C.
Specifically, after the user redeems the financing product N, the assets to be recovered for each of the funding channels are as shown in Table 5:
TABLE 5
Capital channel A/yuan Capital channel B/yuan Capital channel C/yuan
50 200 350
And subtracting the original assets to be recovered (450 yuan) of the fund channel A from the assets to be recovered (400 yuan) of the financial product N to obtain the current assets to be recovered (50 yuan) of the fund channel A, wherein the assets to be recovered of the fund channel B and the fund channel C are not changed.
At this time, the total assets to be recovered of the financial product M and the financial product L are 600 yuan, and the ratio of the current assets to be recovered of the fund channel A to the total assets to be recovered is used as the proportion of the current assets to be recovered of the fund channel A
Figure BDA0002950179530000251
Taking the ratio of the original assets to be recovered and the total assets to be recovered of the fund channel B as the current assets to be recovered ratio of the fund channel B
Figure BDA0002950179530000252
Taking the ratio of the original assets to be recovered of the fund channel C to the total assets to be recovered as the current assets to be recovered proportion of the fund channel C
Figure BDA0002950179530000253
In step S1011, the intermediate server transmits a redemption success message to the terminal device.
Step S1012, the terminal device displays the redemption success message on the display interface.
In the embodiment of the application, the resource recovery amount threshold is determined based on the total to-be-recovered resource amount of each recovery object in the target account and the to-be-recovered resource proportion corresponding to the target resource channel, so that the resource recovery amount threshold is the total to-be-recovered resource amount corresponding to the target resource channel, and is not only the resource amount allocated to the target recovery object from the target resource channel. If the requested resource recovery amount is not greater than the resource recovery amount threshold, the resources allocated to the target recovery object are recovered to the target resource channel according to the requested resource recovery amount, that is, when the total resource amount to be recovered corresponding to the target resource channel is large enough, all the resources allocated to the target recovery object can be recovered through the target resource channel, and the resources allocated to the target recovery object do not need to be recovered through a plurality of resource channels, so that the flexibility of resource recovery is improved.
Based on the same technical concept, an embodiment of the present application provides a resource recycling apparatus, as shown in fig. 11, the resource recycling apparatus 1100 includes:
a receiving module 1101, configured to receive a resource recovery request, where the resource recovery request is sent by a terminal device in response to a resource recovery operation triggered for a target account, and the resource recovery request carries a requested resource recovery amount of a target recovery object and a channel identifier of a target resource channel;
a matching module 1102, configured to obtain a resource recovery amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, where the resource recovery amount threshold is determined based on a total to-be-recovered resource amount of each recovery object in the target account and a to-be-recovered resource ratio corresponding to the target resource channel;
a processing module 1103, configured to, if the requested resource recovery amount is not greater than the resource recovery amount threshold, recover, according to the requested resource recovery amount, the resource allocated to the target recovery object to the target resource channel;
a first sending module 1104, configured to send a resource recycling success message to the terminal device.
Optionally, the processing module 1103 is further configured to:
and according to the request resource recovery amount, after the resources allocated to the target recovery object are recovered to the target resource channel, updating the proportion of the resources to be recovered corresponding to the target resource channel and the proportion of the resources to be recovered corresponding to other resource channels except the target resource channel according to the request resource recovery amount.
Optionally, the receiving module 1101 is further configured to:
before receiving a resource recovery request, receiving an object resource query request, where the object resource query request is sent by the terminal device in response to a first query operation triggered by a resource amount to be recovered for the target recovery object, and the object resource query request carries an object identifier of the target recovery object;
the matching module 1102 is further configured to:
obtaining the amount of resources to be recycled of the target recycling object based on the object identification of the target recycling object;
the first sending module 1104 is further configured to:
and sending the resource amount to be recovered of the target object to the terminal equipment so that the terminal equipment displays the resource amount to be recovered of the target object in a display interface.
Optionally, the receiving module 1101 is further configured to:
before receiving a resource recovery request, receiving a channel resource query request, wherein the channel resource query request is sent by the terminal device in response to a second query operation triggered by a resource recovery amount threshold corresponding to each resource channel, and the channel resource query request carries a channel identifier of each resource channel corresponding to the target account;
the matching module 1102 is further configured to:
respectively acquiring the proportion of resources to be recovered corresponding to each resource channel based on the channel identification of each resource channel;
the processing module 1103 is further configured to:
respectively determining resource recovery quantity threshold values corresponding to the resource channels according to the total resource quantity to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the resource channels;
the first sending module 1104 is further configured to:
and sending the resource recovery quantity threshold value corresponding to each resource channel to the terminal equipment so that the terminal equipment displays the resource recovery quantity threshold value corresponding to each resource channel in a display interface.
Optionally, the receiving module 1101 is further configured to:
receiving a resource allocation request, wherein the resource allocation request is sent by the terminal device in response to a resource allocation operation triggered by the target account, and the resource allocation request carries a request resource allocation amount of a target allocation object and a channel identifier of the target resource channel;
the matching module 1102 is further configured to:
acquiring the residual resource amount of the target resource channel based on the channel identification of the target resource channel;
the processing module 1103 is further configured to:
if the requested resource allocation amount is not larger than the residual resource amount of the target resource channel, allocating the resources in the target resource channel to the target allocation object according to the requested resource allocation amount;
the first sending module 1104 is further configured to:
and sending a resource allocation success message to the terminal equipment.
Optionally, the processing module 1103 is further configured to:
and after the resources in the target resource channel are allocated to the target allocation object according to the requested resource allocation amount, updating the proportion of the resources to be recovered corresponding to the target resource channel and the proportion of the resources to be recovered corresponding to other resource channels except the target resource channel according to the requested resource allocation amount.
Based on the same technical concept, an embodiment of the present application provides a resource recycling apparatus, as shown in fig. 12, the resource recycling apparatus 1200 includes:
a second sending module 1201, configured to send a resource recovery request to a server in response to a resource recovery operation triggered for a target account, where the resource recovery request carries a requested resource recovery amount of a target recovery object and a channel identifier of a target resource channel, so that the server obtains a resource recovery amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, where the resource recovery amount threshold is determined based on a total to-be-recovered resource amount of each recovery object in the target account and a to-be-recovered resource ratio corresponding to the target resource channel; if the requested resource recovery amount is not greater than the resource recovery amount threshold, recovering the resources allocated to the target recovery object to the target resource channel according to the requested resource recovery amount, and sending a resource recovery success message to the terminal device;
a display module 1202, configured to display the resource recycling success message on a display interface.
Optionally, the second sending module 1201 is further configured to:
responding to a resource recovery operation triggered by a target account, sending a resource recovery request to a server in response to a first query operation triggered by a resource amount to be recovered of the target recovery object before sending the resource recovery request to the server, wherein the object resource query request carries an object identifier of the target recovery object, so that the server obtains the resource amount to be recovered of the target recovery object based on the object identifier of the target recovery object, and sends the resource amount to be recovered of the target recovery object to the terminal device;
the display module 1202 is further configured to:
and displaying the quantity of the resources to be recovered of the target recovery object in the display interface.
Optionally, the second sending module 1201 is further configured to:
the method comprises the steps of responding to a resource recovery operation triggered by a target account, responding to a second query operation triggered by a resource recovery amount threshold value corresponding to each resource channel before sending a resource recovery request to a server, and sending a channel resource query request to the server, wherein the channel resource query request carries a channel identifier of each resource channel corresponding to the target account, so that the server respectively obtains a proportion of resources to be recovered corresponding to each resource channel based on the channel identifier of each resource channel; respectively determining resource recovery quantity threshold values corresponding to the resource channels according to the total resource quantity to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the resource channels; sending the resource recovery quantity threshold value corresponding to each resource channel to the terminal equipment;
the display module 1202 is further configured to:
and displaying the resource recovery quantity threshold value respectively corresponding to each resource channel in the display interface.
Optionally, the second sending module 1201 is further configured to:
responding to a resource allocation operation triggered by the target account, and sending a resource allocation request to a server, wherein the resource allocation request carries a request resource allocation amount of a target allocation object and a channel identifier of the target resource channel, so that the server acquires the residual resource amount of the target resource channel based on the channel identifier of the target resource channel; if the requested resource allocation amount is not greater than the residual resource amount of the target resource channel, allocating the resources in the target resource channel to the target allocation object according to the requested resource allocation amount, and sending a resource allocation success message to the terminal device;
the display module 1202 is further configured to:
and displaying the successful resource allocation message on the display interface.
In the embodiment of the application, the resource recovery amount threshold is determined based on the total to-be-recovered resource amount of each recovery object in the target account and the to-be-recovered resource proportion corresponding to the target resource channel, so that the resource recovery amount threshold is the total to-be-recovered resource amount corresponding to the target resource channel, and is not only the resource amount allocated to the target recovery object from the target resource channel. If the requested resource recovery amount is not greater than the resource recovery amount threshold, the resources allocated to the target recovery object are recovered to the target resource channel according to the requested resource recovery amount, that is, when the total resource amount to be recovered corresponding to the target resource channel is large enough, all the resources allocated to the target recovery object can be recovered through the target resource channel, and the resources allocated to the target recovery object do not need to be recovered through a plurality of resource channels, so that the flexibility of resource recovery is improved.
Based on the same technical concept, the embodiment of the present application provides a computer device, as shown in fig. 13, including at least one processor 1301 and a memory 1302 connected to the at least one processor, where a specific connection medium between the processor 1301 and the memory 1302 is not limited in the embodiment of the present application, and the processor 1301 and the memory 1302 are connected through a bus in fig. 13 as an example. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the embodiment of the present application, the memory 1302 stores instructions executable by the at least one processor 1301, and the at least one processor 1301 may execute the steps included in the resource recycling method by executing the instructions stored in the memory 1302.
The processor 1301 is a control center of the computer device, and may connect various parts of the computer device through various interfaces and lines, and implement resource recycling by executing or executing instructions stored in the memory 1302 and calling data stored in the memory 1302. Optionally, the processor 1301 may include one or more processing units, and the processor 1301 may integrate an application processor and a modem processor, where the application processor mainly handles an operating system, a user interface, an application program, and the like, and the modem processor mainly handles wireless communication. It is to be appreciated that the modem processor described above may not be integrated into processor 1301. In some embodiments, processor 1301 and memory 1302 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 1301 may be a general-purpose processor, such as a Central Processing Unit (CPU), a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, configured to implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present Application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.
Memory 1302, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 1302 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 1302 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 1302 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
Based on the same inventive concept, embodiments of the present application provide a computer-readable storage medium storing a computer program executable by a computer device, which, when the program runs on the computer device, causes the computer device to perform the steps of the resource recovery method.
Based on the same inventive concept, an embodiment of the present application provides a data sharing system, as shown in fig. 14, a data sharing system 1400 refers to a system for performing data sharing between nodes, the data sharing system may include a plurality of nodes 1401, and the plurality of nodes 1401 may refer to respective servers in the data sharing system. Aiming at any one server, the server and the terminal equipment interactively execute the resource recovery method, and share the data of the resource amount to be recovered of each recovery object in the target account, the updated proportion of the resource to be recovered corresponding to each resource channel and the like to other servers.
Specifically, each node 1401 may receive data while operating normally and maintain shared data within the data sharing system based on the received data. In order to ensure information intercommunication in the data sharing system, information connection can exist between each node in the data sharing system, and information transmission can be carried out between the nodes through the information connection. For example, when any node in the data sharing system receives data, other nodes in the data sharing system acquire the data according to a consensus algorithm, and store the data as data in shared data, so that the data stored on all nodes in the data sharing system are consistent.
Each node in the data sharing system has a node identifier corresponding thereto, and each node in the data sharing system may store a node identifier of another node in the data sharing system, so that the generated block is broadcast to the other node in the data sharing system according to the node identifier of the other node in the following. Each node may maintain a node identifier list as shown in the following table, and store the node name and the node identifier in the node identifier list correspondingly. The node identifier may be an IP (Internet Protocol) address and any other information that can be used to identify the node, and table 6 only illustrates the IP address as an example.
Table 6.
Node name Node identification
Node 1 117.114.151.174
Node 2 117.116.189.145
Node N 119.123.789.258
Each node in the data sharing system stores one identical blockchain. The block chain is composed of a plurality of blocks, as shown in fig. 15, the block chain is composed of a plurality of blocks, the starting block includes a block header and a block main body, the block header stores an input information characteristic value, a version number, a timestamp and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a parent block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the parent block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, and the safety of the input information in the block is ensured.
When each block in the block chain is generated, referring to fig. 15, when the node where the block chain is located receives data, the data is verified, after the verification is completed, the data is stored in the memory pool, and the hash tree for recording the data is updated; and then, updating the updating time stamp to the time of receiving the data, trying different random numbers, and calculating the characteristic value for multiple times, so that the calculated characteristic value can satisfy the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
wherein, SHA256 is a characteristic value algorithm used for calculating a characteristic value; version is version information of the relevant block protocol in the block chain; prev _ hash is a block head characteristic value of a parent block of the current block; merkle _ root is a characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, is a fixed value within a period of time, and is determined again after exceeding a fixed time period; x is a random number; TARGET is a feature threshold, which can be determined from nbits.
Therefore, when the random number meeting the formula is obtained through calculation, the data can be correspondingly stored, and the block head and the block main body are generated to obtain the current block. And then, the node where the block chain is located respectively sends the newly generated blocks to other nodes in the data sharing system where the newly generated blocks are located according to the node identifications of the other nodes in the data sharing system, the newly generated blocks are verified by the other nodes, and the newly generated blocks are added to the block chain stored in the newly generated blocks after the verification is completed.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (14)

1. A method for resource recovery, comprising:
receiving a resource recovery request, wherein the resource recovery request is sent by a terminal device in response to a resource recovery operation triggered by a target account, and the resource recovery request carries a resource recovery amount requested by a target recovery object and a channel identifier of a target resource channel;
acquiring a resource recovery amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, wherein the resource recovery amount threshold is determined based on the total resource amount to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the target resource channel;
and if the requested resource recovery amount is not greater than the resource recovery amount threshold, recovering the resources allocated to the target recovery object to the target resource channel according to the requested resource recovery amount, and sending a resource recovery success message to the terminal equipment.
2. The method of claim 1, wherein said reclaiming the resource allocated to the target reclamation object to the target resource channel according to the requested resource reclamation amount further comprises:
and updating the proportion of the resources to be recovered corresponding to the target resource channel and the proportion of the resources to be recovered corresponding to other resource channels except the target resource channel according to the request resource recovery amount.
3. The method of claim 1, wherein prior to receiving the resource reclamation request, further comprising:
receiving an object resource query request, wherein the object resource query request is sent by the terminal device in response to a first query operation triggered by the amount of resources to be recovered for the target recovery object, and the object resource query request carries an object identifier of the target recovery object;
and obtaining the resource quantity to be recovered of the target recovery object based on the object identifier of the target recovery object, and sending the resource quantity to be recovered of the target recovery object to the terminal equipment, so that the terminal equipment displays the resource quantity to be recovered of the target recovery object in a display interface.
4. The method of claim 1, wherein prior to receiving the resource reclamation request, further comprising:
receiving a channel resource query request, wherein the channel resource query request is sent by the terminal device in response to a second query operation triggered by a resource recovery amount threshold corresponding to each resource channel, and the channel resource query request carries a channel identifier of each resource channel corresponding to the target account;
respectively acquiring the proportion of resources to be recovered corresponding to each resource channel based on the channel identification of each resource channel;
respectively determining resource recovery quantity threshold values corresponding to the resource channels according to the total resource quantity to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the resource channels;
and sending the resource recovery quantity threshold value corresponding to each resource channel to the terminal equipment so that the terminal equipment displays the resource recovery quantity threshold value corresponding to each resource channel in a display interface.
5. The method of any of claims 1 to 4, further comprising:
receiving a resource allocation request, wherein the resource allocation request is sent by the terminal device in response to a resource allocation operation triggered by the target account, and the resource allocation request carries a request resource allocation amount of a target allocation object and a channel identifier of the target resource channel;
acquiring the residual resource amount of the target resource channel based on the channel identification of the target resource channel;
and if the requested resource allocation amount is not greater than the residual resource amount of the target resource channel, allocating the resources in the target resource channel to the target allocation object according to the requested resource allocation amount, and sending a resource allocation success message to the terminal equipment.
6. The method of claim 5, wherein after allocating resources in the target resource channel to the target allocation object according to the requested resource allocation amount, further comprising:
and updating the proportion of the resources to be recovered corresponding to the target resource channel and the proportion of the resources to be recovered corresponding to other resource channels except the target resource channel according to the allocation amount of the request resources.
7. A method for resource recovery, comprising:
responding to a resource recovery operation triggered by a target account, sending a resource recovery request to a server, wherein the resource recovery request carries a request resource recovery amount of a target recovery object and a channel identifier of a target resource channel, so that the server obtains a resource recovery amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, and the resource recovery amount threshold is determined based on a total resource amount to be recovered of each recovery object in the target account and a resource proportion to be recovered corresponding to the target resource channel; if the requested resource recovery amount is not greater than the resource recovery amount threshold, recovering the resources allocated to the target recovery object to the target resource channel according to the requested resource recovery amount, and sending a resource recovery success message to the terminal device;
and displaying the resource recycling success message on a display interface.
8. The method of claim 7, wherein prior to sending a resource reclamation request to a server in response to a resource reclamation operation triggered for a target account, further comprising:
responding to a first query operation triggered by the amount of the resources to be recovered aiming at the target recovery object, sending an object resource query request to a server, wherein the object resource query request carries an object identifier of the target recovery object, so that the server obtains the amount of the resources to be recovered of the target recovery object based on the object identifier of the target recovery object, and sending the amount of the resources to be recovered of the target object to the terminal equipment;
and displaying the quantity of the resources to be recovered of the target recovery object in the display interface.
9. The method of claim 7, wherein prior to sending a resource reclamation request to a server in response to a resource reclamation operation triggered for a target account, further comprising:
responding to a second query operation triggered by a resource recovery amount threshold corresponding to each resource channel, and sending a channel resource query request to a server, wherein the channel resource query request carries a channel identifier of each resource channel corresponding to the target account, so that the server respectively obtains the proportion of resources to be recovered corresponding to each resource channel based on the channel identifier of each resource channel; respectively determining resource recovery quantity threshold values corresponding to the resource channels according to the total resource quantity to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the resource channels; sending the resource recovery quantity threshold value corresponding to each resource channel to the terminal equipment;
and displaying the resource recovery quantity threshold value respectively corresponding to each resource channel in the display interface.
10. The method of any of claims 7 to 9, further comprising:
responding to a resource allocation operation triggered by the target account, and sending a resource allocation request to a server, wherein the resource allocation request carries a request resource allocation amount of a target allocation object and a channel identifier of the target resource channel, so that the server acquires the residual resource amount of the target resource channel based on the channel identifier of the target resource channel; if the requested resource allocation amount is not greater than the residual resource amount of the target resource channel, allocating the resources in the target resource channel to the target allocation object according to the requested resource allocation amount, and sending a resource allocation success message to the terminal device;
and displaying the successful resource allocation message on the display interface.
11. A resource recovery apparatus, comprising:
the system comprises a receiving module, a resource recovery module and a resource management module, wherein the receiving module is used for receiving a resource recovery request, the resource recovery request is sent by a terminal device in response to a resource recovery operation triggered by a target account, and the resource recovery request carries a resource recovery amount requested by a target recovery object and a channel identifier of a target resource channel;
the matching module is used for acquiring a resource recovery amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, wherein the resource recovery amount threshold is determined based on the total resource amount to be recovered of each recovery object in the target account and the proportion of the resources to be recovered corresponding to the target resource channel;
a processing module, configured to, if the requested resource recovery amount is not greater than the resource recovery amount threshold, recover the resource allocated to the target recovery object to the target resource channel according to the requested resource recovery amount;
and the first sending module is used for sending the resource recycling success message to the terminal equipment.
12. A resource recovery apparatus, comprising:
a second sending module, configured to send a resource recovery request to a server in response to a resource recovery operation triggered for a target account, where the resource recovery request carries a requested resource recovery amount of a target recovery object and a channel identifier of a target resource channel, so that the server obtains, based on the channel identifier of the target resource channel, a resource recovery amount threshold corresponding to the target resource channel, where the resource recovery amount threshold is determined based on a total to-be-recovered resource amount of each recovery object in the target account and a to-be-recovered resource ratio corresponding to the target resource channel; if the requested resource recovery amount is not greater than the resource recovery amount threshold, recovering the resources allocated to the target recovery object to the target resource channel according to the requested resource recovery amount, and sending a resource recovery success message to the terminal device;
and the display module is used for displaying the resource recycling success message on a display interface.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any one of claims 1 to 6 are performed by the processor when the program is executed by the processor, or the steps of the method of any one of claims 7 to 10 are performed by the processor.
14. A computer-readable storage medium, having stored thereon a computer program executable by a computer device, when the program is run on the computer device, causing the computer device to perform the steps of the method of any one of claims 1 to 6, or the steps of the method of any one of claims 7 to 10.
CN202110208282.4A 2021-02-24 2021-02-24 Resource recycling method, device, equipment and storage medium Active CN113011607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110208282.4A CN113011607B (en) 2021-02-24 2021-02-24 Resource recycling method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110208282.4A CN113011607B (en) 2021-02-24 2021-02-24 Resource recycling method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113011607A true CN113011607A (en) 2021-06-22
CN113011607B CN113011607B (en) 2023-09-01

Family

ID=76385880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110208282.4A Active CN113011607B (en) 2021-02-24 2021-02-24 Resource recycling method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113011607B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662020A (en) * 2023-08-01 2023-08-29 鹏城实验室 Dynamic management method and system for application service, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012109889A1 (en) * 2011-02-18 2012-08-23 华为技术有限公司 Method and management device for operating equipment resources
US8577701B1 (en) * 2012-06-22 2013-11-05 Hartford Fire Insurance Company System and method for processing data related to investment management
US20140137110A1 (en) * 2012-11-15 2014-05-15 Bank Of America Corporation Capacity reclamation and resource adjustment
US20140222889A1 (en) * 2013-02-05 2014-08-07 International Business Machines Corporation Collaborative negotiation of system resources among virtual servers running in a network computing environment
US20160100002A1 (en) * 2014-10-03 2016-04-07 SorsEm, LLC Resource allocation methods and apparatus
CN107368372A (en) * 2017-07-25 2017-11-21 郑州云海信息技术有限公司 A kind of resource exhibition method and device based on sea of clouds OS platforms
CN108961059A (en) * 2018-07-11 2018-12-07 海南新软软件有限公司 Digital cash exception transaction monitoring method, apparatus and system
CN110018901A (en) * 2018-01-10 2019-07-16 广东欧珀移动通信有限公司 Method for recovering internal storage, device, computer equipment and computer readable storage medium
CN110475233A (en) * 2018-05-09 2019-11-19 腾讯科技(深圳)有限公司 Resource transfers method, apparatus, computer equipment and storage medium
US20200058393A1 (en) * 2018-08-15 2020-02-20 Beijing Boe Display Technology Co., Ltd. Resource allocation method, apparatus, system, electronic device and storage medium
CN111240841A (en) * 2020-01-10 2020-06-05 支付宝(杭州)信息技术有限公司 Method and system for executing new task or processing resource revocation request
CN111967543A (en) * 2020-10-23 2020-11-20 北京淇瑀信息科技有限公司 User resource quota determining method and device and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012109889A1 (en) * 2011-02-18 2012-08-23 华为技术有限公司 Method and management device for operating equipment resources
US8577701B1 (en) * 2012-06-22 2013-11-05 Hartford Fire Insurance Company System and method for processing data related to investment management
US20140137110A1 (en) * 2012-11-15 2014-05-15 Bank Of America Corporation Capacity reclamation and resource adjustment
US20140222889A1 (en) * 2013-02-05 2014-08-07 International Business Machines Corporation Collaborative negotiation of system resources among virtual servers running in a network computing environment
US20160100002A1 (en) * 2014-10-03 2016-04-07 SorsEm, LLC Resource allocation methods and apparatus
CN107368372A (en) * 2017-07-25 2017-11-21 郑州云海信息技术有限公司 A kind of resource exhibition method and device based on sea of clouds OS platforms
CN110018901A (en) * 2018-01-10 2019-07-16 广东欧珀移动通信有限公司 Method for recovering internal storage, device, computer equipment and computer readable storage medium
CN110475233A (en) * 2018-05-09 2019-11-19 腾讯科技(深圳)有限公司 Resource transfers method, apparatus, computer equipment and storage medium
CN108961059A (en) * 2018-07-11 2018-12-07 海南新软软件有限公司 Digital cash exception transaction monitoring method, apparatus and system
US20200058393A1 (en) * 2018-08-15 2020-02-20 Beijing Boe Display Technology Co., Ltd. Resource allocation method, apparatus, system, electronic device and storage medium
CN111240841A (en) * 2020-01-10 2020-06-05 支付宝(杭州)信息技术有限公司 Method and system for executing new task or processing resource revocation request
CN111967543A (en) * 2020-10-23 2020-11-20 北京淇瑀信息科技有限公司 User resource quota determining method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662020A (en) * 2023-08-01 2023-08-29 鹏城实验室 Dynamic management method and system for application service, electronic equipment and storage medium
CN116662020B (en) * 2023-08-01 2024-03-01 鹏城实验室 Dynamic management method and system for application service, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113011607B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
US20210357997A1 (en) Benefit allocation method, apparatus, and electronic device
US20200328984A1 (en) Method and apparatus for allocating resource
US9135040B2 (en) Selecting provisioning targets for new virtual machine instances
CN108596627B (en) Big data calculation method and system based on block chain and fog calculation
CN110148014B (en) Information processing method, information processing device, blockchain node equipment and storage medium
CN108898368B (en) Resource transfer method and device, storage medium and electronic device
CN111163130A (en) Network service system and data transmission method thereof
EP4075299A1 (en) Method and apparatus for recommending multimedia resource
CN111461763A (en) Resource allocation method and device
CN111259019A (en) Resource allocation method, device, equipment and storage medium
CN110910143A (en) Identity identification generation method, device, related node and medium
CN113011607B (en) Resource recycling method, device, equipment and storage medium
CN114610504A (en) Message processing method and device, electronic equipment and storage medium
CN109271564A (en) Declaration form querying method and equipment
CN111402058A (en) Data processing method, device, equipment and medium
CN105187399A (en) Resource processing method and device
CN114238397A (en) User data processing method, device, equipment, storage medium and program product
CN117473130A (en) Service processing method, device, equipment, medium and program product
CN114520830A (en) Message pushing method, device and system
CN116860470A (en) Data transmission method, device, computer equipment and storage medium
CN106452816B (en) Information processing method, server and client
CN110022341B (en) Data transmission method and related equipment
CN111190910A (en) Quota resource processing method and device, electronic equipment and readable storage medium
CN116303657A (en) Group image generation method, group image generation device, computer device, and storage medium
JP2020533918A (en) Cold matching with automatic content recognition

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40045944

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant