CN111178899B - Resource processing method and device and transaction processing method and device - Google Patents

Resource processing method and device and transaction processing method and device Download PDF

Info

Publication number
CN111178899B
CN111178899B CN202010276993.0A CN202010276993A CN111178899B CN 111178899 B CN111178899 B CN 111178899B CN 202010276993 A CN202010276993 A CN 202010276993A CN 111178899 B CN111178899 B CN 111178899B
Authority
CN
China
Prior art keywords
payment
order
task
target
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010276993.0A
Other languages
Chinese (zh)
Other versions
CN111178899A (en
Inventor
施春艳
王秀玉
池晨
吴丹丹
石岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010276993.0A priority Critical patent/CN111178899B/en
Publication of CN111178899A publication Critical patent/CN111178899A/en
Application granted granted Critical
Publication of CN111178899B publication Critical patent/CN111178899B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions

Abstract

The present specification provides a resource processing method and apparatus, and a transaction processing method and apparatus, wherein the resource processing method includes: acquiring an identity of a service providing object; querying the staging tasks participated by the service providing objects based on the identity; reading a resource link of a target staging task of which the task state is an execution state in the queried staging tasks; executing and processing the resource transfer tasks which are not executed in the target staging tasks based on the node execution sequence in the resource link; and updating the task state of the target staging task according to the execution processing result, and sending task execution information to the resource roll-out object participating in the target staging task.

Description

Resource processing method and device and transaction processing method and device
Technical Field
The present disclosure relates to the field of resource processing technologies, and in particular, to a resource processing method and apparatus, and a transaction processing method and apparatus.
Background
In the process of executing processing for a service to be processed, resources consumed in the executing processing process are balanced resources relative to a resource transfer-out object, and in some special scenes, the situation of excessive resource consumption may occur, and at this time, available resources in an account space of the resource transfer-out object are not enough to execute processing for the service to be processed in the scene, in order to avoid the situation, an intermediate resource object may provide partial resources for the resource transfer-out object to use, and when the resource transfer-out object completes the service to be processed in the scene, the partial resources may be replaced within an appointed time; however, in the above scenario and other scenarios, a resource transfer object receiving the resource may occur, and after the resource is obtained, a situation that the service related to the service is not provided occurs, and a certain loss is brought to the intermediate resource object or the resource transfer object at this time, so an effective solution is needed to solve the problem.
Disclosure of Invention
In view of this, the embodiments of the present specification provide a resource processing method. The present specification also relates to a resource processing apparatus, a transaction processing method, a transaction processing apparatus, two computing devices, and two computer readable storage media, so as to solve the technical defects in the prior art.
According to a first aspect of embodiments of the present specification, there is provided a resource processing method, including:
acquiring an identity of a service providing object;
querying the staging tasks participated by the service providing objects based on the identity;
reading a resource link of a target staging task of which the task state is an execution state in the queried staging tasks;
executing and processing the resource transfer tasks which are not executed in the target staging tasks based on the node execution sequence in the resource link;
and updating the task state of the target staging task according to the execution processing result, and sending task execution information to the resource roll-out object participating in the target staging task.
Optionally, the performing, based on the node execution sequence in the resource link, the resource transfer task that is not performed in the target staging task, includes:
under the condition that a termination node of the resource link corresponds to a resource transfer-in object, reading a first resource transfer-out task which is not executed between the target staging task and the resource transfer-in object and a first resource transfer-in task which is not executed between the target staging task and the resource transfer-out object;
executing the first resource roll-out task;
executing the first resource transferring task; and the first resource transferring-out task and the first resource transferring-in task have a corresponding relation.
Optionally, after the step of executing the resource transfer task that is not executed in the target staging task based on the node execution sequence in the resource link is executed, and before the step of updating the task state of the target staging task according to the execution processing result and sending task execution information to the resource transfer object participating in the target staging task is executed, the method further includes:
sending a first processing result for executing the first resource roll-out task to the resource roll-in object;
receiving a processing instruction returned by the resource transfer-in object aiming at the first processing result; and the resource transfer-in object executes the resource transfer-in task to be executed corresponding to the first resource transfer-out task according to the first processing result, and generates the processing instruction according to the execution processing result.
Optionally, the updating the task state of the target staging task according to the execution processing result, and sending task execution information to the resource roll-out object participating in the target staging task, includes:
updating the task state of the target staging task according to the processing instruction and a second processing result of executing the first resource transfer task;
and sending the task execution information to the resource roll-out object according to the updating result.
Optionally, the executing, based on the node execution sequence in the resource link, the resource transfer task that is not executed in the target staging task is executed, and the executing includes:
under the condition that a termination node of the resource link corresponds to the service providing object, reading a second resource transferring-out task which is not executed between the target staging task and the service providing object and a second resource transferring-in task which is not executed between the target staging task and the resource transferring-out object;
executing the second resource transferring task;
executing the second resource transferring task; and the second resource transferring-out task and the second resource transferring-in task have a corresponding relation.
Optionally, after the step of executing, processing, performed on the resource transfer task that is not executed in the target staging task based on the node execution sequence in the resource link is executed, the method further includes:
under the condition that the resource transfer-out object does not perform execution processing on the resource transfer-out task to be executed of the target staging task, reading available resources in an account space of the resource transfer-out object;
and inquiring a resource transfer-out value corresponding to the resource transfer-out task to be executed, and increasing execution resources corresponding to the resource transfer-out value on the available resources based on an execution processing result.
Optionally, the reading of the resource link of the target staging task whose task state is the execution state in the queried staging task includes:
forming a task set to be selected according to the inquired staging tasks;
identifying the task state of each staging task contained in the task set to be selected;
selecting a staging task with the task state as the execution state in the task set to be selected according to the identification result, and taking the staging task as the target staging task;
reading the resource link of the target staging task.
Optionally, the updating the task state of the target staging task according to the execution processing result, and sending task execution information to the resource roll-out object participating in the target staging task, includes:
updating the task state of the target staging task according to the execution processing result, and generating task execution information according to the updating result;
determining a resource transfer account of the resource transfer-out object based on the object identifier of the resource transfer-out object recorded in the target staging task;
and sending the task execution information to the resource transfer account.
According to a second aspect of embodiments herein, there is provided a resource processing apparatus including:
the acquisition module is configured to acquire the identity of the service providing object;
the query module is configured to query the staging tasks participated in by the service providing objects based on the identity;
the reading module is configured to read a resource link of a target staging task of which the task state is an execution state in the queried staging tasks;
the processing module is configured to execute and process the resource transfer tasks which are not executed in the target staging tasks based on the node execution sequence in the resource link;
and the sending module is configured to update the task state of the target staging task according to the execution processing result and send task execution information to the resource roll-out object participating in the target staging task.
According to a third aspect of embodiments herein, there is provided a transaction processing method comprising:
acquiring an identity of a service provider;
inquiring a staging payment order participated by the service provider based on the identity;
reading a payment link of a target staging payment order of which the order state is an execution state in the inquired staging payment order;
based on the node execution sequence in the payment link, performing cancellation processing on unfinished payment tasks in the target staged payment order;
and adjusting the order state of the target staged payment order according to the offset processing result, and sending order offset information to the payers participating in the target staged payment order.
Optionally, the processing of canceling an unfinished payment task in the target installment payment order based on the execution sequence of the nodes in the payment link includes:
reading a first set of outstanding payment tasks with the transaction agent and a second set of outstanding payment tasks with the payer in the target installment payment order with a terminating payment node of the payment link corresponding to a transaction agent;
carrying out cancellation processing on the payment tasks in the first task set;
carrying out cancellation processing on the payment tasks in the second task set; wherein the payment tasks in the first task set and the payment tasks in the second task set have a corresponding relationship.
Optionally, after the step of performing an offset processing on the unfinished payment task in the target installment payment order based on the node execution sequence in the payment link is performed, and before the step of adjusting the order state of the target installment payment order according to the offset processing result and sending order offset information to the payer participating in the target installment payment order is performed, the method further includes:
sending a first processing result of the cancellation processing for the payment tasks in the first task set to the transaction agency;
receiving a processing instruction returned by the transaction agency aiming at the first processing result; and the transaction agency mechanism carries out cancellation processing on payment tasks to be completed corresponding to the payment tasks in the first task set according to the first processing result, and generates the processing instruction according to the cancellation processing result.
Optionally, the adjusting the order state of the target installment payment order according to the reimbursement processing result, and sending order reimbursement information to the payer participating in the target installment payment order, includes:
according to the processing instruction and a second processing result of the offset processing aiming at the payment tasks in the second task set, adjusting the order state of the target staged payment order;
and sending the order cancellation information to the payer according to the adjustment result.
Optionally, the processing of canceling the unfinished payment task in the target installment payment order based on the node execution sequence in the payment link includes:
reading a third set of tasks consisting of unfinished payment tasks with the service provider and a fourth set of tasks consisting of unfinished payment tasks with the payer in the target installment order if a terminating payment node of the payment link corresponds to the service provider;
carrying out cancellation processing on the payment tasks in the third task set;
carrying out cancellation processing on the payment tasks in the fourth task set; and the payment tasks in the third task set and the payment tasks in the fourth task set have a corresponding relation.
Optionally, after the executing step of canceling the unfinished payment task in the target installment payment order is executed based on the node execution sequence in the payment link, the method further includes:
reading an available amount in a payment account of the payer under the condition that the payer does not perform payment processing on a task to be paid of the target installment payment order;
and inquiring a payment value corresponding to the task to be paid, and increasing a payment amount corresponding to the payment value on the available amount based on the offset processing result.
Optionally, the reading a payment link of a target installment payment order of which the order status is an execution status in the inquired installment payment order includes:
forming an order set to be selected according to the inquired installments payment orders;
identifying the order state of each staged payment order contained in the order set to be selected;
selecting a staging payment order with the order state being the execution state from the order set to be selected according to the identification result, and using the staging payment order as the target staging payment order;
reading the payment link of the target installment payment order.
Optionally, before the step of obtaining the identity of the service provider is executed, the method further includes:
detecting whether the service provider triggers a service termination condition;
if yes, executing the step of acquiring the identity of the service provider;
correspondingly, after the step of obtaining the identity of the service provider is executed, the method further includes:
and determining a service account of the service provider according to the identity, and closing the payment service of the service account.
Optionally, the adjusting the order state of the target installment payment order according to the reimbursement processing result, and sending order reimbursement information to the payer participating in the target installment payment order, includes:
adjusting the order state of the target staged payment order according to the offset processing result, and generating order offset information according to the adjustment result;
determining a payment account of the payer based on the payer identification of the payer recorded in the target installment order;
and sending the order reimbursement information to the payment account.
According to a fourth aspect of embodiments herein, there is provided a transaction processing apparatus comprising:
the acquisition identification module is configured to acquire an identity of a service provider;
the order inquiry module is configured to inquire the staged payment order participated by the service provider based on the identity;
the reading link module is configured to read a payment link of a target staging payment order of which the order state is an execution state in the inquired staging payment order;
the offset processing module is configured to perform offset processing on unfinished payment tasks in the target staging payment order based on the node execution sequence in the payment link;
and the sending information module is configured to adjust the order state of the target installments payment order according to the offset processing result and send order offset information to the payers participating in the target installments payment order.
According to a fifth aspect of embodiments herein, there is provided a first computing device comprising:
a memory and a processor;
the memory to store computer-executable instructions, the processor to execute the computer-executable instructions:
acquiring an identity of a service providing object;
inquiring the staging tasks participated by the service providing objects based on the identity;
reading a resource link of a target staging task of which the task state is an execution state in the queried staging tasks;
executing and processing the resource transfer tasks which are not executed in the target staging tasks based on the node execution sequence in the resource link;
and updating the task state of the target staging task according to the execution processing result, and sending task execution information to the resource roll-out object participating in the target staging task.
According to a sixth aspect of embodiments of the present specification, there is provided a second computing device comprising:
a memory and a processor;
the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:
acquiring an identity of a service provider;
inquiring a staging payment order participated by the service provider based on the identity;
reading a payment link of a target staging payment order of which the order state is an execution state in the inquired staging payment order;
based on the node execution sequence in the payment link, carrying out cancellation processing on unfinished payment tasks in the target staging payment order;
and adjusting the order state of the target installment payment order according to the reimbursement processing result, and sending order reimbursement information to the payers participating in the target installment payment order.
According to a seventh aspect of embodiments herein, there is provided a first computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the resource processing method.
According to an eighth aspect of embodiments herein, there is provided a second computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the transaction processing method.
In the resource processing method provided in an embodiment of this specification, an identification of an acquired service providing object is used to query an installment task that the service providing object participates in, and a resource link of a target installment task whose task state is in an execution state is read, then an unexecuted resource transfer task in the target installment task is executed according to a node execution sequence in the resource link, and finally, a task state of the target installment task is updated according to an execution processing result, and task execution information is sent to the resource transfer-out object.
In the transaction processing method provided by an embodiment of the present specification, by using the obtained identity of the service provider, a staged payment order participated by the service provider is queried, a payment link of a target staged payment order with an order state being an execution state is read, then, according to a node execution sequence in the payment link, a reimbursement process is performed on an unfinished payment task in the target staged payment order, and finally, an order state of the target staged payment order is adjusted according to a reimbursement process result, and order reimbursement information is sent to the payer.
Drawings
FIG. 1 is a flow chart of a resource processing method provided in an embodiment of the present specification;
fig. 2 is a schematic structural diagram of a resource processing apparatus according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a transaction processing method provided in one embodiment of the present disclosure;
FIG. 4 is a process flow diagram of a transaction processing method applied in a payment scenario according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a transaction processing device according to an embodiment of the present disclosure;
FIG. 6 is a block diagram of a first computing device provided in an embodiment of the present description;
fig. 7 is a block diagram of a second computing device provided in an embodiment of the present specification.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present description. This description may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, as those skilled in the art will be able to make and use the present disclosure without departing from the spirit and scope of the present disclosure.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present description. The word "if," as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination," depending on the context.
In the present specification, a resource processing method is provided, and the present specification relates to a resource processing apparatus, a transaction processing method, a transaction processing apparatus, two kinds of computing devices, and two kinds of computer-readable storage media, which are described in detail one by one in the following embodiments.
Fig. 1 is a flowchart illustrating a resource processing method according to an embodiment of the present specification, which specifically includes the following steps:
step 102, obtaining the identity of the service providing object.
In practical application, in order to ensure that the resource transfer object performs resource processing on any resource transfer scene, the resource intermediate object provides an available resource limit for the resource transfer object through the resource transfer platform, and the resource transfer object only needs to pay back resources corresponding to the used resource limit according to appointed time. Based on this, after the resource roll-out object uses the available resource limit for the service to be processed provided by the service providing object, a staging task between the resource roll-out object and the service providing object is established, a resource link (the resource link records the resource repayment path of the resource roll-out object) and a plurality of resource transfer tasks are recorded in the staging task, the resource roll-out object processes the resource transfer task according to each task stage based on the resource link, and the staging task belongs to a staging processing mode relative to the resource intermediate object at this moment;
after the staging task is established, if the service providing object needs a large amount of resources to use, the ongoing staging task can be used to apply for the resources to the resource transfer object, at this time, if the resource transfer object agrees with the application of the service providing object, all the resources related to the staging task can be transferred to the account space of the service providing object, the uncompleted staging task between the resource transfer object and the service providing object changes the resource intermediate object into the staging task between the resource transfer object and the resource transfer object, and does not affect the resource transfer object, the resource transfer object still needs to be replaced on time, only the replaced object is changed from the service providing object to the resource transfer object, and the modified staging task belongs to the global processing mode relative to the resource intermediate object.
Furthermore, whether the staging task belongs to the staging processing mode or the global processing mode, if the service providing object does not provide the corresponding service to be processed for the resource roll-out object, great loss will be brought to the resource roll-out object and the resource roll-in object.
In order to avoid great loss to the resource export object and the resource export object under the circumstance, the resource processing method provided by this embodiment queries the staging tasks that the service providing objects participate in through the obtained identity of the service providing objects, reads the resource links of the target staging tasks whose task states are in the execution states, then executes and processes the resource transfer tasks that are not executed in the target staging tasks according to the execution sequence of the nodes in the resource links, finally updates the task states of the target staging tasks according to the execution processing results, and sends task execution information to the resource export object, so that the purpose of timely stopping loss is achieved, and by notifying the resource export object after updating the task states, the resource export object can be effectively reminded, and the experience effect of the resource export object is further improved.
It should be noted that, in the process of executing and processing the resource transfer task in the staging task, if the resource transfer task involves the cooperative implementation of multi-party participation, the resource processing method can be implemented on a distributed system, so as to further improve the processing efficiency and the processing consistency of the resource transfer task.
In specific implementation, the service providing object is a party for providing service to the resource transfer-out object, and the service provided can be a transaction service, a resource service or a payment service; correspondingly, the identity mark is a unique mark created by the service providing object on a platform corresponding to the resource intermediate object, and service information, attribute information and the like related to the service providing object can be inquired through the identity mark; the staging task is a task established by a resource roll-out object and a service providing object or a resource roll-in object, the staging task comprises a plurality of resource transfer tasks, each resource transfer task corresponds to one stage, the resource roll-out object needs to be cleared out according to the resource quota related to the resource transfer task corresponding to each stage, after the resource roll-out object is cleared out, a resource intermediate object for managing the staging task can increase the available resource quota of the account space of the resource roll-out object, and can transfer the resource roll-out from the resource roll-out object to the service providing object or the resource roll-in object related to the staging task, so that the execution completion of the staging task is promoted.
During the period that the staging task is not completed, under the condition that the service providing object does not provide the service, the loss stopping processing is needed at the moment, the resource transferring object is stopped to continue executing the processing aiming at the staging task, for example, the resource transferring object obtains the service at the service providing object through an available resource quota provided by the resource platform, the service corresponds to the resource value M, the resource transferring object restores the available resource quota through the staging execution mode, the staging task comprises 10 resource transferring tasks, each resource transferring task relates to a quota M/10, and each task stage needs the resource transferring object to restore the resource corresponding to the resource platform M/10;
during the period, the service providing object has a condition that the service cannot be performed due to resource fracture, and the resource platform cannot normally contact the service providing object, at this time, the resource platform performs loss stopping processing on resource transferring-out objects in all stages related to the service providing object in time, so as to avoid the problem of unclear resource transfer, and therefore, the identity of the service providing object needs to be obtained for a subsequent processing process.
And 104, inquiring the staging task participated by the service providing object based on the identity.
Specifically, on the basis of obtaining the identity of the service providing object, further, the staging tasks that the service providing object participates in are queried based on the identity, and at this time, the queried staging tasks include all the staging tasks that the service providing object participates in, and specifically include staging tasks whose task states are an execution state, an initial state, and a completion state;
based on this, in the process of querying the staging task in which the service providing object participates, the staging task having an association relationship with the service providing object is specifically determined by the identity, and the association relationship is embodied in that the identity is recorded in the staging task, or other identification information capable of embodying the service providing object in the identity is recorded in the staging task, so that the staging task in which the service providing object participates can be accurately queried.
According to the above embodiment, the identity of the service providing object on the resource platform is obtained, all the staging tasks provided by the service providing object are inquired through the identity, wherein all the staging tasks comprise unfinished staging tasks, the just-established staging tasks and finished staging tasks, and then the subsequent resource processing process is carried out according to all the inquired staging tasks.
And 106, reading the resource link of the target staging task of which the task state is the execution state in the queried staging task.
Specifically, on the basis of querying the staging tasks participated in by the service providing object based on the identity, further, selecting a target staging task with a task state in an execution state, reading a resource link of the target staging task, and performing a subsequent process of executing the target staging task; the resource link is a resource transfer path from a resource export object to a service providing object or a resource transfer object in the process of executing and processing the staging task.
Further, in the process of reading the resource link of the target staging task, the target staging task needs to be determined in the queried staging task, and then the resource link is read, in this embodiment, the process of specifically reading the resource link is as follows:
forming a task set to be selected according to the inquired staging tasks;
identifying the task state of each staging task contained in the task set to be selected;
selecting a staging task with a task state as the execution state from the task set to be selected according to the identification result, and taking the staging task as the target staging task;
and reading the resource link of the target staging task.
Specifically, a task set to be selected is formed according to queried staging tasks, the task set to be selected includes all the staging tasks in which the service providing object participates, task states of the staging tasks in the task set to be selected are identified, the staging tasks with task states being execution states are selected as the target staging tasks in the task set to be selected under the condition that the task states of the staging tasks are determined, and finally resource links of the target staging tasks are read.
In practical application, the task state specifically refers to a state where the staging task is currently located, and the task state includes an execution state used for indicating that the staging task is not completed in the process; the completion state is used for indicating that the staging task is executed and completed; the system also comprises an initial state used for indicating that the staging task is in a just-established state and is not executed; in addition, the task state may also include an end state or a stop state, which indicates a state in which the task in the staging state is terminated due to a special reason.
It should be noted that, when it is necessary to perform execution processing on a resource transfer task included in an staging task, it is described that the staging task cannot be normally performed at this time, only the staging task whose task state is in an execution state needs to be selected to perform subsequent processing, the staging task whose execution state is a completion state is already executed and completed, and no loss stopping processing needs to be performed, and the staging task whose execution state is an initial state is not yet provided with a service to a resource transfer object because the staging task is just established and completed, so that termination processing may be directly performed without causing excessive loss to the resource transfer object.
According to the above example, 100 participating all the staging tasks are inquired according to the identity of the service providing object to form a task set to be selected, the task state of 100 staging tasks is identified to determine that 1 staging task is in the initial state, 2 staging tasks are in the execution state, 97 staging tasks are in the completion state, at this time, 2 staging tasks in the execution state are determined as target staging tasks, and resource links of 2 target staging tasks are read for performing loss stopping processing on resource transfer tasks in the 2 staging tasks subsequently, so that excessive loss caused by transferring the resources related to the 2 staging tasks out of the object is avoided.
In summary, after the identity of the service providing object is determined, in order to stop loss of resources of all resource transferring objects related to the service providing object in time, the target staging task is determined by querying the task state of each staging task, and then the resource link of the target staging task is read to perform a subsequent execution processing process, so that the subsequent execution processing process is performed on a plurality of target staging tasks at the same time, and the resource processing efficiency is effectively improved.
And 108, executing and processing the resource transfer tasks which are not executed in the target staging tasks based on the node execution sequence in the resource link.
Specifically, on the basis of reading the resource link of the target staging task, further, the resource transfer task that is not executed in the target staging task is executed based on a node execution sequence in the resource link, where the node execution sequence in the resource link specifically refers to a reverse sequence of the resource transfer sequence, for example, when the resource link performs resource transfer, the resource transfer-out object is a resource intermediate object, and then the resource intermediate object is a service providing object, then the node execution sequence in this embodiment is the reverse of the resource transfer sequence;
based on this, as the target staging tasks are all the staging tasks with the task state being the execution state, the resource transfer tasks which are not executed in the target staging tasks need to be executed and processed, so that the purpose of stopping loss in time can be achieved; the unexecuted resource transfer task specifically refers to a subtask which does not perform resource transfer in the staging task, and at this time, the unexecuted resource transfer task needs to be executed, so that excessive loss caused by resource transfer again by the resource transfer-out object is avoided.
Furthermore, in the process of executing and processing the unexecuted resource transfer task in the target staging task, the mode to which the target staging task belongs needs to be identified, on one hand, under the condition that the mode to which the target staging task belongs is the staging processing mode, the unexecuted resource transfer task is executed and processed at the moment, and the processed tasks are respectively between the business providing object and the resource transferring object; in this embodiment, when the mode to which the target staging task belongs is the staging processing mode, the execution processing procedure is as follows:
under the condition that a termination node of the resource link corresponds to the service providing object, reading a second resource transferring-out task which is not executed between the target staging task and the service providing object and a second resource transferring-in task which is not executed between the target staging task and the resource transferring-out object;
executing the second resource transferring task;
executing the second resource transferring task; and the second resource transferring-out task and the second resource transferring-in task have a corresponding relation.
Specifically, under the condition that the target staging task belongs to the staging processing mode, it can be determined that the resource transfer objects related to the target staging task are respectively a service providing object and a resource transferring-out object; further determining that the termination node of the resource link corresponds to the service providing object, indicating that the account space of the resource transfer-out object is transferred to the account space of the service providing object in the process of normal resource transfer; and no matter what mode the target staging task belongs to, the intermediate resource object (the party for processing the resource transfer task) is involved, and the intermediate resource object is in the intermediate node in the resource link;
therefore, a second resource roll-out task which is not executed between the resource intermediate object and the service providing object and a second resource roll-in task which is not executed between the resource intermediate object and the resource roll-out object can be read through the target staging task, and the second resource roll-out task and the second resource roll-in task have a corresponding relation as the second resource roll-out task and the second resource roll-in task belong to the target staging task and indicate that the second resource roll-out task and the second resource roll-in task are established aiming at the service providing object, the resource intermediate object and the resource roll-out object;
further, when the target staging task reads the second resource transferring-out task and the second resource transferring-in task, the second resource transferring-out task and the second resource transferring-in task are executed and processed according to the node execution sequence of the resource link, wherein the specific sequence is that the second resource transferring-out task is executed and processed first, and then the second resource transferring-in task is executed and processed.
In the process of executing and processing the resource transfer task, the second resource transfer-out task is executed and processed preferentially, so that the resource processing behavior between the resource intermediate object and the service providing object can be cut off preferentially, even if the resource transfer-out object executes and processes according to the target staging task at the moment, the resource related to the execution and processing process can be prevented from being transferred to the service providing object, the purpose of stopping loss can be achieved in time, and the experience effect of the resource transfer-out object is further improved.
On the other hand, under the condition that the mode to which the target staging task belongs is a global processing mode, the execution processing is carried out aiming at the resource transfer task which is not executed at the moment, and the processed tasks are respectively between the resource transfer-in object and the resource transfer-out object; in this embodiment, when the mode to which the target staging task belongs is the global processing mode, the execution processing procedure is as follows:
under the condition that the termination node of the resource link corresponds to a resource transfer-in object, reading a first resource transfer-out task which is not executed between the target staging task and the resource transfer-in object and a first resource transfer-in task which is not executed between the target staging task and the resource transfer-out object;
executing the first resource transferring task;
executing the first resource transferring task; and the first resource transferring-out task and the first resource transferring-in task have a corresponding relation.
Specifically, under the condition that the target staging task belongs to the global processing mode, it may be determined that the resource transfer objects related to the target staging task are resource transfer-in objects and resource transfer-out objects, respectively, where the resource transfer-in objects are specifically parties providing resources to service providing objects, and since the service providing objects transfer the target staging task in which the resource transfer-out objects participate to the resource transfer-in objects, the mode to which the target staging task belongs is changed to the global processing mode; further determining that the termination node of the resource link corresponds to the resource transfer-in object, indicating that the account space of the resource transfer-out object is transferred to the account space of the resource transfer-in object in the process of normal resource transfer;
the first resource transferring-out task and the first resource transferring-out task belong to the target staging task, and the first resource transferring-out task and the first resource transferring-in task are established aiming at the resource transferring-in object and the resource intermediate object and the resource transferring-out object, so that the first resource transferring-out task and the first resource transferring-in task have a corresponding relation;
further, when the target staging task reads the first resource transferring-out task and the first resource transferring-in task, the first resource transferring-out task and the first resource transferring-in task are executed and processed according to the node execution sequence of the resource link, wherein the specific sequence is that the first resource transferring-out task is executed and processed first, and then the first resource transferring-in task is executed and processed.
In the process of executing and processing the resource transfer task, the first resource transfer-out task is executed and processed preferentially, so that the resource processing behavior between the resource intermediate object and the resource transfer-in object can be cut off preferentially, the purpose of stopping loss can be achieved effectively, and the experience effect of the resource transfer-out object is further improved.
According to the above example, under the condition that resource links of 2 target staging tasks participated by a service providing object are read, determining that a target staging task A belongs to a staging processing mode and a target staging task B belongs to a global processing mode according to termination nodes respectively corresponding to the 2 resource links; further determining that the resource transfer tasks which are not executed and processed in the target staging task A are 2 pairs, reading 2 unexecuted resource transfer-out tasks between the resource intermediate object and the service providing object and 2 unexecuted resource transfer-in tasks between the resource intermediate object and the resource transfer-out object in the target staging task A; meanwhile, determining that the number of the resource transfer tasks which are not executed and processed in the target staging task B is 1 pair, reading 1 unexecuted resource transfer-out task between the resource intermediate object and the resource transfer-in object and 1 unexecuted resource transfer-in task between the resource intermediate object and the resource transfer-out object in the target staging task B;
further, according to the resource link of the target staging task A, executing 2 resource transferring-out tasks, and then executing 2 resource transferring-in tasks; and meanwhile, executing 1 resource transfer-out task according to the resource link of the target staging task B, and then executing 1 resource transfer-in task, so that the purpose of stopping loss of the resource transfer-out object in time is achieved, and then the state of the subsequent target staging task is updated.
In practical application, because there are many staging tasks established with the service providing object, and the service providing object may only apply for resources from the resource transferring object by selecting part of the staging tasks from the plurality of staging tasks, at this time, the staging tasks that the service providing object participates in will include staging tasks belonging to the staging processing mode and staging tasks belonging to the global processing mode, and then if an event occurs that the service providing object escapes the resource processing, corresponding execution processing is performed on the staging tasks in different modes, so that the loss of the resource transferring object can be reduced.
In addition, if the execution processing efficiency for the resource transfer task is improved, the execution processing of the resource transfer-out task and the resource transfer-in task can be performed simultaneously, the execution processing process is synchronously realized, the execution processing efficiency for the resource transfer task can be improved, and meanwhile, the purpose of timely stopping loss for the resource transfer-out object and the resource transfer-in object is achieved.
Furthermore, in the case that the mode to which the target staging task belongs is the global processing mode, if the processing of the resource transfer task in the target staging task is completed, because the target staging task is transferred from the service providing object to the resource transferring object, and the resource transferring object provides the service providing object with the resource matching with the target staging task, and the service providing object has an evasion condition, there is also a great loss for the resource transferring object, in order to achieve the purpose of timely stopping the loss for the resource transferring object, the resource transferring object may be sent with the reminding information, in this embodiment, the specific implementation manner is as follows:
sending a first processing result for executing the first resource transferring-out task to the resource transferring-in object;
receiving a processing instruction returned by the resource transfer-in object aiming at the first processing result; and the resource transfer-in object executes the resource transfer-in task to be executed corresponding to the first resource transfer-out task according to the first processing result, and generates the processing instruction according to the execution processing result.
Specifically, after the execution processing of the resource transfer task is completed, a first processing result for performing the execution processing on the first resource roll-out task is sent to the resource roll-in object, at this time, the resource roll-in object is informed of the purpose of performing the execution processing on the first resource roll-out task, and is reminded of performing other related maintenance measures on the target staging task in time by the resource roll-in object, and when a processing instruction returned by the resource roll-in object for the first processing result is received, it is indicated that the resource roll-in object performs the execution processing on the resource roll-in task to be executed corresponding to the first resource roll-out task according to the first processing result at this time, where the resource roll-in task to be executed specifically refers to a resource transfer task between the resource roll-in object and the service providing object.
It should be noted that, the process of performing execution processing on the resource transfer target for the to-be-executed resource transfer task refers to performing recouping for applying for a resource or ending resource transfer on the service providing target in time, and there is a certain difference in the process of performing execution processing on the unexecuted resource transfer task.
According to the above example, after the execution processing is completed for 1 resource roll-out task and 1 resource roll-in task in the target staging task B, the processing result is sent to the resource roll-in object related to the target staging task B, the resource roll-in object is reminded to timely perform resource application compensation on the service providing object, and the resource roll-in object performs compensation processing on the resource roll-in task to be executed according to the reminding information and returns a processing instruction to the resource intermediate object.
By sending the processing result to the resource transfer-in object in time under the condition of completing the first resource transfer-in task and the first resource transfer-out task, the resource transfer-in object can be promoted to carry out compensation on the service providing object, the possibility of reducing the loss to be lower is realized, and the excessive loss of the resource transfer-in object is avoided.
In addition, after the resource transfer task that is not executed in the target staging task is executed, although the purpose of stopping loss in time is achieved at this time, the available resource provided by the resource intermediate object to the resource transfer-out object needs to be updated, in this embodiment, a specific implementation manner is as follows:
under the condition that the resource transfer-out object does not perform execution processing on the resource transfer-out task to be executed of the target staging task, reading available resources in an account space of the resource transfer-out object;
and inquiring a resource transfer-out value corresponding to the resource transfer-out task to be executed, and increasing execution resources corresponding to the resource transfer-out value on the available resources based on an execution processing result.
Specifically, under the condition that the resource transfer-out object does not perform execution processing on the resource transfer-out task to be executed of the target staging task, it is indicated that the resource transfer-out object does not perform repayment on available resources at the current stage at this time, in order to avoid blind resource transfer of the resource transfer-out object under the condition of unknown details, available resources in an account space of the resource transfer-out object are read, a resource transfer-out value corresponding to the resource transfer-out task to be executed is inquired, and finally, execution resources corresponding to the resource transfer-out value are added to the available resources based on the execution processing result.
The available resources are temporary resources provided by the resource intermediate object for the resource transfer-out object, the resources have limits, and the resource transfer-out object can be cleared up only according to appointed time.
In conclusion, the execution resources deducted from the resource transfer task after the execution processing are restored to the resource transfer-out object, and the experience effect of the resource transfer-out object is further improved.
And step 110, updating the task state of the target staging task according to the execution processing result, and sending task execution information to the resource roll-out object participating in the target staging task.
Specifically, on the basis of completing the execution processing of the unexecuted resource transfer task in the target staging task, further, at this time, the task state of the target staging task is updated according to the processing result, and task execution information is sent to the resource transfer-out object participating in the target staging task, so as to prompt the resource transfer-out object to execute the processing result of the target staging task, and the specific reason and the like in time.
The task state of the target staging task is updated, specifically, the target staging task is updated from an execution state to an end state or a termination state to remind the resource transfer-out object that subsequent execution processing may not be required for the unexecuted resource transfer task, and the task execution information specifically means execution processing completion information that reminds the resource transfer task of the resource transfer-out object, where the execution processing completion information may include an execution processing reason and related cautions.
In addition, if the subsequent service providing object recovers the authority of processing the target staging task, the related target staging task can be recovered to continue the execution processing, and the loss of the service providing object can also be reduced.
Further, when a processing instruction of the resource transfer-in object is received, this indicates that an execution processing reminder may be performed on the resource transfer-out object, in this embodiment, a specific implementation manner of updating the execution state of the target staging task and sending the task execution information is as follows:
updating the task state of the target staging task according to the processing instruction and a second processing result of executing the first resource transfer task;
and sending the task execution information to the resource roll-out object according to the updating result.
In practical application, when the target staging task belongs to a global processing mode, the target staging task needs to be updated after receiving the processing instruction, and finally the task execution information is sent to the resource roll-out object according to an update result.
Furthermore, in the process of sending the task execution information, it is only possible to send the task execution information by determining an account of a resource transfer-out object participating in the target staging task, and in this embodiment, a specific implementation manner is as follows:
updating the task state of the target staging task according to the execution processing result, and generating task execution information according to the updating result;
determining a resource transfer account of the resource transfer-out object based on the object identifier of the resource transfer-out object recorded in the target staging task;
and sending the task execution information to the resource transfer account.
In practical application, after the task state of the target staging task is updated based on the execution processing result, the task execution information is generated according to the update result, and at this time, a resource transfer account of the resource transfer-out object is determined according to the object identifier of the resource transfer-out object recorded in the target staging task; finally, the task execution information is sent to the resource transfer account; the resource transfer account is specifically a resource management account opened by the resource transfer-out object on the platform to which the resource intermediate object belongs, and is used for resource transfer.
According to the above example, after the resource transfer task in the target staging task a and the target staging task B is processed, the execution state of the target staging task a and the target staging task B is updated to the end state according to the execution processing result, the resource transfer account of the corresponding resource transfer-out object a is determined based on the target staging task a, the resource transfer account of the corresponding resource transfer-out object B is determined based on the target staging task B, the reminding information that the target staging task a is updated to the end state is sent to the resource transfer account of the resource transfer-out object a, and the reminding information that the target staging task B is updated to the end state is sent to the resource transfer account of the resource transfer-out object B.
In conclusion, by sending the task execution information to the resource transfer account of the resource transfer-out object, the execution state of the target staging task of the resource transfer-out object is timely reminded, the problem that the resource transfer-out object continues to perform resource transfer is avoided, and the experience effect of the resource transfer-out object is effectively improved.
In the resource processing method provided by this embodiment, the obtained identity of the service providing object is used to query the staging task in which the service providing object participates, and read the resource link of the target staging task whose task state is in an execution state, then the unexecuted resource transfer task in the target staging task is executed according to the node execution sequence in the resource link, and finally the task state of the target staging task is updated according to the execution processing result, and the task execution information is sent to the resource transfer object.
Corresponding to the above method embodiment, this specification further provides a resource processing apparatus embodiment, and fig. 2 shows a schematic structural diagram of a resource processing apparatus provided in an embodiment of this specification. As shown in fig. 2, the apparatus includes:
an obtaining module 202 configured to obtain an identity of a service providing object;
a query module 204 configured to query the staging tasks participated in by the service providing objects based on the identity;
a reading module 206, configured to read a resource link of a target staging task whose task state is an execution state in the queried staging task;
a processing module 208 configured to perform processing on resource transfer tasks that are not performed in the target staging task based on the node execution order in the resource link;
the sending module 210 is configured to update the task state of the target staging task according to the execution processing result, and send task execution information to the resource roll-out object participating in the target staging task.
In an alternative embodiment, the processing module 208 includes:
a first reading unit, configured to read, in the target staging task, a first resource roll-out task that is not executed with a resource roll-in object and a first resource roll-out task that is not executed with the resource roll-out object, in a case where a termination node of the resource link corresponds to the resource roll-in object;
a first processing unit configured to perform processing on the first resource roll-out task;
the second processing unit is configured to perform execution processing on the first resource transfer task; and the first resource transferring-out task and the first resource transferring-in task have a corresponding relation.
In an optional embodiment, the resource processing apparatus further includes:
a processing result sending module configured to send a first processing result for executing the first resource roll-out task to the resource roll-in object;
a processing instruction receiving module configured to receive a processing instruction returned by the resource transfer-in object for the first processing result; and the resource transfer-in object executes the resource transfer-in task to be executed corresponding to the first resource transfer-out task according to the first processing result, and generates the processing instruction according to the execution processing result.
In an optional embodiment, the sending module 210 includes:
the updating unit is configured to update the task state of the target staging task according to the processing instruction and a second processing result of executing the first resource transfer task;
a sending unit configured to send the task execution information to the resource roll-out object according to an update result.
In an alternative embodiment, the processing module 208 includes:
a second reading unit configured to read, in the target staging task, a second resource transfer-out task that is not executed with the service providing object and a second resource transfer-in task that is not executed with the resource transfer-out object, in a case where a termination node of the resource link corresponds to the service providing object;
a third processing unit configured to perform execution processing on the second resource roll-out task;
a fourth processing unit configured to perform execution processing on the second resource transfer task; and the second resource transferring-out task and the second resource transferring-in task have a corresponding relation.
In an optional embodiment, the resource processing apparatus further includes:
the available resource reading module is configured to read available resources in the account space of the resource roll-out object under the condition that the resource roll-out object does not perform execution processing on the resource roll-out task to be executed of the target staging task;
and the increasing module is configured to query a resource transfer-out value corresponding to the resource transfer-out task to be executed, and increase the execution resources corresponding to the resource transfer-out value on the available resources based on the execution processing result.
In an alternative embodiment, the reading module 206 includes:
the composition unit is configured to compose a task set to be selected according to the inquired staging tasks;
the identification unit is configured to identify the task state of each staging task contained in the task set to be selected;
the selecting unit is configured to select a staging task with a task state as the execution state in the task set to be selected according to the identification result, and the staging task is used as the target staging task;
a third reading unit configured to read the resource link of the target staging task.
In an optional embodiment, the sending module 210 includes:
the generating unit is configured to update the task state of the target staging task according to an execution processing result and generate the task execution information according to an update result;
a determining unit configured to determine a resource transfer account of the resource transfer-out object based on the object identifier of the resource transfer-out object recorded in the target staging task;
a sending information unit configured to send the task execution information to the resource transfer account.
The resource processing apparatus provided in this embodiment queries, through the obtained identity of the service providing object, an installment task in which the service providing object participates, reads a resource link of a target installment task whose task state is in an execution state, then executes, according to a node execution sequence in the resource link, a resource transfer task that is not executed in the target installment task, and finally updates a task state of the target installment task according to an execution processing result, and sends task execution information to the resource transfer object.
The above is a schematic scheme of a resource processing apparatus of this embodiment. It should be noted that the technical solution of the resource processing apparatus and the technical solution of the resource processing method belong to the same concept, and for details that are not described in detail in the technical solution of the resource processing apparatus, reference may be made to the description of the technical solution of the resource processing method.
Fig. 3 is a flowchart illustrating a transaction processing method according to an embodiment of the present disclosure, which includes the following steps:
step 302, obtain the identity of the service provider.
In practical application, in order to ensure that a payer can perform transaction processing on any transaction scene, a payment platform provides an available amount for the payer, after the payer uses the available amount, the payer only needs to pay funds corresponding to the used amount according to appointed time, based on the available amount, a staged payment order between the payer and the merchant is established after the payer uses the available amount for business service provided by the merchant, a payment link (the payment link records a fund repayment path of the payer) and a plurality of payment tasks are recorded in the staged payment order, the payer processes the payment tasks according to each task stage based on the payment link, and the staged payment order belongs to a staged mode relative to the payment platform;
after the installment payment order is established, if the merchant needs a large amount of funds to use, the transaction agency can apply for the funds by using the ongoing installment payment order, at this time, if the transaction agency agrees to the merchant's application, all the funds related to the installment payment order can be transferred to the account of the merchant, the unfinished installment order between the payer and the merchant is changed into the installment order between the transaction agency and the payer from the payment platform, and will not affect the payer, the payer still carries out repayment on time, only the object of the repayment is changed into the transaction agency from the merchant, at this time, the changed installment order belongs to the global mode relative to the payment platform.
Further, in both the staging mode and the global mode, if the service provider runs or the public opinion is serious, great loss will be brought to the transaction agency and the payer.
In order to avoid great loss to the transaction agency and the payer under the circumstance, the transaction processing method provided by this embodiment queries the installment payment order participated by the service provider by using the obtained identity of the service provider, reads the payment link of the target installment payment order with the order state being the execution state, then performs cancellation processing on the unfinished payment task in the target installment payment order according to the node execution sequence in the payment link, finally adjusts the order state of the target installment payment order according to the cancellation processing result, and sends the order cancellation information to the payer, so that when the service provider fails to normally provide service, in order to avoid excessive loss to the payer related to the target installment payment order, the unfinished payment task in the target installment order is performed with cancellation processing through the read payment link, the purpose of stopping loss in time is achieved, and the order cancellation information is sent to the payer after the cancellation processing, so that the payer can know the service state of the service provider in time, and play a role in reminding the payment party of experiencing and further improving the payment effect.
In specific implementation, the cancellation processing specifically refers to cancellation and elimination processing of the staged payment order which cannot be executed continuously, so that multiple parties involved in the staged payment order do not need to execute the staged payment; the service provider is specifically a party providing service to a payer, and may be a merchant or a transaction party, and correspondingly, the identity identifier is specifically a unique identifier created by the service provider on a payment platform, service information and attribute information and the like related to the service provider can be queried through the identity identifier, the installment payment order is a payment order established between a user and the merchant or a transaction agency, the installment payment order includes a plurality of payment tasks, each payment task corresponds to one payment stage, the payer needs to perform fund payment according to the payment task corresponding to each payment stage, after the payer is paid, the payment platform increases a quota corresponding to the fund on an available quota of the payer, and transfers the fund transferred by the payer to the merchant or the transaction agency structure related to the installment order, thereby promoting the completion of the installment payment order.
Further, before obtaining the identity of the service provider, the reimbursement processing can be performed for the payment task in the installments payment order only when the service provider fails to perform the service, in this embodiment, a process of specifically detecting the state of the service provider is as follows:
detecting whether the service provider triggers a service termination condition;
if yes, step 302 is executed, and correspondingly, after the step of obtaining the identity of the service provider is executed, the service account of the service provider can be determined according to the identity, and the payment service of the service account is closed.
Specifically, the service termination condition specifically refers to detecting whether the service provider has public sentiment or cannot normally execute the service condition, if so, it indicates that the service provider cannot provide corresponding service to the payer, and the payer acquires the service by paying corresponding funds, and the payment of the funds is completed by the available credit provided by the payment platform, so that a certain fund loss is brought to the payer;
further, in order to avoid this situation, the periodic payment order form participated by the service provider is processed to be offset, so as to achieve the purpose of stopping payment in time, so as to avoid causing more subsequent fund loss, and after the identity of the service provider is obtained, the service account of the service provider is determined according to the identity, and the payment service of the service account is closed.
For example, a video playing platform cannot continue to play video to a user due to the rupture of a fund chain, and the stakeholders of the platform lose money, at this time, a user who purchases a video member on the platform loses the service that the member should enjoy, most users are members who purchase the member by paying the available amount of the platform, and the user needs to pay back the available amount;
based on this, after the payment platform detects that the video playing platform has the condition, the payment platform acquires the identity of the video playing platform, and timely carries out reimbursement processing on the payment orders in stages for the users in the available amount of stage settlement, so that more fund losses of the users are avoided.
In conclusion, after the service termination condition triggered by the service provider is detected, the closing processing of the payment service is performed on the service account of the service provider in time, so that the loss of the payment platform can be effectively reduced, and meanwhile, the subsequent reimbursement processing of the payment task of the payer is facilitated.
Step 304, inquiring the staging payment order participated by the service provider based on the identity.
Specifically, on the basis of obtaining the identity corresponding to the service provider, the installment payment order in which the service provider participates is further queried based on the identity, at this time, the queried installment payment order includes all installment payment orders in which the service provider participates, and specifically includes installment payment orders whose order states are an execution state, an initial state, and a completion state. The installment payment order is an order which is constructed by a payer after paying for a certain commodity in a mode of selecting installment payment through a payment platform, and is an order which is constructed by the payer for paying by using available amount provided by the payment platform, wherein the available amount has a proportional corresponding relation with fund, the payer can purchase the commodity by using the amount as the fund, the amount is deducted from the initial amount in an account of the payer, and after the payer pays for the fund corresponding to the amount deducted from the payment platform, the amount is recovered and can be continuously used in the follow-up process;
based on this, in the process of querying the installment payment order form participated by the service provider, specifically, the installment payment order form having an association relationship with the service provider is determined through the identity, the association relationship is embodied in that the identity is recorded in the installment payment order form, or other identification information capable of embodying the service provider in the identity is recorded, so that the installment payment order form participated by the service provider can be accurately queried.
According to the above embodiment, after the identification of the video playing platform is obtained, all the staged payment orders related to the video playing platform are inquired through the identification, wherein all the staged payment orders comprise unfinished staged payment orders, the staged payment orders just established and the staged payment orders already finished, and then subsequent reimbursement processing is carried out according to the inquired staged payment orders.
Step 306, reading the payment link of the target installment payment order with the order state being the execution state in the inquired installment payment order.
Specifically, on the basis that the installment payment order participated by the service provider is inquired based on the identity, further, the installment payment order with the selected order state being the execution state is determined as the target installment payment order, a payment link of the target installment payment order is read, and a subsequent reimbursement processing process is performed, wherein the payment link specifically refers to a fund transfer path from a payer to the service provider or a transaction agency during the installment payment processing of the installment payment order.
Further, in the process of reading the payment link, the target installment payment order needs to be determined in the installment payment order, and then the reading of the payment link is performed, in this embodiment, a specific implementation manner is as follows:
forming an order set to be selected according to the inquired installments payment orders;
identifying the order state of each staged payment order contained in the order set to be selected;
selecting a staged payment order with the order state being the execution state from the order set to be selected according to the identification result, and taking the staged payment order as the target staged payment order;
reading the payment link of the target installment payment order.
Specifically, the method includes the steps of firstly forming a to-be-selected order set according to inquired installments of installments payment orders, wherein the to-be-selected order set comprises all installments of installments payment orders participated by the service provider, secondly identifying order states of all installments payment orders in the to-be-selected order set, under the condition that the order states of all installments payment orders are determined, selecting installments payment orders with order states being execution states in the to-be-selected order set as target installments payment orders, and finally reading the payment links of the target installments payment orders.
In practical application, the order state specifically refers to a current state of the installment payment order, and the order state includes an execution state, which is used for indicating that the installment payment order is in progress; a completion status indicating that the installment payment order has completed an installment payment; an initial state for indicating that the installment payment order is just being built; in addition, the order status may further include an ending status or a stop status for indicating a status of the installment payment order for ending the service for installment payment for a particular reason.
It should be noted that, when the reimbursement processing needs to be performed for the payment tasks included in the installment payment order, it is indicated that the installment payment order cannot be normally subjected to the installment payment at this time, and only the installment payment order with the order state in the execution state needs to be selected to perform the subsequent reimbursement processing.
According to the above example, 1 ten thousand of all the staged payment orders are inquired according to the identity of the video playing platform, at this time, an order set to be selected is formed, 20 staged payment orders in the execution state are determined by identifying the order states of the 1 ten thousand staged payment orders, at this time, 20 staged payment orders in the execution state are determined as target staged payment orders, and the payment links of the 20 target staged payment orders are read for carrying out offset processing on the payment tasks in the 20 target staged payment orders subsequently, so that more users are prevented from having capital loss.
In summary, after the identity of the service provider is determined, in order to timely stop payment processing for the payer, the target installment payment order is determined by querying the order state of each installment payment order, and then the payment link is read to perform subsequent reimbursement processing, so that reimbursement processing for a plurality of target installment payment orders can be performed at the same time, and the processing efficiency is effectively improved.
And 308, performing cancellation processing on the unfinished payment tasks in the target staged payment order based on the node execution sequence in the payment link.
Specifically, on the basis of the query of the payment link of the target installment payment order, further, the unfinished payment task in the target installment payment order is offset and processed based on the node execution sequence of the payment link, where the node execution sequence of the payment link specifically refers to the reverse sequence of the fund sequence, for example, when fund transfer is performed according to the payment link, the node execution sequence of the payment link in this embodiment is the reverse of the transfer sequence of the payment link from the payer to the payment platform and then from the payment platform to the merchant;
based on this, since the target installment payment orders are installment payment orders whose order states are in an execution state, the unfinished payment tasks in the target installment payment orders need to be offset, so as to achieve the purpose of stopping loss in time, wherein the unfinished payment tasks specifically refer to subtasks that no fund transfer is yet performed in the target installment payment orders, and the unfinished payment tasks need to be offset at this time, so that the situation that a payer transfers funds to a service provider again, which causes more loss, can be avoided.
Further, in the process of performing the offset processing on the target installment payment order, it is necessary to determine a mode to which the target installment payment order belongs, and in the case of the staging mode to which the target installment payment order belongs, the offset processing is performed on an incomplete payment task at this time, and a service provider and a payer are involved, in this embodiment, the process of performing the offset processing on the incomplete payment task is as follows:
reading a third task set consisting of unfinished payment tasks with the service provider and a fourth task set consisting of unfinished payment tasks with the payer in the target installment order if a termination payment node of the payment link corresponds to the service provider;
carrying out cancellation processing on the payment tasks in the third task set;
carrying out cancellation processing on the payment tasks in the fourth task set; and the payment tasks in the third task set and the payment tasks in the fourth task set have a corresponding relation.
Specifically, under the condition that the target staged payment order belongs to the staging mode, it can be determined that fund transfer parties involved in the target staged payment order are a service provider and a payer respectively, and it is further determined that a termination node of the payment link corresponds to the service provider, which indicates that a normal fund transfer is performed, a payment account of the payer is transferred to an account of the service provider; and, whether in staging mode or global mode, a payment platform (the party handling payment tasks) will be involved, and the payment platform is at an intermediate node of the payment link;
further, a third task set composed of unfinished payment tasks between a payment platform and the service provider and a fourth task set composed of unfinished payment tasks between the payment platform and the payer can be read through the target installment payment order, and since the payment tasks included in the third task set and the fourth task set all belong to the target installment payment order, it can be shown that the payment tasks included in the third task set and the fourth task set are established for the payer, the service provider and the payment platform, so that the payment tasks in the third task set and the payment tasks in the fourth task set have a corresponding relationship;
furthermore, when the payment tasks in the third task set and the payment tasks in the fourth task set are read through the target staged payment order, the payment tasks in the third task set and the payment tasks in the fourth task set are processed through cancellation according to a node execution sequence of the payment link, wherein the specific sequence is that firstly the payment tasks in the third task set are processed through cancellation, and then the payment tasks in the fourth task set are processed through cancellation.
According to the above example, after the payment links corresponding to the 20 target staged payment orders are determined, one party corresponding to the termination node in each payment link is identified, the termination node of 1 target staged payment order is determined to correspond to the video playing platform, at this time, the order can be determined to belong to the staging mode, the unfinished fund transfer-out task between the payment platform and the video playing platform and the unfinished fund transfer-in task between the payment platform and the user corresponding to the order are read according to the order, the unfinished fund transfer-out task between the payment platform and the video playing platform is firstly carried out with the reimbursement processing according to the node execution sequence of the payment links, then the unfinished fund transfer-in task between the payment platform and the user is carried out with the reimbursement processing, namely the processing of stopping payment relative to the user can be finished, and the situation that the user continues to compensate the available amount of the payment platform is avoided.
In conclusion, in the process of canceling payment for the uncompleted payment task in the target staged payment order, the payment task concentrated by the third task is processed by preferential canceling, so that a fund transfer path between the payment platform and the service provider can be preferentially cut off, even if the payer transfers funds at the moment, the funds can be prevented from being transferred to an account of the service provider, the purpose of stopping damage can be timely achieved, and the experience effect of the user is further improved.
In addition, after the completion of the cancellation processing of the uncompleted payment task in the target installment payment order, at this time, the available quota in the account of the payer needs to be updated, and in this embodiment, the specific implementation manner is as follows:
reading an available amount in a payment account of the payer under the condition that the payer does not perform payment processing on a task to be paid of the target installment payment order;
and inquiring a payment value corresponding to the task to be paid, and increasing a payment amount corresponding to the payment value on the available amount based on the offset processing result.
Specifically, under the condition that the payer does not perform payment processing on the task to be paid of the target installment payment order, it is indicated that the payer does not perform payment processing on the corresponding amount of the current stage, in order to avoid the problem of continuous fund transfer under the condition that the payer has unknown details, the available amount in the payment account of the payer is read, the payment value corresponding to the task to be paid is inquired, and finally, the payment amount corresponding to the payment value is added to the available amount based on the offset processing result.
Along the above example, after the reimbursement processing is completed for the payment task in the target staged payment order, at this time, in order to avoid that the user continues to perform staged payment for the target staged payment order, the payment platform reads the available amount in the payment account of the user, determines that the user does not perform reimbursement for the amount 100 of the current period by inquiring the order, and increases the available amount of the user by increasing the amount of 100 on the current available amount of the user, so that the user can be prevented from continuously performing reimbursement for the amount of the current period, and the fund waste is caused.
In conclusion, the amount reduced by the payment task completed by the reimbursement processing is restored to the payer, so that the condition that the payer continues to carry out the installments payment processing of the amount clearing is avoided, and the experience effect of the user is further provided.
And 310, adjusting the order state of the target staged payment order according to the offset processing result, and sending order offset information to the payers participating in the target staged payment order.
Specifically, after the payment task in the target installment payment order is completed, the order state of the target installment payment order is further adjusted according to the cancellation processing result, and order cancellation information is sent to the payer at the same time, so as to prompt the payer about the order state of the target installment payment order and specific relevant reasons in time.
Adjusting the order state of the target installment payment order, specifically adjusting the target installment payment order from an execution state to an end state or a termination state, so as to remind the payer that the amount can be cleared for the unexecuted payment task; the order reimbursement information specifically indicates the reason for reminding the payer of reimbursement processing of the target installments, related cautions and the like.
In addition, if the subsequent service provider has the ability to recover the target installment payment order, the related payment task can be recovered, and installment payment processing is continued, so that the loss of the service provider is reduced.
Further, in the process of sending the order reimbursement information, a payment account of the payer needs to be determined, so that the sending of the information can be completed, and in this embodiment, a specific implementation manner is as follows:
adjusting the order state of the target staged payment order according to the offset processing result, and generating order offset information according to the adjustment result;
determining a payment account of the payer based on the payer identification of the payer recorded in the target installment order;
and sending the order cancellation information to the payment account.
In practical application, after the order state of the target staged payment order is adjusted based on the offset processing result, the order offset information is generated according to the adjustment result, at this time, the payment account of the payer needs to be determined according to the payer identification of the payer recorded in the target staged payment order, and finally, the order offset information is sent to the payment account.
According to the above example, after the offset processing is performed on the target staged payment order, the state of the target staged payment order is adjusted according to the offset processing result, meanwhile, the reminding information which does not need to be cleared continuously is generated according to the adjustment result, and after the payment account of the user is determined according to the target staged payment order, the reminding information which does not need to be cleared continuously is sent to the payment account, so that the purpose of reminding the user in time is achieved.
In conclusion, the order reimbursement information is sent to the payer, so that the payer is reminded of the order state of the target installments payment order in time, the problem that the payer continues to transfer funds is avoided, and the experience effect of the payer is effectively improved.
According to the transaction processing method provided by the embodiment, the acquired identification of the service provider is used for inquiring the installments payment order participated by the service provider, the payment link of the target installments payment order with the order state being the execution state is read, then the cancellation processing is performed on the unfinished payment tasks in the target installments payment order according to the node execution sequence in the payment link, finally the order state of the target installments payment order is adjusted according to the cancellation processing result, and the order cancellation information is sent to the payer.
The following will further describe the transaction processing method with reference to fig. 4 by taking an application of the transaction processing method provided in this specification in a payment scenario as an example. Fig. 4 shows a processing flow chart of a transaction processing method applied in a payment scenario provided in an embodiment of the present specification, and specifically includes the following steps:
step 402, obtaining the identity of the service provider.
Step 404, inquiring the staging payment order participated by the service provider based on the identity.
Step 406, reading a payment link of a target installment payment order of which the order state is an execution state in the inquired installment payment order.
For the transaction processing method provided in this embodiment, the corresponding description contents can be referred to the corresponding description contents in the above embodiments, and redundant description is not repeated herein.
Specifically, under the condition that the installments payment order belongs to the global mode, it is described that the termination payment node of the payment link at this time corresponds to a transaction agency, the transaction agency is specifically a party who provides an application for funds to the service provider, and since the service provider applies for funds, the termination node of the payment link is the transaction agency, so that funds cleared by the payer are transferred to the transaction agency, and therefore, the subsequent reimbursement processing process is performed on payment tasks among the transaction agency, the payment platform and the payer.
Step 408, in case the terminating payment node of the payment link corresponds to a transaction agency, reading a first set of tasks consisting of unfinished payment tasks with the transaction agency and a second set of tasks consisting of unfinished payment tasks with the payer in the target installment payment order.
And step 410, carrying out cancellation processing on the payment tasks in the first task set.
And step 412, performing cancellation processing on the payment tasks in the second task set.
Specifically, under the condition that the target installment order belongs to the global mode, it can be determined that the fund transfer related to the target installment order corresponds to a transaction agency and a payer, and further, it is determined that the termination node of the payment link corresponds to the transaction agency, which indicates that an account of the payer is transferred to an account of the transaction agency during the normal fund transfer;
reading a first task set consisting of unfinished payment tasks between a payment platform and a transaction agency and an unfinished second task set between the payment platform and the payer through the target installment payment order, wherein the payment tasks in the first task set and the payment tasks in the second task set belong to the target installment payment order, which indicates that the payment tasks in the first task set and the payment tasks in the second task set are established among the transaction agency, the payer and the payment platform, so that the payment tasks in the first task set and the payment tasks in the second task set have a corresponding relation;
further, under the condition that the payment tasks in the first task set and the payment tasks in the second task set are read through the target staged payment order, cancellation processing is performed according to the node execution sequence of the payment link, specifically, loss means that cancellation processing is performed on the payment tasks in the first task set first, and then cancellation processing is performed on the payment tasks in the second task set.
It should be noted that the process of executing step 410 and step 412 is a process of performing offset processing according to the read node execution sequence of the payment link.
For example, after a merchant applies for funds to a transaction agency by using a staged payment order, the staged payment order is changed into an order among a user, a payment platform and the transaction agency, and when the merchant is in public opinion or evades, the payment platform performs payment stop processing for stopping damage in time, and reads the staged payment order to determine that the user still has 2 payment tasks without clearing of the amount, so that the corresponding payment platform and the transaction agency also have 2 payment tasks, at the moment, the payment tasks between the payment platform and the transaction agency are preferentially cancelled, and then the payment tasks between the payment platform and the user are cancelled, so that excessive loss of the user is avoided as the purpose of stopping payment in time.
Step 414, sending a first processing result of the cancellation processing for the payment tasks in the first task set to the transaction agency.
Step 416, receiving a processing instruction returned by the transaction agency for the first processing result.
And the transaction agency mechanism carries out cancellation processing on payment tasks to be completed corresponding to the payment tasks in the first task set according to the first processing result, and generates the processing instruction according to the cancellation processing result.
In practical application, after completing the cancellation processing of the payment task between the transaction agency and the payment platform, in order to avoid excessive loss of the transaction agency at this time, a processing result of cancellation processing for the payment task is sent to the transaction agency, under the condition that a processing instruction returned by the transaction agency is received, the transaction agency is indicated, the cancellation processing for the payment task to be completed is completed, at this time, the transaction agency does not need the user to continue fund transfer, and therefore the fund guarantee of the user is improved while the fund of the user is not lost.
Step 418, adjusting the order state of the target staged payment order according to the processing instruction and a second processing result of the offset processing for the payment tasks in the second task set.
And step 420, sending the order cancellation information to the payer according to the adjustment result.
In practical application, after the processing instruction is received, the order state of the target installment payment order is adjusted according to the cancellation processing result of the payment task between the payment platform and the user, and order cancellation information is sent to the user according to the adjustment result, so that the user is reminded of the installment payment order being in a termination state or an end state, the user is prevented from continuing to transfer funds, the purpose of timely stopping payment is achieved, and further more loss of the user is avoided.
According to the transaction processing method provided by the embodiment, under the condition that the service provider cannot normally provide service, in order to avoid excessive loss of the payer related to the target installments payment order, the unfinished payment task in the target installments payment order is cancelled and cancelled through the read payment link, the purpose of stopping loss in time is achieved, and order cancellation information is sent to the payer after cancellation processing, so that the payer can know the service state of the service provider in time, the effect of reminding the payer is achieved, and the experience effect of the payer is further improved.
Corresponding to the above method embodiment, this specification further provides a transaction processing apparatus embodiment, and fig. 5 shows a schematic structural diagram of a transaction processing apparatus provided in this specification. As shown in fig. 5, the apparatus includes:
an obtaining identification module 502 configured to obtain an identity of a service provider;
a query order module 504 configured to query an installment payment order in which the service provider participates based on the identity;
a reading link module 506 configured to read a payment link of a target installment payment order of which the order status is an execution status in the inquired installment payment order;
an offset processing module 508 configured to perform offset processing on the unfinished payment tasks in the target installment order based on the node execution order in the payment link;
and the information sending module 510 is configured to adjust the order state of the target installments payment order according to the offset processing result, and send order offset information to the payers participating in the target installments payment order.
In an alternative embodiment, the offset processing module 508 includes:
a first reading unit configured to read a first set of tasks consisting of payment tasks incomplete with the transaction agency and a second set of tasks consisting of payment tasks incomplete with the payer in the target installment payment order in a case where a termination payment node of the payment link corresponds to the transaction agency;
a first offset processing unit configured to perform offset processing on the payment tasks in the first task set;
the second offset processing unit is configured to offset the payment tasks in the second task set; and the payment tasks in the first task set and the payment tasks in the second task set have a corresponding relation.
In an optional embodiment, the transaction processing apparatus further includes:
a send first process result module configured to send a first process result of a cancellation process for a payment task of the first set of tasks to the transaction agency;
a receive processing instruction module configured to receive a processing instruction returned by the transaction agency for the first processing result; and the transaction agency mechanism carries out cancellation processing on payment tasks to be completed corresponding to the payment tasks in the first task set according to the first processing result, and generates the processing instruction according to the cancellation processing result.
In an optional embodiment, the information sending module 510 includes:
the adjusting unit is configured to adjust the order state of the target staged payment order according to the processing instruction and a second processing result of the offset processing aiming at the payment tasks in the second task set;
and the sending information unit is configured to send the order cancellation information to the payer according to the adjustment result.
In an alternative embodiment, the offset processing module 508 includes:
a second reading unit configured to read, in the target installment payment order, a third task set composed of payment tasks that are not completed with the service provider and a fourth task set composed of payment tasks that are not completed with the payer, in a case where a termination payment node of the payment link corresponds to the service provider;
a third offset processing unit configured to perform offset processing on the payment tasks in the third task set;
a fourth offset processing unit configured to perform offset processing on the payment tasks in the fourth task set; and the payment tasks in the third task set and the payment tasks in the fourth task set have a corresponding relation.
In an optional embodiment, the transaction processing apparatus further includes:
the available line reading module is configured to read available lines in a payment account of the payer under the condition that the payer does not perform payment processing on the task to be paid of the target staged payment order;
and the credit line increasing module is configured to inquire the payment value corresponding to the task to be paid and increase the payment credit line corresponding to the payment value on the available credit line based on the reimbursement processing result.
In an alternative embodiment, the read link module 506 includes:
the composition set unit is configured to compose an order set to be selected according to the inquired installments payment orders;
the identification state unit is configured to identify the order state of each installments payment order contained in the order set to be selected;
the order selecting unit is configured to select a staged payment order with an order state being the execution state from the order set to be selected as the target staged payment order according to the identification result;
a read link unit configured to read the payment link of the target installment payment order.
In an optional embodiment, the transaction processing apparatus further includes:
a detection module configured to detect whether the service provider triggers a service termination condition;
if yes, the acquiring identification module 502 is operated;
correspondingly, the transaction processing device further comprises:
and the closing module is configured to determine a service account of the service provider according to the identity and close the payment service of the service account.
In an optional embodiment, the information sending module 510 includes:
the generation information unit is configured to adjust the order state of the target staged payment order according to an offset processing result and generate order offset information according to an adjustment result;
an account determination unit configured to determine a payment account of the payer based on the payer identification of the payer recorded in the target installment order;
a sending unit configured to send the order cancellation information to the payment account.
According to the transaction processing device provided by the embodiment, the acquired identification of the service provider is used for inquiring the installments payment orders participated by the service provider, the payment link of the target installments payment orders with the order states being the execution states is read, then the unfinished payment tasks in the target installments payment orders are offset according to the node execution sequence in the payment link, finally the order states of the target installments payment orders are adjusted according to the offset processing result, and the order offset information is sent to the payer.
The above is an illustrative scheme of a transaction processing device of the present embodiment. It should be noted that the technical solution of the transaction processing device and the technical solution of the transaction processing method belong to the same concept, and details that are not described in detail in the technical solution of the transaction processing device can be referred to the description of the technical solution of the transaction processing method.
Fig. 6 illustrates a block diagram of a first computing device 600 provided in accordance with an embodiment of the present description. The components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is coupled to the memory 610 via a bus 630 and a database 650 is used to store data.
Computing device 600 also includes access device 640, access device 640 enabling computing device 600 to communicate via one or more networks 660. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 640 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present description, the above-described components of computing device 600, as well as other components not shown in FIG. 6, may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 6 is for purposes of example only and is not limiting as to the scope of the present description. Those skilled in the art may add or replace other components as desired.
Computing device 600 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 600 may also be a mobile or stationary server.
Wherein processor 620 is configured to execute the following computer-executable instructions:
acquiring an identity of a service providing object;
querying the staging tasks participated by the service providing objects based on the identity;
reading a resource link of a target staging task of which the task state is an execution state in the queried staging tasks;
executing and processing the resource transfer tasks which are not executed in the target staging tasks based on the node execution sequence in the resource link;
and updating the task state of the target staging task according to the execution processing result, and sending task execution information to the resource roll-out object participating in the target staging task.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the resource processing method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the resource processing method.
Fig. 7 illustrates a block diagram of a second computing device 700 provided in accordance with an embodiment of the present description. The components of the computing device 700 include, but are not limited to, memory 710 and a processor 720. Processor 720 is coupled to memory 710 via bus 730, and database 750 is used to store data.
Computing device 700 also includes access device 740, access device 740 enabling computing device 700 to communicate via one or more networks 760. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 740 may include one or more of any type of network interface, e.g., a Network Interface Card (NIC), wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present description, the above-described components of computing device 700, as well as other components not shown in FIG. 7, may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 7 is for purposes of example only and is not limiting as to the scope of the present description. Those skilled in the art may add or replace other components as desired.
Computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 700 may also be a mobile or stationary server.
Wherein processor 720 is configured to execute the following computer-executable instructions:
acquiring an identity of a service provider;
inquiring a staging payment order participated by the service provider based on the identity;
reading a payment link of a target staging payment order of which the order state is an execution state in the inquired staging payment order;
based on the node execution sequence in the payment link, carrying out cancellation processing on unfinished payment tasks in the target staging payment order;
and adjusting the order state of the target installment payment order according to the reimbursement processing result, and sending order reimbursement information to the payers participating in the target installment payment order.
The above is a schematic scheme of the second computing device of the embodiment. It should be noted that the technical solution of the computing device and the technical solution of the above-mentioned transaction processing method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the above-mentioned transaction processing method.
An embodiment of the present specification also provides a computer readable storage medium storing computer instructions that, when executed by a processor, are operable to:
acquiring an identity of a service providing object;
querying the staging tasks participated by the service providing objects based on the identity;
reading a resource link of a target staging task of which the task state is an execution state in the queried staging tasks;
executing and processing the resource transfer tasks which are not executed in the target staging tasks based on the node execution sequence in the resource link;
and updating the task state of the target staging task according to the execution processing result, and sending task execution information to the resource roll-out object participating in the target staging task.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the resource processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the resource processing method.
An embodiment of the present specification also provides another computer-readable storage medium storing computer instructions that, when executed by a processor, are operable to:
acquiring an identity of a service provider;
inquiring a staging payment order participated by the service provider based on the identity;
reading a payment link of a target staging payment order of which the order state is an execution state in the inquired staging payment order;
based on the node execution sequence in the payment link, performing cancellation processing on unfinished payment tasks in the target staged payment order;
and adjusting the order state of the target staged payment order according to the offset processing result, and sending order offset information to the payers participating in the target staged payment order.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned transaction processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the above-mentioned transaction processing method.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in source code form, object code form, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present disclosure is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present disclosure. Further, those skilled in the art should also appreciate that the embodiments described in this specification are preferred embodiments and that acts and modules referred to are not necessarily required for this description.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
The preferred embodiments of the present specification disclosed above are intended only to aid in the description of the specification. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the specification and its practical application, to thereby enable others skilled in the art to best understand the specification and its practical application. The specification is limited only by the claims and their full scope and equivalents.

Claims (12)

1. A transaction processing method, comprising:
under the condition that a service provider is detected to trigger a service termination condition, acquiring an identity of the service provider, wherein the service termination condition is a condition for detecting that the service provider has public opinion or cannot execute service;
inquiring a staging payment order participated by the service provider based on the identity;
reading a payment link of a target staging payment order of which the order state is an execution state in the inquired staging payment order;
based on the node execution sequence in the payment link, carrying out cancellation processing on unfinished payment tasks in the target staging payment order; the cancellation processing is to carry out cancellation and elimination processing on the installments of the payment orders which cannot be continuously executed;
and adjusting the order state of the target staged payment order from an execution state to a termination state according to a cancellation processing result, and sending order cancellation information for reminding a payer that the target staged payment order is in the termination state to the payer participating in the target staged payment order.
2. The transaction processing method of claim 1, wherein the processing of the impulse of the uncompleted payment tasks in the targeted staged payment order based on the order of execution of the nodes in the payment link comprises:
reading a first set of outstanding payment tasks with the transaction agent and a second set of outstanding payment tasks with the payer in the target installment payment order with a terminating payment node of the payment link corresponding to a transaction agent;
carrying out cancellation processing on the payment tasks in the first task set;
carrying out cancellation processing on the payment tasks in the second task set; wherein the payment tasks in the first task set and the payment tasks in the second task set have a corresponding relationship.
3. The transaction processing method according to claim 2, further comprising, after the execution of the offset processing step for the uncompleted payment task in the target installment payment order based on the node execution order in the payment link and before the execution of the step of adjusting the order status of the target installment payment order from the execution status to the termination status according to the offset processing result and sending order offset information to the payer participating in the target installment payment order, which alerts the payer that the target installment payment order is in the termination status, further comprises:
sending a first processing result of the cancellation processing for the payment tasks in the first task set to the transaction agency;
receiving a processing instruction returned by the transaction agency aiming at the first processing result; and the transaction agency mechanism carries out cancellation processing on payment tasks to be completed corresponding to the payment tasks in the first task set according to the first processing result, and generates the processing instruction according to the cancellation processing result.
4. The transaction processing method of claim 3, wherein the adjusting the order status of the goal staging payment order from the executing status to the terminating status according to the reimbursement processing result and sending order reimbursement information to a payer participating in the goal staging payment order reminding the payer that the goal staging payment order is in the terminating status comprises:
according to the processing instruction and a second processing result of the offset processing aiming at the payment tasks in the second task set, adjusting the order state of the target staging payment order from an execution state to a termination state;
and sending the order reimbursement information for reminding the payer that the target installments payment orders are in a termination state to the payer according to the adjustment result.
5. The transaction processing method of claim 1, wherein the processing of the impulse of the uncompleted payment tasks in the targeted staged payment order based on the order of execution of the nodes in the payment link comprises:
reading a third task set consisting of unfinished payment tasks with the service provider and a fourth task set consisting of unfinished payment tasks with the payer in the target installment order if a termination payment node of the payment link corresponds to the service provider;
carrying out cancellation processing on the payment tasks in the third task set;
carrying out cancellation processing on the payment tasks in the fourth task set; and the payment tasks in the third task set and the payment tasks in the fourth task set have a corresponding relation.
6. The transaction processing method of claim 1, further comprising, after the executing the offsetting processing step for the incomplete payment task in the target staged payment order based on the node execution order in the payment link:
reading an available amount in a payment account of the payer under the condition that the payer does not perform payment processing aiming at a task to be paid of the target staged payment order;
and inquiring a payment value corresponding to the task to be paid, and increasing a payment amount corresponding to the payment value on the available amount based on the offset processing result.
7. The transaction processing method of claim 1, wherein reading a payment link of a target installment payment order in which an order status is in an executing status in the queried installment payment order comprises:
forming an order set to be selected according to the inquired installments payment orders;
identifying the order state of each staged payment order contained in the order set to be selected;
selecting a staging payment order with the order state being the execution state from the order set to be selected according to the identification result, and using the staging payment order as the target staging payment order;
reading the payment link of the target installment payment order.
8. The transaction processing method of claim 1, after the step of obtaining the identity of the service provider is performed, further comprising:
and determining a service account of the service provider according to the identity, and closing the payment service of the service account.
9. The transaction processing method of claim 1, wherein the adjusting the order status of the goal staging payment order from an execution status to an end status according to the offset processing result and sending order offset information to a payer participating in the goal staging payment order to remind the payer that the goal staging payment order is in the end status comprises:
adjusting the order state of the target staged payment order from an execution state to a termination state according to a cancellation processing result, and generating order cancellation information according to an adjustment result;
determining a payment account of the payer based on the payer identification of the payer recorded in the target installment order;
and sending the order cancellation information for reminding the payer that the target staged payment order is in a termination state to the payment account.
10. A transaction processing device comprising:
the system comprises an acquisition identification module, a service provider and a service management module, wherein the acquisition identification module is configured to acquire an identity identification of the service provider under the condition that a service termination condition is detected to be triggered by the service provider, wherein the service termination condition is the condition that the service provider is detected to have public opinion or cannot execute service;
the order inquiry module is configured to inquire the staged payment order participated by the service provider based on the identity;
the reading link module is configured to read a payment link of a target staging payment order of which the order state is an execution state in the inquired staging payment order;
the offset processing module is configured to perform offset processing on unfinished payment tasks in the target staged payment order based on the node execution sequence in the payment link; the cancellation processing is to carry out cancellation and elimination processing on the installments of the payment orders which cannot be continuously executed;
and the sending information module is configured to adjust the order state of the target staged payment order from an execution state to a termination state according to a reimbursement processing result, and send order reimbursement information reminding the payer that the target staged payment order is in the termination state to the payer participating in the target staged payment order.
11. A computing device, comprising:
a memory and a processor;
the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:
under the condition that a service provider is detected to trigger a service termination condition, acquiring an identity of the service provider, wherein the service termination condition is a condition for detecting that the service provider has public opinion or cannot execute service;
inquiring a staging payment order participated by the service provider based on the identity;
reading a payment link of a target staging payment order of which the order state is an execution state in the inquired staging payment order;
based on the node execution sequence in the payment link, performing cancellation processing on unfinished payment tasks in the target staged payment order; the cancellation processing is to carry out cancellation and elimination processing on the installments of the payment orders which cannot be continuously executed;
and adjusting the order state of the target staged payment order from an execution state to a termination state according to a cancellation processing result, and sending order cancellation information for reminding a payer that the target staged payment order is in the termination state to the payer participating in the target staged payment order.
12. A computer readable storage medium storing computer instructions which, when executed by a processor, carry out the steps of the transaction processing method of any of claims 1 to 9.
CN202010276993.0A 2020-04-10 2020-04-10 Resource processing method and device and transaction processing method and device Active CN111178899B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010276993.0A CN111178899B (en) 2020-04-10 2020-04-10 Resource processing method and device and transaction processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010276993.0A CN111178899B (en) 2020-04-10 2020-04-10 Resource processing method and device and transaction processing method and device

Publications (2)

Publication Number Publication Date
CN111178899A CN111178899A (en) 2020-05-19
CN111178899B true CN111178899B (en) 2023-04-11

Family

ID=70651599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010276993.0A Active CN111178899B (en) 2020-04-10 2020-04-10 Resource processing method and device and transaction processing method and device

Country Status (1)

Country Link
CN (1) CN111178899B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112632931B (en) * 2020-08-06 2021-10-12 腾讯科技(深圳)有限公司 Task verification and cancellation method based on table, table generation method and device
CN112101919B (en) * 2020-09-16 2024-04-12 财付通支付科技有限公司 Data processing method and device, electronic equipment and storage medium
CN112927035A (en) * 2021-01-29 2021-06-08 北京字节跳动网络技术有限公司 Resource allocation method, device, equipment and medium
CN113421081A (en) * 2021-06-21 2021-09-21 蚂蚁智信(杭州)信息技术有限公司 Payment processing method and device
CN113807834A (en) * 2021-09-17 2021-12-17 支付宝(杭州)信息技术有限公司 Resource processing method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6578016B1 (en) * 1999-12-30 2003-06-10 Timothy Joseph Trankina Tax advantaged transaction structure (TATS) and method
WO2007136986A2 (en) * 2006-05-08 2007-11-29 Worldwide Bill Payment Network Inc. System and method for worldwide bill payment
CN104978687A (en) * 2014-04-08 2015-10-14 陈衡 Creditor's rights transferring processing device and creditor's rights transferring processing method
CN107864193B (en) * 2017-10-26 2020-06-30 阿里巴巴集团控股有限公司 Business processing method, device, system and service equipment
CN107909470A (en) * 2017-11-22 2018-04-13 中国银行股份有限公司 Data processing method and device
CN109377368A (en) * 2018-11-02 2019-02-22 深圳市快付通金融网络科技服务有限公司 Sequence liquidation method, device, computer equipment and storage medium under distributed environment
CN110659308B (en) * 2019-09-24 2020-12-22 华润网络(深圳)有限公司 Data clearing processing method and device

Also Published As

Publication number Publication date
CN111178899A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN111178899B (en) Resource processing method and device and transaction processing method and device
US20160300201A1 (en) Method, device and system for performing transactions
CN111784514B (en) Service processing method and device based on block chain
CN110599182A (en) Resource management method and device
CN110555704A (en) Credit contract processing method and device based on credit guarantee
CN111383007A (en) Service processing method and device
CN111080342A (en) Resource allocation method and device, storage medium and electronic device
CN110009501A (en) Financing method, system, calculating equipment and storage medium based on block chain
CN111340474A (en) Resource processing method, device and system based on distributed transaction
CN111127189A (en) Fluidity prediction system, method and device
CN110717758B (en) Abnormal transaction identification method and device
CN109146488A (en) Assets match method, assets match system, equipment and storage medium
CN113159913A (en) Accounting information processing method and device
CN111242791B (en) Item recommendation method and device
CN111161068B (en) Transaction element checking method and device
WO2020063180A1 (en) Transaction processing method and device, electronic device and computer-readable storage medium
CN110910211B (en) Credit updating method and device
CN111258750A (en) Data volume processing method and system, and quota allocation method and system
CN110796459A (en) Contract processing system, method and device based on protocol stack
CN112950355B (en) Transaction data processing method and device
CN115423480A (en) Payment method and system based on financial products
CN110570269B (en) Method and device for executing notification in credit item
AU2019419399B2 (en) Risk management system interface
CN113034273A (en) Resource processing method and system
CN110675246A (en) Credit limit management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40029394

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant