Transaction resource deduction method and device, electronic equipment and medium

By adjusting the actual deduction time point according to the time difference, the problem of deduction success rate reduction caused by users' failure to transfer funds in time in the existing trading resource deduction method is solved, and higher flexibility and stability are achieved, adapting to the transaction resource storage of different users. Habit.

CN119090637APending Publication Date: 2024-12-06PING AN INT FINANCIAL LEASING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411112188.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

When the existing trading resource deduction method fails to transfer the trading resources into the contracted account in time, the deduction success rate will be reduced, the system flexibility is insufficient, and the user's capital situation cannot be adapted to the fluctuations, resulting in the penalized trading resource deduction and system stability. .

Method used

By obtaining the task to be deducted and the time point that should be deducted by the target user, determining the actual time point of deduction based on the time difference, and deducting transaction resources from the user account at the actual time point, achieving flexible changes in the time point of deduction and adapting to the trading resources of different users Storage habits.

Benefits of technology

It improves the flexibility of the transaction resource deduction process, improves the deduction success rate, reduces the probability of users' penalties in transaction resource deductions, and enhances the stability and user experience of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119090637A_ABST
    Figure CN119090637A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a transaction resource deduction method and device, electronic equipment and a medium, and belongs to the field of financial science and technology. The transaction resource deduction method comprises the steps of obtaining a to-be-deducted task of a target user and a deducted time point corresponding to the to-be-deducted task, wherein the deducted time point corresponding to the to-be-deducted task is earlier than or the same as a current time point; determining an actual deduction time point of the task to be deducted according to the time point to be deducted; and deducting transaction resources for the target user according to the actual deduction time point of the to-be-deducted task. Therefore, the flexible change of the deduction time point can be realized, so that the actual deduction time point of the task to be deducted is not completely limited to the corresponding time point to be deducted, the transaction resource storage habits of different users can be better adapted, and the flexibility of the transaction resource deduction process is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of financial technology, and in particular to a transaction resource deduction method, device, electronic device and medium. Background Art

