CN113011607B - Resource recycling method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN113011607B
CN113011607B CN202110208282.4A CN202110208282A CN113011607B CN 113011607 B CN113011607 B CN 113011607B CN 202110208282 A CN202110208282 A CN 202110208282A CN 113011607 B CN113011607 B CN 113011607B
Authority
CN
China
Prior art keywords
resource
channel
target
recycling
amount
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.)
Active
Application number
CN202110208282.4A
Other languages
Chinese (zh)
Other versions
CN113011607A (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

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)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Game Theory and Decision Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Educational Administration (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Sustainable Development (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, relating to the technical field of computers, wherein the method comprises the following steps: and determining a resource recycling amount threshold based on the total to-be-recycled resource amount of each recycling object in the target account and the to-be-recycled resource proportion corresponding to the target resource channel, wherein the resource recycling amount threshold is the total to-be-recycled resource amount corresponding to the target resource channel, and is not only the resource amount distributed to the target recycling object from the target resource channel. When the resources of the target recovery object are required to be recovered, if the required resource recovery amount is not greater than the resource recovery amount threshold, the server recovers the resources allocated to the target recovery object to the target resource channel according to the required resource recovery amount, and when the total to-be-recovered resource amount of the target resource channel is 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, thereby improving the flexibility of resource recovery.

Description

Resource recycling method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a resource recycling method, a device, 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 parts of resources from the resource platform, the resource platform allocates 50 parts of resources to the target object from the resource channel 1, 30 parts of resources to the target object from the resource channel 2, and 20 parts of resources to the target object from the resource channel 3. When the resource is recovered, 50 parts of the resource of the target object are returned to the resource channel 1, 30 parts of the resource of the target object are returned to the resource channel 2, and 20 parts of the resource of the target object are returned to the resource channel 3.
When it comes to allocating resources for a plurality of objects corresponding to the same user, resources may need to be recovered from a plurality of resource channels for each object, resulting in inflexibility of resource recovery.
Disclosure of Invention
The embodiment of the application provides a resource recycling method, a device, equipment and a storage medium, which are used for improving the flexibility of resource recycling.
In one aspect, an embodiment of the present application provides a resource recycling method, where the method specifically includes:
receiving a resource recycling request, wherein the resource recycling request is sent by a terminal device in response to a resource recycling operation triggered by a target account, and the resource recycling request carries the requested resource recycling amount of a target recycling object and the channel identifier of a target resource channel;
acquiring a resource recycling amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, wherein the resource recycling amount threshold is determined based on the total to-be-recycled resource amount of each recycling object in the target account and the to-be-recycled resource proportion corresponding to the target resource channel;
and if the request resource recycling amount is not greater than the resource recycling amount threshold, recycling the resources allocated to the target recycling object to the target resource channel according to the request resource recycling amount, and sending a resource recycling success message to the terminal equipment.
In one aspect, an embodiment of the present application provides a resource recycling method, where the method specifically includes:
responding to a resource recycling operation triggered by aiming at a target account, and sending a resource recycling request to a server, wherein the resource recycling request carries the requested resource recycling amount of a target recycling object and the channel identification of a target resource channel, so that the server obtains a resource recycling amount threshold corresponding to the target resource channel based on the channel identification of the target resource channel, and the resource recycling amount threshold is determined based on the total resource amount to be recycled of each recycling object in the target account and the resource proportion to be recycled corresponding to the target resource channel; if the request 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 request resource recovery amount, and sending a resource recovery success message to the terminal equipment;
And displaying the resource recovery success message on a display interface.
In one aspect, an embodiment of the present application provides a resource recycling apparatus, where the apparatus specifically includes:
the resource recycling system comprises a receiving module, a receiving module and a processing module, wherein the receiving module is used for receiving a resource recycling request, the resource recycling request is sent by a terminal device in response to a resource recycling operation triggered by a target account, and the resource recycling request carries a requested resource recycling amount of a target recycling 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 identification of the target resource channel, wherein 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;
the processing module is used for recycling the resources allocated to the target recycling object to the target resource channel according to the request resource recycling amount if the request resource recycling amount is not greater than the resource recycling amount threshold;
and the first sending module is used for sending a resource recovery success message to the terminal equipment.
Optionally, the processing module is further configured to:
And after the resources allocated to the target recycling object are recycled to the target resource channel according to the request resource recycling amount, updating the resource proportion to be recycled corresponding to the target resource channel and the resource proportion to be recycled corresponding to other resource channels except the target resource channel according to the request resource recycling amount.
Optionally, the receiving module is further configured to:
before receiving a resource recycling request, receiving an object resource query request, wherein the object resource query request is sent by the terminal equipment in response to a first query operation triggered by the amount of resources to be recycled for the target recycling object, and the object resource query request carries an object identifier of the target recycling object;
the matching module is also used for:
acquiring the resource quantity to be recovered of the target recovery object based on the object identification of the target recovery object;
the first sending module is further configured to:
and sending the resource quantity to be recovered of the target object to the terminal equipment so that the terminal equipment displays the resource quantity to be recovered of the target recovered 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 equipment 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 channel identifiers of each resource channel corresponding to the target account;
the matching module is also used for:
based on the channel identifiers of the resource channels, respectively acquiring the proportion of resources to be recovered corresponding to the resource channels;
the processing module is further configured to:
respectively determining a resource recovery amount threshold value corresponding to each resource channel according to the total resource to be recovered of each recovery object in the target account and the resource proportion to be recovered corresponding to each resource channel;
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 equipment 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 also used for:
acquiring the residual resource quantity of the target resource channel based on the channel identification of the target resource channel;
the processing module is further configured to:
if the allocation amount of the request resource is not greater than the residual resource amount of the target resource channel, allocating the resource in the target resource channel to the target allocation object according to the allocation amount of the request resource;
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 request resource allocation amount, updating the proportion of resources to be recovered corresponding to the target resource channel and the proportion of resources to be recovered corresponding to other resource channels except the target resource channel according to the request resource allocation amount.
In one aspect, an embodiment of the present application provides a resource recycling apparatus, where the apparatus specifically includes:
the second sending module is used for responding to a resource recycling operation triggered by a target account, sending a resource recycling request to a server, wherein the resource recycling request carries the requested resource recycling amount of a target recycling object and the channel identification of a target resource channel, so that the server obtains a resource recycling amount threshold corresponding to the target resource channel based on the channel identification of the target resource channel, and the resource recycling amount threshold is determined based on the total resource amount to be recycled of each recycling object in the target account and the resource proportion to be recycled corresponding to the target resource channel; if the request 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 request resource recovery amount, and sending a resource recovery success message to the terminal equipment;
And the display module is used for displaying the resource recovery success message on a display interface.
Optionally, the second sending module is further configured to:
before a resource recycling request is sent to a server in response to a resource recycling operation triggered by a target account, an object resource query request is sent to the server in response to a first query operation triggered by the resource quantity to be recycled of the target recycling object, wherein the object resource query request carries an object identifier of the target recycling object, so that the server obtains the resource quantity to be recycled of the target recycling object based on the object identifier of the target recycling object, and sends the resource quantity to be recycled of the target object to the terminal equipment;
the display module is further configured to:
and displaying the resource quantity to be recovered of the target recovery object in the display interface.
Optionally, the second sending module is further configured to:
before a resource recovery request is sent to a server in response to a resource recovery operation triggered by a target account, a channel resource query request is sent to the server in response to a second query operation triggered by a resource recovery amount threshold corresponding to each resource channel, wherein the channel resource query request carries channel identifiers 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 identifiers of each resource channel; respectively determining a resource recovery amount threshold value corresponding to each resource channel according to the total resource to be recovered of each recovery object in the target account and the resource proportion to be recovered corresponding to each resource channel; transmitting 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 values corresponding to the resource channels respectively in the display interface.
Optionally, the second sending module is further configured to:
responding to a resource allocation operation triggered by aiming at the target account, 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 obtains the residual resource amount of the target resource channel based on the channel identifier of the target resource channel; if the allocation amount of the request resource is not greater than the residual resource amount of the target resource channel, allocating the resource in the target resource channel to the target allocation object according to the allocation amount of the request resource, and sending a resource allocation success message to the terminal equipment;
the display module is further configured to:
and displaying the resource allocation success message on the display interface.
In the embodiment of the application, the resource recycling amount threshold is determined based on the total to-be-recycled resource amount of each recycling object in the target account and the to-be-recycled resource proportion corresponding to the target resource channel, so the resource recycling amount threshold is the total to-be-recycled resource amount corresponding to the target resource channel, and is not only the resource amount distributed to the target recycling 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 to-be-recovered resource amount corresponding to the target resource channel is sufficiently large, 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 a plurality of resource channels, thereby improving the flexibility of resource recovery.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a system architecture according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a resource recycling method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for querying the amount of resources to be recycled of a target recycling object according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for querying a resource recycling amount threshold of a resource channel according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a display interface according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a display interface according to an embodiment of the present application;
FIG. 7 is a flow chart of a method for querying a proportion of resources to be recycled in a resource channel according to an embodiment of the present application;
fig. 8 is a flow chart of a resource allocation method according to an embodiment of the present application;
Fig. 9 is a flow chart of a resource allocation method according to an embodiment of the present application;
FIG. 10 is a schematic flow chart 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 application;
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 block chain architecture diagram according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantageous effects of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
For ease of understanding, the terms involved in the embodiments of the present application are explained below.
Share: a proportion of the total parts, in an embodiment of the application, the share times the net value is equal to the asset.
The following describes the design concept of the embodiment 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 financial platform, and the resource channel is taken as a fund channel, for example. The financial product M has 100 shares purchased with funds of funds channel A, 50 shares purchased with funds of funds channel B, and 200 shares purchased with funds of funds channel C. When the user redeems the financial product M, 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.
When a user holds multiple financial products, each financial product needs to be redeemed from multiple funding channels, resulting in inflexible resource recovery. Taking the resource platform as a financial platform and the resource channel as a fund channel, for example, as shown in table 1:
table 1.
Fund channel A/share Fund channel B/share Funding channel C/share
Financial product M 100 50 200
Financial product N 300 100 100
The financial product M has 100 shares purchased with funds of funds channel A, 50 shares purchased with funds of funds channel B, and 200 shares purchased with funds of funds channel C. The financial product N has 300 shares purchased with funds of the funds channel A, 100 shares purchased with funds of the funds channel B, and 100 shares purchased with funds of 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. The 300 share of the financial product N is redeemed to the fund channel A, the 100 share of the financial product N is redeemed to the fund channel B, and the 100 share of the financial product N is redeemed to the fund channel C.
From the above example, it is known that the user holds two financial products, i.e., the financial product M and the financial product N, and the purchase funds of the two financial products are derived from three funds channels, so that when the two financial products are redeemed, the user needs to redeem from the three funds channels, resulting in inflexible resource recovery.
In view of this, the embodiment of the application provides a resource recycling method, which specifically includes: and the terminal equipment responds to the resource recycling operation triggered by aiming at the target account and sends a resource recycling request to the server, wherein the resource recycling request carries the requested resource recycling amount of the target recycling object and the channel identification of the target resource channel. The server obtains a resource recycling amount threshold corresponding to the target resource channel based on the channel identification of the target resource channel, wherein the resource recycling amount threshold is determined based on the total to-be-recycled resource amount of each recycling object in the target account and the to-be-recycled resource proportion corresponding to the target resource channel. And if the requested resource recycling amount is not greater than the resource recycling amount threshold, 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 resource recovery success message on a display interface.
The resource platform is taken as a financial platform, and the resource channel is taken as a fund channel, for example. When the financial product M and the financial product N are purchased, the net value of the financial product M and the financial product N is 1 yuan, 100 shares of the financial product M are purchased by adopting funds of the funds channel A, 50 shares of the financial product M are purchased by adopting funds of the funds channel B, and 200 shares of the financial product M are purchased by adopting funds of the funds channel C. The financial product N has 300 shares purchased with funds of the funds channel A, 100 shares purchased with funds of the funds channel B, and 100 shares purchased with funds of the funds channel C.
And converting the share into an asset according to the net value to obtain the total asset to be recovered Y=850 yuan of the financial product M and the financial product N, wherein the asset to be recovered of the fund channel A is 400 yuan, the asset to be recovered of the fund channel B is 150 yuan, and the asset to be recovered of the fund channel C is 300 yuan.
Taking the ratio of the assets to be recovered of the fund channel to the total assets to be recovered of each financial product as the proportion of the assets to be recovered of the fund channel, and then the proportion of the assets to be recovered of the fund channel AThe proportion of assets to be recovered of the fund channel B>The proportion of assets to be recovered of the fund channel C >
After a period of time, if the net value of the financial product M and the financial product N changes to 2 yuan, the current total to-be-recovered asset y=1700 yuan of the financial product M and the financial product N. Taking the product of the current total to-be-recovered assets of the financial product M and the financial product N and the to-be-recovered asset proportion of the fund channel as an asset recovery threshold value of the fund channel, and taking the product as an asset recovery threshold value Z of the fund channel A A =X A X Y = 800 yuan, asset recovery threshold Z for funds channel B B =X B X Y = 300 yuan, asset recovery threshold Z for funds channel C C =X C X y=600 yuan.
When a user requests redemption of 350 shares of the financial product M through the funding channel A, the asset recovery threshold Z for the funding channel A is based on the net value of the financial product M A Conversion to a threshold value Z for share recovery for funding channel A A′ =800++2=400 shares. Since the share of the financial product M requested to be redeemed is less than the share recovery threshold of the fund channel A, the 350 shares of the financial product M can be redeemed all the way to the fund channel A.
In the embodiment of the application, the resource recycling amount threshold is determined based on the total to-be-recycled resource amount of each recycling object in the target account and the to-be-recycled resource proportion corresponding to the target resource channel, so the resource recycling amount threshold is the total to-be-recycled resource amount corresponding to the target resource channel, and is not only the resource amount distributed to the target recycling object from 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, that is, when the total to-be-recovered resource amount corresponding to the target resource channel is sufficiently large, all the resources allocated to the target recovery object can be recovered through the target resource channel without recovering the resources allocated to the target recovery object through a plurality of resource channels, thereby improving the flexibility of resource recovery.
Since funds return to the original funds channel when each financial product is redeemed, in order to more quickly determine each resource channel and the redemption share on each resource channel when the financial product is redeemed, the financial product needs to be marked when the financial product is purchased, the marked content at least comprises the purchase share of each funds channel, and the purchase share of each financial product on each resource channel is different, so that the marked content of each financial product is different, and the management cost of a 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 can be updated according to the conditions of resource recycling and resource allocation of each object in the target account. The method simplifies the marked content on the recovery object and is convenient for the management of the recovery object, thereby improving the efficiency of resource management and reducing the cost of resource management.
A system architecture diagram to which the resource recycling method according to the embodiment of the present application is applied will be described in the following, with reference to fig. 1, which is a system architecture diagram to which the embodiment of the present application is applied, where the system architecture includes at least a first terminal device 101 and a server 102.
The terminal device 101 is installed with a resource processing application such as a financial application, a live broadcast application, a video application, and the like. The resource handling application may be a pre-installed client, web page application, or applet embedded in other applications, etc. The terminal device 101 can include one or more processors 1011, memory 1012, I/O interfaces 1013 to interact with the server 102, and a display panel 1014, among others. 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, etc.
The server 102 serves the resource processing application as a background server for the resource processing application. The server 102 can include one or more processors 1021, memory 1022, and I/O interfaces 1023 for interaction with the terminal device 101, etc. In addition, server 102 can 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 may be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, a content delivery network (Content Delivery Network, CDN), basic cloud computing services such as big data and an artificial intelligence platform. The terminal device 101 and the server 102 may be directly or indirectly connected through wired or wireless communication, and the present application is not limited herein.
The terminal device 101 responds to the resource recycling operation triggered by the target account, and sends a resource recycling request to the server 102, wherein the resource recycling request carries the requested resource recycling amount of the target recycling object and the channel identification of the target resource channel. The server 102 obtains a resource recycling amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, wherein the resource recycling amount threshold is determined based on the total to-be-recycled resource amount of each recycling object in the target account and the to-be-recycled resource proportion corresponding to the target resource channel. If the requested resource recovery amount is not greater than the resource recovery amount threshold, the resource allocated to the target recovery target is 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 a resource reclamation 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, which may be executed by a computer device, and the computer device may be a terminal device and a server in fig. 1, as shown in fig. 2, including the following steps:
In step S201, the terminal device sends a resource reclamation request to the server in response to the resource reclamation operation triggered for the target account.
Specifically, the resources in the embodiment of the application can be economic resources such as assets and shares, storage resources such as memories, computing resources such as processors, network resources such as bandwidths and the like. The resource recycling request carries the requested resource recycling amount of the target recycling object and the channel identification of the target resource channel. The recycling object may be a financial product, such as a 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 are not listed here.
Step S202, the server obtains a resource recovery amount threshold corresponding to the target resource channel based on the channel identification of the target resource channel.
The resource recycling amount threshold is determined based on the total to-be-recycled resource amount of each recycling object in the target account and the to-be-recycled resource proportion corresponding to the target resource channel. In the 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 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 can be updated according to the condition of resource recycling and resource allocation of each object in the target account.
The total amount of resources to be reclaimed for each reclamation object in the target account may be fixed. For example, when the resource is the memory occupied by the video, the total memory occupied by each video in the target account is the total memory pre-allocated to each video.
The total amount of resources to be recycled of each recycling object in the target account may also be variable in a fluctuation manner, and when the terminal device responds to the resource recycling operation triggered by the target account and sends a resource recycling request to the server, the total amount of resources to be recycled of each recycling object in the target account may be equal to or greater than or less than the total amount of resources pre-allocated to each recycling object. For example, when the resource is an asset corresponding to the fund, the total assets of each fund in the target account may fluctuate according to the rising and falling of the fund.
When determining a resource recycling amount threshold based on the total to-be-recycled resource amount of each recycling object in the target account and the to-be-recycled resource proportion corresponding to the target resource channel, the embodiment of the application provides at least two implementations as follows:
in the first embodiment, a product of a total resource to be recovered amount of each recovery object in the target account and a resource proportion to be recovered corresponding to the target resource channel is used as a resource recovery amount threshold.
In the second embodiment, the product of the total resource 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 first, and the resource to be recovered of the target resource channel is obtained. And then comparing the amount of the resources to be recovered of the target resource channel with the amount of the resources to be recovered of the target recovery object, if the amount of the resources to be recovered of the target resource channel is larger than the amount of the resources to be recovered of the target recovery object, taking the amount of the resources to be recovered of the target recovery object as a resource recovery amount threshold, otherwise taking the amount of the resources to be recovered of the target resource channel as a resource recovery amount 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 target 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, sending a resource recovery failure message to the terminal equipment, and displaying the resource recovery failure message on the display interface by the terminal equipment. After the request resource recovery amount of the target recovery object is recovered to the target resource channel, the residual resource amount of the target resource channel is increased by the request resource recovery amount, and the resource amount to be recovered of the target resource channel is reduced by the request resource recovery amount.
In step S204, the server sends a resource recovery success message to the terminal device.
Step S205, the terminal equipment displays a resource recovery success message on a display interface.
Specifically, the resource recovery success message may be displayed in a popup window, a floating window, or the like.
In the embodiment of the application, the resource recycling amount threshold is determined based on the total to-be-recycled resource amount of each recycling object in the target account and the to-be-recycled resource proportion corresponding to the target resource channel, so the resource recycling amount threshold is the total to-be-recycled resource amount corresponding to the target resource channel, and is not only the resource amount distributed to the target recycling object from 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, that is, when the total to-be-recovered resource amount corresponding to the target resource channel is sufficiently large, all the resources allocated to the target recovery object can be recovered through the target resource channel without recovering the resources allocated to the target recovery object through a plurality of resource channels, thereby improving the flexibility of resource recovery.
Optionally, after the step S203, the proportion of resources to be recovered corresponding to the target resource channel and the proportion of resources to be recovered corresponding to other resource channels other than the target resource channel are updated according to the requested resource recovery amount.
In specific implementation, after the requested resource recovery amount of the target recovery object is recovered to the target resource channel, the residual resource amount of the target resource channel is increased by the requested resource recovery amount, and the current residual resource amount of the target resource channel is obtained. The resource quantity to be recovered of the target resource channel reduces the recovery quantity of the request resource, and the current resource quantity to be recovered of the target resource channel is obtained.
Meanwhile, the total resource to be recovered of each recovery object in the target account subtracts the request resource recovery amount to obtain the current total resource to be recovered of each recovery 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, the user is set to purchase financial products M and N using the assets of fund channel A, fund channel B and fund channel C, the assets to be recovered of each fund channel are shown in Table 2:
Table 2.
Fund channel A/Yuan Fund channel B/Yuan Fund channel C/Yuan
400 150 300
Total assets to be recovered y=850 yuan for financial product M and financial product N, proportion of assets to be recovered for fund channel aThe proportion of assets to be recovered of the fund channel B>The proportion of assets to be recovered of the fund channel C>
Determining an asset recovery threshold Z for the fund channel A based on the total assets to be recovered and the proportion of assets to be recovered for each fund channel A =X A X Y = 400 yuan, asset recovery threshold Z for funds conduit B B =X B X Y = 150 yuan, asset recovery threshold Z for funds channel C C =X C X y=300 yuan.
Setting 350 shares of the financial product M to be redeemed through the fund channel A by the user, and obtaining the asset of the financial product M to be redeemed through the fund channel A as 350 yuan according to the current net value (1 yuan) of the financial product M. Since the assets of the financial product M that are requested to be redeemed are less than the asset recovery threshold of the funding channel A, the assets of the financial product M are all redeemed to the funding channel A.
At this time, the assets to be recovered for each fund channel are shown in table 3:
table 3.
Fund channel A/Yuan Fund channel B/Yuan Fund channel C/Yuan
50 150 300
Subtracting the assets to be recovered (350 yuan) of the financial 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 unchanged.
At this time, the total assets to be recovered of the reserved financial product N is 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 financial product N is used as the current proportion of the assets to be recovered of the fund channel A
Taking the ratio of the original assets to be recovered of the fund channel B to the total assets to be recovered of the financial product N as the current proportion of the assets to be recovered of the fund channel B
Channel for fundingThe ratio of original assets to be recovered and total assets to be recovered of financial product N in channel C is used as the current proportion of assets to be recovered of fund channel C
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 proportion of the assets to be recovered of each resource channel is updated in time, so that a user can timely and accurately acquire the current resource amount to be recovered of each resource channel, and further a flexible resource recovery scheme is selected according to actual requirements, the flexibility of resource recovery is improved, and the user experience is improved.
Alternatively, before the above step S201, the terminal device may query the amount of resources to be recycled of the target recycling object in response to a user operation, as shown in fig. 3, specifically including the steps of:
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 resources to be reclaimed for the target reclamation 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, or the like.
In 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 resources to be recovered of the target recovery object may be fixed, for example, the target recovery object is set to be a video application, the resources are set to be memory, and if 500M memory is allocated to a video in the video application in advance, the amount of resources to be recovered of the target recovery object is set to be 500M memory.
The amount of resources to be recovered of the target recovery object may be fluctuated, and may be equal to or larger or smaller than the amount of resources previously allocated to the target recovery object.
For example, the target recovery object is set as a financial product Q, the net value of the financial product Q is 1, and the resource is an asset, wherein the asset is the product of the share and the net value. The user spends 500 yuan purchasing 500 shares of the financial product Q. After a period of time, if the net value of the financial product Q is 2, the amount of resources to be recovered of the target recovery object is 1000 yuan. If the net value of the financial product Q is 0.5, the amount of resources to be recovered of the target recovery object is 250 yuan. If the net value of the financial product Q is 1, the amount of resources to be recovered of the target recovery object is 500 yuan.
For another example, the target recovery object is set as a financial product Q, the net value of the financial product Q is 1, and the resource is a share. After a period of time, the share of the financial product Q is still 500 regardless of whether the net value of the financial product Q changes, and the amount of the resources to be recovered of the target recovery object is 500 shares.
In step S303, the server sends the amount of resources to be recovered of the target object to the terminal device.
Step S304, the terminal equipment displays the resource quantity to be recovered of the target recovery object in the display interface.
Specifically, the resource recovery success message may be displayed in a popup window, a floating window, or the like.
In the embodiment of the application, the terminal equipment responds to the first query operation triggered by the resource quantity to be recovered of the target recovery object, acquires the resource quantity to be recovered of the target recovery object from the server and displays the resource quantity to the user, so that the user can timely acquire the resource quantity to be recovered of the target recovery object, and the user can recover the resource of the target recovery object according to actual demands.
Optionally, before the step S201, the terminal device may query, in response to a user operation, a resource recycling amount threshold corresponding to each of the resource channels, as shown in fig. 4, and specifically includes the following steps:
In step S401, the terminal device sends a channel resource query request to the server in response to a second query operation triggered by the resource recovery amount threshold corresponding to each resource channel.
Specifically, the channel resource query request carries channel identifiers of the respective resource channels corresponding to the target account. In addition, when the resource reclamation amount threshold of each resource canal is queried for the target reclamation object, the channel resource query request may also carry the object identification of the target reclamation object.
Step S402, the server 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 the resource recycling amount threshold value corresponding to each resource channel according to the total resource recycling amount of each recycling object in the target account and the resource recycling ratio 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 can be used as the resource recovery amount threshold corresponding to each resource channel.
The product of 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 each resource channel can be determined first, and the resource quantity to be recovered of each resource channel can be obtained. And comparing the amount of the resources to be recovered of the resource channel with the amount of the resources to be recovered of the target recovery object for each resource channel, if the amount of the resources to be recovered of the resource channel is larger than the amount of the resources to be recovered of the target recovery object, taking the amount of the resources to be recovered of the target recovery object as a resource recovery amount threshold, otherwise taking the amount of the resources to be recovered of the resource channel as a resource recovery amount threshold.
Step S404, the server sends the resource recovery quantity threshold value corresponding to each resource channel to the terminal equipment.
Step S405, the terminal device displays the respective corresponding resource recovery quantity threshold value of each resource channel in the display interface.
Illustratively, the server maintains the proportion of assets to be recovered for each of the funds channels, wherein the proportion of assets to be recovered for funds channel AThe proportion of assets to be recovered of the fund channel B>The proportion of assets to be recovered of the fund channel C>
And the terminal equipment responds to a second query operation triggered by the to-be-recovered asset threshold corresponding to each fund channel and sends a channel asset query request to the server. The server obtains the proportion X of the assets to be recovered based on the channel identification of each asset channel A Asset proportion to be recovered XB and asset proportion to be recovered 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 of the financial product M and the financial product N are y=850 yuan. The server takes the product of the total to-be-recovered assets of all financial products in the target account and the to-be-recovered asset proportion corresponding to all fund channels as asset recovery threshold values corresponding to all fund channels respectively, then the asset recovery threshold value za=xa×y=400 yuan of the fund channel a, and the asset recovery threshold value zb=x of the fund channel B B X Y = 150 yuan, asset recovery threshold Z for funds channel C C =X C X y=300 yuan. The server thresholds the asset recovery amount Z A Asset recovery threshold Z B Asset recovery threshold Z C And sending the message to the terminal equipment.
One possible implementation manner, for various financial products in the target account, the terminal device displays the asset recovery amount threshold value Z in a display interface A Asset recovery threshold Z B Asset recovery threshold Z C . For example, as shown in fig. 5, the terminal device displays the fund channel a, the fund channel B, and the fund channel C in the display interface, and displays the assets to be recovered (350 yuan) held by the financial product M. The user can operate the display interface to select assets of the financial product M to be redeemed, can select all or part of the assets to be redeemed. Alternatively, the redemption of the funds channel may be selected from the funds channel A, funds channel B and funds channel C, when in useWhen the user selects the fund channel A, the display interface displays the asset recovery quantity threshold Z A . When the user selects the fund channel B, the display interface displays the asset recovery threshold Z B . When the user selects the fund channel C, the display interface displays the asset recovery threshold Z C
In another possible embodiment, the terminal device converts the asset recovery threshold of each of the funding channels into a share recovery threshold based on the net value of the financial product. For example, if the current net value of the financial product M is 2 yuan, the share recovery threshold Z of the fund channel A A′ =400+.2=200 shares, the share recovery threshold Z for the fund channel B A′ =150+.2=75 share, share recovery threshold Z for funds channel C C′ =300×2=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, and simultaneously displays the share to be recovered (175 shares) held by the financial product M. The user can operate the display interface to select the share to be redeemed, can select the whole or part to be redeemed. In addition, the cash-out fund channel can be selected from the fund channel A, the fund channel B and the fund channel C, and when the user selects the fund channel A, the share recovery threshold Z is displayed by the display interface A′ . When the user selects the fund channel B, the display interface displays the share recovery threshold Z B′ . When the user selects the fund channel C, the display interface displays the share recovery threshold Z C′
In the embodiment of the application, the terminal equipment responds to the second query operation triggered by the resource recovery quantity threshold corresponding to each resource channel, acquires the resource recovery quantity threshold corresponding to each resource channel from the server and displays the resource recovery quantity threshold to the user, so that the user can timely acquire the available resources of each resource channel, the user can select the resources of the resource channel recovery target recovery object according to the actual requirements, 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 proportion of resources to be recovered corresponding to each of the resource channels, and then calculate, by the terminal device, a resource recovery amount threshold corresponding to each of the resource channels, as shown in fig. 7, and specifically includes the following steps:
in step S701, the terminal device sends a resource proportion query request to the server in response to a third query operation triggered by the resource proportion to be recovered corresponding to each resource channel.
Specifically, the resource proportion query request carries channel identifiers of all the resource channels corresponding to the target account.
Step S702, the server obtains the proportion of the resources to be recovered corresponding to each resource channel based on the channel identification of each resource channel.
In step S703, the server sends the to-be-recovered resource proportion corresponding to each resource channel to the terminal device.
In step S704, the terminal device determines the resource recycling amount threshold corresponding to each resource channel according to the total resource to be recycled of each recycling object in the target account and the resource proportion to be recycled corresponding to each resource channel.
Step S705, the terminal equipment displays the respective corresponding resource recovery quantity threshold value of each resource channel in the display interface.
The method for calculating the resource recovery amount threshold value corresponding to each resource channel by the terminal device is the same as the calculation method of the server in the previous embodiment, and will not be described here again.
Alternatively, in addition to requesting the server to reclaim the resources of the target reclaiming object in the target account in response to the user operation, the terminal device may also request the server to allocate the resources for the target allocation object in the target account in response to the user operation, 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 the resource allocation operation triggered for the target account.
The resource allocation request carries the request resource allocation amount of the target allocation object and the channel identification of the target resource channel.
Step S802, the server obtains the residual resource quantity of the target resource channel based on the channel identification of the target resource channel.
In 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 resources 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, sending a resource allocation failure message to the terminal device, and displaying the resource allocation failure message on the display interface by the terminal device.
In step S804, the server sends a resource allocation success message to the terminal device.
Step S805, the terminal device displays a resource allocation success message on the display interface.
Optionally, after the step S803, the proportion of resources to be recovered corresponding to the target resource channel and the proportion of resources to be recovered corresponding to the other resource channels other than the target resource channel are updated according to the requested resource allocation amount.
In a specific implementation, after the resources of the requested 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 reduced by the requested resource allocation amount, and the current remaining resource amount of the target resource channel is obtained. And increasing the resource allocation amount of the request resource 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 recovered of each recovery object in the target account is increased by the request resource allocation amount, and the current total resource amount to be recovered of each recovery 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 funds channels are shown in Table 2, the proportion of assets to be recovered for funds channel AThe proportion of assets to be recovered of the fund channel B>The proportion of assets to be recovered of the fund channel C>
And setting the net value of the financial product L of which the user purchases 150 shares is 1 yuan, wherein 50 shares are purchased by 50 yuan in the fund channel A, 50 shares are purchased by 50 yuan in the fund channel B, and 50 shares are purchased by 50 yuan in the fund channel C. At this time, the assets to be recovered for each fund channel are shown in table 4:
table 4.
Fund channel A/Yuan Fund channel B/Yuan Fund channel C/Yuan
450 200 350
Adding the original asset to be recovered (400 yuan) of the fund channel A to the asset (50 yuan) distributed to the financial product L from the fund channel A to obtain the current asset to be recovered (450 yuan) of the fund channel A; adding the original asset to be recovered (150 yuan) of the fund channel B to the asset (50 yuan) distributed to the financial product L from the fund channel B to obtain the current asset to be recovered (200 yuan) of the fund channel B; and adding the original asset to be recovered (300 yuan) of the fund channel C to the asset (50 yuan) distributed to the financial product L from the fund channel C to obtain the current asset to be recovered (350 yuan) of the fund channel C. The total assets to be recovered of the financial product L, the financial product M and the financial product N are 1000 yuan.
Taking the ratio of the current assets to be recovered to the total assets to be recovered of the fund channel A as the current proportion of the assets to be recovered of the fund channel A
Taking the ratio of original assets to be recovered and total assets to be recovered of the fund channel B as the current proportion of the assets to be recovered of the fund channel B
Taking the ratio of original assets to be recovered and total assets to be recovered of the fund channel C as the current proportion of the assets to be recovered of the fund channel C
In the embodiment of the application, after the resources requiring the resource allocation amount are allocated from the target resource channels to the target allocation object, the proportion of the assets to be recovered of each resource channel is updated in time, so that a user can timely and accurately acquire the current amount of the resources to be recovered of each resource channel, and further, a flexible resource recovery scheme is selected according to actual requirements, the flexibility of resource recovery is improved, and the user experience is improved.
In order to better explain the embodiment of the present application, a resource allocation method and a resource recycling method provided by the embodiment of the present application are described below in conjunction with a financial scenario, first, a resource allocation method is introduced, and the method is interactively executed by a terminal device, an intermediate server and a service server, as shown in fig. 9, and includes the following steps:
in step S901, the terminal device sends a request for buying to the intermediate server in response to the operation of buying the financial product L triggered for the target account.
The purchase request carries an identifier of the financial product L, a purchased share and a fund channel, wherein the 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 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.
In step S903, the intermediate server sends the purchase requisition file to the business server when it is determined that the remaining assets of the fund channel a, the fund channel B, and the fund channel C are all greater than 50 yuan.
In step S904, the service server returns the purchase requisition file.
In step S905, the intermediate server updates the proportion of assets to be recovered in the fund channel a, the fund channel B, and the fund channel C.
Specifically, the proportion of assets to be recovered originally in the fund channel A is setThe proportion of assets to be recovered of the original B fund channel +.>Capital channel C original asset to be recovered proportion +.>
The assets to be recovered of each fund channel after the user purchases the financial product L are shown in the table 4, the original assets to be recovered (400 yuan) of the fund channel A are added with the assets (50 yuan) distributed to the financial product L from the fund channel A, and the current assets to be recovered (450 yuan) of the fund channel A are obtained; adding the original asset to be recovered (150 yuan) of the fund channel B and the asset (50 yuan) distributed to the financial product L from the fund channel B to obtain the current asset to be recovered (200 yuan) of the fund channel C; and adding the original asset to be recovered (300 yuan) of the fund channel C to the asset (50 yuan) distributed to the financial product L from the fund channel C to obtain the current asset to be recovered (350 yuan) of the fund channel C. The total assets to be recovered of the financial product L, the financial product M and the financial product N are 1000 yuan.
Taking the ratio of the current assets to be recovered to the total assets to be recovered of the fund channel A as the current proportion of the assets to be recovered of the fund channel A
Taking the ratio of original assets to be recovered and total assets to be recovered of the fund channel B as the current proportion of the assets to be recovered of the fund channel B
Taking the ratio of original assets to be recovered and total assets to be recovered of the fund channel C as the current proportion of the assets to be recovered of the fund channel C
Step S906, the intermediate server sends a purchase success message to the terminal device.
In step S907, the terminal device displays the purchase success message on the display interface.
The resource recycling method is described below, and is interactively performed by a terminal device, an intermediate server and a service server, as shown in fig. 10, and includes the following steps:
in step S1001, the terminal device sends a first query request to the intermediate server in response to a first query operation triggered for the financial product N.
In step S1002, the intermediate server returns the share and net value of the financial product N.
And setting the share of the financial product N as 400 and the net value as 1 yuan, and setting the asset to be recovered corresponding to the financial product N as 400 yuan.
In step S1003, the terminal device responds to a second query operation triggered by the proportion of the assets to be recovered corresponding to each fund channel, and sends a second query request to the intermediate server.
Step S1004, the intermediate server returns the proportion of the assets to be recovered corresponding to each fund channel.
Specifically, the current proportion of assets to be recovered in the funding channel A Capital channel B current asset proportion to be recovered +.>Capital channel C current asset proportion to be recovered +.>
Step S1005, aiming at the financial product N, the terminal equipment respectively determines the share recovery quantity threshold value corresponding to each fund channel according to the total assets to be recovered of each financial product and the proportion of the assets to be recovered 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 to-be-recovered asset y=1000 yuan of the financial product L, the financial product M and the financial product N. The product of the proportion of the total assets to be recovered of all financial products in the target account and the assets to be recovered corresponding to all the fund channels is calculated, and 450 yuan of assets to be recovered of the fund channel A, 250 yuan of assets to be recovered of the fund channel B and 350 yuan of assets to be recovered of the fund channel C are obtained.
And aiming at the financial product N, converting the assets to be recovered of each fund channel into the shares to be recovered by adopting the net value of the financial product N, wherein 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.
And taking the share of the financial product N as the share recovery threshold of the fund channel A because the share to be recovered of the fund channel A is larger than the share of the financial product N. And taking the to-be-recovered shares of the fund channel B and the fund channel C as the share recovery quantity threshold value of the fund channel B and the fund channel C as the to-be-recovered shares of the fund channel B and the fund channel C are smaller than the shares of the financial product N.
In step S1006, the terminal device displays the share and net value of the financial product N and the share recovery threshold corresponding to each fund channel.
In step S1007, the terminal transmits a redemption request to the intermediate server in response to the operation to redeem the financial product N.
Specifically, the user selects 400 shares of the financial product N to be redeemed from the funding channel A, and the redemption request carries 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 document to the service server upon determining that the redemption share of the financial product N is not greater than the share recovery threshold for the funding channel A.
Step S1009, the service server returns a redemption validation document.
In step S1010, the intermediate server updates the proportion of assets to be recovered in the fund channel a, the fund channel B, and the fund channel C.
Specifically, after the user redeems the financial product N, the assets to be recovered for each fund channel are shown in Table 5:
TABLE 5
Fund channel A/Yuan Fund channel B/Yuan Fund channel C/Yuan
50 200 350
Subtracting the asset (400 yuan) of the financial product N from the original asset (450 yuan) to be recovered of the fund channel A to obtain the current asset (50 yuan) to be recovered of the fund channel A, wherein the assets to be recovered of the fund channel B and the fund channel C are unchanged.
At this time, the total to-be-recovered assets of the financial product M and the financial product L are 600 yuan, and the ratio of the current to-be-recovered assets of the fund channel A to the total to-be-recovered assets is used as the current to-be-recovered assets ratio of the fund channel A
Taking the ratio of original assets to be recovered and total assets to be recovered of the fund channel B as the current proportion of the assets to be recovered of the fund channel B
Taking the ratio of original assets to be recovered and total assets to be recovered of the fund channel C as the current proportion of the assets to be recovered of the fund channel C
In step S1011, the intermediate server transmits a redemption success message to the terminal device.
Step S1012, the terminal device displays a redemption success message on the display interface.
In the embodiment of the application, the resource recycling amount threshold is determined based on the total to-be-recycled resource amount of each recycling object in the target account and the to-be-recycled resource proportion corresponding to the target resource channel, so the resource recycling amount threshold is the total to-be-recycled resource amount corresponding to the target resource channel, and is not only the resource amount distributed to the target recycling object from 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, that is, when the total to-be-recovered resource amount corresponding to the target resource channel is sufficiently large, all the resources allocated to the target recovery object can be recovered through the target resource channel without recovering the resources allocated to the target recovery object through a plurality of resource channels, thereby improving the flexibility of resource recovery.
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 recycling request, where the resource recycling request is sent by a terminal device in response to a resource recycling operation triggered for a target account, and the resource recycling request carries a requested resource recycling amount of a target recycling object and a channel identifier of a target resource channel;
a matching module 1102, configured to obtain a resource recycling amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, where the resource recycling amount threshold is determined based on a total to-be-recycled resource amount of each recycling object in the target account and a to-be-recycled resource proportion corresponding to the target resource channel;
a processing module 1103, configured to recycle the resources allocated to the target recycling object to the target resource channel according to the requested resource recycling amount if the requested resource recycling amount is not greater than the resource recycling amount threshold;
a first sending module 1104, configured to send a resource recovery success message to the terminal device.
Optionally, the processing module 1103 is further configured to:
And after the resources allocated to the target recycling object are recycled to the target resource channel according to the request resource recycling amount, updating the resource proportion to be recycled corresponding to the target resource channel and the resource proportion to be recycled corresponding to other resource channels except the target resource channel according to the request resource recycling amount.
Optionally, the receiving module 1101 is further configured to:
before receiving a resource recycling request, receiving an object resource query request, wherein the object resource query request is sent by the terminal equipment in response to a first query operation triggered by the amount of resources to be recycled for the target recycling object, and the object resource query request carries an object identifier of the target recycling object;
the matching module 1102 is further configured to:
acquiring the resource quantity to be recovered of the target recovery object based on the object identification of the target recovery object;
the first transmitting module 1104 is further configured to:
and sending the resource quantity to be recovered of the target object to the terminal equipment so that the terminal equipment displays the resource quantity to be recovered of the target recovered 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 equipment 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 channel identifiers of each resource channel corresponding to the target account;
the matching module 1102 is further configured to:
based on the channel identifiers of the resource channels, respectively acquiring the proportion of resources to be recovered corresponding to the resource channels;
the processing module 1103 is further configured to:
respectively determining a resource recovery amount threshold value corresponding to each resource channel according to the total resource to be recovered of each recovery object in the target account and the resource proportion to be recovered corresponding to each resource channel;
the first transmitting 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 equipment 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 quantity 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 allocation amount of the request resource is not greater than the residual resource amount of the target resource channel, allocating the resource in the target resource channel to the target allocation object according to the allocation amount of the request resource;
the first transmitting 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 request resource allocation amount, updating the proportion of resources to be recovered corresponding to the target resource channel and the proportion of resources to be recovered corresponding to other resource channels except the target resource channel according to the request 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, in response to a resource recycling operation triggered for a target account, a resource recycling request to a server, where the resource recycling request carries a requested resource recycling amount of a target recycling 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 recycling amount threshold corresponding to the target resource channel, where the resource recycling amount threshold is determined based on a total resource amount to be recycled of each recycling object in the target account and a resource proportion to be recycled corresponding to the target resource channel; if the request 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 request resource recovery amount, and sending a resource recovery success message to the terminal equipment;
And the display module 1202 is configured to display the resource recycling success message on a display interface.
Optionally, the second sending module 1201 is further configured to:
before a resource recycling request is sent to a server in response to a resource recycling operation triggered by a target account, an object resource query request is sent to the server in response to a first query operation triggered by the resource quantity to be recycled of the target recycling object, wherein the object resource query request carries an object identifier of the target recycling object, so that the server obtains the resource quantity to be recycled of the target recycling object based on the object identifier of the target recycling object, and sends the resource quantity to be recycled of the target object to the terminal equipment;
the display module 1202 is further configured to:
and displaying the resource quantity to be recovered of the target recovery object in the display interface.
Optionally, the second sending module 1201 is further configured to:
before a resource recovery request is sent to a server in response to a resource recovery operation triggered by a target account, a channel resource query request is sent to the server in response to a second query operation triggered by a resource recovery amount threshold corresponding to each resource channel, wherein the channel resource query request carries channel identifiers 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 identifiers of each resource channel; respectively determining a resource recovery amount threshold value corresponding to each resource channel according to the total resource to be recovered of each recovery object in the target account and the resource proportion to be recovered corresponding to each resource channel; transmitting 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 values corresponding to the resource channels respectively in the display interface.
Optionally, the second sending module 1201 is further configured to:
responding to a resource allocation operation triggered by aiming at the target account, 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 obtains the residual resource amount of the target resource channel based on the channel identifier of the target resource channel; if the allocation amount of the request resource is not greater than the residual resource amount of the target resource channel, allocating the resource in the target resource channel to the target allocation object according to the allocation amount of the request resource, and sending a resource allocation success message to the terminal equipment;
the display module 1202 is further configured to:
and displaying the resource allocation success message on the display interface.
In the embodiment of the application, the resource recycling amount threshold is determined based on the total to-be-recycled resource amount of each recycling object in the target account and the to-be-recycled resource proportion corresponding to the target resource channel, so the resource recycling amount threshold is the total to-be-recycled resource amount corresponding to the target resource channel, and is not only the resource amount distributed to the target recycling object from 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, that is, when the total to-be-recovered resource amount corresponding to the target resource channel is sufficiently large, all the resources allocated to the target recovery object can be recovered through the target resource channel without recovering the resources allocated to the target recovery object through a plurality of resource channels, thereby improving the flexibility of resource recovery.
Based on the same technical concept, an 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 in fig. 13, the processor 1301 and the memory 1302 are connected by a bus, for example. The buses may be divided into address buses, data buses, control buses, etc.
In an 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 perform the steps included in the aforementioned resource reclamation method by executing the instructions stored in the memory 1302.
Where processor 1301 is the control center of a computer device, various interfaces and lines may be utilized to connect various portions of the computer device, implementing resource reclamation by running or executing instructions stored in memory 1302 and invoking data stored in memory 1302. In the alternative, processor 1301 may include one or more processing units, and processor 1301 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1301. In some embodiments, processor 1301 and memory 1302 may be implemented on the same chip, and in some embodiments they may be implemented separately on separate chips.
Processor 1301 may be a general purpose processor such as a Central Processing Unit (CPU), digital signal processor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, that may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. The 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 embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution.
The 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, which may include, for example, flash Memory, hard disk, multimedia card, card Memory, random access Memory (Random Access Memory, RAM), static random access Memory (Static Random Access Memory, SRAM), programmable Read-Only Memory (Programmable Read Only Memory, PROM), read-Only Memory (ROM), charged erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory), magnetic Memory, magnetic disk, optical disk, and the like. 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 embodiments of the present application may also be circuitry or any other device capable of performing storage functions for storing program instructions and/or data.
Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium storing a computer program executable by a computer device, which when run on the computer device, causes the computer device to perform the steps of the above-described resource reclamation method.
Based on the same inventive concept, an embodiment of the present application provides a data sharing system, as shown in fig. 14, where the data sharing system 1400 refers to a system for performing data sharing between nodes, and the data sharing system may include a plurality of nodes 1401, and the plurality of nodes 1401 may be servers in the data sharing system. For any one server, the server and the terminal equipment interactively execute the resource recycling method, and share the data such as the quantity of the resources to be recycled of each recycling object in the target account, the proportion of the resources to be recycled corresponding to each updated resource channel and the like to other servers.
Specifically, each node 1401 may receive data while performing normal operation and maintain shared data within the data sharing system based on the received data. In order to ensure the information intercommunication in the data sharing system, information connection can exist between each node in the data sharing system, and the nodes can transmit information 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 the consensus algorithm, and store the data as data in the 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 to the node identifier, and each node in the data sharing system can store the node identifiers of other nodes in the data sharing system, so that the generated block can be broadcast to other nodes in the data sharing system according to the node identifiers of other nodes. Each node can maintain a node identification list shown in the following table, and the node names and the node identifications are correspondingly stored in the node identification list. The node identifier may be an IP (Internet Protocol, protocol of interconnection between networks) address, and any other information that can be used to identify the node, and the IP address is only illustrated in table 6.
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 and the same blockchain. The blockchain is composed of a plurality of blocks, see fig. 15, and the starting block comprises a block head and a block body, wherein the block head stores an input information characteristic value, a version number, a time stamp and a difficulty value, and the block body stores input information; the next block of the starting block takes the starting block as a father 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 father 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 are associated with the block data stored in the father block, and the safety of the input information in the block is ensured.
When each block in the blockchain is generated, referring to fig. 15, when the node where the blockchain is located receives data, the data is verified, after the verification is completed, the data is stored into a memory pool, and the hash tree for recording the data is updated; then, updating the update time stamp to the time of receiving the data, and trying different random numbers to calculate the characteristic value for a plurality of times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
wherein SHA256 is a eigenvalue algorithm used to calculate eigenvalues; version (version number) is version information of the related block protocol in the block chain; the prev_hash is the block header characteristic value of the parent block of the current block; the merkle_root is a characteristic value of input information; ntime is the update time of the update timestamp; the nbits is the current difficulty, is a fixed value in a period of time, and is determined again after exceeding a fixed period of time; x is a random number; TARGET is a eigenvalue threshold that can be determined from nbits.
Thus, when the random number meeting the formula is calculated, the data can be correspondingly stored to generate the block head and the block main body, and the current block is obtained. And then, the node where the blockchain is located sends the newly generated blocks to other nodes in the data sharing system where the newly generated blocks are located according to the node identification of other nodes in the data sharing system, the other nodes verify the newly generated blocks, and the newly generated blocks are added into the blockchain stored in the newly generated blocks after the verification is completed.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, or as a 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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. It is therefore intended that the following claims be interpreted as including the 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 modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (14)

1. A resource reclamation method, comprising:
receiving a resource recycling request, wherein the resource recycling request is sent by a terminal device in response to a resource recycling operation triggered by a target account, and the resource recycling request carries the requested resource recycling amount of a target recycling object and the channel identifier of a target resource channel;
acquiring a resource recycling amount threshold corresponding to the target resource channel based on the channel identification of the target resource channel, wherein the resource recycling amount threshold is determined based on the total to-be-recycled resource amount of each recycling object in the target account and the to-be-recycled resource proportion corresponding to the target resource channel, and the to-be-recycled resource proportion corresponding to the target resource channel is as follows: a ratio of a total amount of resources previously allocated from the target resource channel to the respective recovery objects to a total amount of resources previously allocated from a plurality of resource channels to the respective recovery objects, the target resource channel being one of the plurality of resource channels;
And if the request resource recycling amount is not greater than the resource recycling amount threshold, recycling the resources allocated to the target recycling object to the target resource channel according to the request resource recycling amount, and sending a resource recycling success message to the terminal equipment.
2. The method of claim 1, wherein after the recycling of the resources allocated to the target recycling object to the target resource channel according to the requested resource recycling 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 recovery amount of the request resources.
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 equipment in response to a first query operation triggered by the amount of resources to be recycled for the target recycling object, and the object resource query request carries an object identifier of the target recycling object;
and obtaining the resource amount to be recovered of the target recovery object based on the object identification of the target recovery object, 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 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 equipment 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 channel identifiers of each resource channel corresponding to the target account;
based on the channel identifiers of the resource channels, respectively acquiring the proportion of resources to be recovered corresponding to the resource channels;
respectively determining a resource recovery amount threshold value corresponding to each resource channel according to the total resource to be recovered of each recovery object in the target account and the resource proportion to be recovered corresponding to each resource channel;
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 one of claims 1 to 4, further comprising:
receiving a resource allocation request, wherein the resource allocation request is sent by the terminal equipment 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 quantity of the target resource channel based on the channel identification of the target resource channel;
and if the allocation amount of the request resources 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 allocation amount of the request resources, and sending a successful resource allocation message to the terminal equipment.
6. The method of claim 5, wherein after allocating the 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 quantity of the request resources.
7. A resource reclamation method, comprising:
responding to a resource recycling operation triggered by aiming at a target account, sending a resource recycling request to a server, wherein the resource recycling request carries the requested resource recycling amount of a target recycling object and the channel identification of a target resource channel, so that the server obtains a resource recycling amount threshold corresponding to the target resource channel based on the channel identification of the target resource channel, the resource recycling amount threshold is determined based on the total resource to be recycled of each recycling object in the target account and the resource to be recycled ratio corresponding to the target resource channel, and the resource to be recycled ratio corresponding to the target resource channel is as follows: a ratio of a total amount of resources previously allocated from the target resource channel to the respective recovery objects to a total amount of resources previously allocated from a plurality of resource channels to the respective recovery objects, the target resource channel being one of the plurality of resource channels; if the request 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 request resource recovery amount, and sending a resource recovery success message to the terminal equipment;
And displaying the resource recovery success message on a display interface.
8. The method of claim 7, wherein before sending the resource reclamation request to the server in response to the triggered resource reclamation operation for the target account, further comprising:
responding to a first query operation triggered by the amount of resources to be recycled of the target recycling object, sending an object resource query request to a server, wherein the object resource query request carries an object identifier of the target recycling object, so that 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, and sends the amount of resources to be recycled of the target object to the terminal equipment;
and displaying the resource quantity to be recovered of the target recovery object in the display interface.
9. The method of claim 7, wherein before sending the resource reclamation request to the server in response to the triggered resource reclamation operation for the 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 channel identifiers of each resource channel corresponding to the target account, so that the server respectively acquires the proportion of resources to be recovered corresponding to each resource channel based on the channel identifiers of each resource channel; respectively determining a resource recovery amount threshold value corresponding to each resource channel according to the total resource to be recovered of each recovery object in the target account and the resource proportion to be recovered corresponding to each resource channel; transmitting the resource recovery quantity threshold value corresponding to each resource channel to the terminal equipment;
And displaying the resource recovery quantity threshold values corresponding to the resource channels respectively in the display interface.
10. The method of any one of claims 7 to 9, further comprising:
responding to a resource allocation operation triggered by aiming at the target account, 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 obtains the residual resource amount of the target resource channel based on the channel identifier of the target resource channel; if the allocation amount of the request resource is not greater than the residual resource amount of the target resource channel, allocating the resource in the target resource channel to the target allocation object according to the allocation amount of the request resource, and sending a resource allocation success message to the terminal equipment;
and displaying the resource allocation success message on the display interface.
11. A resource reclamation apparatus, comprising:
the resource recycling system comprises a receiving module, a receiving module and a processing module, wherein the receiving module is used for receiving a resource recycling request, the resource recycling request is sent by a terminal device in response to a resource recycling operation triggered by a target account, and the resource recycling request carries a requested resource recycling amount of a target recycling object and a channel identifier of a target resource channel;
The matching module is 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 proportion corresponding to the target resource channel, and the to-be-recovered resource proportion corresponding to the target resource channel is: a ratio of a total amount of resources previously allocated from the target resource channel to the respective recovery objects to a total amount of resources previously allocated from a plurality of resource channels to the respective recovery objects, the target resource channel being one of the plurality of resource channels;
the processing module is used for recycling the resources allocated to the target recycling object to the target resource channel according to the request resource recycling amount if the request resource recycling amount is not greater than the resource recycling amount threshold;
and the first sending module is used for sending a resource recovery success message to the terminal equipment.
12. A resource reclamation apparatus, comprising:
the second sending module is configured to send a resource recycling request to a server in response to a resource recycling operation triggered for a target account, where the resource recycling request carries a requested resource recycling amount of a target recycling object and a channel identifier of a target resource channel, so that the server obtains a resource recycling amount threshold corresponding to the target resource channel based on the channel identifier of the target resource channel, where the resource recycling amount threshold is determined based on a total resource amount to be recycled of each recycling object in the target account and a resource proportion to be recycled corresponding to the target resource channel, and the resource proportion to be recycled corresponding to the target resource channel is: a ratio of a total amount of resources previously allocated from the target resource channel to the respective recovery objects to a total amount of resources previously allocated from a plurality of resource channels to the respective recovery objects, the target resource channel being one of the plurality of resource channels; if the request 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 request resource recovery amount, and sending a resource recovery success message to the terminal equipment;
And the display module is used for displaying the resource recovery 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, characterized in that the processor implements the steps of the method of any one of claims 1-6 or the steps of the method of any one of claims 7-10 when the program is executed.
14. A computer readable storage medium, characterized in that it stores a computer program executable by a computer device, which program, when run on the computer device, causes 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 CN113011607A (en) 2021-06-22
CN113011607B true 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)

