Resource processing method and device, equipment and storage medium
By supporting resource processing methods of multiple resource types on the resource transfer management platform, the problem of resource data processing in the existing technology only supports one resource type is solved, and personalized processing and application flexibility is improved.
Patent Information
- Application Number
- CN202411788443.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-28
AI Technical Summary
The prior art only supports one resource type when processing resource data, making it difficult to achieve personalized processing and improve application flexibility.
By implementing a resource processing method on the resource transfer management platform, it supports processing of multiple resource types. The method includes responding to the resource transfer instruction, reading the contract record stored in the contract library, selecting the target resource type, and determining whether the resource storage order meets the resource transfer conditions based on the status information, and finally performing resource transfer processing.
It realizes flexible processing of multiple resource types, supports personalized resource processing, and improves application flexibility and efficiency.
Smart Images

Figure CN119719454A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data processing, and in particular, to a resource processing method, apparatus, device and storage medium. Background Art
[0002] With the development of science and technology, the Internet is becoming more and more common in daily life and work. For example, the use of the Internet to process resource data is becoming more and more common, and processing resource data through the Internet is more convenient than traditional manual processing of resource data, and can reduce human resources and avoid errors caused by manual processing.
[0003] At present, when the Internet is used to process resource data, it is widely used in resource storage scenarios. In the resource storage scenario, resource transformation information is provided to the resource storage party, and the storage resources of the resource storage party are attached based on the resource transformation information to obtain the corresponding extracted resources, thereby avoiding errors in manual resource attachment processing. However, when processing resource data, only one resource type is supported, that is, the storage resource and the extracted resource type are consistent, which makes it difficult to achieve personalized processing and has poor application flexibility.
[0004] Therefore, it is very necessary to propose a resource processing method that supports multiple resource types to achieve personalized processing and improve application flexibility. Summary of the invention
[0005] The embodiments of the present application provide a resource processing method, apparatus, device and storage medium, which are used to propose a resource processing method that supports multiple resource types, realizes personalized processing, and improves application flexibility.
[0006] In a first aspect, an embodiment of the present application provides a resource processing method, which is applied to a resource transfer management platform, and the method includes:
[0007] In response to the resource transfer instruction, read the contract record stored in the contract library; wherein the contract record records at least: basic information of the resource storage order matching the contract record, and status information of the resource storage order;
[0008] For the contract record, executing: selecting a target resource type from at least two resource types in the basic information; and determining whether a matching resource storage order meets a resource transfer condition based on the status information;
[0009] For resource storage orders that meet the resource transfer conditions, determine the target transfer resource quantity that matches the target resource type, and based on the target transfer resource quantity and the target resource type, perform resource transfer processing on the target transfer resources associated with the resource storage order.
[0010] In a possible implementation, in response to a resource transfer instruction, the contract record stored in the contract library is read, including:
[0011] Responding to the resource transfer instruction triggered periodically by the target device connected to the resource transfer management platform, reading the contract record stored in the contract library; or
[0012] Respond to the resource transfer instruction triggered by the target object for the resource storage order, and read the contract record stored in the contract library.
[0013] In a possible implementation, selecting a target resource type from at least two resource types in the basic information includes:
[0014] Based on the object operation comparison symbol in the basic information, a target resource type is selected from at least two resource types in the basic information; wherein the object operation comparison symbol is used to indicate the size relationship between the actual conversion rate and the initial conversion rate in the basic information;
[0015] Based on the transfer-out resource type indication, a target resource type is selected from at least two resource types in the basic information; wherein the transfer-out resource type indication is used to indicate a resource type used in resource transfer processing.
[0016] In a possible implementation, if the at least two resource types include: an original resource type used when storing resources, and a hooked resource type hooked to the original resource type;
[0017] Based on the object operation comparison symbol in the basic information, a target resource type is selected from at least two resource types in the basic information, including:
[0018] If it is determined that the magnitude relationship between the actual conversion rate associated with the storage maintenance day in the basic information and the initial conversion rate in the basic information matches the magnitude relationship indicated in the object operation comparison symbol, the original resource type is selected as the target resource type;
[0019] If it is determined that the size relationship between the actual conversion rate associated with the storage maintenance day in the basic information and the initial conversion rate in the basic information does not match the size relationship indicated in the object operation comparison symbol, the hook resource type is selected as the target resource type;
[0020] The actual conversion rate is the conversion rate between the original resource type and the hooked resource type on the storage maintenance day.
[0021] In one possible implementation, the status information includes at least: contract status and resource status;
[0022] Based on the status information, determine whether the matching resource storage order meets the resource transfer-out conditions, including:
[0023] If the contract status is the contract transfer status and the resource status is not the resource extraction status, it is determined that the resource transfer conditions are met.
[0024] In a possible implementation, determining a target transfer-out resource amount matching a target resource type includes:
[0025] If the target resource type is the original resource type used for resource storage, the target transfer-out resource quantity matching the original resource type is determined based on the storage resource quantity of the resource storage order and the resource transformation information in the basic information;
[0026] If the target resource type is a linked resource type that is linked to the original resource type, the initial transfer-out resource quantity that matches the original resource type is determined based on the storage resource quantity of the resource storage order and the resource transformation information in the basic information. Further, based on the initial resource transfer-out quantity and the conversion rate between the original resource type and the linked resource type, the target transfer-out resource quantity that matches the linked resource type is determined.
[0027] In a possible implementation, based on the target transfer-out resource quantity and the target resource type, resource transfer-out processing is performed on the target transfer-out resource associated with the resource storage order, including:
[0028] If an abnormality is detected in the target resource account of the resource storage order, the platform resources matching the target resource type in the platform resource account are transferred to the transition resource account based on the target transfer-out resource quantity;
[0029] If it is detected that the target resource account of the resource storage order is normal, the platform resources matching the target resource type in the platform resource account are transferred out to the target resource account based on the target transfer-out resource quantity.
[0030] In a possible implementation, before responding to the resource transfer instruction and reading the contract record stored in the contract library, the following steps are also included:
[0031] In response to the resource transfer instruction, read the contract record stored in the contract library; wherein the contract record records at least: basic information of the resource storage order matching the contract record, and status information of the resource storage order;
[0032] For the contract record, execute: based on the storage start date and status information in the basic information, determine whether the matching resource storage order meets the resource transfer conditions;
[0033] For resource storage orders that meet the resource transfer conditions, based on the original resource type and storage resource quantity used by the resource storage order during resource storage, determine the target transfer resource that matches the original resource type, and perform resource transfer processing on the target transfer resource.
[0034] In a possible implementation, performing resource transfer processing on the target transfer-in resource includes:
[0035] If an abnormality is detected in the target resource account of the resource storage order, the excess resources matching the original resource type in the excess resource account are transferred to the platform resource account based on the storage resource volume;
[0036] If it is detected that the target resource account of the resource storage order is normal, the target resources matching the original resource type in the target resource account are transferred to the platform resource account based on the storage resource quantity.
[0037] In a possible implementation, before reading the contract record stored in the contract library, the following steps are also included:
[0038] Obtain the basic information of the target object for the resource storage order, as well as the confirmation information triggered by the terms of the resource storage order, and generate a contract record associated with the resource storage order; wherein the status information in the contract record indicates that the resource storage order is currently in the order signing state;
[0039] The basic information includes at least: storage start date, storage end date, storage maintenance date, storage resource quantity, at least two resource types, initial conversion rate between two resource types, object operation comparison operator, and resource transformation information.
[0040] In a second aspect, an embodiment of the present application provides a resource processing device, which is applied to a resource transfer management platform, and the device includes:
[0041] A reading unit, configured to respond to a resource transfer instruction and read a contract record stored in a contract library; wherein the contract record records at least: basic information of a resource storage order matching the contract record, and status information of the resource storage order;
[0042] The execution unit is used to execute, for the contract record: selecting a target resource type from at least two resource types in the basic information; and determining, based on the status information, whether a matched resource storage order meets a resource transfer-out condition;
[0043] The processing unit is used to determine the target transfer-out resource quantity that matches the target resource type for the resource storage order that meets the resource transfer-out conditions, and based on the target transfer-out resource quantity combined with the target resource type, perform resource transfer processing on the target transfer-out resource associated with the resource storage order.
[0044] In a possible implementation, the reading unit is specifically configured to:
[0045] Responding to the resource transfer instruction triggered periodically by the target device connected to the resource transfer management platform, reading the contract record stored in the contract library; or
[0046] Respond to the resource transfer instruction triggered by the target object for the resource storage order, and read the contract record stored in the contract library.
[0047] In a possible implementation, the execution unit is specifically configured to:
[0048] Based on the object operation comparison symbol in the basic information, a target resource type is selected from at least two resource types in the basic information; wherein the object operation comparison symbol is used to indicate the size relationship between the actual conversion rate and the initial conversion rate in the basic information;
[0049] Based on the transfer-out resource type indication, a target resource type is selected from at least two resource types in the basic information; wherein the transfer-out resource type indication is used to indicate a resource type used in resource transfer processing.
[0050] In a possible implementation, if the at least two resource types include: an original resource type used when storing resources, and a hooked resource type hooked to the original resource type; the execution unit is specifically configured to:
[0051] If it is determined that the magnitude relationship between the actual conversion rate associated with the storage maintenance day in the basic information and the initial conversion rate in the basic information matches the magnitude relationship indicated in the object operation comparison symbol, the original resource type is selected as the target resource type;
[0052] If it is determined that the size relationship between the actual conversion rate associated with the storage maintenance day in the basic information and the initial conversion rate in the basic information does not match the size relationship indicated in the object operation comparison symbol, the hook resource type is selected as the target resource type;
[0053] The actual conversion rate is the conversion rate between the original resource type and the hooked resource type on the storage maintenance day.
[0054] In a possible implementation, the state information includes at least: contract state and resource state; an execution unit, specifically used to:
[0055] If the contract status is the contract transfer status and the resource status is not the resource extraction status, it is determined that the resource transfer conditions are met.
[0056] In a possible implementation manner, the processing unit is specifically configured to:
[0057] If the target resource type is the original resource type used for resource storage, the target transfer-out resource quantity matching the original resource type is determined based on the storage resource quantity of the resource storage order and the resource transformation information in the basic information;
[0058] If the target resource type is a linked resource type that is linked to the original resource type, the initial transfer-out resource quantity that matches the original resource type is determined based on the storage resource quantity of the resource storage order and the resource transformation information in the basic information. Further, based on the initial resource transfer-out quantity and the conversion rate between the original resource type and the linked resource type, the target transfer-out resource quantity that matches the linked resource type is determined.
[0059] In a possible implementation manner, the processing unit is specifically configured to:
[0060] If an abnormality is detected in the target resource account of the resource storage order, the platform resources matching the target resource type in the platform resource account are transferred to the transition resource account based on the target transfer-out resource quantity;
[0061] If it is detected that the target resource account of the resource storage order is normal, the platform resources matching the target resource type in the platform resource account are transferred out to the target resource account based on the target transfer-out resource quantity.
[0062] In one possible implementation:
[0063] The reading unit is further used to respond to the resource transfer instruction and read the contract record stored in the contract library; wherein the contract record records at least: basic information of the resource storage order matching the contract record, and status information of the resource storage order;
[0064] The execution unit is further used to execute, for the contract record: based on the storage start date and status information in the basic information, determine whether the matched resource storage order meets the resource transfer-in condition;
[0065] The processing unit is also used to determine the target transfer-in resources that match the original resource type for the resource storage order that meets the resource transfer conditions based on the original resource type and storage resource quantity used by the resource storage order during resource storage, and perform resource transfer processing on the target transfer-in resources.
[0066] In a possible implementation, the processing unit is further configured to:
[0067] If an abnormality is detected in the target resource account of the resource storage order, the excess resources matching the original resource type in the excess resource account are transferred to the platform resource account based on the storage resource volume;
[0068] If it is detected that the target resource account of the resource storage order is normal, the target resources matching the original resource type in the target resource account are transferred to the platform resource account based on the storage resource quantity.
[0069] In a possible implementation manner, the device further includes an acquisition unit, and the acquisition unit is used to:
[0070] Before reading the contract record stored in the contract library, obtain the basic information of the target object for the resource storage order, as well as the confirmation information triggered by the terms of the resource storage order, and generate the contract record associated with the resource storage order; wherein the status information in the contract record indicates that the resource storage order is currently in the order signing state;
[0071] The basic information includes at least: storage start date, storage end date, storage maintenance date, storage resource quantity, at least two resource types, initial conversion rate between two resource types, object operation comparison operator, and resource transformation information.
[0072] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the memory is used to store program instructions; the processor is used to call the program instructions stored in the memory, and execute the steps of the resource processing method provided in the embodiment of the present application according to the obtained program instructions.
[0073] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on an electronic device, the computer program is used to enable the electronic device to execute the steps of the resource processing method provided in the embodiment of the present application.
[0074] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program code, and the computer program code is stored in a computer-readable storage medium; when the computer program code runs on a computer, the computer executes the steps of the resource processing method provided in the embodiment of the present application.
[0075] The above solution of the present application has at least the following beneficial effects:
[0076] The embodiments of the present application provide a resource processing method, apparatus, device and storage medium, which relate to the field of data processing, and in particular to the processing of financial data, and are applied to a resource transfer management platform. In the present application:
[0077] In response to a resource transfer instruction, first read the contract record stored in the contract library, the contract record at least records: the basic information of the resource storage order matching the contract record, and the status information of the resource storage order; then for the contract record, execute: from at least two resource types in the basic information, select the target resource type, and, based on the status information, determine whether the matching resource storage order meets the resource transfer conditions; finally, for the resource storage orders that meet the resource transfer conditions, determine the target transfer resource quantity that matches the target resource type, and based on the target transfer resource quantity combined with the target resource type, perform resource transfer processing on the target transfer resource associated with the resource storage order.
[0078] In this resource processing method, resource storage scenarios of multiple resource types are supported. When the stored resources are transferred out, a target resource type is selected from multiple resource types as the resource type used for transferring the resources out. Since one is selected from multiple resource types, there is a situation where the resource type used for storage is inconsistent with the resource type used for extraction. At this time, the target object with multiple storage resource type requirements can use its own existing original resource type (i.e., the resource type used for resource storage) to flexibly process resources, thereby realizing personalized resource processing and improving application flexibility.
[0079] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0081] Figure 1 A resource transfer processing flow chart provided in an embodiment of the present application;
[0082] Figure 2 A resource transfer processing flow chart provided in an embodiment of the present application;
[0083] Figure 3 A complete cycle flow chart of resource management provided in an embodiment of the present application;
[0084] Figure 4 A structural diagram of a resource processing device provided in an embodiment of the present application;
[0085] Figure 5 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0086] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0087] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
[0088] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description. It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0089] In the technical solution of this application, the acquisition, transmission, storage, and use of data are in compliance with the requirements of relevant national laws and regulations.
[0090] Before introducing the resource processing method provided in the embodiment of the present application, in order to facilitate understanding, the technical background of the embodiment of the present application is first introduced in detail below.
[0091] With the development of science and technology, the Internet is becoming more and more common in daily life and work. For example, the use of the Internet to process resource data is becoming more and more common, and processing resource data through the Internet is more convenient than traditional manual processing of resource data, and can reduce human resources and avoid errors caused by manual processing.
[0092] At present, when the Internet is used to process resource data, it is widely used in resource storage scenarios. For example, deposits and financial management in e-commerce all involve resource storage. In the resource storage scenario, resource transformation information is provided to the resource storage party, and resource attachment is performed on the storage resources of the resource storage party based on the resource transformation information to obtain the corresponding extracted resources, thereby avoiding errors in manual resource attachment processing. However, when processing resource data at present, only one resource type is supported, that is, the storage resource and the extracted resource type are consistent, which makes it difficult to achieve personalized processing and has poor application flexibility.
[0093] For example, in a fixed-term deposit product, the product provider provides information such as interest rates and deposit terms to the target objects that purchase the product. The target objects can choose to purchase a fixed-term storage product with a certain amount of storage resources using a resource type based on their own needs. When the target object's deposit term arrives, the product provider determines to withdraw resources based on the amount of storage resources, deposit term, and interest rate purchased by the target object. The resource type of the withdrawn resources is consistent with the resource type of the storage resources purchased, which cannot meet diverse needs and has poor application flexibility.
[0094] Therefore, it is very necessary to propose a resource processing method that supports multiple resource types to achieve personalized processing and improve application flexibility.
[0095] In view of this, the embodiments of the present application provide a resource processing method, device, equipment and storage medium, which relate to the field of data processing, especially the processing of financial data, and are applied to a resource transfer management platform; the embodiments of the present application support resource storage scenarios of multiple resource types, and when transferring stored resources, a target resource type is selected from multiple resource types as the resource type used when transferring resources. Since one resource type is selected from multiple resource types, there is a situation where the resource type used during storage is inconsistent with the resource type used during extraction. At this time, the target object with multiple storage resource type requirements can use its own existing original resource type (i.e., the resource type used when storing resources) to flexibly perform resource processing, thereby realizing personalized resource processing and improving application flexibility.
[0096] The resource processing method of the present application is described in detail below with reference to the accompanying drawings.
[0097] See also Figure 1 , Figure 1A flow chart of a resource transfer processing method provided in an embodiment of the present application is applied to a resource transfer management platform, comprising the following steps:
[0098] Step S100, responding to the resource transfer instruction, reading the contract record stored in the contract library; wherein the contract record records at least: basic information of the resource storage order matching the contract record, and status information of the resource storage order.
[0099] In one possible implementation, in response to a resource transfer instruction triggered by a target device connected to the resource transfer management platform, the contract record stored in the contract library is read; wherein the target device includes but is not limited to: a device on which the resource transfer management platform is installed, and a device externally connected to the device on which the resource transfer management platform is installed.
[0100] The resource transfer instruction triggered by the target device can be periodically triggered, for example, the triggering period is one day. When the period of triggering the resource transfer instruction is one day, the resource transfer management platform batch processes and reads the contract library in full every day. That is, the resource transfer management platform reads each contract record stored in the contract library every 24 hours. It should be noted that the period of triggering the resource transfer instruction by the target device can be adjusted according to the actual situation, for example, one day.
[0101] The resource transfer instruction triggered by the target device can also be triggered according to the set time. For example, if the set time is 8:00 on October 20, 2025, the resource transfer management platform will perform a full read of the contract library in batches at 8:00 on October 20, 2025. It should be noted that the set time is set by the product party of the resource storage order according to the actual situation.
[0102] In another possible implementation, in response to the resource transfer-out instruction triggered by the target object for the resource storage order, the contract record stored in the contract library is read. The target object can trigger the resource transfer-out instruction through a terminal device, and can also trigger the resource transfer-out instruction through the counter of the resource storage order.
[0103] When triggering a resource transfer-out instruction through a terminal device, the target object logs in to the application matching the resource storage order installed in the target terminal device, and after logging in to the application, triggers the resource transfer-out instruction in the display interface of the application. For example, when the resource storage order is an order to purchase a certain financial product, the application can be a financial application, and the application is the front end corresponding to the resource mobile management platform. The target object triggers a resource transfer-out instruction for its own resource storage order A through the application. At this time, the resource transfer management platform responds to the resource transfer-out instruction triggered by the target object for the resource storage order A, and reads the contract record associated with the resource storage order A from the contract record stored in the contract library.
[0104] When a resource transfer-out instruction is triggered through a branch counter, the target object can trigger the resource transfer-out instruction through the self-service machine at the branch counter; the target object can also express the resource transfer-out instruction to the staff at the branch counter, and the staff will trigger the resource transfer-out instruction through the terminal equipment of the branch.
[0105] It should be noted that when the target object triggers a resource transfer-out instruction, it can choose to trigger the resource transfer-out instruction for at least one resource storage order associated with itself according to its own needs, that is, the target object can trigger the resource transfer-out instruction for multiple resource storage orders at the same time.
[0106] Step S101, for the contract record, execute: selecting a target resource type from at least two resource types in the basic information; and determining whether a matching resource storage order meets a resource transfer-out condition based on the status information.
[0107] In an embodiment of the present application, after reading the contract record stored in the contract library based on the resource transfer instruction, it is determined that a resource transfer operation needs to be performed on the resource storage order that matches the contract record. However, the specific resource type to be used when transferring resources needs to be confirmed before the resource transfer is officially performed to ensure the accuracy of the resource transfer.
[0108] Since there are at least two resource types in the basic information of the resource storage order that matches the contract record, before officially transferring out the resources, it is necessary to select the target resource type to be used when transferring out the resources from at least two resource types.
[0109] In one possible implementation, when selecting a target resource type to be used when transferring resources from at least two resource types, the target resource type is selected from at least two resource types in the basic information based on an object operation comparator in the basic information; wherein the object operation comparator is used to indicate the size relationship between the actual conversion rate and the initial conversion rate in the basic information.
[0110] Exemplarily, if the at least two resource types include: an original resource type used when storing resources, and a hooked resource type hooked to the original resource type; then based on the object operation comparison symbol in the basic information, when selecting the target resource type from the at least two resource types in the basic information:
[0111] First, it is determined whether the storage maintenance day is the current business day, and when it is determined that the storage maintenance day is the current business day, the relationship between the actual conversion rate associated with the storage maintenance day and the initial conversion rate in the basic information is determined.
[0112] Among them, the actual conversion rate and the initial conversion rate are both the conversion relationship between the original resource type and the linked resource type; specifically, the actual conversion rate is: the conversion rate between the original resource type and the linked resource type on the storage maintenance day, and the initial conversion rate is: the conversion rate between the original resource type and the linked resource type on the storage start day.
[0113] It should be noted that the storage maintenance day can be determined by the target object when determining the resource storage order, that is, in the basic information set, or it can be set by the target object when triggering the resource transfer instruction, or it can be set by the resource storage product party according to actual conditions.
[0114] Then, it is determined whether the actually determined size relationship matches the size relationship indicated in the object operation comparison symbol, and the target resource type is selected according to the matching result.
[0115] When selecting the target resource type based on the matching results, if it is determined that the size relationship between the actual conversion rate associated with the maintenance day stored in the basic information and the initial conversion rate in the basic information matches the size relationship indicated in the object operation comparison symbol, the original resource type is selected as the target resource type; otherwise, the hooked resource type is selected as the target resource type, that is, if it is determined that the size relationship between the actual conversion rate associated with the maintenance day stored in the basic information and the initial conversion rate in the basic information does not match the size relationship indicated in the object operation comparison symbol, the hooked resource type is selected as the target resource type.
[0116] In another possible implementation, based on the transfer-out resource type indication, a target resource type is selected from at least two resource types in the basic information; wherein the transfer-out resource type indication is used to indicate the resource type used in the resource transfer processing; the transfer-out resource type indication may be determined by the target object when determining the resource storage order, that is, in the set basic information, or may be set by the target object when triggering the resource transfer instruction.
[0117] It should be noted that when selecting the target resource type to be used when transferring resources from at least two resource types, at least one target resource type can be selected. When there is only one target resource type, all storage resources associated with the resource storage order are transferred out using the currently determined target resource type. When two or more target resource types are selected, the storage resources associated with the resource storage order can be transferred out according to the resource type ratio. The resource type ratio can be pre-set or set by the target object when triggering the resource transfer instruction.
[0118] In an embodiment of the present application, before officially transferring resources, in addition to determining the specific resource type to be used when transferring resources, it is also necessary to confirm whether the resource transfer can be performed, that is, whether the resource storage order meets the resource transfer conditions, so as to ensure the accuracy of the resource transfer.
[0119] In a possible implementation, based on the state information, it is determined whether the matched resource storage order meets the resource transfer-out condition, and when determining whether the resource transfer-out condition is met:
[0120] First, determine whether the contract status in the status information is the contract transfer status, that is, read the flag of the contract status to see whether it is "TRADE", and determine whether the resource status in the status information is the resource extraction status, that is, read the flag of the resource status to see whether it is "CLOSE" or "CANCEL".
[0121] Then, based on the judgment result, it is determined whether the resource transfer-out condition is met.
[0122] When determining whether the resource transfer-out conditions are met based on the judgment result, if the flag bit of the contract status is equal to "TRADE", the contract status is determined to be the contract transfer status, and if the flag bit of the resource status is not equal to "CLOSE" and is not equal to "CANCEL", the resource status is determined to be the non-resource extraction status, and the resource transfer-out conditions are determined to be met. If the flag bit of the resource status is equal to "CLOSE" or equal to "CANCEL", the resource status is determined to be the resource extraction status, and the resource transfer-out conditions are determined not to be met; that is, regardless of whether the flag bit of the Heyuan status is equal to "TRADE", as long as the flag bit of the resource status is equal to "CLOSE" or equal to "CANCEL", it is determined that the resource storage order does not meet the resource transfer-out conditions.
[0123] In an embodiment of the present application, when determining whether a matched resource storage order meets the resource transfer-out conditions based on the status information, it can also be determined based on the status information and in combination with the relationship between the current business day and the storage end date.
[0124] Step S102, for a resource storage order that meets the resource transfer conditions, determine a target transfer-out resource quantity that matches the target resource type, and perform resource transfer processing on the target transfer-out resource associated with the resource storage order based on the target transfer-out resource quantity and the target resource type.
[0125] In the embodiment of the present application, after determining that the resource storage order meets the resource transfer-out conditions and determining the target resource type used when transferring the resources, when performing resource transfer-out processing on the resource storage order:
[0126] First determine the target transfer-out resource quantity that matches the target resource type.
[0127] Exemplarily, if the target resource type is the original resource type used for resource storage, then based on the storage resource quantity of the resource storage order and in combination with the resource transformation information in the basic information, the additional resource quantity of the resource storage order is determined, and the storage resource quantity and the additional resource quantity are added together to determine the target transfer-out resource quantity that matches the original resource type;
[0128] In another exemplary embodiment, if the target resource type is a linked resource type that is linked to the original resource type, the additional resource amount of the resource storage order is determined based on the storage resource amount of the resource storage order in combination with the resource transformation information in the basic information, and the storage resource amount is added to the additional resource amount to determine the initial transfer-out resource amount that matches the original resource type, and further based on the initial resource transfer-out amount in combination with the initial conversion rate between the original resource type and the linked resource type, the initial transfer-out resource amount is converted into a target transfer-out resource amount that matches the linked resource type.
[0129] Then, based on the target transfer-out resource quantity and the target resource type, resource transfer-out processing is performed on the target transfer-out resources associated with the resource storage order.
[0130] Exemplarily, if the target resource type is an original resource type, based on the target transfer-out resource amount matching the original resource type and the original resource type, a platform resource having a quantity consistent with the target transfer-out resource amount and matching the original resource type is determined from the platform resource account, and the platform resource determined from the platform resource account is subjected to resource transfer-out processing;
[0131] In another exemplary embodiment, if the target resource type is a linked resource type, based on the target transfer-out resource quantity that matches the linked resource type and the original resource type, platform resources whose quantity is consistent with the target transfer-out resource quantity and matches the linked resource type are determined from the platform resource account, and the platform resources determined from the platform resource account are processed for resource transfer.
[0132] When performing resource transfer processing, platform resources are usually transferred to the target resource account of the target object. However, there may be a situation where the target resource account is abnormal and the resource transfer cannot be performed normally. Therefore, in the embodiment of the present application, the concept of a transitional resource account is proposed during the resource transfer processing, and when the target resource account is abnormal, the platform resources are transferred to the transitional resource account in advance, and the target resource account abnormality information is sent to the target object, so that the target object can promptly determine the target resource account abnormality and restore the target resource account, so that when the target resource account is restored, the platform resources that have been transferred to the transitional resource account in advance can be transferred from the transitional resource account to the target resource account.
[0133] In a possible implementation, when performing resource transfer-out processing on the target transfer-out resources associated with the resource storage order, firstly check whether the target resource account of the resource storage order is normal, and then perform resource transfer-out processing on the platform resources of the platform resource account based on the detection result.
[0134] Exemplarily, if it is detected that the target resource account of the resource storage order is abnormal, then based on the target transfer-out resource amount, the platform resources matching the target resource type in the platform resource account are transferred out to the excess resource account;
[0135] In another exemplary embodiment, if it is detected that the target resource account of the resource storage order is normal, the platform resources matching the target resource type in the platform resource account are transferred to the target resource account based on the target transfer-out resource amount.
[0136] In an embodiment of the present application, an excessive resource account flag can also be set, and whether the target resource account is abnormal is determined by reading the excessive resource account flag. If the excessive resource account flag is 1, the target resource account is determined to be abnormal, and the platform resources are transferred to the excessive resource account. If the excessive resource account flag is 0, the target resource account is determined to be normal, and the platform resources are transferred to the target resource account.
[0137] Usually, the excessive resource account flag is initially set to 0. When resources are transferred out, if the target resource account is abnormal, the excessive resource account flag will be changed to 1.
[0138] In this application, an excessive resource account is proposed during resource transfer processing, and a resource excessive mechanism is proposed to ensure that normal resource transfer processing can still be performed when the target resource account of the target object is abnormal.
[0139] In the embodiment of the present application, when processing resources, in addition to resource transfer-out processing, there is also resource transfer-in processing. Figure 2 , Figure 2 A flow chart of a resource transfer processing method provided in an embodiment of the present application is applied to a resource transfer management platform, comprising the following steps:
[0140] Step S200, responding to the resource transfer instruction, reading the contract record stored in the contract library; wherein the contract record records at least: basic information of the resource storage order matching the contract record, and status information of the resource storage order.
[0141] In one possible implementation, in response to a resource transfer instruction triggered by a target device connected to the resource transfer management platform, the contract record stored in the contract library is read; wherein the target device includes but is not limited to: a device on which the resource transfer management platform is installed, and a device externally connected to the device on which the resource transfer management platform is installed.
[0142] The resource transfer instruction triggered by the target device can be periodically triggered, for example, the triggering period is one day. When the period of triggering the resource transfer instruction is one day, the resource transfer management platform batch processes and reads the contract library in full every day. That is, the resource transfer management platform reads each contract record stored in the contract library every 24 hours. It should be noted that the period of triggering the resource transfer instruction by the target device can be adjusted according to the actual situation, for example, one day.
[0143] The resource transfer instruction triggered by the target device can also be triggered according to the set time. For example, if the set time is 8:00 on October 20, 2025, the resource transfer management platform will perform a full read of the contract library in batch processing at 8:00 on October 20, 2025. It should be noted that the set time is set by the product party of the resource storage order according to the actual situation.
[0144] In another possible implementation, in response to the resource transfer-in instruction triggered by the target object for the resource storage order, the contract record stored in the contract library is read. The target object can trigger the resource transfer-in instruction through a terminal device, and can also trigger the resource transfer-in instruction through the counter of the resource storage order.
[0145] When the resource transfer-in instruction is triggered through the terminal device, the target object logs in to the application matching the resource storage order installed in the target terminal device, and after logging in to the application, triggers the resource transfer-in instruction in the display interface of the application. For example, when the resource storage order is an order to purchase a certain financial product, the application can be a financial application, and the application is the front end corresponding to the resource mobile management platform. The target object triggers the resource transfer-in instruction for its own resource storage order B through the application. At this time, the resource transfer management platform responds to the resource transfer-in instruction triggered by the target object for the resource storage order B, and reads the contract record associated with the resource storage order B in the contract record stored in the contract library.
[0146] When a resource transfer-out instruction is triggered through a branch counter, the target object can trigger a resource transfer-in instruction through the self-service machine at the branch counter; the target object can also express the resource transfer-in instruction to the staff at the branch counter, and the staff will trigger the resource transfer-in instruction through the terminal equipment of the branch.
[0147] It should be noted that when the target object triggers a resource transfer-in instruction, it can choose to trigger a resource transfer-out instruction for at least one resource storage order associated with itself according to its own needs, that is, the target object can trigger a resource transfer-in instruction for multiple resource storage orders at the same time.
[0148] Step S201, for the contract record, execute: based on the storage start date and status information in the basic information, determine whether the matching resource storage order meets the resource transfer conditions.
[0149] In a possible implementation, when determining whether a matched resource storage order meets the resource transfer-in condition based on the storage start date and status information in the basic information:
[0150] First, it is detected whether the current business day is the storage start day, and whether the status information indicates that the resource storage order is currently in an order placement state; then, based on the detection result, it is determined whether the resource storage order meets the resource transfer-in conditions.
[0151] In an embodiment of the present application, when the flag bit of the contract status in the status information is equal to "TRADE" and the flag bit of the resource status is equal to "ACTIVE", it is determined that the resource storage order is currently in the order placement state; wherein, the flag bit of the resource status is "ACTIVE" indicating: the resource status represents the monetary investment status.
[0152] When determining whether the resource storage order meets the resource transfer conditions based on the detection results, if the current business day is the storage start day, and the status information indicates that the resource storage order is currently in an order placement state, then it is determined that the resource storage order meets the resource transfer conditions; otherwise, it is determined that the resource transfer conditions are not met, that is, when the current business day is not the storage start day, and / or the status information does not indicate that the resource storage order is currently in an order placement state, it is determined that the resource transfer conditions are not met.
[0153] Step S202, for resource storage orders that meet the resource transfer conditions, based on the original resource type and storage resource quantity used by the resource storage order during resource storage, determine the target transfer resource that matches the original resource type, and perform resource transfer processing on the target transfer resource.
[0154] When performing resource transfer processing, resources are usually transferred to the platform resource account, but there may be a situation where the target resource account is abnormal and the target resources in the target resource account cannot be transferred normally. Therefore, in the embodiment of the present application, the concept of an excessive resource account is proposed in the resource transfer processing process, that is, when the target resource account is abnormal, the excessive resources in the excessive resource account are pre-transferred to the platform resource account, and the target resource account abnormality information is sent to the target object, so that the target object can promptly discover the abnormality of the target resource account and restore the target resource account, so that when the target resource account is restored, the target resources in the target resource account are transferred to the excessive resource account. However, when the target resource account is normal, the target resources in the target resource account can be directly transferred to the platform resource account.
[0155] In a possible implementation, when performing resource transfer-in processing on the target transfer-out resources associated with the resource storage order, firstly check whether the target resource account of the resource storage order is normal, and then perform resource transfer-in processing on the platform resources of the platform resource account based on the detection result.
[0156] Exemplarily, if it is detected that the target resource account of the resource storage order is abnormal, then based on the storage resource quantity, the excess resources in the excess resource account that match the original resource type are transferred to the platform resource account;
[0157] In another exemplary embodiment, if it is detected that the target resource account of the resource storage order is normal, based on the storage resource quantity, the target resources matching the original resource type in the target resource account are transferred to the platform resource account.
[0158] In an embodiment of the present application, an excessive resource account flag can also be set, and whether the target resource account is abnormal is determined by reading the excessive resource account flag. If the excessive resource account flag is 1, the target resource account is determined to be abnormal, and the excess resources in the excessive resource account are transferred to the platform resource account. If the excessive resource account flag is 0, the target resource account is determined to be normal, and the target resources in the target resource account are transferred to the platform resource account.
[0159] Usually, the excessive resource account flag is initially set to 0. When resources are transferred in, if the target resource account is abnormal, the excessive resource account flag will be changed to 1.
[0160] In this application, an excessive resource account is proposed during resource transfer processing, and a resource excessive mechanism is proposed to ensure that normal resource transfer processing can still be performed when the target resource account of the target object is abnormal.
[0161] In the embodiment of the present application, whether reading the contract record stored in the contract library in the case of resource transfer out or reading the contract record stored in the contract library in the case of resource transfer in, it is usually necessary that the contract record has been stored in the contract library. Specifically, the contract record stored in the contract library is determined in the following manner:
[0162] Obtain the basic information of the target object for the resource storage order, as well as the confirmation information triggered by the terms of the resource storage order, and generate a contract record associated with the resource storage order; wherein the status information in the contract record indicates that the resource storage order is currently in the order signing state;
[0163] The basic information includes, but is not limited to: storage start date, storage end date, storage maintenance date, storage resource quantity, at least two resource types, initial conversion rate between two resource types, object operation comparison operator, and resource transformation information.
[0164] In the embodiment of the present application, resources include, but are not limited to: currency in the financial field, digital collections, points and other virtual resources in the electronic field.
[0165] Below, the resource processing method provided in the embodiment of the present application is described in detail in a specific scenario where resources are used as currency, the amount of stored resources is used as the amount of currency stored, the two resource types are respectively the deposit currency and the pegged currency, the initial conversion rate between the two resource types is the initial exchange rate, and the resource transformation information is the interest rate of the deposit currency.
[0166] See also Figure 3 , Figure 3 A complete cycle flow chart of resource management provided in an embodiment of the present application is applied to a resource transfer management platform, including the following steps:
[0167] Step S300, obtain the basic information set by the target object for the money storage order, and obtain the term information of the target object for the money storage order. After the confirmation information is triggered, generate a contract record for the money storage order; wherein the contract record records at least: the basic information of the money storage order, and the status information of the money storage order.
[0168] Among them, basic information includes but is not limited to: deposit currency, linked currency, initial exchange rate, interest rate, storage start date, storage end date, storage maintenance date, currency storage amount, counterparty, option premium, and object operation comparison symbol.
[0169] The status information represents the status of the money storage order at different stages, and the status information of the money storage order is modified according to different stages; for example, in the signing stage of the money storage order, the status information represents the order signing status. When the money storage order moves from the signing stage to the order placement stage, the status information will be modified to the order placement status.
[0170] It should be noted that the basic information can be set by the target object through an application or a branch counter, and is determined based on the negotiation between the target object and the product party of the currency storage order.
[0171] In this application, the target object is supported to set basic information for the currency storage order. Compared with the traditional basic information specified by the product party, it can meet the diverse needs of the target object and improve the user experience.
[0172] Step S301, store the contract record of the currency storage order in the contract library, and set the current status information representation in the contract record: order signing status.
[0173] In an embodiment of the present application, when the flag bit of the contract status in the status information is "ACTIVE" and the flag bit of the resource status in the status information is empty, the status information represents: order signing status.
[0174] Among them, the flag bit of the contract status is "ACTIVE" indicating: the contract status represents the contract investment status.
[0175] Step S302, in response to the order placement request triggered by the currency storage order, the matching status information in the contract library is modified, and the modified status information represents: order placement status.
[0176] Among them, the order placement request is actively triggered by the target device connected to the resource transfer management platform after obtaining the verification information of the target currency account of the target object.
[0177] For currency storage orders in the order signing status, an order number and a foreign exchange linked account will be automatically generated. The foreign exchange linked account is associated with the target currency account of the target object, so the order number and target currency account of the currency storage order can be obtained. At this time, risk verification is enabled based on the order number and target currency account, and the order request is triggered after the verification is passed. Specifically, the parameter table is verified by the risk system based on the order number and target currency account.
[0178] In a possible implementation, modifying the matching status information in the contract library includes: changing the flag of the contract status in the status information from "ACTIVE" to "TRADE", and setting the flag of the resource status to "ACTIVE". At this time, the modified status information represents: the order placement status.
[0179] Among them, the flag bit of the contract status is "TRADE" indicating that the contract status represents the contract transfer status; the flag bit of the resource status is "ACTIVE" indicating that the resource status represents the currency investment status.
[0180] In step S302, after responding to the order placement request, in addition to modifying the matching status information in the contract library, the foreign exchange linked account or the target currency account associated with the currency storage order can also be registered in the contract record.
[0181] In the embodiment of the present application, since the basic information of the currency storage order has been set, when the currency storage order is in the order placement state, the currency transfer amount of the currency storage order can be pre-determined when the currency is transferred out, so as to freeze the currency in the platform currency account in advance, and avoid the transfer failure due to insufficient currency in the platform currency account when it expires. When pre-determining the currency transfer amount of the currency storage order when the currency is transferred out, it is mainly based on the storage start date to the storage end date in the basic information as the storage days, and the interest rate in the basic information as the storage interest rate, and pre-calculate the currency transfer amount associated with the storage currency, and at the same time, pre-select and convert the currency transfer amount associated with the linked currency according to the exchange rate in the basic information.
[0182] At the same time, when the currency storage order is in the order placement state, in order to prevent the smooth transfer of currency from the target currency account, the target currency account must be frozen in advance, and the amount of currency in the target currency account that is consistent with the currency storage amount must be frozen.
[0183] Step S303, responding to the currency transfer instruction triggered periodically by the target device connected to the resource transfer management platform, and reading the contract record stored in the contract library.
[0184] In one possible implementation, the resource transfer management platform batch processes the contract library in full every day, that is, reads all contract records in the contract library every day.
[0185] Step S304, for the contract record, execute: based on the storage start date and status information in the basic information, determine whether the matching currency storage order meets the currency transfer conditions.
[0186] In a possible implementation, for each contract record stored in the contract library, it is determined whether the current currency transfer condition is met. Specifically, it is determined whether the current business day is the storage start day, and whether the flag bit of the contract status in the status information is "TRADE", and whether the flag bit of the resource status is "ACTIVE".
[0187] When the current business day is the storage start day, the flag of the contract status is "TRADE", and the flag of the resource status is "ACTIVE", it is determined that the currency storage order matching the contract record meets the currency transfer conditions.
[0188] Since it is a batch processing of the resource transfer management platform, there are multiple currency storage orders that meet the currency transfer conditions. At this time, a currency transfer batch file can be generated based on the multiple currency storage orders that meet the currency transfer conditions.
[0189] Considering that when currency is transferred in, the currency is first transferred in from the target currency account, the entry flag of each currency storage order in the currency transfer batch file is set to 0 to indicate that the currency is transferred in from the target currency account.
[0190] Step S305, for the money storage order that meets the money transfer conditions, based on the deposit currency used by the money storage order when storing money and the money storage amount, determine the target transfer currency that matches the deposit currency, and perform money transfer processing on the target transfer currency.
[0191] In a possible implementation, when the target transfer currency is processed, the entry flag of each currency storage order in the currency transfer batch file is read, and if the entry flag is 0, the target transfer currency in the target currency account is transferred to the platform currency account. It should be noted that the entry flag of each currency storage order in the currency transfer batch file is initially 0.
[0192] However, when transferring the target transfer currency in the target currency account to the platform currency account, there is a situation where the transfer processing fails. In order to distinguish which transfers are successful and which transfers fail, in an embodiment of the present application, a transfer flag is set for each currency storage order in the currency transfer batch file, and the transfer flag of a successful transfer is set to 1, and the transfer flag of an unsuccessful transfer is set to 0.
[0193] After each currency storage order in the currency transfer batch file is processed, the transfer flag is read. If the transfer flag is 0, the corresponding account entry flag is modified to 1, and the target transfer currency in the transition currency account is continued to be transferred to the platform currency account.
[0194] Step S306, after the target transfer currency is processed, the matching status information in the contract library is modified, and the modified status information represents: currency transfer status.
[0195] In a possible implementation, modifying the matching status information in the contract library includes: changing the flag bit of the contract status in the status information from "TRADE" to "TRADE", and setting the flag bit of the resource status from "ACTIVE" to "TRADE". At this time, the modified status information represents: currency transfer status.
[0196] Step S307, responding to the currency transfer instruction periodically triggered by the target device connected to the currency transfer management platform, and reading the contract record stored in the contract library.
[0197] In one possible implementation, the resource transfer management platform batch processes the contract library in full every day, that is, reads all contract records in the contract library every day.
[0198] Step S308, for the contract record, execute: selecting a target currency type from at least two currency types in the basic information; and determining whether the matching currency storage order meets the currency transfer condition based on the status information.
[0199] In one possible implementation, the flag of the contract status is determined to be "TRADE", the flag of the fund status is neither "CLOSE" nor "CANCEL", and at the same time, the currency storage order with a storage expiration date of the current business day or the day after the current business day (i.e., it expires on the next day) meets the currency transfer conditions.
[0200] It should be noted that the implementation method of selecting the target currency type can refer to the above implementation method, which will not be repeated here.
[0201] Step S309, for the currency storage order that meets the currency transfer conditions, determine the target transfer currency amount that matches the target currency type, and based on the target transfer currency amount combined with the target currency type, perform currency transfer processing on the target transfer currency associated with the currency storage order.
[0202] In one possible implementation, for currency storage orders whose storage expiration date is the current business day, whose contract status flag is "TRADE", and whose fund status flag is neither "CLOSE" nor "CANCEL", the target transfer currency in the platform currency account is transferred to the transition currency account, thereby avoiding transfer failures caused by abnormalities in the target currency account.
[0203] In one possible implementation, for a currency storage order whose storage expiration date is one day after the current business day, whose contract status flag is "TRADE", and whose fund status flag is neither "CLOSE" nor "CANCEL", the target transfer currency in the platform currency account is transferred to the target currency account. Because the currency storage order expires only after the transfer date, the target object can be notified in advance to perform the target currency account detection to ensure the normal use of the target currency account, so that the target transfer currency can be smoothly transferred to the target currency account when it is transferred on the expiration date.
[0204] Step S310, after the target transfer-in currency is processed for currency transfer-out, the matching status information in the contract library is modified, and the modified status information represents: currency transfer-out status.
[0205] In one possible implementation, modifying the matching status information in the contract library includes: changing the flag bit of the contract status in the status information from "TRADE" to "TRADE", and changing the flag bit of the resource status from "TRADE" to "CLOSE". At this time, the modified status information represents: currency transfer status.
[0206] It should be noted that the resource transfer management platform can only perform transfer-in or transfer-out processing for the same currency storage order at a certain moment, and can perform transfer-in and transfer-out processing for different currency storage orders at a certain moment; for example, currency storage order A can only perform transfer-in or transfer-out processing at a moment T1; at a moment T2, currency storage order A can be transferred out and currency storage order B can be transferred in at the same time.
[0207] In the present application, resource storage scenarios with multiple resource types are supported. When the stored resources are transferred out, a target resource type is selected from multiple resource types as the resource type used for transferring the resources out. Since one is selected from multiple resource types, there is a situation where the resource type used for storage is inconsistent with the resource type used for extraction. At this time, the target object with multiple storage resource type requirements can use its own existing original resource type (i.e., the resource type used for resource storage) to flexibly perform resource processing, thereby realizing personalized resource processing and improving application flexibility.
[0208] It should be noted that the embodiments described above are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.
[0209] Based on the same inventive concept, an embodiment of the present application also provides a resource processing device, which is applied to a resource transfer management platform. The principle of solving the problem by the device is similar to the method of the above embodiment. Therefore, the implementation of the device can refer to the implementation of the above resource processing method, and the repeated parts will not be repeated.
[0210] See also Figure 4 , Figure 4 A structural diagram of a resource processing device provided in an embodiment of the present application, the resource processing device 400 includes:
[0211] The reading unit 401 is used to respond to the resource transfer instruction and read the contract record stored in the contract library; wherein the contract record at least records: basic information of the resource storage order matching the contract record, and status information of the resource storage order;
[0212] The execution unit 402 is used to execute, for the contract record, the following steps: selecting a target resource type from at least two resource types in the basic information; and determining, based on the status information, whether a matching resource storage order meets a resource transfer-out condition;
[0213] Processing unit 403 is used to determine the target transfer-out resource quantity matching the target resource type for the resource storage order that meets the resource transfer-out conditions, and perform resource transfer processing on the target transfer-out resource associated with the resource storage order based on the target transfer-out resource quantity and the target resource type.
[0214] In a possible implementation, the reading unit 401 is specifically configured to:
[0215] Responding to the resource transfer instruction triggered periodically by the target device connected to the resource transfer management platform, reading the contract record stored in the contract library; or
[0216] Respond to the resource transfer instruction triggered by the target object for the resource storage order, and read the contract record stored in the contract library.
[0217] In a possible implementation, the execution unit 402 is specifically configured to:
[0218] Based on the object operation comparison symbol in the basic information, a target resource type is selected from at least two resource types in the basic information; wherein the object operation comparison symbol is used to indicate the size relationship between the actual conversion rate and the initial conversion rate in the basic information;
[0219] Based on the transfer-out resource type indication, a target resource type is selected from at least two resource types in the basic information; wherein the transfer-out resource type indication is used to indicate a resource type used in resource transfer processing.
[0220] In a possible implementation, if the at least two resource types include: an original resource type used when storing resources, and a hooked resource type hooked to the original resource type; the execution unit 402 is specifically configured to:
[0221] If it is determined that the magnitude relationship between the actual conversion rate associated with the storage maintenance day in the basic information and the initial conversion rate in the basic information matches the magnitude relationship indicated in the object operation comparison symbol, the original resource type is selected as the target resource type;
[0222] If it is determined that the size relationship between the actual conversion rate associated with the storage maintenance day in the basic information and the initial conversion rate in the basic information does not match the size relationship indicated in the object operation comparison symbol, the hook resource type is selected as the target resource type;
[0223] The actual conversion rate is the conversion rate between the original resource type and the hooked resource type on the storage maintenance day.
[0224] In a possible implementation, the state information includes at least: a contract state and a resource state; the execution unit 402 is specifically configured to:
[0225] If the contract status is the contract transfer status and the resource status is not the resource extraction status, it is determined that the resource transfer conditions are met.
[0226] In a possible implementation, the processing unit 403 is specifically configured to:
[0227] If the target resource type is the original resource type used for resource storage, the target transfer-out resource quantity matching the original resource type is determined based on the storage resource quantity of the resource storage order and the resource transformation information in the basic information;
[0228] If the target resource type is a linked resource type that is linked to the original resource type, the initial transfer-out resource quantity that matches the original resource type is determined based on the storage resource quantity of the resource storage order and the resource transformation information in the basic information. Further, based on the initial resource transfer-out quantity and the conversion rate between the original resource type and the linked resource type, the target transfer-out resource quantity that matches the linked resource type is determined.
[0229] In a possible implementation, the processing unit 403 is specifically configured to:
[0230] If an abnormality is detected in the target resource account of the resource storage order, the platform resources matching the target resource type in the platform resource account are transferred to the transition resource account based on the target transfer-out resource quantity;
[0231] If it is detected that the target resource account of the resource storage order is normal, the platform resources matching the target resource type in the platform resource account are transferred out to the target resource account based on the target transfer-out resource quantity.
[0232] In one possible implementation:
[0233] The reading unit 401 is further used to respond to the resource transfer instruction and read the contract record stored in the contract library; wherein the contract record at least records: basic information of the resource storage order matching the contract record, and status information of the resource storage order;
[0234] The execution unit 402 is further used to execute, for the contract record: based on the storage start date and status information in the basic information, determining whether the matched resource storage order meets the resource transfer-in condition;
[0235] Processing unit 403 is also used to determine the target transfer-in resources that match the original resource type for the resource storage order that meets the resource transfer conditions based on the original resource type and storage resource quantity used by the resource storage order during resource storage, and perform resource transfer processing on the target transfer-in resources.
[0236] In a possible implementation, the processing unit 403 is further configured to:
[0237] If an abnormality is detected in the target resource account of the resource storage order, the excess resources matching the original resource type in the excess resource account are transferred to the platform resource account based on the storage resource volume;
[0238] If it is detected that the target resource account of the resource storage order is normal, the target resources matching the original resource type in the target resource account are transferred to the platform resource account based on the storage resource quantity.
[0239] In a possible implementation manner, the device further includes an acquisition unit, and the acquisition unit is used to:
[0240] Before reading the contract record stored in the contract library, obtain the basic information of the target object for the resource storage order, as well as the confirmation information triggered by the terms of the resource storage order, and generate the contract record associated with the resource storage order; wherein the status information in the contract record indicates that the resource storage order is currently in the order signing state;
[0241] The basic information includes at least: storage start date, storage end date, storage maintenance date, storage resource quantity, at least two resource types, initial conversion rate between two resource types, object operation comparison operator, and resource transformation information.
[0242] It should be noted that although several units (or modules) of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units (or modules) described above can be concretized in one unit (or module). Conversely, the features and functions of one unit (or module) described above can be further divided into multiple units (or modules) for concretization. Of course, when implementing the present application, the functions of each unit (or module) can also be implemented in the same one or more software or hardware.
[0243] In the embodiments of the present application, the term unit (or module) refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of an overall module or unit that includes the function of the module or unit.
[0244] Based on the same inventive concept, an embodiment of the present application provides an electronic device, which can implement the resource processing method discussed above.
[0245] In a possible implementation, the electronic device provided in the embodiment of the present application may include at least a processor and a memory, wherein the memory stores program instructions, and when the program instructions are executed by the processor, the processor executes any step of the resource processing method of various exemplary implementations in the present application.
[0246] In this embodiment, the structure of the electronic device can be as follows Figure 5 As shown, it includes a memory 501 , a communication module 503 and one or more processors 502 .
[0247] The memory 501 is used to store program instructions executed by the processor 502. The memory 501 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.
[0248] The memory 501 may be a volatile memory, such as a random-access memory (RAM); the memory 501 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 501 may be any other medium that can be used to carry or store desired program instructions in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 501 may be a combination of the above memories.
[0249] The processor 502 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 502 is used to call the program instructions stored in the memory 501 and execute the steps of the resource processing method provided in the embodiment of the present application according to the obtained program instructions.
[0250] The communication module 503 is used to communicate with the target device and other servers.
[0251] The specific connection medium between the memory 501, the communication module 503 and the processor 502 is not limited in the embodiment of the present application. Figure 5 In the embodiment, the memory 501 and the processor 502 are connected via a bus 504. The bus 504 is connected to the processor 502 via a bus 504. Figure 5 The connections between the other components are described with bold lines, which are only for illustrative purposes and are not intended to be limiting. The bus 504 can be divided into an address bus, a data bus, a control bus, etc. For ease of description, Figure 5 The diagram shows that only one thick line is used, but this does not mean that there is only one bus or one type of bus.
[0252] The memory 501 stores a computer storage medium, and the computer storage medium stores computer executable instructions, and the computer executable instructions are used to implement the resource processing method of the embodiment of the present application. The processor 502 is used to execute the above resource processing method.
[0253] Based on the same inventive concept, the embodiment of the present application provides a computer-readable storage medium, and the computer program product includes: a computer program, when the computer program is run on a computer, the computer executes any resource processing method discussed above. Since the principle of solving the problem by the above-mentioned computer-readable storage medium is similar to that of the resource processing method, the implementation of the above-mentioned computer-readable storage medium can refer to the implementation of the method, and the repeated parts will not be repeated.
[0254] Based on the same inventive concept, the embodiment of the present application also provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes any resource processing method as discussed above. Since the principle of solving the problem by the above computer program product is similar to that of the resource processing method, the implementation of the above computer program product can refer to the implementation of the method, and the repeated parts will not be repeated.
[0255] The program product may be in any combination of one or more readable media. The computer program contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above. The readable medium may also be a readable signal medium or a readable storage medium.
[0256] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a command execution system, apparatus, or device.
[0257] The readable storage medium may be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more conductors, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0258] The program product of the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include a computer program, and can be run on a computing device. However, the program product of the present application is not limited to this. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with a command execution system, device or device.
[0259] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0260] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0261] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0262] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of user-operated steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0263] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A resource processing method, characterized in that: Applied to a resource transfer management platform, the method comprises: In response to the resource transfer instruction, read the contract record stored in the contract library; wherein the contract record at least records: basic information of the resource storage order matching the contract record, and status information of the resource storage order; For the contract record, executing: selecting a target resource type from at least two resource types in the basic information; and determining whether a matching resource storage order meets a resource transfer-out condition based on the status information; For resource storage orders that meet the resource transfer conditions, determine the target transfer resource quantity that matches the target resource type, and based on the target transfer resource quantity and the target resource type, perform resource transfer processing on the target transfer resource associated with the resource storage order.
2. The method according to claim 1, characterized in that The response resource transfer instruction reads the contract record stored in the contract library, including: Responding to a resource transfer-out instruction periodically triggered by a target device connected to the resource transfer management platform, reading a contract record stored in a contract library; or In response to the resource transfer-out instruction triggered by the target object for the resource storage order, the contract record stored in the contract library is read.
3. The method according to claim 1, characterized in that The step of selecting a target resource type from at least two resource types in the basic information includes: Based on the object operation comparison symbol in the basic information, a target resource type is selected from at least two resource types in the basic information; wherein the object operation comparison symbol is used to indicate the size relationship between the actual conversion rate and the initial conversion rate in the basic information; Based on the transfer-out resource type indication, a target resource type is selected from at least two resource types in the basic information; wherein the transfer-out resource type indication is used to indicate a resource type used in resource transfer processing.
4. The method according to claim 3, characterized in that If the at least two resource types include: an original resource type used when storing resources, and a hooked resource type hooked to the original resource type; The selecting a target resource type from at least two resource types in the basic information based on the object operation comparator in the basic information includes: If it is determined that the magnitude relationship between the actual conversion rate associated with the storage maintenance day in the basic information and the initial conversion rate in the basic information matches the magnitude relationship indicated in the object operation comparator, then selecting the original resource type as the target resource type; If it is determined that the magnitude relationship between the actual conversion rate associated with the storage maintenance day in the basic information and the initial conversion rate in the basic information does not match the magnitude relationship indicated in the object operation comparator, selecting the hook resource type as the target resource type; The actual conversion rate is: the conversion rate between the original resource type and the hooked resource type on the storage maintenance day.
5. The method according to claim 1, characterized in that The status information includes at least: contract status and resource status; The determining, based on the state information, whether the matched resource storage order meets the resource transfer-out condition includes: If the contract status is a contract transfer status, and the resource status is not a resource extraction status, it is determined that the resource transfer-out condition is met.
6. The method according to claim 1, characterized in that The determining of the target transfer-out resource amount matching the target resource type includes: If the target resource type is the original resource type used for resource storage, then based on the storage resource quantity of the resource storage order and in combination with the resource transformation information in the basic information, determine the target transfer-out resource quantity that matches the original resource type; If the target resource type is a linked resource type that is linked to the original resource type, then based on the storage resource quantity of the resource storage order and combined with the resource transformation information in the basic information, the initial transfer-out resource quantity that matches the original resource type is determined, and further based on the initial resource transfer-out quantity and combined with the conversion rate between the original resource type and the linked resource type, the target transfer-out resource quantity that matches the linked resource type is determined.
7. The method according to claim 1, characterized in that The performing resource transfer processing on the target transfer-out resource associated with the resource storage order based on the target transfer-out resource amount in combination with the target resource type includes: If it is detected that the target resource account of the resource storage order is abnormal, based on the target transfer-out resource amount, the platform resources matching the target resource type in the platform resource account are transferred out to the transition resource account; If it is detected that the target resource account of the resource storage order is normal, the platform resources matching the target resource type in the platform resource account are transferred out to the target resource account based on the target transfer-out resource amount.
8. The method according to claim 1, characterized in that Before responding to the resource transfer instruction and reading the contract record stored in the contract library, the method further includes: In response to the resource transfer instruction, read the contract record stored in the contract library; wherein the contract record at least records: basic information of the resource storage order matching the contract record, and status information of the resource storage order; For the contract record, executing: based on the storage start date in the basic information and the status information, determining whether the matched resource storage order meets the resource transfer-in condition; For resource storage orders that meet the resource transfer conditions, based on the original resource type and storage resource quantity used by the resource storage order during resource storage, determine the target transfer resource that matches the original resource type, and perform resource transfer processing on the target transfer resource.
9. The method according to claim 8, characterized in that The resource transfer processing of the target transfer-in resource comprises: If it is detected that the target resource account of the resource storage order is abnormal, based on the storage resource amount, the excess resources in the excess resource account that match the original resource type are transferred to the platform resource account; If it is detected that the target resource account of the resource storage order is normal, based on the storage resource quantity, the target resources in the target resource account that match the original resource type are transferred to the platform resource account.
10. The method according to any one of claims 1 to 9, characterized in that: Before reading the contract record stored in the contract library, the method further includes: Obtaining basic information of the target object for the resource storage order, as well as confirmation information triggered respectively for the terms of the resource storage order, and generating a contract record associated with the resource storage order; wherein the status information in the contract record indicates that the resource storage order is currently in an order signing state; The basic information includes at least: storage start date, storage end date, storage maintenance date, storage resource quantity, at least two resource types, initial conversion rate between two resource types, object operation comparison operator, and resource transformation information.
11. A resource processing device, characterized in that: Applied to a resource transfer management platform, the device comprises: A reading unit, configured to respond to a resource transfer instruction and read a contract record stored in a contract library; wherein the contract record records at least: basic information of a resource storage order matching the contract record, and status information of the resource storage order; An execution unit, configured to execute, for the contract record: selecting a target resource type from at least two resource types in the basic information; and determining, based on the status information, whether a matching resource storage order satisfies a resource transfer-out condition; A processing unit is used to determine a target transfer-out resource quantity that matches the target resource type for a resource storage order that meets the resource transfer-out conditions, and based on the target transfer-out resource quantity and the target resource type, perform resource transfer processing on the target transfer-out resource associated with the resource storage order.
12. An electronic device, characterized in that: include: A processor and a memory, wherein: The memory is used to store program instructions; The processor is used to call the program instructions stored in the memory, and execute the steps included in any one of claims 1-10 according to the obtained program instructions.
13. A computer-readable storage medium, characterized in that: The method comprises a computer program. When the computer program is run on an electronic device, the computer program is used to make the electronic device execute the steps of any one of the methods of claims 1 to 10.
14. A computer program product, characterized in that The computer program product comprises: a computer program code, and when the computer program code is run on a computer, the computer is enabled to execute the steps of the method as claimed in any one of claims 1 to 10.