[0002] At present, in the financial industry, transaction resource deduction services (such as automatically deducting installment payments from the user's bank card account) can be based on the contract deduction time point agreed upon in the user's effective contract, and the user's contracted resource account can be deducted on behalf of the user according to the contract deduction time point. With the rapid development of the industry's business, the number of users' contracts has increased, and the daily tasks to be deducted have accumulated rapidly. In order to ensure the efficiency of deduction execution, in the relevant technology, the deduction operation is carried out at the time of deduction determined according to the contract. For users who fail to transfer transaction resources to the contracted resource account in time, the deduction success rate of such users will be reduced, resulting in punitive transaction resource deductions (such as overdue penalty interest), and the daily deduction success rate of the deduction system will also be reduced. That is, the transaction resource deduction method in the above-mentioned related technology is less flexible. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to propose a transaction resource deduction method, device, electronic device and medium, aiming to improve the flexibility of the transaction resource deduction process.

[0004] To achieve the above purpose, a first aspect of an embodiment of the present application proposes a transaction resource deduction method, the method comprising:

[0005] Obtaining a target user's pending deduction task and a time point at which the pending deduction task corresponds to the pending deduction task, wherein the pending deduction task is a task for deducting transaction resources from the target user's account at the time point at which the transaction resources are to be deducted, and the time point at which the transaction resources are to be deducted corresponding to the pending deduction task is earlier than the current time point or is the same as the current time point;

[0006] Determine the actual deduction time point of the task to be deducted according to the time point at which the deduction should be made;

[0007] Transaction resources are deducted from the target user's account according to the actual deduction time point of the task to be deducted.

[0008] In some implementations, determining the actual deduction time point of the task to be deducted according to the time point at which the deduction should be made includes:

[0009] Determine the time difference between the time point to be deducted and the current time point;

[0010] The actual deduction time point is determined according to the time point difference.

[0011] In some implementations, determining the actual deduction time point according to the time difference includes:

[0012] When the time difference is greater than or equal to a first preset threshold and less than or equal to a second preset threshold, delaying the time point at which the deduction should be made;

[0013] The delayed time point at which deduction should be made is determined as the actual time point at which deduction should be made.

[0014] In some implementations, the step of obtaining the target user's to-be-deducted tasks and the deduction time points corresponding to the to-be-deducted tasks includes:

[0015] Obtaining the to-be-deducted information of the target user;

[0016] Determine at least one transaction resource deduction contract in the to-be-deducted information, each of the transaction resource deduction contracts including at least one period of the to-be-deducted tasks;

[0017] According to each of the transaction resource deduction contracts, at least one of the tasks to be deducted and the contract deduction time point corresponding to each of the tasks to be deducted are obtained;

[0018] For each of the tasks to be deducted, the deduction time point for the task to be deducted is determined according to the deduction type of the task to be deducted and the associated time point of the task to be deducted, wherein the associated time point is the contract deduction time point of the task to be deducted included in the transaction resource deduction contract corresponding to the task to be deducted, and the deduction type includes at least one of regular deduction and additional deduction.

[0019] In some implementations, determining the time point at which the task to be deducted should be deducted according to the deduction type of the task to be deducted and the associated time point of the task to be deducted includes:

[0020] In the case where the deduction type of the task to be deducted includes the periodic deduction, determining a first time point in the associated time points, the first time point being the contract deduction time point of the earliest task to be deducted whose deduction type includes the periodic deduction in the associated time points;

[0021] Using the first time point as the time point at which the task to be deducted should be deducted;

[0022] In the case that the deduction type of the task to be deducted does not include the periodic deduction, determining a second time point, the second time point being the contractual deduction time point of the task to be deducted;

[0023] The second time point is used as the time point at which the task to be deducted should be deducted.

[0024] In some implementations, after obtaining the to-be-deducted information of the target user, the method further includes:

[0025] According to the number of transaction resource deduction contracts in the information to be deducted and the preset page size, the information to be deducted is divided into pages;

[0026] The determining of at least one transaction resource deduction contract in the to-be-deducted information includes:

[0027] At least one transaction resource deduction contract in the information to be deducted is determined according to the information to be deducted after the paging process.

[0028] In some implementations, after determining the actual deduction time point of the to-be-deducted task according to the time point at which the deduction should be made, the method further includes:

[0029] According to the information of the task to be deducted, an identifier of the task to be deducted is generated, and the identifier of the task to be deducted is associated with the task to be deducted, wherein the information of the task to be deducted includes the actual deduction time point;

[0030] Determine the existence status of the identifier of the task to be deducted in the deduction record;

[0031] The deducting transaction resources from the target user according to the actual deduction time point of the task to be deducted includes:

[0032] In the case that the identifier representing the to-be-deducted task in the existence state does not exist in the deduction record, transaction resources are deducted from the target user according to the actual deduction time point of the to-be-deducted task.

[0033] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a transaction resource deduction device, the device comprising:

[0034] An acquisition module, used for acquiring a to-be-deducted task of a target user and a time point at which deduction should be made corresponding to the to-be-deducted task, wherein the to-be-deducted task is a task for deducting transaction resources from the account of the target user at the time point at which deduction should be made, and the time point at which deduction should be made corresponding to the to-be-deducted task is earlier than the current time point or is the same as the current time point;

[0035] A time point determination module, used to determine the actual deduction time point of the task to be deducted according to the time point to be deducted;

[0036] The deduction module is used to deduct transaction resources from the target user's account according to the actual deduction time point of the task to be deducted.

[0037] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and the processor implements the transaction resource deduction method described in the first aspect when executing the computer program.

[0038] To achieve the above objectives, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the transaction resource deduction method described in the first aspect is implemented.

[0039] The transaction resource deduction method, device, electronic device and medium proposed in this application, in order to deduct transaction resources from the target user, first obtain the target user's to-be-deducted tasks and the deduction time point corresponding to the to-be-deducted tasks, the deduction time point should be earlier than or equal to the current time point, and then adjust the corresponding deduction time point, that is, determine the actual deduction time point according to the deduction time point, and deduct transaction resources from the target user's account at the actual deduction time point. In this way, the deduction time point can be flexibly changed, so that the actual deduction time point of the to-be-deducted task is no longer completely limited to its corresponding deduction time point, which can better adapt to the transaction resource storage habits of different users and improve the flexibility of the transaction resource deduction process. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a flowchart of the transaction resource deduction method provided in the embodiment of the present application;

[0041] Figure 2 It is a flow logic diagram of the actual deduction time point determination process provided by an embodiment of the present application;

[0042] Figure 3 It is a flowchart of the process of obtaining the tasks to be deducted and the time points at which the deductions should be made provided in the embodiment of the present application;

[0043] Figure 4 It is a flow logic diagram of the process of obtaining the tasks to be deducted and the time points at which the deductions should be made provided in the embodiment of the present application;

[0044] Figure 5 It is a structural diagram of a transaction resource deduction device provided in an embodiment of the present application;

[0045] Figure 6 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0047] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0049] First, some nouns involved in this application are analyzed:

[0050] Transaction resource deduction: In the financial industry, transaction resource deduction refers to the deduction of the corresponding resource amount from the user's available resources when processing a transaction to complete the transaction. The "transaction resources" here can refer to any assets that can be used for transactions, such as money, points, virtual currency, etc.

[0051] In the field of financial technology, transaction resource deductions are based on the effective contracts between users and service providers. These contracts usually stipulate specific deduction time points. For example, if a user signs an installment payment contract, the bank's deduction system will automatically deduct the corresponding amount from the user's fund account on a specific date every month. This method can ensure that the user's repayment behavior is carried out on time and maintain the normal performance of the contract.

[0052] However, with the rapid development of the industry, more and more users are participating in this type of financial services, resulting in a sharp increase in the number of deduction tasks that need to be processed every day. This growth has brought new challenges to the traditional transaction resource deduction method.

[0053] The transaction resource deduction operation in the related technology strictly follows the deduction time point specified in the user contract. For example, for an installment payment contract, the system will deduct money on a fixed date every month. The advantage of this method is that it can ensure that each transaction is carried out within the time agreed in the contract, maintaining the integrity and consistency of the contract.