Families Citing this family (1)

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

Citations (8)

* 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
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
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9038068B2 (en) * 2012-11-15 2015-05-19 Bank Of America Corporation Capacity reclamation and resource adjustment
US9009722B2 (en) * 2013-02-05 2015-04-14 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
CN109192285B (en) * 2018-08-15 2022-01-25 京东方科技集团股份有限公司 Medical resource allocation method, device, system, electronic device and storage medium

Patent Citations (8)

* 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
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
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

Also Published As

Publication number Publication date
CN113011607A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
US11146502B2 (en) Method and apparatus for allocating resource
CN108737325B (en) Multi-tenant data isolation method, device and system
CN108052615B (en) Access request processing method, device, medium and electronic equipment
CN105684380B (en) Domain name and the approved and unlicensed degree of membership reasoning of Internet Protocol address
US9135040B2 (en) Selecting provisioning targets for new virtual machine instances
CN109447820B (en) Data processing method, device, computer equipment and storage medium
CN111641629B (en) Abnormal behavior detection method, device, equipment and storage medium
EP4075299A1 (en) Method and apparatus for recommending multimedia resource
CN111461763A (en) Resource allocation method and device
CN111163130A (en) Network service system and data transmission method thereof
CN106529953B (en) Method and device for risk identification of business attributes
CN113011607B (en) Resource recycling method, device, equipment and storage medium
CN113361913A (en) Communication service arranging method, device, computer equipment and storage medium
CN109146444B (en) Virtual account creating method and device and account information updating method and device
CN110022341B (en) Data transmission method and related equipment
CN109271564A (en) Declaration form querying method and equipment
CN111190910B (en) Method and device for processing quota resources, electronic equipment and readable storage medium
JP2020533918A (en) Cold matching with automatic content recognition
CN107203915B (en) Data storage method and device
CN114866547A (en) Virtual resource allocation method, device, equipment and storage medium
CN109460230B (en) Method and system for multiplexing transmission value and service logic between pages
CN116095074A (en) Resource allocation method, device, related equipment and storage medium
CN113312184A (en) Service data processing method and related equipment
CN111367634A (en) Information processing method, information processing device and terminal equipment
CN114860390B (en) Container data management method, device, program product, medium and electronic equipment

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