CN106656600B - Resource rotation method and device - Google Patents

Resource rotation method and device Download PDF

Info

Publication number
CN106656600B
CN106656600B CN201611201233.3A CN201611201233A CN106656600B CN 106656600 B CN106656600 B CN 106656600B CN 201611201233 A CN201611201233 A CN 201611201233A CN 106656600 B CN106656600 B CN 106656600B
Authority
CN
China
Prior art keywords
resource
conversion
share
fund
total
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
CN201611201233.3A
Other languages
Chinese (zh)
Other versions
CN106656600A (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 CN201611201233.3A priority Critical patent/CN106656600B/en
Publication of CN106656600A publication Critical patent/CN106656600A/en
Application granted granted Critical
Publication of CN106656600B publication Critical patent/CN106656600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a resource rotation method and a device, wherein the method comprises the steps of obtaining a resource conversion plan list corresponding to a user identifier; acquiring a first resource gross estimate change proportion if the second resource cumulative gross share turns into a first resource according to the resource conversion proportion adapted in the current period; when the estimated change proportion of the first resource gross belongs to the range of the expected change proportion of the first resource gross corresponding to the boundary value, a second resource locking order for locking the accumulated gross share of the second resource is created; marking the second accumulated total share of the resource in the frozen state as a locked state according to the second resource locking order; and converting the accumulated total share of the second resource in the frozen state and the locked state into the total amount of the first resource according to the currently adapted resource conversion proportion by taking the second resource locking order as a basis. The resource rotation method provided by the application greatly improves the resource rotation efficiency.

Description

Resource rotation method and device
Technical Field
The invention relates to the technical field of computers, in particular to a resource rotation method and a resource rotation device.
Background
With the continuous development of computer technology, the realization of resource transformation by computers is more and more common. Resources, including virtual items such as account numbers, points, or electronic vouchers, as well as physical items. An owner of a resource may perform a resource transformation on a computer platform, transform a first resource into a second resource, and perform a resource rotation operation as needed to rotate the second resource back into the first resource.
However, the conventional resource rotation adopts a manual rotation mode, and because the conversion ratio between different resources is changed, the resource owner needs to check whether the resources reach the expected state for many times, and then manually rotate the resources, so that the resource rotation efficiency is low due to complex operation.
Disclosure of Invention
In view of the above, it is necessary to provide a resource rotation method and apparatus for solving the problem of low resource rotation efficiency caused by manual rotation.
A resource rotation method, the method comprising:
acquiring a resource conversion plan sheet corresponding to the user identification; the resource conversion plan list comprises a boundary value of a range of expected change ratios of the first resource gross and a second resource cumulative gross obtained by converting the first resource into the second resource;
acquiring a first resource gross estimate change proportion if the second resource cumulative gross share turns into a first resource according to the resource conversion proportion adapted in the current period;
when the estimated change proportion of the first resource gross belongs to the range of the expected change proportion of the first resource gross corresponding to the boundary value, creating a second resource locking order for locking the second resource accumulated gross;
marking the second accumulated total share of the resource in the frozen state as a locked state according to the second resource lock order;
and converting the accumulated total share of the second resources in the frozen state and the locked state into the total amount of the first resources according to the conversion proportion of the currently adapted resources based on the second resource locking order.
A resource rotation apparatus, the apparatus comprising:
the plan list acquisition module is used for acquiring a resource conversion plan list corresponding to the user identifier; the resource conversion plan list comprises a boundary value of a range of expected change ratios of the first resource gross and a second resource cumulative gross obtained by converting the first resource into the second resource;
the resource estimation module is used for acquiring a first resource gross estimation change proportion if the second resource cumulative gross share turns into a first resource according to the resource conversion proportion adapted in the current period;
the resource locking module is used for creating a second resource locking order for locking the second resource cumulative total share when the first resource total estimated change proportion belongs to the range of the first resource total expected change proportion corresponding to the boundary value; marking the second accumulated total share of the resource in the frozen state as a locked state according to the second resource lock order;
and the resource turning module is used for turning the accumulated total share of the second resource in the frozen state and the locked state into the total amount of the first resource according to the currently adapted resource conversion proportion by taking the second resource locking order as a basis.
According to the resource rotation method and the resource rotation device, when the first resource gross estimated change proportion obtained according to the resource conversion proportion adapted in the current period belongs to the first resource gross expected change proportion range corresponding to the boundary value of the first resource gross expected change proportion range, the resource rotation operation is automatically triggered, the problems that a resource owner needs to manually check the resource state for multiple times and manually rotate the resource for complex operation because the resource conversion proportion is the variation of the current period are solved, and the resource rotation efficiency is improved. And the second resource locking order is created, the accumulated total share of the second resource in the frozen state is marked as the locking state, and the resource in the locking state can be rotated only by taking the second resource locking order as a basis, so that the problem of rotation failure caused by the fact that the resource is rotated in multiple modes after the resource is locked is solved, and the accuracy of resource rotation and the safety of the resource are ensured.
Drawings
FIG. 1 is a diagram of an exemplary environment in which a resource rotation method may be implemented;
FIG. 2 is a diagram illustrating a server for implementing a resource rotation method according to an embodiment;
FIG. 3 is a flow diagram illustrating a resource rotation method according to an embodiment;
FIG. 4 is a flow chart illustrating a resource rotation method according to another embodiment;
FIG. 5 is a flow chart illustrating a resource rotation method according to another embodiment;
FIG. 6 is a flow chart illustrating a resource rotation method according to another embodiment;
FIG. 7 is a flowchart illustrating a resource rotation method according to another embodiment;
FIG. 8 is a flowchart illustrating a resource rotation method according to another embodiment;
FIG. 9A is a timing diagram of a resource translation process in one embodiment;
FIG. 9B is a timing diagram illustrating a resource translation process in accordance with another embodiment;
FIG. 10A is a timing diagram illustrating a resource rotation process in one embodiment;
FIG. 10B is a timing diagram illustrating a resource rotation process in accordance with another embodiment;
FIG. 11 is a block diagram of an embodiment of a resource rotation apparatus;
FIG. 12 is a block diagram showing the construction of a resource swiveling apparatus according to another embodiment;
FIG. 13 is a block diagram showing the construction of a resource swiveling apparatus according to another embodiment;
FIG. 14 is a block diagram showing the construction of a resource swiveling apparatus according to another embodiment;
fig. 15 is a block diagram showing a configuration of a resource swiveling apparatus according to another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In one embodiment, as shown in FIG. 1, a diagram of an application environment for a resource rotation method is provided. Referring to fig. 1, the resource rotation method is applied to a resource rotation system including a terminal 110 and a server 120, wherein the server 120 may include a user resource management server 121, a first resource management server 122, and a second resource management server 123. The terminal 110 includes a mobile terminal including at least one of a mobile phone, a tablet computer, a smart watch, a Personal Digital Assistant (PDA), a networkable e-reader, and the like, and a desktop computer and the like. The servers 120 may be separate physical servers or may be a cluster of physical servers.
Fig. 2 is a schematic diagram illustrating an internal structure of the user resource management server 121 according to an embodiment. As shown in fig. 2, the user resource management server includes a processor, a nonvolatile storage medium, an internal memory, and a network interface connected through a system bus. The non-volatile storage medium of the server stores an operating system, a database and a resource rotation device, the database stores a resource conversion plan list corresponding to the user identifier, and the resource rotation device is used for realizing a resource rotation method suitable for the server. The processor of the server is used for providing calculation and control capacity and supporting the operation of the whole server. The internal memory of the server provides an environment for the operation of the resource rotation device in the non-volatile storage medium, and the internal memory may store computer-readable instructions, which when executed by the processor, may cause the processor to perform a resource rotation method. The network interface of the server is used for communicating with an external terminal or server through a network connection, such as receiving a resource conversion instruction sent by the terminal and sending a resource rotation notification to a second resource management server. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers. Those skilled in the art will appreciate that the architecture shown in fig. 2 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the servers to which the subject application applies, as a particular server may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
As shown in fig. 3, in an embodiment, a resource rotation method is provided, and this embodiment is exemplified by applying the method to the user resource management server 121 in fig. 1. The method specifically comprises the following steps:
s302, acquiring a resource conversion plan list corresponding to the user identifier; the resource conversion plan sheet comprises a boundary value of the expected change proportion range of the first resource gross and a second resource cumulative gross share obtained by converting the first resource into the second resource.
The resource conversion plan list is a document for resource conversion according to the plan, and comprises a boundary value of a range of expected change proportion of the first resource gross and a second resource accumulated gross share obtained by converting the first resource into the second resource. The range of the expected change ratio of the total amount of the first resource refers to the range of the expected change ratio of the amount of the first resource after the first resource is converted into the second resource for a period of time. The first expected change rate of the total amount of resources may be an expected increase rate of the total amount of resources or an expected decrease rate of the total amount of resources. The boundary value of the range of the expected change ratio of the first resource sum refers to a change ratio value corresponding to the boundary of the range of the expected change ratio of the first resource sum.
The second cumulative total share of the resource is derived from converting the first resource to the second resource. The second resource cumulative total share may include a second resource share obtained by converting a preset amount of the first resource into the second resource according to a preset resource conversion cycle, or may include a second resource share obtained by converting a specified amount of the first resource into the second resource through a resource conversion instruction initiated by the user identifier at irregular intervals.
The resource refers to an article which can acquire ownership through a network, and comprises at least one of a virtual article and a physical article, wherein the virtual article comprises at least one of an account number, an avatar product, a virtual rechargeable card, game equipment and virtual currency, and the physical article can be any article which can be owned by a user and has a real form, such as an electronic product, a toy, an artwork or a signature photo. Here, the first resource and the second resource are different resources, and the two resources can be mutually converted.
Specifically, the user resource management server stores a resource conversion plan sheet, the resource conversion plan sheet has a unique plan sheet identifier, and the plan sheet identifier corresponds to the user identifier. The schedule identification may be a character string including at least one character of a number, a letter, and a symbol. The user identification may be a character string including at least one character of a number, a letter, and a symbol. The resource conversion plan list stored on the user resource management server can be found through the corresponding relation between the user identification and the plan list identification.
S304, acquiring the estimated change proportion of the first total resource amount if the second accumulated total resource amount turns into the first resource according to the current adaptive resource conversion proportion.
Wherein the resource conversion ratio refers to a conversion ratio between the amount of the first resource and the share of the second resource. The current adaptive resource conversion ratio refers to the resource conversion ratio adaptive to the current time; the resource conversion ratio that is in-date adapted may be the most recent and available resource conversion ratio. The resource conversion ratio may be periodically varied, e.g., with only the resource conversion ratio available per day, and the resource conversion ratio may be different on different days.
The estimated change proportion of the total amount of the first resource refers to the estimated change proportion of the amount of the first resource after the first resource is converted into the second resource for a period of time. The rotation refers to a process of converting a first resource into a second resource and then converting the converted second resource into the first resource.
Specifically, the user resource management server may preset a check period, obtain a resource conversion proportion adapted in the current period when the time meets the check period, estimate a rotation amount for rotating the accumulated total share of the second resource in the resource conversion plan list to the first resource according to the resource conversion proportion matched with the current time, and divide a difference between the estimated rotation amount and the accumulated total amount of the first resource by the accumulated total amount of the first resource to obtain an estimated change proportion of the total amount of the first resource.
Wherein, the checking period is a period for performing rotation estimation on the converted second resource, and the checking period is, for example, daily. The predicted change ratio of the first total amount of resources may be a predicted increase ratio of the first total amount of resources or a predicted decrease ratio of the first total amount of resources. When the difference value between the estimated rotation amount and the accumulated total amount of the first resource is a positive value, obtaining the estimated change proportion of the total amount of the first resource as the estimated increase proportion of the total amount of the first resource; and when the difference value between the estimated rotation amount and the accumulated total amount of the first resource is a negative value, obtaining the estimated change proportion of the total amount of the first resource as the estimated reduction proportion of the total amount of the first resource.
Further, the user resource management server may also estimate the resource conversion proportion adapted in the current period periodically before the resource conversion proportion adapted in the current period is determined, estimate the total cumulative share of the second resource in the resource conversion plan list to be the rotation amount of the first resource according to the estimated resource conversion proportion adapted in the current period, and divide the difference between the estimated rotation amount and the total cumulative amount of the first resource by the total cumulative amount of the first resource to obtain the estimated change proportion of the total amount of the first resource.
S306, when the estimated change proportion of the first resource gross belongs to the range of the expected change proportion of the first resource gross corresponding to the boundary value, a second resource locking order for locking the second resource accumulated gross is created.
The resource conversion plan sheet comprises a boundary value of a first resource total expected change proportion range, the boundary value is used for configuring a trigger condition for revolving the second resource accumulated total share, and the trigger condition is that the first resource total expected change proportion belongs to the first resource total expected change proportion range corresponding to the boundary value. The second resource lock order is a credential for locking a second cumulative total share of resources that satisfy a trigger condition for slewing.
Specifically, when the estimated change proportion of the first total resource amount estimated by the user resource management server is the estimated increase proportion of the first total resource amount and is greater than or equal to the boundary value of the range of the expected change proportion of the first total resource amount; or, when the estimated change proportion of the first total resource amount estimated by the user resource management server is the estimated reduction proportion of the first total resource amount and is less than or equal to the boundary value of the expected change proportion range of the first total resource amount, the user resource management server determines that the trigger condition is met, and can create a second resource locking order for locking the second resource accumulated total share meeting the trigger condition for revolving.
And S308, marking the second resource accumulated total share in the frozen state as a locked state according to the second resource locking order.
The frozen state refers to a state in which the swing operation cannot be initiated through the user identifier. And the second resource accumulation total share included in the resource conversion plan list is in a frozen state, and the user resource management server prohibits the user from identifying the permission of directly initiating the revolution for the second resource accumulation total share in the frozen state. The user may only indirectly initiate a rotation operation of the second cumulative total share of the resource included in the terminated resource conversion schedule by terminating the resource conversion schedule.
After executing step S306, the user resource management server pre-unfreezes the accumulated total share of the second resource that is in the frozen state and meets the resource rotation condition according to the second resource locking order, and marks the accumulated total share as the locked state. At this time, the second resource accumulated total share in the locked state is still in the frozen state, and the user cannot directly initiate a rotation operation on the second resource accumulated total share in the locked state through the user identifier; and because the second resource accumulation total share is in the locked state, the user cannot indirectly initiate the rotation operation of the second resource accumulation total share in the locked state by terminating the resource conversion plan list to which the second resource accumulation total share in the locked state belongs.
S310, based on the second resource locking order, the accumulated total share of the second resource in the frozen state and the locking state is converted back into the total amount of the first resource according to the currently adapted resource conversion proportion.
Specifically, after executing step S308, the user resource manager obtains the currently adapted resource conversion ratio, and based on the second resource locking order, the user resource manager converts the second resource accumulated total share in the frozen state and the locked state back to the first resource total amount according to the obtained currently adapted resource conversion ratio.
According to the resource rotation method, when the first resource total amount estimated change proportion obtained according to the resource conversion proportion adapted in the current period belongs to the first resource total amount expected change proportion range corresponding to the boundary value of the first resource total amount expected change proportion range, the resource rotation operation is automatically triggered, the problem that the resource owner needs to manually check the resource state for multiple times and manually rotate the resource for complex operation because the resource conversion proportion is the variation adapted in the current period is solved, and the resource rotation efficiency is improved. And the second resource locking order is created, the accumulated total share of the second resource in the frozen state is marked as the locking state, and the resource in the locking state can be rotated only by taking the second resource locking order as a basis, so that the problem of rotation failure caused by the fact that the resource is rotated in multiple modes after the resource is locked is solved, and the accuracy of resource rotation and the safety of the resource are ensured.
As shown in fig. 4, in an embodiment, after step S302, the resource rotation method further includes the following steps:
s402, executing the resource conversion task according to the resource conversion cycle.
The resource conversion task is a task for resource conversion. Resource conversion is performed periodically, and a resource conversion cycle refers to a cycle in which resource conversion is performed, such as one or more days, weeks, or months.
Specifically, after acquiring the resource conversion schedule corresponding to the user identifier, the user resource management server acquires a resource conversion period included in the resource conversion schedule, and determines whether the current time reaches a periodic time point that meets the resource conversion period. Periodic time points such as a preset time of day or a preset day of the month. And when judging that the next time reaches the periodic time point, the user resource management server generates a resource conversion task and executes the resource conversion task.
S404, recording the execution state of the resource conversion task when the resource conversion task is executed.
Specifically, when executing step S402, the user resource management server may generate a resource conversion record sheet and a resource freezing record sheet, and record the execution state of the resource conversion task. The resource conversion record sheet is used for recording the state of resource conversion, and the resource freezing record sheet is used for recording the state of resource freezing. Since the user resource management server prohibits the user identifier from performing a rotation operation on the second resource share converted according to the resource conversion cycle, the share of the second resource obtained by conversion needs to be accumulated in the second resource accumulated total share in the resource conversion plan list, and then the second resource accumulated total share is frozen.
The user resource management server may generate the resource conversion record sheet and the resource freezing record sheet after generating the resource conversion task, and send a request for executing the resource conversion task to a second resource management server that manages a second resource. After acquiring the confirmation instruction fed back by the second resource management server, the user resource management server updates the resource conversion state in the resource conversion record sheet to the application success state, acquires the single-cycle conversion amount of the first resource included in the resource conversion plan sheet, and completes the transfer of the first resource of the single-cycle conversion amount through the first resource management server which manages the first resource. The single-cycle conversion amount of the first resource refers to the amount of the first resource which needs to be converted each time the resource conversion is carried out.
And after completing the resource transfer, the user resource management server updates the state of the resource conversion in the resource conversion record list into a transfer success state, and then converts the first resource of the transferred single-cycle conversion amount into the second resource through the second resource management server. The user resource management server can update the resource conversion state in the resource conversion record list to a conversion success state after completing the resource conversion, then add the share of the second resource obtained by conversion to the second resource cumulative total share in the resource conversion plan list and freeze the second resource cumulative total share, and then update the resource freezing state in the resource freezing record list to a freezing success state to complete the resource conversion task.
S406, when the interruption of the resource conversion task is detected, the resource conversion task is continuously executed according to the recorded execution state.
Specifically, the user resource management server may detect, in real time, a state of resource conversion in the resource conversion record sheet, and a state of resource freezing in the resource freezing record sheet. And when detecting that the resource conversion or resource freezing state is interrupted, the user resource management server continues the next step of converting the resource into the conversion task according to the last updated state of the resource conversion record list or the resource freezing record list.
For example, when the resource translation task is executed to send a request for executing the resource translation task to a second resource management server that manages a second resource, a network interrupt occurs, so that the sent request for executing the resource translation task is not received by the second resource management server, resulting in a failure of the resource translation task. And when the states of the resource conversion record lists are not changed in two consecutive detections, the user resource management server judges that the resource conversion task is interrupted, and retries the resource conversion task according to a time interval positively correlated with the retries so as to continue the resource conversion task. The time interval in which retries are performed may be calculated by an exponential function based on a positive number greater than 1 and exponential on the number of retries; the value calculated by the exponential function may also be multiplied by a positive coefficient as the time interval. For example at 2NIs retried, where N is the number of retries.
In this embodiment, when the user resource management server detects that the resource conversion task is interrupted, the resource conversion task can be completed in time by checking the recorded execution state of the resource conversion task, so that the efficiency of resource conversion is improved.
As shown in fig. 5, in an embodiment, after step S302, the resource rotation method further includes the following steps:
s502, sending a resource conversion application request to the second resource management server according to the resource conversion period.
Specifically, the second resource management server is a server for managing the second resource. The resource conversion application request refers to a request for converting a first resource into a second resource. The resource conversion application request can be sent by the user resource management server in a message form or a file form.
S504, receiving an application confirmation instruction fed back by the second resource management server.
S506, a resource transfer request is sent to the first resource management server according to the application confirmation instruction, so that the first resource management server transfers the first resource from the first account corresponding to the user identification to the target account, and the amount of the transferred first resource is the single-cycle conversion amount corresponding to the user identification.
The first resource management server is a server for managing the first resource. A resource transfer request is a request to transfer a resource from one account to another. The resource transfer request may be sent by the user resource management server in a message form or a file form.
Specifically, after receiving the resource transfer request, the first resource management server obtains a first account identifier, a target account identifier and a first resource transfer amount, which are carried by the resource transfer request and correspond to the user identifier, and transfers the first resource conforming to the first resource transfer amount from the first account corresponding to the first account identifier to the target account corresponding to the target account identifier. The resource transfer request is generated according to the resource conversion plan list, so that the first resource transfer amount is a single-cycle conversion amount.
And S508, receiving the transfer confirmation instruction fed back by the first resource management server, and sending a resource conversion notice to the second resource management server corresponding to the target account, so that the second resource management server adds a second resource in the second account corresponding to the user identifier, and the added second resource is obtained by converting the transferred first resource according to the resource conversion proportion adapted in the current period.
Wherein the resource conversion notification is a notification for causing the second resource management server to perform resource conversion. The resource conversion notification can be sent by the user resource management server in a message form or a file form.
Specifically, after the user resource management server initiates a resource transfer request to the first resource management server, the first resource management server transfers the first resource to the target account, and then sends a transfer confirmation instruction to the user resource management server, and the user resource management server receives the transfer confirmation instruction fed back by the first resource management server for the resource transfer request. And the user resource management server sends a resource conversion notice to the second resource server after receiving the transfer confirmation instruction.
After receiving the resource conversion notification, the second resource management server obtains a second account identifier and a first resource transfer amount which are carried by the resource conversion notification and correspond to the user identifier, and adds the share of the second resource obtained by converting the first resource of the first resource transfer amount according to the resource conversion proportion adapted in the current period to a second account corresponding to the second account identifier. And after the second resource management server finishes the resource conversion, the second resource management server sends a conversion confirmation instruction to the user resource management server, so that the user resource management server obtains a second resource share obtained by conversion carried in the conversion confirmation instruction.
In this embodiment, the processing of the resource transformation schedule, the transfer of the first resource, and the inter-resource transformation are separated and processed by different processors, so as to ensure the security of the resource transfer and transformation processes.
As shown in fig. 6, in an embodiment, after step S302, the resource rotation method further includes the following steps:
s602, according to the resource conversion period, sending a resource conversion request for converting the first resource with the single-period conversion amount into the second resource to the second resource server.
Specifically, the resource conversion request is generated according to the resource conversion plan sheet, so that the first resource conversion amount is a single-cycle conversion amount, and the user resource management server sends the first resource conversion amount to the second resource server according to the resource conversion cycle.
S604, acquiring the share of the second resource, which is obtained by the second resource management server according to the resource conversion request.
Specifically, after receiving the resource conversion request, the second resource management server converts the first resource of the single-cycle conversion amount into the second resource, and sends the share of the converted second resource to the user resource management server.
S606, checking the acquired share of the second resource according to the single-cycle conversion amount of the first resource and the current-adapted resource conversion proportion.
Specifically, the user resource management server obtains the currently adapted resource conversion ratio after obtaining the share of the second resource, and divides the single-cycle conversion amount of the first resource by the obtained currently adapted resource conversion ratio to calculate the share of the second resource. And comparing the calculated share of the second resource with the obtained share of the second resource.
The user resource management server may also obtain the resource conversion proportion adapted in the current period when sending the resource transfer request, and calculate the share of the second resource by dividing the single-cycle conversion amount of the first resource by the obtained resource conversion proportion adapted in the current period, so as to perform checking after obtaining the share of the second resource obtained by the second resource management server according to the resource conversion request.
And S608, if the check is passed, accumulating the acquired share of the second resource to the second resource accumulated total share in the resource conversion plan list.
Specifically, if the share of the second resource calculated by the user resource management server is consistent with the share of the second resource fed back by the second resource management server and converted according to the resource conversion request, it indicates that the check is passed, and the acquired share of the second resource fed back by the second resource management server is added to the second resource cumulative total share in the resource conversion schedule.
If the share of the second resource calculated by the user resource management server is not consistent with the share of the second resource fed back by the second resource management server and converted according to the resource conversion request, the checking is not passed, and the user resource management server sends a reminding notice carrying the checking result to the second resource management server to indicate that the checking is not passed.
In this embodiment, after receiving the share of the second resource converted according to the resource conversion request fed back by the second resource management server, the second resource management server checks the locally calculated share of the second resource, and after the check is passed, the share of the second resource fed back by the second resource management server is added to the second resource cumulative total share in the resource conversion plan list, and through double verification of the local resource management server and the second resource management server, the accuracy and the security of resource conversion are ensured.
As shown in fig. 7, in an embodiment, after step S302, the resource rotation method further includes the following steps:
s702, sending a resource conversion request for converting the first resource with the single-cycle conversion amount into the second resource to the second resource server according to the resource conversion cycle.
S704, obtaining the share of the second resource, which is obtained by the second resource management server according to the resource conversion request.
S706, when the second resource accumulated total share included in the resource conversion plan list is in the locking state, the obtained share of the second resource is accumulated to the second resource accumulated total share of the non-resource conversion plan list.
Specifically, when the second cumulative total share of the resource included in the resource conversion plan list is in the locked state, it indicates that the second cumulative total share of the resource included in the resource conversion plan list satisfies the resource rotation condition and the resource rotation is being performed. At this time, the user resource management server does not freeze the acquired share of the second resource obtained by conversion any more, and the second resource is used as an active share to be accumulated to a second resource accumulated total share of the non-resource conversion plan list. The user may initiate a wrap operation on the share via the user identification.
The second resource accumulated total share of the non-resource conversion plan list is obtained by the user resource management server converting the specified first resource into the second resource according to a resource conversion instruction which is initiated by the terminal through the user identifier and is not directed to the resource conversion plan list. For the second resource share obtained by converting the resource conversion instruction initiated in the above situation, the user resource management server gives the user identifier the right to turn around the share, and the user can initiate the turning operation on the share through the user identifier without freezing the share.
And S708, when the second accumulated total share of the resource included in the resource conversion plan list is not in the locked state, accumulating the acquired share of the second resource to the second accumulated total share of the resource conversion plan list.
Specifically, when the second cumulative total share of the resource included in the resource conversion plan list is not in the locked state, it indicates that the second cumulative total share of the resource included in the resource conversion plan list does not satisfy the resource rotation condition, and the resource rotation cannot be performed. At this time, the user resource management server should freeze the obtained share of the second resource obtained by conversion, and add the frozen share to the second resource cumulative total share of the resource conversion schedule.
In this embodiment, a processing manner for the second resource share in the conversion process during resource rotation is provided, so that it is avoided that resource rotation cannot be completed because the resource is in the conversion process, and the fault tolerance is improved.
In one embodiment, the resource rotation method further comprises detecting a termination request for the resource conversion plan sheet initiated by the user identification. When the termination request is detected and the second resource accumulated total share included in the resource conversion plan list is not in a locking state, the second resource accumulated total share is converted back into the first resource total amount according to the currently adapted resource conversion proportion.
Specifically, the terminal may provide a resource conversion plan list configuration interface, obtain resource conversion plan list termination information set by a user after login through a user identifier, carry the resource conversion plan list termination information in a termination request of the resource conversion plan list after confirmation by the user, send the termination request of the resource conversion plan list to the user resource management server, and detect the termination request of the resource conversion plan list initiated through the user identifier.
After detecting a termination request of the resource conversion plan list initiated by the user identification, the user resource management server determines the resource conversion plan list which is terminated by the user request, and checks whether a second resource accumulated total share included in the determined plan list is in a locked state. If the second resource accumulated total share is in a locked state, the second resource accumulated total share is indicated to be in a slewing process, and a slewing operation on the second resource accumulated total share does not need to be initiated again. If the second resource accumulated total share is not in the locking state, a rotation operation of the second resource accumulated total share can be initiated, and the second resource accumulated total share is converted into the first resource total amount according to the currently adapted resource conversion proportion.
In this embodiment, a way is provided for a user to autonomously turn around the second accumulated total share of resources included in the resource conversion plan list, a turning manner is added, and the usability of the resource turning method is enhanced. And when the user turns around autonomously, the second resource accumulated total share included in the resource conversion plan list is required to be unlocked, so that the accuracy of resource turning is ensured.
In one embodiment, the resource rotation method further comprises acquiring a resource conversion instruction initiated by the user identification for the resource conversion plan form; converting the first resource of the amount specified by the resource conversion instruction into a second resource according to the resource conversion instruction; and accumulating the share of the second resource obtained by conversion to the second resource accumulated total share in the resource conversion plan list.
The resource conversion instruction is an instruction for performing resource conversion. The terminal can provide a resource conversion configuration interface, obtain resource conversion configuration information input by a user after logging in through a user identifier, carry the resource conversion configuration information in a resource conversion instruction after the user confirms, send the resource conversion instruction to the user resource management server, and the user resource management server obtains the resource conversion instruction initiated through the user identifier.
After receiving the resource conversion instruction, the user resource management server acquires resource conversion configuration information carried by the resource conversion instruction, and converts the first resource with the specified amount into the second resource according to the requirement in the resource conversion configuration information. Since the conversion instruction sent by the terminal is configured for the resource conversion plan list, the user resource management server adds the share of the second resource obtained by conversion to the second resource cumulative total share in the resource conversion plan list.
In this embodiment, a way is provided for a user to autonomously initiate resource conversion on the resource conversion plan form, an increasing manner of the second cumulative total share of the resource conversion plan form is increased, and the usability of the resource conversion method is enhanced.
In one embodiment, a resource rotation method is provided, in which a first resource is currency, a second resource is fund, a resource conversion plan sheet is a currency input plan sheet, a resource conversion cycle is a currency input cycle, a single-cycle conversion amount of the first resource is a single-cycle input amount of the currency, a boundary value of a range of an expected increase proportion of a total amount of the first resource is a boundary value of a range of an expected change rate of the total amount of the currency, and a cumulative total share of the second resource is a cumulative total share of the fund, as shown in fig. 8, and specifically includes the following steps:
s802, obtaining a currency input plan sheet corresponding to the user identification; the currency input schedule includes a boundary value of the expected rate of change range of the total amount of currency, and a cumulative total share of funds from the conversion of the currency to funds.
Specifically, the user resource management server obtains a currency input plan form corresponding to the user identifier according to the user identifier. Wherein, the user resource management server can be a financing platform. The money is an item for resource exchange by a money owner, and may be precious metal money, paper money, electronic money, or the like. The fund means a fund for investment, and may be an index fund or the like. The user may invest in money to purchase funds. The currency input schedule corresponds to a single fund, that is, one currency input schedule task corresponds to one fund. Multiple currency input plans may be set up for a fund, and the multiple currency input plan tasks for the same fund are not affected by each other.
S804, acquiring the estimated change rate of the total amount of the money if the accumulated total amount of the fund turns into the money according to the net value of the fund adapted in the current period.
Wherein, different funds belong to different resources and have different conversion ratios with the currencies, namely, the net value of the funds of different funds is different. The net fund value is the ratio of the total assets of the fund to the total share of the fund at the present date. The return refers to a process of redeeming funds into money after the money is put into the purchase funds for a certain period of time.
Specifically, the user resource management server may preset a check period, obtain the net value of the fund adapted in the current period when the time meets the check period, estimate a rotation amount for rotating the total accumulated share of the fund in the resource conversion plan list to the currency according to the net value of the fund matched with the current time, and divide the difference between the estimated rotation amount and the total accumulated amount of the currency by the total accumulated amount of the currency to obtain the estimated change rate of the total amount of the currency.
Further, the user resource management server can estimate the net value of the fund adapted in the current period regularly before the net value of the fund adapted in the current period is determined, estimate the total accumulated share of the fund in the resource conversion plan list to be the rotation amount of the currency according to the estimated net value of the fund adapted in the current period, and divide the difference obtained by subtracting the total accumulated amount of the currency from the estimated rotation amount by the total accumulated amount of the currency to obtain the estimated change rate of the total amount of the currency. For example, for an index fund, the net value of the fund on the current day is generally determined for three pm each day, and the user resource management server may obtain an overall index of the index fund at one pm each day, and estimate the net value of the fund on the current day based on the overall index.
And S806, when the estimated change rate of the total amount of the money belongs to the range of the expected change rate of the total amount of the money corresponding to the boundary value, creating a fund control list for controlling the accumulated total share of the fund.
The resource conversion plan list comprises a boundary value of the expected change rate range of the total amount of the money, the boundary value is used for configuring a trigger condition for revolving the accumulated total share of the fund, and the trigger condition is that the expected change rate of the total amount of the money belongs to the expected change rate range of the total amount of the money corresponding to the boundary value. The fund control ticket is a proof for controlling the total share of the fund accumulation satisfying the triggering condition of the resource rotation.
Specifically, when the estimated change rate of the total amount of the money estimated by the user resource management server is the estimated increase rate of the total amount of the money and is greater than or equal to the boundary value of the range of the expected change rate of the total amount of the money; or, when the estimated change rate of the total amount of money estimated by the user resource management server is the estimated reduction rate of the total amount of money and is less than or equal to the boundary value of the expected change rate range of the total amount of money, the user resource management server may create a fund control order for controlling the total accumulated share of the fund.
And S808, marking the accumulated total share of the fund in the frozen state as a controlled state according to the fund locking order.
The frozen state refers to a state in which the swing operation cannot be initiated through the user identifier. The total accumulated share of the fund included in the currency input plan list is in a frozen state, and the user resource management server prohibits the user from identifying the authority of initiating the revolution directly to the total accumulated share of the fund in the frozen state. The user may only indirectly initiate a turn around operation for the accumulated total share of funds included in the terminated currency input plan by terminating the currency input plan.
After executing step S806, the user resource management server pre-unfreezes the accumulated total share of the fund that is in the frozen state and meets the resource rotation condition according to the fund management and control list, and marks the pre-unfreezed share as the controlled state. The total accumulated share of the fund in the controlled state is still in the frozen state, and the user cannot directly initiate the rotation operation of the total accumulated share of the fund in the controlled state through the user identification. Since the total share of the fund accumulation is in the controlled state, the user cannot indirectly initiate the rotation operation of the total share of the fund accumulation in the controlled state by terminating the money input schedule to which the total share of the fund accumulation in the controlled state belongs.
And S810, turning the accumulated total share of the fund in the frozen state and the controlled state into the total amount of the currency according to the net value of the fund which is currently adapted based on the fund control list.
Specifically, after executing step S808, the user resource manager acquires the net value of the currently adapted fund, accumulates the total share of the fund in the frozen state and the controlled state based on the fund control sheet, and returns the net value of the currently adapted fund to the total amount of the currency according to the acquired net value of the currently adapted fund.
In the embodiment, when the estimated change rate of the total amount of the money acquired according to the net value of the fund adapted in the current period belongs to the expected change rate range of the total amount of the money corresponding to the boundary value of the expected change ratio range of the total amount of the money, the fund turning operation is automatically triggered, so that the problem that the fund owner needs to manually check the state of the fund for many times and manually turn the fund again because the net value of the fund is the change amount adapted in the current period is solved, and the fund turning efficiency is improved. And by creating a fund control list, the accumulated total share of the fund in the frozen state is marked as a controlled state, and the fund in the controlled state can be turned only by taking the fund control list as a basis, so that the problem of turning failure caused by turning the fund in various ways after the fund is controlled is solved, and the accuracy of fund turning and the safety of the fund are ensured.
As shown in FIG. 9A, FIG. 9A illustrates a timing diagram of a resource translation process in one embodiment. In this embodiment, the second resource is a fund, the resource conversion plan sheet is a currency input plan sheet, the resource conversion period is a currency input period, the single-period conversion amount of the first resource is a single-period input amount of currency, the user resource management server is a financial platform, the first resource management server is a third-party payment platform, and the second resource management server is a fund platform.
Referring to fig. 9A, the resource transformation process specifically includes: and the financial platform creates a currency input plan list according to the received currency input plan and stores the currency input plan corresponding to the user identifier. And the financing platform appoints money transfer with the third-party payment platform according to the money input plan list, and then sends the money input plan list to the fund platform, so that the fund platform stores the money input plan list corresponding to the user identifier.
And after receiving the money input plan list, the financing platform acquires a money input period included in the money input plan list and judges whether the time accords with the money input period every day. And when the judgment time meets the currency input period, creating a currency input record sheet, initiating a currency input application request to the fund platform, updating the currency input state in the currency input record sheet into a successful application state after acquiring an application confirmation instruction fed back by the fund platform, and then initiating a currency transfer request to a third-party payment platform. And the third party payment platform transfers the money of the single-cycle input amount included in the money input plan list from the first account corresponding to the user identification to the fund account according to the money transfer request, and sends a transfer confirmation instruction to the financial platform after the money transfer is finished.
And the financing platform updates the money input state in the money input record sheet to be the successful money input transfer according to the received transfer confirmation instruction, and sends a money input notice to the fund platform. And the fund platform increases fund obtained by conversion according to the net value of the fund adapted in the current period in a second account corresponding to the user identification according to the received currency investment notice, and sends an investment confirmation instruction and a fund share confirmation result to the financing platform.
And the financial platform checks the fund share confirmation result, updates the currency input state in the currency input record list into the successful confirmation after the check is passed, and then detects whether the total fund accumulated share included in the currency input plan list is in a controlled state. If so, the share of the fund obtained from the conversion is added to the cumulative total share of the fund in the money input program. And if not, creating a currency freezing record list, accumulating the shares of the funds obtained by conversion into the total share of the fund accumulation in the currency input plan list, freezing, and updating the currency freezing state in the currency freezing record list to be successful in freezing.
As shown in FIG. 9B, FIG. 9B is a timing diagram illustrating a resource translation process in another embodiment. In this embodiment, the second resource is a fund, the resource conversion plan sheet is a currency input plan sheet, the resource conversion period is a currency input period, the single-period conversion amount of the first resource is a single-period input amount of currency, the user resource management server is a financial platform, the first resource management server is a third-party payment platform, and the second resource management server is a fund platform.
Referring to fig. 9B, the resource conversion process includes: the terminal initiates a resource conversion instruction aiming at the resource conversion plan list to the financial platform through the user identification, the financial platform creates a currency input record list after receiving the resource conversion instruction, initiates a currency input application request to the fund platform, updates the currency input state in the currency input record list into successful application after acquiring an application confirmation instruction fed back by the fund platform, and then initiates a currency transfer request to a third-party payment platform. And the third party payment platform transfers the money of the single-cycle input amount included in the money input plan list from the first account corresponding to the user identification to the fund account according to the money transfer request, and sends a transfer confirmation instruction to the financial platform after the money transfer is finished.
And the financing platform updates the money input state in the money input record sheet to be the successful money input transfer according to the received transfer confirmation instruction, and sends a money input notice to the fund platform. And the fund platform increases fund obtained by conversion according to the net value of the fund adapted in the current period in a second account corresponding to the user identification according to the received currency investment notice, and sends an investment confirmation instruction and a fund share confirmation result to the financing platform.
And the financial platform checks the fund share confirmation result, updates the currency input state in the currency input record list to be successful in confirmation after the checking is passed, creates a currency freezing record list, accumulates the shares of the funds obtained by conversion into the total fund accumulated share in the currency input plan list and freezes the total fund accumulated share, and updates the currency freezing state in the currency freezing record list to be successful in freezing.
As shown in FIG. 10A, FIG. 10A illustrates a timing diagram of a resource rotation process in one embodiment. In this embodiment, the second resource is a fund, the resource conversion plan sheet is a currency input plan sheet, the resource conversion cycle is a currency input cycle, the single-cycle conversion amount of the first resource is a single-cycle input amount of the currency, the boundary value of the range of the expected change proportion of the total amount of the first resource is a boundary value of the range of the expected change rate of the total amount of the currency, the user resource management server is a financial platform, the first resource management server is a third-party payment platform, and the second resource management server is a fund platform.
Referring to fig. 10A, the resource rotation process includes: and the financial management platform acquires the current-adapted fund net value issued by the fund platform according to the detection period, checks whether the currency input plan list is terminated by the terminal through the user identification, and if not, calculates the currency total amount estimated change rate of the total fund accumulated share in the currency input plan task, which is converted into the currency, by dividing the difference obtained by multiplying the current-adapted fund net value by the total fund accumulated share in the current currency input plan task and then subtracting the total currency accumulated amount in the current currency input plan task by the total currency accumulated amount in the current currency input plan task.
When the estimated change rate of the total amount of the currency belongs to the expected change rate range of the total amount of the currency corresponding to the boundary value of the expected change ratio range of the total amount of the currency, recording the estimated change rate of the total amount of the currency, and sending a fund redemption notice to the terminal. And if the terminal feeds back to cancel the fund rotation, the fund platform cancels the fund rotation according to the terminal feedback. And if the terminal feeds back and confirms that the fund is turned, the fund platform creates a fund redemption list and a fund controlled list, marks the fund share meeting the turning condition as a controlled state according to the fund management and control list, sends a fund redemption request to the fund platform, and turns the fund share meeting the turning condition according to the fund management and control list. And after the fund rotation is completed, updating the fund state in the fund redemption bill to be successful in redemption, and sending a fund rotation success notice to the terminal.
As shown in fig. 10B, fig. 10B is a timing diagram illustrating a resource rotation process in another embodiment. In this embodiment, the second resource is a fund, the resource conversion plan sheet is a currency input plan sheet, the resource conversion cycle is a currency input cycle, the single-cycle conversion amount of the first resource is a single-cycle input amount of the currency, the boundary value of the range of the expected change proportion of the total amount of the first resource is a boundary value of the range of the expected change rate of the total amount of the currency, the user resource management server is a financial platform, the first resource management server is a third-party payment platform, and the second resource management server is a fund platform.
Referring to fig. 10B, the resource rotation process includes: the terminal terminates the money input schedule by the user identification and indirectly initiates a rotation operation of the accumulated total share of the fund included in the money input schedule. And after detecting a termination request for the currency input plan list sent by the terminal, the financial platform detects whether the total accumulated share of the fund included in the currency input plan list is in a controlled state, and if the total accumulated share of the currency included in the currency input plan list is not in a locked state, the total share of the fund is turned back to the total amount of the currency according to the net value of the currently adapted fund.
As shown in fig. 11, in one embodiment, there is provided a resource converting apparatus 1100, including: a schedule acquisition module 1101, a resource pre-estimation module 1102, a resource locking module 1103, and a resource rotation module 1104.
A schedule obtaining module 1101, configured to obtain a resource conversion schedule corresponding to the user identifier; the resource conversion plan sheet comprises a boundary value of the expected change proportion range of the first resource gross and a second resource cumulative gross share obtained by converting the first resource into the second resource.
The resource estimation module 1102 is configured to obtain a first resource total amount estimation change ratio if the second resource cumulative total amount turns to the first resource according to the resource conversion ratio adapted in the current period.
A resource locking module 1103, configured to create a second resource locking order for locking the cumulative total share of the second resource when the predicted change ratio of the first resource total belongs to the range of the expected change ratio of the first resource total corresponding to the boundary value; and marking the second resource accumulated total share in the frozen state as the locked state according to the second resource locking order.
And a resource turning module 1104, configured to turn the second accumulated total share of the resource in the frozen state and the locked state back to the first total amount of the resource according to the currently adapted resource conversion ratio based on the second resource locking order.
According to the resource rotation device, when the first resource total amount estimated change proportion obtained according to the resource conversion proportion adapted in the current period belongs to the first resource total amount expected change proportion range corresponding to the boundary value of the first resource total amount expected change proportion range, the resource rotation operation is automatically triggered, the problem that due to the fact that the resource conversion proportion is the change amount adapted in the current period, a resource owner needs to manually check the resource state for many times and manually rotate the resource, and the operation is complex is solved, and the resource rotation efficiency is improved. And the second resource locking order is created, the accumulated total share of the second resource in the frozen state is marked as the locking state, and the resource in the locking state can be rotated only by taking the second resource locking order as a basis, so that the problem of rotation failure caused by the fact that the resource is rotated in multiple modes after the resource is locked is solved, and the accuracy of resource rotation and the safety of the resource are ensured.
In one embodiment, the resource rotation module 1104 is further configured to detect a termination request for the resource conversion plan sheet initiated by the user identification; when the termination request is detected and the second resource accumulated total share included in the resource conversion plan list is not in a locking state, the second resource accumulated total share is converted back into the first resource total amount according to the currently adapted resource conversion proportion.
In this embodiment, a way is provided for a user to autonomously turn around the second accumulated total share of resources included in the resource conversion plan list, a turning manner is added, and the usability of the resource turning method is enhanced. And when the user turns around autonomously, the second resource accumulated total share included in the resource conversion plan list is required to be unlocked, so that the accuracy of resource turning is ensured.
In one embodiment, the resource conversion schedule is a currency input schedule, the boundary value of the first range of expected change ratios of the total amount of the resource is the boundary value of the range of expected change rates of the total amount of the currency, and the second cumulative total share of the resource is the cumulative total share of the fund.
The resource estimation module 1102 is further configured to obtain a total estimated change rate of the total amount of the fund if the total accumulated share of the fund turns into the currency according to the net value of the fund adapted in the current period;
the resource locking module 1103 is further configured to create a fund control list for controlling the total accumulated share of the fund when the estimated change rate of the total amount of the currency belongs to the range of the expected change rate of the total amount of the currency corresponding to the boundary value; marking the accumulated total share of the fund in the frozen state as a controlled state according to a fund control list;
the resource rotation module 1104 is further configured to rotate the accumulated total share of the fund in the frozen state and the controlled state to the total amount of the currency according to the net value of the fund currently adapted based on the fund control order.
In the embodiment, when the estimated change rate of the total amount of the money acquired according to the net value of the fund adapted in the current period belongs to the expected change rate range of the total amount of the money corresponding to the boundary value of the expected change ratio range of the total amount of the money, the fund turning operation is automatically triggered, so that the problem that the fund owner needs to manually check the state of the fund for many times and manually turn the fund again because the net value of the fund is the change amount adapted in the current period is solved, and the fund turning efficiency is improved. And by creating a fund control list, the accumulated total share of the fund in the frozen state is marked as a controlled state, and the fund in the controlled state can be turned only by taking the fund control list as a basis, so that the problem of turning failure caused by turning the fund in various ways after the fund is controlled is solved, and the accuracy of fund turning and the safety of the fund are ensured.
As shown in fig. 12, in another embodiment, there is provided a resource converting apparatus 1200 including: a schedule acquisition module 1201, a resource conversion module 1202, a resource estimation module 1203, a resource locking module 1204, and a resource rotation module 1205.
A schedule obtaining module 1201, configured to obtain a resource conversion schedule corresponding to the user identifier; the resource conversion plan list comprises a boundary value of the range of the expected change proportion of the first resource sum, a resource conversion period and a second resource cumulative sum share obtained by converting the first resource into the second resource.
A resource conversion module 1202, configured to execute a resource conversion task according to a resource conversion cycle; recording the execution state of the resource conversion task when the resource conversion task is executed; and when the interruption of the resource conversion task is detected, continuing to execute the resource conversion task according to the recorded execution state.
The resource estimation module 1203 is configured to obtain a first resource total amount estimation change ratio if the second resource cumulative total amount turns to the first resource according to the resource conversion ratio adapted in the current period.
A resource locking module 1204, configured to create a second resource locking order for locking the cumulative total share of the second resource when the predicted change ratio of the first resource total belongs to the range of the expected change ratio of the first resource total corresponding to the boundary value; and marking the second resource accumulated total share in the frozen state as the locked state according to the second resource locking order.
And a resource turning module 1205, configured to turn the second accumulated total share of the resource in the frozen state and the locked state back to the first total amount of the resource according to the currently adapted resource conversion ratio based on the second resource locking order.
In this embodiment, when the user resource management server detects that the resource conversion task is interrupted, the resource conversion task can be completed in time by checking the recorded execution state of the resource conversion task, so that the efficiency of resource conversion is improved.
In one embodiment, the resource conversion module 1202 is further configured to obtain a resource conversion instruction for the resource conversion schedule initiated by the user identifier; converting the first resource of the amount specified by the resource conversion instruction into a second resource according to the resource conversion instruction; and accumulating the share of the second resource obtained by conversion to the second resource accumulated total share in the resource conversion plan list.
In this embodiment, a way is provided for a user to autonomously initiate resource conversion on the resource conversion plan form, an increasing manner of the second cumulative total share of the resource conversion plan form is increased, and the usability of the resource conversion method is enhanced.
As shown in fig. 13, in another embodiment, there is provided a resource conversion apparatus 1300 including: a schedule acquisition module 1301, a resource conversion request module 1302, a resource transfer module 1303, a resource conversion module 1304, a resource pre-estimation module 1305, a resource locking module 1306, and a resource rotation module 1307.
A schedule obtaining module 1301, configured to obtain a resource conversion schedule corresponding to the user identifier; the resource conversion plan list comprises a boundary value of a range of expected change ratios of the total amount of the first resource, a resource conversion period, a single-period conversion amount of the first resource, and a cumulative total share of the second resource obtained by converting the first resource into the second resource.
A resource conversion request module 1302, configured to send a resource conversion application request to the second resource management server according to the resource conversion period; and receiving an application confirmation instruction fed back by the second resource management server.
A resource transfer module 1303, configured to initiate a resource transfer request to the first resource management server according to the application confirmation instruction, so that the first resource management server transfers the first resource from the first account corresponding to the user identifier to the target account, where the amount of the transferred first resource is a single-cycle conversion amount corresponding to the user identifier.
And the resource conversion module 1304 is configured to receive a transfer confirmation instruction fed back by the first resource management server, and send a resource conversion notification to the second resource management server corresponding to the target account, so that the second resource management server adds a second resource to the second account corresponding to the user identifier, and the added second resource is obtained by converting the transferred first resource according to the resource conversion ratio adapted in the current period.
The resource estimation module 1305 is configured to obtain the first estimated change ratio of the total amount of the resource if the cumulative total share of the second resource turns to the first resource according to the resource conversion ratio adapted in the current period.
The resource locking module 1306 is configured to create a second resource locking order for locking the second cumulative total share of the resource when the first estimated change ratio of the total resource belongs to the range of the first expected change ratio of the total resource corresponding to the boundary value; and marking the second resource accumulated total share in the frozen state as the locked state according to the second resource locking order.
And a resource rotation module 1307, configured to rotate the second accumulated total share of the resource in the frozen state and the locked state back to the first total amount of the resource according to the currently adapted resource conversion ratio based on the second resource lock order.
In this embodiment, the processing of the resource transformation schedule, the transfer of the first resource, and the inter-resource transformation are separated and processed by different processors, so as to ensure the security of the resource transfer and transformation processes.
As shown in fig. 14, in another embodiment, there is provided a resource converting apparatus 1400, including: a schedule acquisition module 1401, a resource transformation module 1402, a resource check module 1403, a resource estimation module 1404, a resource locking module 1405 and a resource rotation module 1406.
A schedule acquisition module 1401, configured to acquire a resource and source conversion schedule corresponding to the user identifier; the resource conversion plan list comprises a boundary value of a range of expected change ratios of the total amount of the first resource, a resource conversion period, a single-period conversion amount of the first resource, and a cumulative total share of the second resource obtained by converting the first resource into the second resource.
A resource conversion module 1402, configured to send, to the second resource server according to the resource conversion period, a resource conversion request for converting the first resource of the single-period conversion amount into the second resource; and acquiring the share of the second resource, which is fed back by the second resource management server and is converted according to the resource conversion request.
A resource checking module 1403, configured to check the acquired share of the second resource according to the single-cycle conversion amount of the first resource and the resource conversion ratio adapted in the current period; and if the check is passed, accumulating the acquired share of the second resource to a second resource accumulated total share in the resource conversion plan list.
The resource estimation module 1404 is configured to obtain an estimated change ratio of the total amount of the first resource if the cumulative total share of the second resource turns to the first resource according to the resource conversion ratio adapted in the current period.
A resource locking module 1405, configured to create a second resource locking order for locking the second cumulative total share of the resource when the predicted change ratio of the first total share of the resource belongs to the range of the predicted change ratio of the first total share of the resource corresponding to the boundary value; and marking the second resource accumulated total share in the frozen state as the locked state according to the second resource locking order.
And a resource rotation module 1406, configured to rotate the accumulated total share of the second resource in the frozen state and the locked state back to the total amount of the first resource according to the currently adapted resource conversion ratio based on the second resource locking order.
In this embodiment, after receiving the share of the second resource converted according to the resource conversion request fed back by the second resource management server, the second resource management server checks the locally calculated share of the second resource, and after the check is passed, the share of the second resource fed back by the second resource management server is added to the second resource cumulative total share in the resource conversion plan list, and through double verification of the local resource management server and the second resource management server, the accuracy and the security of resource conversion are ensured.
As shown in fig. 15, in another embodiment, there is provided a resource converting apparatus 1500 including: a schedule acquisition module 1501, a resource translation module 1502, a resource management module 1503, a resource forecast module 1504, a resource lock module 1505, and a resource rotation module 1506.
A schedule acquisition module 1501, configured to acquire a resource and source conversion schedule corresponding to the user identifier; the resource conversion plan list comprises a boundary value of a range of expected change ratios of the total amount of the first resource, a resource conversion period, a single-period conversion amount of the first resource, and a cumulative total share of the second resource obtained by converting the first resource into the second resource.
A resource conversion module 1502, configured to send a resource conversion request for converting the first resource of the single-cycle conversion amount into the second resource to the second resource server according to the resource conversion cycle; and acquiring the share of the second resource, which is fed back by the second resource management server and is converted according to the resource conversion request.
The resource management device 1503 is configured to, when a second resource cumulative total share included in the resource conversion plan list is in a locked state, add the acquired share of the second resource to the second resource cumulative total share of the non-resource conversion plan list; and when the second resource accumulated total share included in the resource conversion plan list is not in the locking state, accumulating the acquired share of the second resource to the second resource accumulated total share of the resource conversion plan list.
The resource estimation module 1504 is configured to obtain the first resource total estimate change ratio if the second resource cumulative total share turns to the first resource according to the resource conversion ratio adapted in the current period.
The resource locking module 1505 is used for creating a second resource locking order for locking the second resource cumulative total share when the first resource total estimated change proportion belongs to the first resource total expected change proportion range corresponding to the boundary value; and marking the second resource accumulated total share in the frozen state as the locked state according to the second resource locking order.
And the resource turning module 1506 is configured to turn the accumulated total share of the second resource in the frozen state and the locked state back to the total amount of the first resource according to the currently adapted resource conversion ratio based on the second resource locking order.
In this embodiment, a processing manner for the second resource share in the conversion process during resource rotation is provided, so that it is avoided that resource rotation cannot be completed because the resource is in the conversion process, and the fault tolerance is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (18)

1. A resource rotation method, the method comprising:
acquiring a resource conversion plan sheet corresponding to the user identification; the resource conversion plan list comprises a boundary value of a range of expected change ratios of the first resource gross and a second resource cumulative gross obtained by converting the first resource into the second resource;
acquiring a first resource gross estimate change proportion if the second resource cumulative gross share turns into a first resource according to the resource conversion proportion adapted in the current period;
when the estimated change proportion of the first resource gross belongs to the range of the expected change proportion of the first resource gross corresponding to the boundary value, creating a second resource locking order for locking the second resource accumulated gross;
marking the second accumulated total share of the resource in the frozen state as a locked state according to the second resource lock order;
and converting the accumulated total share of the second resources in the frozen state and the locked state into the total amount of the first resources according to the conversion proportion of the currently adapted resources based on the second resource locking order.
2. The method of claim 1, wherein the resource conversion plan sheet further comprises resource conversion cycles;
after the resource conversion plan list corresponding to the user identifier is obtained, the method further includes:
executing a resource conversion task according to the resource conversion period;
recording the execution state of the resource conversion task when the resource conversion task is executed;
and when the interruption of the resource conversion task is detected, continuing to execute the resource conversion task according to the recorded execution state.
3. The method of claim 1, wherein the resource conversion plan sheet further comprises a resource conversion period and a single period conversion amount for the first resource;
after the resource conversion plan list corresponding to the user identifier is obtained, the method further includes:
sending a resource conversion application request to a second resource management server according to the resource conversion period;
receiving an application confirmation instruction fed back by the second resource management server;
initiating a resource transfer request to a first resource management server according to the application confirmation instruction, so that the first resource management server transfers a first resource from a first account corresponding to the user identifier to a target account, wherein the amount of the transferred first resource is a single-cycle conversion amount corresponding to the user identifier;
and receiving a transfer confirmation instruction fed back by the first resource management server, and sending a resource conversion notice to a second resource management server corresponding to the target account, so that the second resource management server adds a second resource in a second account corresponding to the user identifier, and the added second resource is obtained by converting the transferred first resource according to a resource conversion ratio adapted in the current period.
4. The method of claim 1, wherein the resource conversion plan sheet further comprises a resource conversion period and a single period conversion amount for the first resource;
after the resource conversion plan list corresponding to the user identifier is obtained, the method further includes:
sending a resource conversion request for converting the first resource of the single-cycle conversion amount into a second resource to a second resource server according to the resource conversion cycle;
acquiring the share of the second resource fed back by the second resource management server and converted according to the resource conversion request;
checking the obtained share of the second resource according to the single-cycle conversion amount of the first resource and the current-adapted resource conversion proportion;
and if the check is passed, accumulating the obtained share of the second resource to a second resource accumulated total share in the resource conversion plan list.
5. The method of claim 1, wherein the resource conversion plan sheet further comprises resource conversion cycles;
after the resource conversion plan list corresponding to the user identifier is obtained, the method further includes:
sending a resource conversion request for converting the first resource with the single-cycle conversion amount into a second resource to a second resource server according to the resource conversion cycle;
acquiring the share of the second resource fed back by the second resource management server and converted according to the resource conversion request;
when a second resource accumulated total share included in the resource conversion plan list is in a locked state, accumulating the obtained share of the second resource to a second resource accumulated total share of a non-resource conversion plan list;
when the second resource accumulated total share included in the resource conversion plan list is not in the locking state, the acquired share of the second resource is accumulated to the second resource accumulated total share of the resource conversion plan list.
6. The method of claim 1, further comprising:
detecting a termination request initiated by a user identification for the resource conversion plan list;
when the termination request is detected and the second accumulated total share of the resource included in the resource conversion plan list is not in a locked state, then
And converting the accumulated total share of the second resource into the total amount of the first resource according to the current adaptive resource conversion proportion.
7. The method of claim 1, further comprising:
acquiring a resource conversion instruction aiming at the resource conversion plan list initiated by the user identification;
according to the resource conversion instruction, converting the first resource of the amount specified by the resource conversion instruction into a second resource;
and adding the converted share of the second resource to a second resource accumulated total share in the resource conversion plan list.
8. The method of claim 1, wherein the resource conversion schedule is a currency input schedule, the boundary value of the first range of expected rates of change of the total amount of the resource is a boundary value of a range of expected rates of change of the total amount of the currency, and the second cumulative total share of the resource is a cumulative total share of the fund;
the step of obtaining the estimated change proportion of the first total resource amount if the second cumulative total resource amount turns back to the first resource according to the resource conversion proportion adapted in the current period includes:
acquiring the estimated change rate of the total amount of the money if the accumulated total share of the fund turns into the money according to the net value of the fund adapted in the current period;
the step of creating a second resource locking order for locking the second cumulative total share of the resource when the first estimated change proportion of the total share of the resource belongs to the range of the first expected change proportion of the total share of the resource corresponding to the boundary value comprises:
when the estimated change rate of the total amount of the money belongs to the range of the expected change rate of the total amount of the money corresponding to the boundary value, creating a fund control list for controlling the accumulated total share of the fund;
the step of marking the second accumulated total share of the resource in the frozen state as the locked state according to the second resource lock order comprises:
marking the accumulated total share of the fund in a frozen state as a controlled state according to the fund control list;
the step of converting the accumulated total share of the second resource in the frozen state and the locked state into the total amount of the first resource according to the currently adapted resource conversion ratio by taking the second resource locking order as a basis comprises the following steps:
and turning the accumulated total share of the fund in the frozen state and the controlled state into the total amount of the currency according to the net value of the fund which is currently adapted on the basis of the fund control list.
9. A resource rotation apparatus, comprising:
the plan list acquisition module is used for acquiring a resource conversion plan list corresponding to the user identifier; the resource conversion plan list comprises a boundary value of a range of expected change ratios of the first resource gross and a second resource cumulative gross obtained by converting the first resource into the second resource;
the resource estimation module is used for acquiring a first resource gross estimation change proportion if the second resource cumulative gross share turns into a first resource according to the resource conversion proportion adapted in the current period;
the resource locking module is used for creating a second resource locking order for locking the second resource cumulative total share when the first resource total estimated change proportion belongs to the range of the first resource total expected change proportion corresponding to the boundary value; marking the second accumulated total share of the resource in the frozen state as a locked state according to the second resource lock order;
and the resource turning module is used for turning the accumulated total share of the second resource in the frozen state and the locked state into the total amount of the first resource according to the currently adapted resource conversion proportion by taking the second resource locking order as a basis.
10. The apparatus of claim 9, wherein the resource conversion schedule further comprises resource conversion cycles;
the device further comprises:
the resource conversion module is used for executing a resource conversion task according to the resource conversion cycle; recording the execution state of the resource conversion task when the resource conversion task is executed; and when the interruption of the resource conversion task is detected, continuing to execute the resource conversion task according to the recorded execution state.
11. The apparatus of claim 9, wherein the resource conversion plan sheet further comprises a resource conversion period and a single period conversion amount for the first resource;
the device further comprises:
the resource conversion request module is used for sending a resource conversion application request to the second resource management server according to the resource conversion period; receiving an application confirmation instruction fed back by the second resource management server;
a resource transfer module, configured to initiate a resource transfer request to a first resource management server according to the application confirmation instruction, so that the first resource management server transfers a first resource from a first account corresponding to the user identifier to a target account, where an amount of the transferred first resource is a single-cycle conversion amount corresponding to the user identifier;
and the resource conversion module is used for receiving a transfer confirmation instruction fed back by the first resource management server and sending a resource conversion notice to a second resource management server corresponding to the target account, so that the second resource management server adds a second resource in a second account corresponding to the user identifier, and the added second resource is obtained by converting the transferred first resource according to the resource conversion proportion adapted in the current period.
12. The apparatus of claim 9, wherein the resource conversion plan sheet further comprises a resource conversion period and a single period conversion amount for the first resource;
the device further comprises:
the resource conversion module is used for sending a resource conversion request for converting the first resource of the single-cycle conversion amount into the second resource to the second resource server according to the resource conversion cycle; acquiring the share of the second resource fed back by the second resource management server and converted according to the resource conversion request;
the resource checking module is used for checking the acquired share of the second resource according to the single-cycle conversion amount of the first resource and the current-adapted resource conversion proportion; and if the check is passed, accumulating the obtained share of the second resource to a second resource accumulated total share in the resource conversion plan list.
13. The apparatus of claim 9, wherein the resource conversion schedule further comprises resource conversion cycles;
the device further comprises:
the resource conversion module is used for sending a resource conversion request for converting the first resource with the single-cycle conversion amount into the second resource to the second resource server according to the resource conversion cycle; acquiring the share of the second resource fed back by the second resource management server and converted according to the resource conversion request;
the resource management device is used for accumulating the acquired share of the second resource to a second resource accumulated total share of a non-resource conversion plan list when the second resource accumulated total share included by the resource conversion plan list is in a locking state; when the second resource accumulated total share included in the resource conversion plan list is not in the locking state, the acquired share of the second resource is accumulated to the second resource accumulated total share of the resource conversion plan list.
14. The apparatus of claim 9, wherein the resource rotation module is further configured to detect a termination request for the resource conversion schedule initiated by a user identifier; when the termination request is detected and a second resource accumulated total share included in the resource conversion plan list is not in a locking state, the second resource accumulated total share is converted into a first resource total amount according to the currently adapted resource conversion proportion.
15. The apparatus of claim 9, further comprising:
the resource conversion module is used for acquiring a resource conversion instruction which is initiated by the user identification and aims at the resource conversion plan list; according to the resource conversion instruction, converting the first resource of the amount specified by the resource conversion instruction into a second resource; and adding the converted share of the second resource to a second resource accumulated total share in the resource conversion plan list.
16. The apparatus of claim 9, wherein the resource conversion schedule is a currency input schedule, the boundary value of the first range of expected rates of change of the total amount of the resource is a boundary value of a range of expected rates of change of the total amount of the currency, and the second cumulative total share of the resource is a cumulative total share of the fund;
the resource estimation module is also used for acquiring the estimated change rate of the total amount of the money if the accumulated total share of the fund turns into the money according to the net value of the fund adapted in the current period;
the resource locking module is further used for creating a fund control list for controlling the total accumulated share of the fund when the estimated change rate of the total amount of the currency belongs to the range of the expected change rate of the total amount of the currency corresponding to the boundary value; marking the accumulated total share of the fund in a frozen state as a controlled state according to the fund control list;
and the resource turning module is also used for turning the accumulated total share of the fund in the frozen state and the controlled state into the total amount of the currency according to the net value of the fund adapted currently based on the fund control list.
17. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 8.
18. A server comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any one of claims 1 to 8.
CN201611201233.3A 2016-12-22 2016-12-22 Resource rotation method and device Active CN106656600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611201233.3A CN106656600B (en) 2016-12-22 2016-12-22 Resource rotation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611201233.3A CN106656600B (en) 2016-12-22 2016-12-22 Resource rotation method and device

Publications (2)

Publication Number Publication Date
CN106656600A CN106656600A (en) 2017-05-10
CN106656600B true CN106656600B (en) 2020-06-16

Family

ID=58826528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611201233.3A Active CN106656600B (en) 2016-12-22 2016-12-22 Resource rotation method and device

Country Status (1)

Country Link
CN (1) CN106656600B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107730261B (en) * 2017-10-18 2021-01-08 维沃移动通信有限公司 Resource transfer method and related equipment
CN110473109B (en) * 2018-05-11 2022-10-28 腾讯科技(深圳)有限公司 Resource data processing method and device, computer readable medium and electronic equipment
CN109583869A (en) * 2018-10-25 2019-04-05 深圳壹账通智能科技有限公司 Product data processing method, device, computer equipment and storage medium
CN110597923B (en) * 2019-09-29 2024-02-02 腾讯云计算(北京)有限责任公司 Block chain resource management method, device and storage medium
CN111523904A (en) * 2020-04-26 2020-08-11 支付宝实验室(新加坡)有限公司 Method, device and equipment for triggering resource transfer task
CN111523903A (en) * 2020-04-26 2020-08-11 支付宝实验室(新加坡)有限公司 Method, device and equipment for triggering resource transfer task
CN111815456A (en) * 2020-09-09 2020-10-23 北京口袋财富信息科技有限公司 Automatic asset management method and device, readable storage medium and computing equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120323787A1 (en) * 2011-06-17 2012-12-20 Giftango Corporation Systems and methods for fixed form card to virtual card communication
CN103854217A (en) * 2012-12-06 2014-06-11 腾讯科技(深圳)有限公司 Online application virtual resource issuing method and device
CN111784443A (en) * 2015-05-08 2020-10-16 阿里巴巴集团控股有限公司 Order information processing method and device
CN106204217A (en) * 2016-07-08 2016-12-07 腾讯科技(深圳)有限公司 The methods, devices and systems of resource numerical value transfer, the method and apparatus of resource numerical value transfer request

Also Published As

Publication number Publication date
CN106656600A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106656600B (en) Resource rotation method and device
EP3586493B1 (en) Method for mining a block in a decentralized blockchain consensus network
EP3610436B1 (en) Rapid distributed consensus on blockchain
US20230153453A1 (en) Proof-of-approval distributed ledger
CN106779420B (en) Resource conversion method and device
US10972255B2 (en) Blockchain validation system
KR20200091882A (en) Incremental digital asset collateral wallet
CN109543869B (en) Hotel reservation and settlement method, device and system based on block chain network
US20230283473A1 (en) Computer-implemented systems and methods relating to a binary blockchain comprising a pair of coupled blockchains
EP3797396A1 (en) Blockchain transaction safety
WO2015161123A1 (en) Distributed crypto currency unauthorized transfer monitoring system
US20190114707A1 (en) Distribution of Blockchain Tokens
US20190392429A1 (en) Capital inheritance system and method for facilitating transfer of digital cryptocurrency
CN110163634B (en) Refund method and device based on blockchain and electronic equipment
CN110163691B (en) Invoice creating method and device based on block chain and electronic equipment
CN107392614B (en) Method and device for realizing offline transaction
CN112799708A (en) Method and system for jointly updating business model
CN111639347A (en) Electronic warehouse receipt verification method, device, terminal and storage medium
CN110599144A (en) Network access method and device for block link points
CN113807802B (en) Block chain-based staff salary settlement method and related equipment
CN114612089A (en) Block chain-based man-hour settlement method, device, equipment and storage medium
CN113506112A (en) Receivable account right confirming method and device and electronic equipment
CN116415955A (en) Cross-chain transaction method and system based on combination of hash locking and notary
JPWO2020085266A1 (en) Control methods, fund management systems, programs, and data structures
CN114041156A (en) Method and system for performing electronic transactions

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
GR01 Patent grant
GR01 Patent grant