[0054] As the number of user contracts increases, the system needs to handle a large number of deduction tasks every day. In order to ensure the efficient operation of the deduction system under a large number of tasks, the deduction operation is still strictly based on the deduction time point of the contract. However, the limitation of this method is that if the user fails to transfer sufficient transaction resources (such as funds) to his contracted resource account before the specified time, the deduction operation may fail.

[0055] This leads to two problems:

[0056] First, it reduces the success rate of user deductions. Failure of deductions due to insufficient balance in user accounts will directly affect their credit records and may be considered a breach of contract. In turn, these users may face penalties such as penalty interest, increasing their financial burden.

[0057] Second, it affects the overall deduction success rate of the deduction system. A large number of transaction resources that fail to be successfully deducted will reduce the overall daily deduction success rate of the system and affect the stability and efficiency of the system.

[0058] Therefore, the existing transaction resource deduction method lacks flexibility. The deduction system cannot adapt to the fluctuation of the user's fund status and cannot effectively handle those situations where the funds are not transferred to the contracted account within the specified time. As a result, the system shows a certain rigidity in the face of increasing deduction tasks and it is difficult to provide a more intelligent deduction solution.

[0059] Based on this, the embodiments of the present application provide a transaction resource deduction method, device, electronic device and medium, aiming to improve the flexibility of the transaction resource deduction process.

[0060] The transaction resource deduction method, device, electronic device and medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the transaction resource deduction method in the embodiments of the present application is described.

[0061] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0062] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0063] The transaction resource deduction method provided in the embodiment of the present application relates to the field of financial technology. The transaction resource deduction method provided in the embodiment of the present application can be applied to the terminal, can also be applied to the server side, and can also be software running in the terminal or the server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or it can be configured as a server cluster or distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the transaction resource deduction method, etc., but is not limited to the above forms.

[0064] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0065] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.

[0066] Figure 1 This is a flowchart of the transaction resource deduction method provided in the embodiment of the present application. Figure 1The transaction resource deduction method provided in the embodiment of the present application may include but is not limited to steps S110 to S130.

[0067] Step S110: Obtain the target user's pending deduction tasks and the deduction time points corresponding to the pending deduction tasks. The pending deduction tasks are tasks that deduct transaction resources from the target user's account at the deduction time points. The deduction time points corresponding to the pending deduction tasks are earlier than the current time point or are the same as the current time point.

[0068] The electronic device that executes the transaction resource deduction method can perform data scanning at regular intervals to obtain the target user's pending deduction tasks and the time points at which the pending deduction tasks should be deducted. The pending deduction tasks are tasks that the electronic device needs to deduct transaction resources from the target user's account at the time point at which they should be deducted. The target user's account is used to save or transfer transaction resources, and the time point at which they should be deducted is determined based on the transaction resource deduction contract signed by the target user. The time point at which they should be deducted corresponding to the pending deduction tasks is earlier than or equal to the current time point, that is, the electronic device can perform data scanning at regular intervals to obtain all pending deduction tasks that have exceeded or reached the time point at which they should be deducted.

[0069] For example, the target user signs an installment contract with repayments to be made at 6 a.m. on the 10th of each month. This contract is a transaction resource deduction contract. The electronic device performs data scanning at 6 a.m. on July 10 (July is within the repayment period agreed in the contract) (the electronic device can be set to perform data scanning at 6 a.m. every day) to scan out all pending deduction tasks of the target user that have exceeded the due deduction time point (overdue repayment) or have reached the due deduction time point. The electronic device scans the pending deduction tasks of the contract whose due deduction time point for the target user is 6 a.m. on July 10, and uses the pending deduction tasks as the execution target for subsequent transaction resource deductions, i.e., deduction processing.

[0070] Step S120: Determine the actual deduction time point of the task to be deducted according to the time point at which the deduction should be made.

[0071] After obtaining the target user's tasks to be deducted and the corresponding time points at which deductions should be made, the electronic device determines the actual deduction time point based on the time points at which deductions should be made, i.e., adjusts the corresponding deduction time point so that the actual deduction time point of the tasks to be deducted is no longer completely limited to the corresponding time points at which deductions should be made.

[0072] For example, the current time point is 6:00 a.m. on July 10, and the electronic device scans a pending deduction task of a contract of the target user whose due deduction time point is 6:00 a.m. on July 5. The electronic device determines that the current time point has exceeded the due deduction time point of the pending deduction task by 5×24 hours, that is, it has been overdue for 5 days. Based on the built-in judgment standard, the electronic device determines that 6:00 a.m. on July 10 is within the time range in which the due deduction time point of the pending deduction task can be delayed, and delays the due deduction time point to 10:00 a.m. on July 10, that is, determines that the actual deduction time point of the pending deduction task is 10:00 a.m. on July 10, so as to leave more storage time for the target user, improve the deduction success rate, and reduce the probability of the target user incurring more penalty interest.

