Activity budget updating method and device
By setting the delayed update time in the refund system and monitoring the refund correction operation, the control problem of active budget during refund correction is solved, and effective budget management is achieved to prevent overdue.
Patent Information
- Application Number
- CN202110789513.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-13
- Publication Date
- 2024-11-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the activity budget is difficult to effectively control when refunds are corrected, which can easily lead to budget overage.
When detecting the transaction refund request sent by the refund system, determine the business activities and transaction codes, set the delayed update time, monitor whether the refund correction system performs the refund correction operation within that time, and if executed, the budget will not be updated. If not executed, the total activity budget is updated.
Effectively control activity budgets, prevent budget overdues, and ensure the accuracy and stability of refund operations.
Smart Images

Figure CN113450160B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an activity budget updating method and device. Background Art
[0002] With the rapid development of computer technology, online payment has become the mainstream payment method for mass consumers. In order to improve consumers' consumption experience, major e-commerce platforms and offline merchants will cooperate with various payment platforms and banks, and use payment platforms or bank applications to make transactions and payments.
[0003] In order to promote consumers' active consumption, various payment platforms and banks usually set an activity budget corresponding to a certain business activity, and set corresponding coupons and activity quotas according to the activity budget. After consumers successfully obtain activity quotas and coupons, they can use coupons to make consumption operations. When consumers make consumption, the corresponding activity budget will be deducted. After consumers make consumption, they may make a refund transaction. During the refund transaction, in order to better serve the general public, the activity budget needs to be added back synchronously. After executing the refund transaction, a refund correction operation may occur, that is, an error occurs in the refund, and the originally added activity budget needs to be returned to the original account. Since the refund correction operation is the reverse operation of the refund transaction, when a refund correction occurs, the activity budget needs to be restored to the activity budget before the update. However, in the actual operation process, after a refund transaction occurs and the activity budget is updated, there may be other consumers who make consumption operations and deduct the originally added activity budget. If a refund correction occurs at this time, it is easy to cause the activity budget to exceed. Therefore, the activity budget in the prior art cannot be effectively controlled. Summary of the invention
[0004] In view of this, the present invention provides an activity budget updating method, through which the activity budget can be effectively controlled to prevent the activity budget from being exceeded.
[0005] The present invention also provides an activity budget updating device to ensure the implementation and application of the above method in practice.
[0006] An activity budget updating method, comprising:
[0007] When detecting a transaction refund request corresponding to a target transaction business sent by the terminal to the refund system, determining the business activities in which the target transaction business participates;
[0008] Obtaining the transaction code corresponding to the target transaction business in the transaction refund request;
[0009] Based on the transaction code, setting a delayed update time of the activity budget corresponding to the business activity;
[0010] Detecting whether a preset refund reversal system performs a refund reversal operation corresponding to the target transaction business within the delayed update time;
[0011] If the refund reversal system performs the refund reversal operation corresponding to the transaction code within the delayed update time, the activity budget of the business activity is not updated;
[0012] If the refund reversal system fails to perform the refund reversal operation corresponding to the transaction code within the delayed update time, the target activity budget corresponding to the business activity contained in the transaction refund request is obtained, and based on the target activity budget, the total activity budget corresponding to the business activity in the preset database is updated.
[0013] The above method may optionally further include, before detecting a transaction refund request corresponding to the target transaction business sent by the terminal to the refund system:
[0014] Obtaining transaction information corresponding to the target transaction business;
[0015] Based on the transaction information, generate a transaction code corresponding to the target transaction business;
[0016] Sending the transaction information and the transaction code to the refund system, triggering each refund server in the refund system to generate a maximum refund time corresponding to the target transaction business based on the transaction information and the transaction code; wherein the refund system includes a plurality of refund servers, each of which is used to perform different refund service operations, and the maximum refund time corresponding to each server is the longest operation time required for the refund server to perform the refund service operation corresponding to the refund server based on the transaction information and the transaction code;
[0017] Receive each maximum refund time sent by the refund system, and associate and save each maximum refund time with the transaction code.
[0018] In the above method, optionally, the step of setting a delayed update time of the activity budget corresponding to the business activity based on the transaction code includes:
[0019] Obtain each maximum refund time associated with the transaction code;
[0020] The time difference between each of the maximum refund times is calculated, and the time difference is set as the delayed update time of the activity budget corresponding to the business activity.
[0021] Optionally, the method described above includes detecting whether the preset refund reversal system performs the refund reversal corresponding to the target transaction business within the delayed update time, including:
[0022] Monitoring the system log of the refund reversal system;
[0023] In the delayed update time, query in real time whether the system log contains the transaction code corresponding to the target transaction business;
[0024] If the system log is found to contain the transaction code corresponding to the target transaction business within the delayed update time, it is determined that the refund reversal system has executed the refund reversal operation corresponding to the target transaction business within the delayed update time;
[0025] If the system log is not found to contain the transaction code corresponding to the target transaction business within the delayed update time, it is determined that the refund reversal system has not performed the refund reversal operation corresponding to the target transaction business within the delayed update time.
[0026] The above method may optionally further include:
[0027] Real-time detection is performed to determine whether the total activity budget corresponding to the business activity in the database reaches a preset budget threshold, and when the total activity budget reaches the preset budget threshold, the business activity is closed.
[0028] An activity budget updating device, comprising:
[0029] A determination unit, configured to determine the business activities in which the target transaction business participates when detecting a transaction refund request corresponding to the target transaction business sent by the terminal to the refund system;
[0030] A first acquisition unit, configured to acquire a transaction code corresponding to the target transaction business in the transaction refund request;
[0031] A setting unit, configured to set a delayed update time of the activity budget corresponding to the business activity based on the transaction code;
[0032] A detection unit, used to detect whether a preset refund reversal system performs a refund reversal operation corresponding to the target transaction business within the delayed update time;
[0033] a cancel operation unit, configured to not update the activity budget of the business activity if the refund reversal system performs the refund reversal operation corresponding to the transaction code within the delayed update time;
[0034] An updating unit is used to obtain the target activity budget corresponding to the business activity contained in the transaction refund request if the refund reversal system fails to perform the refund reversal operation corresponding to the transaction code within the delayed update time, and based on the target activity budget, update the total activity budget corresponding to the business activity in a preset database.
[0035] The above device may optionally further include:
[0036] A second acquisition unit, configured to acquire transaction information corresponding to the target transaction business;
[0037] A generating unit, configured to generate a transaction code corresponding to the target transaction service based on the transaction information;
[0038] a triggering unit, configured to send the transaction information and the transaction code to the refund system, and trigger each refund server in the refund system to generate a maximum refund time corresponding to the target transaction service based on the transaction information and the transaction code; wherein the refund system comprises a plurality of refund servers, each of the refund servers being configured to perform different refund service operations, and the maximum refund time corresponding to each of the servers being the longest operation time required for the refund server to perform the refund service operation corresponding to the refund server based on the transaction information and the transaction code;
[0039] The storage unit is used to receive each maximum refund time sent by the refund system, and associate each maximum refund time with the transaction code and store it.
[0040] In the above device, optionally, the setting unit includes:
[0041] An acquisition subunit, used to acquire each maximum refund time associated with the transaction code;
[0042] The calculation subunit is used to calculate the time difference between each of the maximum refund times, and set the time difference as the delayed update time of the activity budget corresponding to the business activity.
[0043] In the above device, optionally, the detection unit comprises:
[0044] A monitoring subunit, used to monitor the system log of the refund reversal system;
[0045] A query subunit, used to query in real time whether the system log contains the transaction code corresponding to the target transaction business within the delayed update time;
[0046] A first determining subunit is configured to determine that the refund reversal system has executed the refund reversal operation corresponding to the target transaction business within the delayed update time if the system log is found to contain the transaction code corresponding to the target transaction business within the delayed update time;
[0047] The second determination subunit is used to determine that the refund reversal system has not performed the refund reversal operation corresponding to the target transaction business within the delayed update time if the system log is not found to contain the transaction code corresponding to the target transaction business within the delayed update time.
[0048] The above device may optionally further include:
[0049] The closing unit is used to detect in real time whether the total activity budget corresponding to the business activity in the database reaches a preset budget threshold, and close the business activity when the total activity budget reaches the preset budget threshold.
[0050] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned activity budget updating method.
[0051] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the above-mentioned activity budget updating method.
[0052] Compared with the prior art, the present invention has the following advantages:
[0053] The present invention provides an activity budget updating method, comprising: when detecting a transaction refund request corresponding to a target transaction business sent by a terminal to a refund system, determining the business activities in which the target transaction business participates; obtaining the transaction code corresponding to the target transaction business in the transaction refund request; setting the delayed update time of the activity budget corresponding to the business activity based on the transaction code; detecting whether a preset refund reversal system performs a refund reversal operation corresponding to the target transaction business within the delayed update time; if the refund reversal system performs a refund reversal operation corresponding to the transaction code within the delayed update time, then the activity budget of the business activity is not updated; if the refund reversal system does not perform a refund reversal operation corresponding to the transaction code within the delayed update time, then obtaining the target activity budget corresponding to the business activity contained in the transaction refund request, and updating the total activity budget corresponding to the business activity in the preset database based on the target activity budget. Applying the method provided by the present invention can effectively control the activity budget and prevent the activity budget from being exceeded. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0055] Figure 1 A method flow chart of an activity budget updating method provided by an embodiment of the present invention;
[0056] Figure 2 A system structure diagram of an activity budget updating system provided by an embodiment of the present invention;
[0057] Figure 3 Another method flow chart of an activity budget updating method provided by an embodiment of the present invention;
[0058] Figure 4 A flowchart of another method for updating an activity budget provided by an embodiment of the present invention;
[0059] Figure 5 A device structure diagram of an activity budget updating device provided by an embodiment of the present invention;
[0060] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0063] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or devices, etc.
[0064] The embodiment of the present invention provides an activity budget updating method, which can be applied to a variety of system platforms. The execution subject can be a bank's back-end system, which is a bank's back-end system for managing and controlling the relevant activity data of all business activities of the bank. The method flow chart of the method is as follows: Figure 1 As shown, specifically including:
[0065] S101: upon detecting a transaction refund request corresponding to a target transaction business sent by a terminal to a refund system, determining a business activity in which the target transaction business participates.
[0066] In an embodiment of the present invention, when a consumer applies for a refund or an error occurs in the terminal triggering a refund operation, the terminal sends a transaction refund request corresponding to the target transaction business to the refund system, and the refund system performs the corresponding refund operation according to the transaction refund request. When the background system detects that the terminal sends a transaction refund request corresponding to the target transaction business to the refund system, it determines the business activities in which the target transaction business participates. The target transaction business is the transaction business conducted by the consumer when performing a transaction operation, such as offline supermarket consumption or online commodity transactions. When the background system detects that the refund system has a refund transaction, it detects whether the target transaction business corresponding to the refund transaction participates in a certain business activity, such as a full-reduction activity or a coupon deduction activity for a certain commodity. If the target transaction business participates in a certain business activity, it is determined that the target transaction business participates in the business activity.
[0067] It should be noted that the terminal may be a mobile terminal, a computer device, or an ATM machine or other terminal device that can initiate a transaction refund request.
[0068] S102: Obtain the transaction code corresponding to the target transaction business in the transaction refund request.
[0069] In the embodiment of the present invention, after the consumer successfully consumes the target transaction service, the backend system configures a transaction code corresponding to the target transaction service, and the transaction code is a unique authentication code corresponding to the target transaction activity.
[0070] S103: Based on the transaction code, a delayed update time of the activity budget corresponding to the business activity is set.
[0071] It should be noted that different transaction businesses have different delayed update times for the activity budgets corresponding to the updated business activities. The delayed update time is determined by checking the time when the refund system needs to perform a refund operation on the target transaction business and the time when the refund reversal system needs to perform a refund reversal operation on the target transaction business through the transaction code.
[0072] S104: Detect whether the preset refund reversal system executes the refund reversal operation corresponding to the target transaction business within the delayed update time.
[0073] In the embodiment of the present invention, it is detected whether the refund reversal system will perform a refund reversal corresponding to the target transaction business within the delayed update time.
[0074] Among them, if the refund reversal system executes the refund reversal operation corresponding to the transaction code within the delayed update time, execute S105; if the refund reversal system does not execute the refund reversal operation corresponding to the transaction code within the delayed update time, execute S106.
[0075] S105: The activity budget of the business activity is not updated.
[0076] In the implementation of the present invention, if the refund reversal system executes the refund reversal operation corresponding to the transaction code within the delayed update time, it indicates that the original refund operation is cancelled, and therefore, there is no need to update the activity budget of the business activity.
[0077] S106: Obtain the target activity budget corresponding to the business activity contained in the transaction refund request, and update the total activity budget corresponding to the business activity in a preset database based on the target activity budget.
[0078] In the embodiment of the present invention, if the refund reversal system does not perform the refund reversal operation corresponding to the transaction code within the delayed update time, the refund operation is successful and the activity budget of the business activity needs to be updated.
[0079] It should be noted that the database stores activity data of all business activities, and the activity data includes the activity budget of the business data.
[0080] In the activity budget updating method provided by the embodiment of the present invention, when a transaction refund request corresponding to a target transaction business sent by a terminal to a refund system is detected, the business activity in which the target transaction business participates is determined, and the transaction code corresponding to the target transaction business is obtained. After receiving the transaction refund request, the refund system performs the corresponding refund operation according to the request. In order to prevent the need for subsequent refund reversal, the background system sets a delayed update time for the activity budget corresponding to the business activity according to the transaction code. After the delayed update time, it is determined whether the activity budget corresponding to the business interaction needs to be updated, specifically, whether the refund reversal system performs the refund reversal operation corresponding to the target transaction business within the delayed update time. If not, there is no need to update the activity budget; if so, the target activity budget corresponding to the business activity contained in the refund transaction request is obtained, and the total activity budget of the business activity is updated according to the target activity budget.
[0081] It should be noted that the refund system contains multiple refund servers, each of which is used to perform different refund service operations, including refunding cash, refunding coupons, refunding preferential quotas, and refunding superimposed amounts. For example, a consumer at the terminal participated in a full-reduction and coupon superimposed activity and paid a total of 200 yuan. The user actually paid 150 yuan, paid 30 yuan with the coupon, and deducted 20 yuan for the full-reduction. When the refund system performs a refund operation, three refund servers perform corresponding refund service operations; among them, refund server A performs a refund service of 150 yuan, refund server B performs a refund service of 30 yuan for the coupon, and server C performs a refund service of 20 yuan for the full-reduction deduction. When each refund server performs the corresponding refund service operation, it monitors in real time whether the operation is successful. If any refund server fails to perform a refund service operation, it is necessary to request the refund reversal server to initiate a refund reversal operation. The refund reversal system is used to receive a refund reversal request from the refund system and perform a refund reversal operation.
[0082] It is understandable that the backend system detects in real time whether the refund system has received a transaction refund request. When the terminal sends a transaction refund request corresponding to the target business to the refund system, the refund system performs a refund operation according to the request. When the backend system detects a transaction refund request, it determines the business activity involved in the target transaction business according to the request, and obtains the transaction code corresponding to the target transaction business to set a delayed update time; and detects whether the refund reversal system performs a refund reversal operation within the delayed update time. Within the delayed update time, if the refund operation of the refund system fails, the refund reversal system is requested to perform a refund reversal operation. When the refund reversal system receives the request, it performs a refund reversal operation. The backend system detects whether the refund reversal system performs a refund reversal operation within the delayed update time. If so, the activity budget of the business activity is updated; otherwise, the activity budget is not updated.
[0083] By applying the method provided in the embodiment of the present invention, a delayed update time for updating the activity budget is set to ensure delayed updating of the activity budget, thereby effectively controlling the activity budget and preventing the activity budget from being exceeded.
[0084] Based on the method provided in the above embodiment, refer to Figure 2 The present invention provides an activity budget update system, which specifically includes: a terminal 201, a refund system 202, a refund reversal system 203 and a background system 204. The terminal 201 is used to send a transaction refund request corresponding to the target transaction business to the refund system. The refund system 202 is used to perform a corresponding refund operation when receiving a transaction refund request corresponding to the target transaction business, and send a refund reversal request to the refund reversal system after the refund operation fails. The refund reversal system 203 is used to perform a refund reversal operation corresponding to the refund reversal request when receiving a refund reversal request sent by the refund system. The background system is used to execute the above-mentioned processes from S101 to S106, which will not be repeated here.
[0085] In the method provided by the embodiment of the present invention, before the terminal sends a transaction refund request corresponding to the target transaction service to the refund system, the consumer of the terminal needs to first perform the consumption operation corresponding to the target transaction service. Therefore, after the consumer of the terminal performs the consumption operation corresponding to the target transaction service, before detecting the transaction refund request corresponding to the target transaction service sent by the terminal to the refund system, the backend system performs the following steps: Figure 3 The process shown may specifically include:
[0086] S301: Acquire transaction information corresponding to the target transaction business.
[0087] In the embodiment of the present invention, the transaction information includes the transaction time, transaction location, transaction type, transaction commodity, etc. corresponding to the target transaction business.
[0088] S302: Generate a transaction code corresponding to the target transaction business based on the transaction information.
[0089] In the implementation of the present invention, information such as transaction time, transaction location, transaction type, and transaction commodity in the transaction information is obtained to generate a transaction code corresponding to the target transaction business.
[0090] S303: Sending the transaction information and the transaction code to the refund system, triggering each refund server in the refund system to generate a maximum refund time corresponding to the target transaction business based on the transaction information and the transaction code.
[0091] Among them, the refund system includes multiple refund servers, each of which is used to perform different refund service operations. The maximum refund time corresponding to each server is the longest operation time required for the refund server to perform the refund service operation corresponding to the refund server based on the transaction information and the transaction code.
[0092] In an embodiment of the present invention, after receiving the transaction information and the transaction code, each refund server in the refund system estimates the maximum operation time required for the refund server to perform its corresponding refund service operation based on the transaction information and the transaction code, and sends the maximum operation time as the maximum refund time to the backend system via the refund system.
[0093] S304: receiving each maximum refund time sent by the refund system, and associating each maximum refund time with the transaction code and saving the same.
[0094] In an embodiment of the present invention, after receiving each maximum refund time, the backend system binds each maximum refund time with the transaction code, that is, each maximum refund time is associated with the transaction code and saved to ensure that when a refund operation occurs in the target transaction business, the delayed update time of the activity budget corresponding to the business activity in which the target transaction business participates is calculated and updated.
[0095] Specifically, based on the method provided in the above embodiment, after the transaction code is associated with each maximum refund time and saved, if the background system detects a transaction refund request corresponding to the target transaction business, the transaction code corresponding to the target transaction business is obtained to calculate and update the delayed update time of the activity budget corresponding to the business activity in which the target transaction business participates, which may specifically include:
[0096] Obtain each maximum refund time associated with the transaction code;
[0097] The time difference between each of the maximum refund times is calculated, and the time difference is set as the delayed update time of the activity budget corresponding to the business activity.
[0098] It can be understood that, based on the method provided in the above embodiment, after the consumer of the terminal performs the consumption operation corresponding to the target transaction business, the transaction information corresponding to the target transaction business is obtained, and a unique transaction code corresponding to the target transaction business is generated based on the transaction information, and the transaction information and the transaction code are sent to the refund system at the same time. After receiving the transaction information and the transaction code, each refund server in the refund system calculates the maximum operation time required for the refund server to perform the corresponding refund server operation, and sends the maximum operation time as the maximum refund time to the backend system via the refund system. After receiving the maximum refund time sent by the refund system, the transaction code and the maximum refund time are associated and saved. When the terminal sends the transaction refund request corresponding to the target transaction business to the refund system, each refund server in the refund system performs the refund service operation corresponding to the target transaction business according to the transaction refund request. When the backend system detects the transaction refund request, it determines the business activities involved in the target transaction business, obtains the transaction code corresponding to the target transaction business, and then obtains the maximum refund time associated with the transaction code, calculates the time difference of each maximum refund time, and sets the time difference as the delayed update time.
[0099] It should be noted that when a refund service operation fails in any refund server in the refund system, a refund reversal request is immediately sent to the refund reversal system. The refund reversal system immediately executes the corresponding refund reversal operation and writes the operation process into the system log.
[0100] By applying the method provided in the embodiment of the present invention, after the target transaction business occurs, the maximum refund times sent by the refund system are received and saved, ensuring that when the refund operation corresponding to the target transaction business occurs, the activity budget corresponding to the business activity in which the target transaction business participates is updated with a delay to prevent the activity budget from exceeding the limit.
[0101] Based on the method provided in the above embodiment, after setting the delayed update time of the activity budget corresponding to the business activity, it is necessary to further detect whether the refund reversal system executes the refund reversal corresponding to the target transaction business within the delayed update time. Therefore, the process of detecting whether the preset refund reversal system executes the refund reversal corresponding to the target transaction business within the delayed update time is as follows: Figure 4 As shown, it may specifically include:
[0102] S401: Monitor the system log of the refund reversal system.
[0103] In the embodiment of the present invention, the system log of the refund reversal system is used to record the operation process of the refund reversal operation performed by the system every day. When the refund reversal system performs a refund reversal operation corresponding to any transaction business, the specific process and details of the refund reversal operation are filled into the system log, and the transaction code corresponding to the transaction business is used as the index of the information of the refund reversal operation corresponding to the transaction business.
[0104] S402: Query whether the system log contains the transaction code corresponding to the target transaction business within the delayed update time.
[0105] In the embodiment of the present invention, if the system log is found to contain the transaction code corresponding to the target transaction business within the delayed update time, then S403 is performed; if the system log is not found to contain the transaction code corresponding to the target transaction business within the delayed update time, then S404 is performed.
[0106] S403: Determine whether the refund reversal system has executed the refund reversal operation corresponding to the target transaction business within the delayed update time.
[0107] S404: Determine that the refund reversal system has not performed a refund reversal operation corresponding to the target transaction business within the delayed update time.
[0108] In the activity budget updating method provided by the embodiment of the present invention, after executing the refund reversal, the refund reversal system will record the relevant information of the refund reversal operation process into the system log. When the background system needs to verify whether a refund reversal operation has occurred in a certain transaction business, the system log of the refund reversal system is obtained, and the system log is checked whether it contains the transaction code corresponding to the transaction business. If so, it indicates that the refund reversal system has executed the refund reversal operation corresponding to the transaction business; otherwise, it indicates that the refund reversal system has not executed the refund reversal operation corresponding to the transaction business.
[0109] Optionally, the refund system also includes a system log corresponding to the refund system, which is used to record refund operation information related to each transaction business that has executed a refund operation, and uses the transaction code corresponding to the transaction information as an index for querying the refund operation information.
[0110] By applying the method provided in the embodiment of the present invention, the refund reversal system is queried through the transaction code to determine whether the refund reversal operation corresponding to the target transaction business is executed, so as to determine whether the activity budget of the business activity needs to be updated to avoid over-budgeting.
[0111] In the method provided by the embodiment of the present invention, during the execution of a business activity, the total activity budget corresponding to the business activity in the database may be consumed. To prevent consumers from continuously applying to participate in the activity, the business activity may be temporarily closed. Specifically, the process of closing a business activity may include:
[0112] Real-time detection is performed to determine whether the total activity budget corresponding to the business activity in the database reaches a preset budget threshold, and when the total activity budget reaches the preset budget threshold, the business activity is closed.
[0113] It is understandable that when the activity budget reaches its upper limit, the business activity will be closed.
[0114] Furthermore, if the activity budget reaches the budget threshold, the refund system performs a refund operation, and the refund reversal system does not perform a refund reversal operation within the corresponding delayed update time, the original activity budget needs to be added back to update the database. After updating the database and adding back the activity budget, the business activity can be started.
[0115] Furthermore, an activity deadline corresponding to the business activity may be set. When the activity deadline is reached, the business activity may be closed.
[0116] The specific implementation processes and derivative methods of the above-mentioned embodiments are all within the protection scope of the present invention.
[0117] and Figure 1 Corresponding to the method described above, the embodiment of the present invention further provides an activity budget updating device for updating Figure 1 In the specific implementation of the method, the activity budget updating device provided in the embodiment of the present invention can be applied to a computer terminal or various mobile devices, and its structural diagram is as follows Figure 5 As shown, specifically including:
[0118] A determination unit 501 is configured to determine the business activities in which the target transaction business participates when detecting a transaction refund request corresponding to the target transaction business sent by the terminal to the refund system;
[0119] A first acquisition unit 502 is used to acquire a transaction code corresponding to the target transaction business in the transaction refund request;
[0120] A setting unit 503, configured to set a delayed update time of the activity budget corresponding to the business activity based on the transaction code;
[0121] A detection unit 504 is used to detect whether a preset refund reversal system performs a refund reversal operation corresponding to the target transaction business within the delayed update time;
[0122] A cancel operation unit 505, configured not to update the activity budget of the business activity if the refund reversal system performs the refund reversal operation corresponding to the transaction code within the delayed update time;
[0123] Update unit 506 is used to obtain the target activity budget corresponding to the business activity contained in the transaction refund request if the refund reversal system fails to perform the refund reversal operation corresponding to the transaction code within the delayed update time, and based on the target activity budget, update the total activity budget corresponding to the business activity in the preset database.
[0124] In the activity budget updating device provided by the embodiment of the present invention, when a transaction refund request corresponding to a target transaction business sent by a terminal to a refund system is detected, the business activity in which the target transaction business participates is determined, and the transaction code corresponding to the target transaction business is obtained. After receiving the transaction refund request, the refund system performs the corresponding refund operation according to the request. In order to prevent the need for subsequent refund reversal, the background system sets a delayed update time for the activity budget corresponding to the business activity according to the transaction code. After the delayed update time, it is determined whether the activity budget corresponding to the business interaction needs to be updated, specifically, it is detected whether the refund reversal system performs the refund reversal operation corresponding to the target transaction business within the delayed update time. If not, there is no need to update the activity budget; if so, the target activity budget corresponding to the business activity contained in the refund transaction request is obtained, and the total activity budget of the business activity is updated according to the target activity budget.
[0125] By using the device provided in the embodiment of the present invention, the activity budget can be effectively controlled to prevent the activity budget from being exceeded.
[0126] The device provided in the embodiment of the present invention further includes:
[0127] A second acquisition unit, configured to acquire transaction information corresponding to the target transaction business;
[0128] A generating unit, configured to generate a transaction code corresponding to the target transaction service based on the transaction information;
[0129] a sending unit, configured to send the transaction information and the transaction code to the refund system, triggering each refund server in the refund system to generate a maximum refund time corresponding to the target transaction business based on the transaction information and the transaction code; wherein the refund system comprises a plurality of refund servers, each of the refund servers being configured to perform different refund service operations, and the maximum refund time corresponding to each of the servers being the longest operation time required for the refund server to perform the refund service operation corresponding to the refund server based on the transaction information and the transaction code;
[0130] The storage unit is used to receive each maximum refund time sent by the refund system, and associate each maximum refund time with the transaction code and store it. In the device provided by the embodiment of the present invention, the setting unit 503 includes:
[0131] An acquisition subunit, used to acquire each maximum refund time associated with the transaction code;
[0132] The calculation subunit is used to calculate the time difference between each of the maximum refund times, and set the time difference as the delayed update time of the activity budget corresponding to the business activity.
[0133] In the device provided in the embodiment of the present invention, the detection unit 504 includes:
[0134] A monitoring subunit, used to monitor the system log of the refund reversal system;
[0135] A query subunit, used to query in real time whether the system log contains the transaction code corresponding to the target transaction business within the delayed update time;
[0136] A first determining subunit is configured to determine that the refund reversal system has executed the refund reversal operation corresponding to the target transaction business within the delayed update time if the system log is found to contain the transaction code corresponding to the target transaction business within the delayed update time;
[0137] The second determination subunit is used to determine that the refund reversal system has not performed the refund reversal operation corresponding to the target transaction business within the delayed update time if the system log is not found to contain the transaction code corresponding to the target transaction business within the delayed update time.
[0138] The device provided in the embodiment of the present invention further includes:
[0139] The closing unit is used to detect in real time whether the total activity budget corresponding to the business activity in the database reaches a preset budget threshold, and close the business activity when the total activity budget reaches the preset budget threshold.
[0140] The specific working process of each unit and sub-unit in the activity budget updating device disclosed in the above embodiment of the present invention can refer to the corresponding content in the activity budget updating method disclosed in the above embodiment of the present invention, which will not be repeated here.
[0141] An embodiment of the present invention further provides a storage medium, wherein the storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned activity budget updating method.
[0142] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 6 As shown, it specifically includes a memory 601 and one or more instructions 602, wherein the one or more instructions 602 are stored in the memory 601 and are configured to be executed by one or more processors 603 to perform the following operations:
[0143] When detecting a transaction refund request corresponding to a target transaction business sent by the terminal to the refund system, determining the business activities in which the target transaction business participates;
[0144] Obtaining the transaction code corresponding to the target transaction business in the transaction refund request;
[0145] Based on the transaction code, setting a delayed update time of the activity budget corresponding to the business activity;
[0146] Detecting whether a preset refund reversal system performs a refund reversal operation corresponding to the target transaction business within the delayed update time;
[0147] If the refund reversal system performs the refund reversal operation corresponding to the transaction code within the delayed update time, the activity budget of the business activity is not updated;
[0148] If the refund reversal system fails to perform the refund reversal operation corresponding to the transaction code within the delayed update time, the target activity budget corresponding to the business activity contained in the transaction refund request is obtained, and based on the target activity budget, the total activity budget corresponding to the business activity in the preset database is updated.
[0149] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0150] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, computer software, or a combination of both.
[0151] In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0152] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for updating an activity budget, It is characterized in that include: Obtain transaction information corresponding to the target transaction business; Based on the transaction information, generate a transaction code corresponding to the target transaction business; Sending the transaction information and the transaction code to the refund system, triggering each refund server in the refund system to generate a maximum refund time corresponding to the target transaction business based on the transaction information and the transaction code; wherein the refund system includes multiple refund servers, each of which is used to perform different refund service operations, and the maximum refund time corresponding to each server is the longest operation time required for the refund server to perform the refund service operation corresponding to the refund server based on the transaction information and the transaction code; receiving each maximum refund time sent by the refund system, and associating and saving each maximum refund time with the transaction code; When detecting a transaction refund request corresponding to the target transaction business sent by the terminal to the refund system, determining the business activities in which the target transaction business participates; Obtaining the transaction code corresponding to the target transaction business in the transaction refund request; Based on the transaction code, setting the delayed update time of the activity budget corresponding to the business activity includes: obtaining each maximum refund time associated with the transaction code; calculating the time difference between each maximum refund time, and setting the time difference as the delayed update time of the activity budget corresponding to the business activity; Detecting whether a preset refund reversal system has executed a refund reversal operation corresponding to the target transaction business within the delayed update time, including: monitoring a system log of the refund reversal system; querying in real time whether the system log contains a transaction code corresponding to the target transaction business within the delayed update time; if the system log is found to contain a transaction code corresponding to the target transaction business within the delayed update time, determining that the refund reversal system has executed the refund reversal operation corresponding to the target transaction business within the delayed update time; if the system log is not found to contain a transaction code corresponding to the target transaction business within the delayed update time, determining that the refund reversal system has not executed the refund reversal operation corresponding to the target transaction business within the delayed update time; If the refund reversal system performs the refund reversal operation corresponding to the transaction code within the delayed update time, the activity budget of the business activity is not updated; If the refund reversal system fails to perform the refund reversal operation corresponding to the transaction code within the delayed update time, the target activity budget corresponding to the business activity contained in the transaction refund request is obtained, and based on the target activity budget, the total activity budget corresponding to the business activity in the preset database is updated.
2. The method according to claim 1, It is characterized in that Also includes: Real-time detection is performed to determine whether the total activity budget corresponding to the business activity in the database reaches a preset budget threshold, and when the total activity budget reaches the preset budget threshold, the business activity is closed.
3. An activity budget updating device, It is characterized in that include: A second acquisition unit is used to acquire transaction information corresponding to the target transaction business; A generating unit, configured to generate a transaction code corresponding to the target transaction service based on the transaction information; A triggering unit is used to send the transaction information and the transaction code to the refund system, triggering each refund server in the refund system to generate a maximum refund time corresponding to the target transaction business based on the transaction information and the transaction code; wherein the refund system includes a plurality of refund servers, each of which is used to perform different refund service operations, and the maximum refund time corresponding to each server is the longest operation time required for the refund server to perform the refund service operation corresponding to the refund server based on the transaction information and the transaction code; A storage unit, used for receiving each maximum refund time sent by the refund system, and associating each maximum refund time with the transaction code and storing the same; a determination unit, configured to determine the business activities in which the target transaction business participates when detecting a transaction refund request corresponding to the target transaction business sent by the terminal to the refund system; A first acquisition unit, configured to acquire a transaction code corresponding to the target transaction business in the transaction refund request; A setting unit, configured to set a delayed update time of the activity budget corresponding to the business activity based on the transaction code; The setting unit includes: an acquisition subunit and a calculation subunit; The acquisition subunit is used to acquire each maximum refund time associated with the transaction code; The calculation subunit is used to calculate the time difference between each of the maximum refund times, and set the time difference as the delayed update time of the activity budget corresponding to the business activity; A detection unit, used to detect whether a preset refund reversal system performs a refund reversal operation corresponding to the target transaction business within the delayed update time; The detection unit includes: a monitoring subunit, a query subunit, a first determination subunit and a second determination subunit; The monitoring subunit is used to monitor the system log of the refund reversal system; The query subunit is used to query in real time whether the system log contains the transaction code corresponding to the target transaction business within the delayed update time; The first determining subunit is configured to determine that the refund reversal system has executed the refund reversal operation corresponding to the target transaction business within the delayed update time if the system log is found to contain the transaction code corresponding to the target transaction business within the delayed update time; The second determining subunit is used to determine that the refund reversal system has not performed the refund reversal operation corresponding to the target transaction business within the delayed update time if the system log is not found to contain the transaction code corresponding to the target transaction business within the delayed update time; a cancel operation unit, configured to not update the activity budget of the business activity if the refund reversal system performs the refund reversal operation corresponding to the transaction code within the delayed update time; An updating unit is used to obtain the target activity budget corresponding to the business activity contained in the transaction refund request if the refund reversal system fails to perform the refund reversal operation corresponding to the transaction code within the delayed update time, and based on the target activity budget, update the total activity budget corresponding to the business activity in a preset database.
4. The device according to claim 3, It is characterized in that Also includes: The closing unit is used to detect in real time whether the total activity budget corresponding to the business activity in the database reaches a preset budget threshold, and close the business activity when the total activity budget reaches the preset budget threshold.