[0073] Step S130: deducting transaction resources from the target user's account according to the actual deduction time point of the task to be deducted.

[0074] After determining the actual deduction time point, the electronic device deducts transaction resources from the target user's account at the actual deduction time point. The transaction resource deduction from the target user's account can be a deduction of installment payments from the fund account signed by the target user.

[0075] Through the above steps S110-S130, the electronic device first obtains the target user's to-be-deducted tasks and the time point at which the to-be-deducted tasks should be deducted. The time point at which the deduction should be made is earlier than or equal to the current time point, and then adjusts the corresponding deduction time point, that is, determines the actual deduction time point according to the time point at which the deduction should be made, and deducts the transaction resources from the target user at the actual deduction time point. In this way, the deduction time point can be flexibly changed, so that the actual deduction time point of the to-be-deducted tasks is no longer completely limited to the corresponding time point at which the deduction should be made, which can better adapt to the transaction resource storage habits of different users and improve the flexibility of the transaction resource deduction process.

[0076] In some implementations, determining the actual deduction time point of the task to be deducted based on the time point at which deduction should be made may include:

[0077] Determine the time difference between the time point to be deducted and the current time point;

[0078] The actual deduction time point is determined based on the time point difference.

[0079] Figure 2 This is a flow chart of the actual deduction time point determination process provided by the embodiment of the present application, please refer to Figure 2, the actual deduction time point of the task to be deducted can be determined based on the time difference between the time point to be deducted and the current time point (i.e., the overdue duration). In this way, the electronic device can flexibly adjust the time point to be deducted of the task to be deducted according to the time difference between the time point to be deducted and the current time point, thereby improving the flexibility of the transaction resource deduction process.

[0080] For example, the current time point is 6:00 a.m. on July 10, and the electronic device scans a pending deduction task of a contract of the target user whose deduction time point is 6:00 a.m. on July 5. The electronic device determines that the time difference between the deduction time point and the current time point is 5×24 hours, that is, the overdue period is 5 days. Based on the built-in judgment standard, the electronic device determines that 5×24 hours is within the overdue period range for which the deduction time point can be delayed, and delays the deduction time point to 10:00 a.m. on July 10, that is, the actual deduction time point of the pending deduction task is determined to be 10:00 a.m. on July 10.

[0081] In some implementations, determining the actual deduction time point based on the time difference may include:

[0082] When the time difference is greater than or equal to the first preset threshold and less than or equal to the second preset threshold, the corresponding deduction time point is delayed;

[0083] The delayed deduction time point is determined as the actual deduction time point.

[0084] The first preset threshold and the second preset threshold may be built into the electronic device. When the above time difference is greater than or equal to the first preset threshold and less than or equal to the second preset threshold, the electronic device may determine that the time point at which deduction should be made for the task to be deducted may be delayed, and the delayed time point at which deduction should be made may be used as the actual deduction time point for the task to be deducted. When the above time difference is less than the first preset threshold or greater than the second preset threshold, the electronic device may determine that the time point at which deduction should be made for the task to be deducted may not be delayed, and the actual deduction time for the task to be deducted may be the time at which deduction should be made for the task to be deducted.

[0085] In this way, the electronic device can delay the time point when the deduction is due for the task to be deducted that meets the delay conditions, so as to leave the target user with more time to transfer transaction resources, improve the deduction success rate, and reduce the probability of the target user incurring more punitive transaction resource deductions (such as overdue penalty interest).

[0086] Exemplarily, the first preset threshold is 3×24 hours (3 days), and the second preset threshold is 10×24 hours (10 days). When the time difference between the time point when the deduction should be made for the task to be deducted and the current time point (i.e., the overdue duration of the task to be deducted) is 5 days - in the range of 3 days (including 3 days) to 10 days (including 5 days), the electronic device can determine that the task to be deducted meets the conditions for delayed deduction, and the electronic device will delay the time point when the deduction should be made for the task to be deducted (6:00 a.m. on July 10) to 10:00 a.m. on July 10.

[0087] Those skilled in the art will appreciate that the specific delay duration of the electronic device for delaying the time point at which the deduction should be made can be adaptively set according to the deduction channel (such as the target user's financial account, or a third-party payment platform to which the target user has bound the financial account), and the specific delay duration for different channels may be different.

[0088] Figure 3 This is a flowchart of the process of obtaining the tasks to be deducted and the time point at which the deduction should be made provided in the embodiment of the present application. Figure 3 In some implementations, obtaining the target user's to-be-deducted tasks and the deduction time points corresponding to the to-be-deducted tasks may include:

[0089] Step S111: Obtain the target user's information to be deducted;

[0090] Step S112: determining at least one transaction resource deduction contract in the to-be-deducted information, each transaction resource deduction contract including at least one period of to-be-deducted tasks;

[0091] Step S113: acquiring at least one task to be deducted and a contract deduction time point corresponding to each task to be deducted according to each transaction resource deduction contract;

[0092] Step S114: For each task to be deducted, determine the time point at which the task to be deducted should be deducted according to the deduction type and the associated time point of the task to be deducted, wherein the associated time point is the contract deduction time point of the task to be deducted included in the transaction resource deduction contract corresponding to the task to be deducted, and the deduction type includes at least one of regular deduction and additional deduction.

[0093] Figure 4 This is a flow logic diagram of the process of obtaining the tasks to be deducted and the time point at which the deduction should be made provided in the embodiment of the present application. Please refer to Figure 3-Figure 4 The target customer may have more than one task to be deducted. Therefore, when determining the task to be deducted and the corresponding time point when the deduction should be made, the target user's information to be deducted is first obtained. The information to be deducted includes all the target customer's tasks to be deducted and the corresponding time points when the deduction should be made.

[0094] Specifically, the information to be deducted includes at least one transaction resource deduction contract signed by the target user, and each transaction resource deduction contract includes at least one period of task to be deducted. Therefore, after the electronic device obtains the information to be deducted of the target user, it first determines the transaction resource deduction contract included in the information to be deducted, and then determines the tasks to be deducted included in each transaction resource deduction contract based on each transaction resource deduction contract, so as to obtain all the tasks to be deducted of the target user, as well as the contract deduction time point of each task to be deducted. The contract deduction time point is the deduction time point agreed with the target user in the transaction resource deduction contract.

[0095] After all tasks to be deducted and the corresponding contract deduction time points are determined, the electronic device determines the associated time points of each task to be deducted, which are the contract deduction time points of all tasks to be deducted included in the corresponding transaction resource deduction contract to which the task to be deducted belongs, that is, the number of associated time points of each task to be deducted is consistent with the number of tasks to be deducted included in the transaction resource deduction contract corresponding to the task to be deducted.

[0096] After determining the associated time point for completing each task to be deducted, the electronic device determines the time point at which each task to be deducted should be deducted in combination with the deduction type of each task to be deducted, and completes the acquisition of the time point at which each task to be deducted should be deducted. The deduction type can be a regular deduction, an additional deduction, or a combination of a regular deduction and an additional deduction. Regular deductions are resource deductions with corresponding periods determined according to the transaction resource deduction contract, such as the deduction of each period in an installment payment; additional deductions are non-regular deductions, which can be punitive transaction resource deductions generated after the task to be deducted is overdue, such as penalty interest.

[0097] In this way, the electronic device can accurately obtain the target user's tasks to be deducted, and reasonably determine the deduction time point for each task to be deducted based on the deduction type of each task to be deducted and the contract deduction time point of the task to be deducted included in the corresponding transaction resource deduction contract, so as to avoid confusion when determining the deduction time point.

[0098] Exemplarily, the target user's pending deduction information includes two contracts (transaction resource deduction contracts). Contract A includes three periods of pending deduction tasks, and the contract deduction time points of each pending deduction task are: Task A1 - 6:00 a.m. on May 10, Task A2 - 6:00 a.m. on June 10, Task A3 - 6:00 a.m. on July 10; Contract B also includes three periods of pending deduction tasks, namely: Task B1 - 6:00 a.m. on May 5, Task B2 - 6:00 a.m. on June 5, Task B3 - 6:00 a.m. on July 5.

[0099] After the electronic device obtains Contract A and Contract B through the target user's information on pending deductions, it obtains the three periods of pending deduction tasks and the corresponding contract deduction times through Contract A and Contract B, and determines the associated time point of each pending deduction task (such as the associated time point of Task A1 is the respective contract deduction time point of Task A1, Task A2 and Task A3), and then determines the deduction time point of each pending deduction task in combination with the deduction type of each pending deduction task.

[0100] In some implementations, determining the time point at which the task to be deducted should be deducted according to the deduction type of the task to be deducted and the associated time point of the task to be deducted may include:

[0101] In the case where the deduction type of the task to be deducted includes periodic deduction, a first time point is determined in the associated time points, the first time point being the earliest contract deduction time point of the task to be deducted whose deduction type includes periodic deduction in the associated time points;

[0102] The first time point is used as the time point to be deducted for the task to be deducted;

[0103] In the case that the deduction type of the task to be deducted does not include periodic deduction, determining a second time point, the second time point being the contractual deduction time point of the task to be deducted;

[0104] The second time point is used as the time point at which the task to be deducted should be deducted.

[0105] The electronic device determines the time to be deducted based on the deduction type of the task to be deducted and the associated time point. If the deduction type of the task to be deducted includes periodic deduction, the time point to be deducted for the task to be deducted needs to be determined from the associated time points. The contract deduction time point of the earliest task to be deducted whose deduction type includes periodic deduction is determined in the associated time points as the first time point, and the first time point is determined as the time to be deducted for the task to be deducted.

[0106] For example, Task A3 needs to deduct the amount of the July installment payment, that is, the deduction type of Task A3 is periodic deduction. If Task A2 needs to deduct the amount of the June installment payment, and Task A1 needs to deduct the amount of the May installment payment, since the current time point is 6:00 a.m. on July 10, Tasks A1, A2, and A3 are all pending deduction tasks that have reached the contract deduction time or have exceeded the contract deduction time (overdue), so the deduction time of Task A3 should be the contract deduction time of Task A1 (that is, the earliest pending deduction task whose deduction type includes periodic deduction in Contract A), which is 6:00 a.m. on May 10. If you need to calculate the time difference between the deduction time of Task A3 and the current time point, you should use 6:00 a.m. on May 10 for calculation.

[0107] If the deduction type of the task to be deducted does not include periodic deduction, the deduction time point for the task to be deducted is the second time point, that is, the contractual deduction time point of the task to be deducted itself.

[0108] For example, Task B3 needs to deduct the penalty interest generated by the overdue Task B1 and Task B2, excluding regular deductions. Therefore, the time point for deduction of Task B3 is its own contractual deduction time point - 6:00 a.m. on July 5. If you need to calculate the time difference between the time for deduction of Task B3 and the current time point, you should use 6:00 a.m. on July 5 for calculation.

[0109] In some implementations, after obtaining the target user's information to be deducted, the method may further include:

[0110] The information to be deducted is divided into pages according to the number of transaction resource deduction contracts in the information to be deducted and the preset page size;

[0111] Determining at least one transaction resource deduction contract in the to-be-deducted information includes:

[0112] At least one transaction resource deduction contract in the information to be deducted is determined according to the information to be deducted after the paging process.

[0113] In order to ensure the stability of the electronic device in the process of reading the target user's information to be deducted, after the electronic device obtains the information to be deducted, it can first page the information to be deducted, then read each page of the deduction information in pages, determine the transaction resource deduction contract in the information to be deducted, and determine the task to be deducted.

[0114] The paging processing of the data to be deducted can be performed based on the number of transaction resource deduction contracts in the deduction information and the preset page size (i.e., the preset amount of information data per page). In this way, by reading the target user's information to be deducted by paging, even if an error or system failure occurs during the reading process, it is only necessary to retry reading the data of the current page without rereading all the data, thereby improving the fault tolerance and stability of the reading process.

[0115] For example, the number of transaction resource deduction contracts in the to-be-deducted information may be represented by the sorting identification value (such as contract ID) of the transaction resource contract with the largest sorting identification value in the to-be-deducted information, and the paging processing of the to-be-deducted information may be performed based on the following formula:

[0116] Total Page=(Max Loan ID-1) / (Page Size+1)

[0117] Among them, Total Page is the number of pages of the information to be deducted after paging processing, Max Loan ID is the sorting identification value of the transaction resource contract with the largest sorting identification value in the information to be deducted, and Page Size is the preset page size.

[0118] In some implementations, after determining the actual deduction time point of the task to be deducted according to the time point at which the task should be deducted, the method further includes:

[0119] Generate an identifier of the task to be deducted according to the information of the task to be deducted, and associate the identifier of the task to be deducted with the task to be deducted, wherein the information of the task to be deducted includes an actual deduction time point;

[0120] Determine the existence status of the identification of the pending deduction task in the deduction record;

[0121] Deduct transaction resources from target users based on the actual deduction time of the task to be deducted, including:

[0122] In the case that the identifier representing the task to be deducted does not exist in the deduction record, the transaction resources are deducted from the target user according to the actual deduction time point of the task to be deducted.

[0123] In the process of electronic devices executing transaction resource deductions, the idempotence of the data also needs to be guaranteed. Idempotence means that no matter how many times the same operation is performed, the result should be the same. Specifically, the electronic device first generates an identifier of the task to be deducted based on the information of the task to be deducted (which may include the actual deduction time of the task to be deducted, the deduction channel of the task to be deducted, and the type of transaction resource deduction contract corresponding to the task to be deducted, etc.), and associates the identifier of the task to be deducted with the task to be deducted. After completing a task to be deducted, the electronic device records the identifier of the task to be deducted in the deduction record.

[0124] Before the electronic device deducts transaction resources from the target user based on the actual deduction time point determined to be completed, it first searches the deduction record to see whether there is an identifier for the task to be deducted. If so, it indicates that the task to be deducted has been executed and repeated deductions cannot be made, so the deduction process stops. If not, it indicates that the task to be deducted has not been executed and the deduction process continues.

[0125] In this way, the electronic device can prevent repeated deductions of the same task to be deducted, improve the reliability of the system, simplify the error handling process, and ensure that erroneous deductions or repeated deductions will not occur during failures or retry operations.

[0126] Through the transaction resource deduction method provided in the above embodiment, the electronic device first obtains the target user's to-be-deducted tasks and the deduction time points corresponding to the to-be-deducted tasks, the deduction time points are earlier than or equal to the current time points, and then adjusts the corresponding deduction time points, that is, determines the actual deduction time points according to the deduction time points, and deducts transaction resources from the target user at the actual deduction time points. In this way, the deduction time points can be flexibly changed, so that the actual deduction time points of the to-be-deducted tasks are no longer completely limited to the corresponding deduction time points, which can better adapt to the transaction resource storage habits of different users and improve the flexibility of the transaction resource deduction process.

[0127] Figure 5 This is a schematic diagram of the structure of the transaction resource deduction device provided in the embodiment of the present application. Figure 5 The embodiment of the present application further provides a transaction resource deduction device 200, which can implement the above transaction resource deduction method, and the device 200 includes:

[0128] An acquisition module 210 is used to acquire the target user's to-be-deducted tasks and the deduction time points corresponding to the to-be-deducted tasks, where the deduction time points corresponding to the to-be-deducted tasks are earlier than the current time point or are the same as the current time point;

[0129] A time point determination module 220, for determining the actual deduction time point of the task to be deducted according to the time point to be deducted;

[0130] The deduction module 230 is used to deduct transaction resources from the target user's account according to the actual deduction time point of the task to be deducted.

[0131] In some implementations, the time point determination module 220 may include:

[0132] A time difference determination unit, used to determine the time difference between the time point to be deducted and the current time point;

[0133] The actual deduction time point determination unit is used to determine the actual deduction time point according to the time point difference.

[0134] In some implementations, the actual deduction time point determination unit may include:

[0135] A delay subunit, used to delay the corresponding deduction time point when the time difference is greater than or equal to a first preset threshold and less than or equal to a second preset threshold;

[0136] The determination subunit is used to determine the delayed deduction time point as the actual deduction time point.

[0137] In some implementations, the acquisition module 210 may include:

[0138] An acquisition unit, used for acquiring the to-be-deducted information of the target user;

[0139] A contract determination unit, used to determine at least one transaction resource deduction contract in the to-be-deducted information, each transaction resource deduction contract including at least one period of to-be-deducted tasks;

[0140] A task determination unit, used to obtain at least one task to be deducted and a contract deduction time point corresponding to each task to be deducted according to each transaction resource deduction contract;

[0141] A time point determination unit is used to determine the time point at which the task to be deducted should be deducted for each task to be deducted according to the deduction type of the task to be deducted and the associated time point of the task to be deducted, wherein the associated time point is the contract deduction time point of the task to be deducted included in the transaction resource deduction contract corresponding to the task to be deducted, and the deduction type includes at least one of regular deduction and additional deduction.

[0142] In some implementations, the time point determination unit may include:

[0143] A first time point determination subunit is used to determine a first time point in the associated time points when the deduction type of the task to be deducted includes periodic deduction, the first time point being the earliest contract deduction time point of the task to be deducted in the associated time points, the deduction type of which includes periodic deduction;

[0144] The first time point is used as the time point to be deducted for the task to be deducted;

[0145] A second time point determination subunit, for determining a second time point when the deduction type of the task to be deducted does not include periodic deduction, the second time point being the contractual deduction time point of the task to be deducted;

[0146] The second time point is used as the time point at which the task to be deducted should be deducted.

[0147] In some implementations, the acquisition module 210 may further include:

[0148] A paging unit, used for paging the information to be deducted according to the number of transaction resource deduction contracts in the information to be deducted and a preset page size;

[0149] The contract determination unit may include:

[0150] The contract determination subunit is used to determine at least one transaction resource deduction contract in the information to be deducted according to the information to be deducted after paging processing.

[0151] In some embodiments, the apparatus 200 may further include:

[0152] An identification generation module, used for generating an identification of the task to be deducted according to the information of the task to be deducted, and associating the identification of the task to be deducted with the task to be deducted, wherein the information of the task to be deducted includes an actual deduction time point;

[0153] An existence status determination module, used to determine the existence status of the identifier of the task to be deducted in the deduction record;

[0154] The deduction module 230 may include:

[0155] The deduction unit is used to deduct transaction resources from the target user according to the actual deduction time point of the task to be deducted when the identifier representing the task to be deducted does not exist in the deduction record.

[0156] The specific implementation of the transaction resource deduction device 200 is substantially the same as the specific implementation of the transaction resource deduction method described above, and will not be described in detail herein.

[0157] In order to deduct transaction resources from the target user, the device 200 first obtains the target user's to-be-deducted tasks and the time point at which the to-be-deducted tasks should be deducted. The time point at which the deduction should be made is earlier than or equal to the current time point, and then adjusts the corresponding deduction time point, that is, determines the actual deduction time point according to the time point at which the deduction should be made, and deducts transaction resources from the target user's account at the actual deduction time point. In this way, the deduction time point can be flexibly changed, so that the actual deduction time point of the to-be-deducted tasks is no longer completely limited to the corresponding time point at which the deduction should be made, and can better adapt to the transaction resource storage habits of different users, thereby improving the flexibility of the transaction resource deduction process.

[0158] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above transaction resource deduction method when executing the computer program. The electronic device can be any intelligent terminal including a desktop computer, a tablet computer, a mobile phone, and a car computer.

[0159] See also Figure 6 , Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application, wherein the electronic device includes:

[0160] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.

[0161] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the transaction resource deduction method of the embodiment of this application;

[0162] Input / output interface 903, used to implement information input and output;

[0163] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);

[0164] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0165] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0166] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned transaction resource deduction method is implemented.

[0167] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0168] The transaction resource deduction method, device, electronic device and medium provided in the embodiment of the present application, in order to deduct transaction resources from the target user, first obtain the target user's to-be-deducted tasks and the deduction time point corresponding to the to-be-deducted tasks, the deduction time point should be earlier than or equal to the current time point, and then adjust the corresponding deduction time point, that is, determine the actual deduction time point according to the deduction time point, and deduct transaction resources from the target user at the actual deduction time point. In this way, the deduction time point can be flexibly changed, so that the actual deduction time point of the to-be-deducted task is no longer completely limited to its corresponding deduction time point, which can better adapt to the transaction resource storage habits of different users and improve the flexibility of the transaction resource deduction process.

[0169] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0170] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0171] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0172] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0173] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0174] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0175] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0176] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0177] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0178] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0179] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A transaction resource deduction method, characterized in that: The method comprises: Acquire a target user's pending deduction task and a time point at which deduction should be made corresponding to the pending deduction task, wherein the pending deduction task is a task for deducting transaction resources from the target user's account at the time point at which deduction should be made, and the time point at which deduction should be made corresponding to the pending deduction task is earlier than the current time point or is the same as the current time point; Determine the actual deduction time point of the task to be deducted according to the time point at which the deduction should be made; Transaction resources are deducted from the target user's account according to the actual deduction time point of the task to be deducted.

2. The method according to claim 1, characterized in that Determining the actual deduction time point of the task to be deducted according to the time point at which the deduction should be made includes: Determine the time difference between the time point to be deducted and the current time point; The actual deduction time point is determined according to the time point difference.

3. The method according to claim 2, characterized in that Determining the actual deduction time point according to the time difference includes: When the time difference is greater than or equal to a first preset threshold and less than or equal to a second preset threshold, delaying the time point at which the deduction should be made; The delayed time point at which deduction should be made is determined as the actual time point at which deduction should be made.

4. The method according to claim 1, characterized in that The obtaining of the target user's to-be-deducted tasks and the deduction time points corresponding to the to-be-deducted tasks includes: Obtaining the to-be-deducted information of the target user; Determine at least one transaction resource deduction contract in the to-be-deducted information, each of the transaction resource deduction contracts including at least one period of the to-be-deducted tasks; According to each of the transaction resource deduction contracts, at least one of the tasks to be deducted and the contract deduction time point corresponding to each of the tasks to be deducted are obtained; For each of the tasks to be deducted, the deduction time point for the task to be deducted is determined according to the deduction type of the task to be deducted and the associated time point of the task to be deducted, wherein the associated time point is the contract deduction time point of the task to be deducted included in the transaction resource deduction contract corresponding to the task to be deducted, and the deduction type includes at least one of regular deduction and additional deduction.

5. The method according to claim 4, characterized in that The step of determining the time point at which the task to be deducted should be deducted according to the deduction type of the task to be deducted and the associated time point of the task to be deducted includes: In the case where the deduction type of the task to be deducted includes the periodic deduction, determining a first time point in the associated time points, the first time point being the contract deduction time point of the earliest task to be deducted whose deduction type includes the periodic deduction in the associated time points; Using the first time point as the time point at which the task to be deducted should be deducted; In the case that the deduction type of the task to be deducted does not include the periodic deduction, determining a second time point, the second time point being the contractual deduction time point of the task to be deducted; The second time point is used as the time point at which the task to be deducted should be deducted.

6. The method according to claim 4, characterized in that: After obtaining the to-be-deducted information of the target user, the method further includes: According to the number of transaction resource deduction contracts in the information to be deducted and the preset page size, the information to be deducted is divided into pages; The determining of at least one transaction resource deduction contract in the to-be-deducted information includes: At least one transaction resource deduction contract in the information to be deducted is determined according to the information to be deducted after the paging process.

7. The method according to claim 1, characterized in that: After determining the actual deduction time point of the task to be deducted according to the time point to be deducted, the method further includes: According to the information of the task to be deducted, an identifier of the task to be deducted is generated, and the identifier of the task to be deducted is associated with the task to be deducted, wherein the information of the task to be deducted includes the actual deduction time point; Determine the existence status of the identifier of the task to be deducted in the deduction record; The deducting transaction resources from the target user according to the actual deduction time point of the task to be deducted includes: In the case that the identifier representing the to-be-deducted task in the existence state does not exist in the deduction record, transaction resources are deducted from the target user according to the actual deduction time point of the to-be-deducted task.

8. A transaction resource deduction device, characterized in that: The device comprises: An acquisition module, used for acquiring a to-be-deducted task of a target user and a time point at which deduction should be made corresponding to the to-be-deducted task, wherein the to-be-deducted task is a task for deducting transaction resources from the account of the target user at the time point at which deduction should be made, and the time point at which deduction should be made corresponding to the to-be-deducted task is earlier than the current time point or is the same as the current time point; A time point determination module, used to determine the actual deduction time point of the task to be deducted according to the time point to be deducted; The deduction module is used to deduct transaction resources from the target user's account according to the actual deduction time point of the task to be deducted.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the transaction resource deduction method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the transaction resource deduction method according to any one of claims 1 to 7 is implemented.