Method, device and equipment for automatically processing recharge staging presentation and storage medium
Through the automated processing of recharge and installment gifts, the problem of one-time payment of gifts in the member recharge reward system in the existing technology is solved, and the installment of the gift amount is achieved is achieved, and member activity and fund management efficiency are improved.
Patent Information
- Application Number
- CN202411450428.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-02-28
AI Technical Summary
In the existing member recharge reward system, it is difficult to ensure that members continue to be active in one go, and the financial management burden of the backend system is increased. At the same time, installment arrears are subject to multiple fund accounting during the implementation process, which affects the fluency of the member experience.
Through the automatic processing of recharge installment gifts, in response to the recharge order data sent by the cashier system, match the corresponding recharge rules, and determine whether the conditions for the first-term gift amount are met for the immediate refund and the regular refund of the gift amount are returned. Calculate the amount of each issue and its corresponding installment appointment time, automatically divide the gift amount into multiple installments, and automatically perform the corresponding installment gift task at each installment appointment time.
The installment of the donated amount is realized. Through algorithms and flexible parameter settings, the unchange caused by multiple arrivals in a single cycle is effectively avoided, operational efficiency and accuracy are improved, and member activity and fund management efficiency are enhanced.
Smart Images

Figure CN119539873A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the fields of computer technology and related technologies, and in particular, to a method, apparatus, device, and storage medium suitable for automatically processing recharge installment gifts. Background Art
[0002] In the existing implementation of member recharge rewards, the backend system often distributes the entire gift amount to members at one time.
[0003] However, this approach faces technical problems: first, it is difficult to ensure that members remain active, because members may quickly consume all the bonuses. Second, it increases the burden on the backend system in terms of fund management, and there are risks in releasing a large amount of funds at one time. If the backend system adopts the method of instalment payment, there are still challenges in the implementation process, that is, there are multiple fund deposits in a single payment cycle, which affects the smoothness of the member experience. Summary of the invention
[0004] The embodiments described herein provide a method, apparatus, device and storage medium for automatically processing recharge installment gifts, which solve the problems existing in the prior art.
[0005] According to a first aspect of the present disclosure, a method for automatically processing recharge installment gifts is provided, comprising:
[0006] In response to receiving the recharge order data sent by the cash register system, matching the corresponding recharge rules, and determining whether the recharge order satisfies the conditions of the immediate return of the first-term gift amount and the regular return of the gift amount set in the recharge rules;
[0007] When it is confirmed that the recharge order meets the conditions for the immediate return of the first-period gift amount and the regular return of the gift amount, the gift amount for each period and its corresponding installment arrival time are calculated according to the recharge order data and the recharge rules;
[0008] The first installment gift amount is transferred to the member account, and the corresponding installment gift tasks are automatically generated according to the remaining gift amount and the installment arrival time;
[0009] At each installment arrival time, the corresponding installment gift task is automatically executed, and each installment gift amount of the remaining gift amount is transferred to the member account one by one;
[0010] At the same time, the execution of the installment gift tasks of each recharge activity is monitored until it is confirmed that the gift amounts of each installment of all the remaining gift amounts are transferred to the member account, then all the installment gift tasks related to the current recharge activity are terminated.
[0011] In some embodiments of the present disclosure, before the step of responding to receiving the recharge order data sent by the cash register system, the method includes:
[0012] Constructing the recharge activity and configuring the recharge rules of the recharge activity, wherein the recharge rules at least include setting conditions for the immediate return of the first bonus amount and the regular return of the bonus amount;
[0013] The data including the recharge rules are synchronized to a cash register system, so that the cash register system can monitor and process the recharge orders of the recharge activities.
[0014] In some embodiments of the present disclosure, the recharge rule includes one or more of the following settings:
[0015] Rule name, top-up amount, gift amount, gift points, gift method, number of installments, return period, gift coupons, and calculation method of gift amount for each installment and time of receipt;
[0016] The gifting method includes: the conditions of immediate return of the first gift amount and / or regular return of the gift amount;
[0017] The return period includes one or more of the following: every day, a fixed date of each week, and a fixed date of each month.
[0018] In some embodiments of the present disclosure, the recharge order data includes one or more of the following:
[0019] Recharge member ID, first recharge time and recharge amount.
[0020] In some embodiments of the present disclosure, the step of calculating each gift amount includes:
[0021] When the first-period gift amount is the same as the gift amount for each subsequent installment, assuming that the recharge amount is L, the gift amount is M, and the number of installments is N, the gift amount for each installment P can be obtained by evenly allocating the gift amount M to N installments, and the calculation formula is: P = M / N;
[0022] Optionally, the first-period gift amount Q is directly equal to the gift amount P for each period, that is, the expression is Q = P;
[0023] The remaining gift amount R to be distributed in installments is the gift amount M minus the first installment gift amount Q. The calculation formula is: R=MQ. Since Q=P, we get R=MP.
[0024] In some embodiments of the present disclosure, the step of calculating the time for the installment gift to arrive includes:
[0025] Record the first arrival time, theoretical arrival time of this cycle and theoretical arrival time of the next cycle, where the theoretical arrival time of this cycle and the theoretical arrival time of the next cycle are separated by X days, and the first arrival time and the theoretical arrival time of the next cycle are separated by Y days;
[0026] The next arrival time is calculated as follows:
[0027] If the theoretical arrival time of this cycle is earlier than the first arrival time, the next arrival time will be the XYth day after the first arrival time;
[0028] If the theoretical arrival time of this cycle is later than the first arrival time, the next arrival time will be the X+Y day after the first arrival time;
[0029] If the theoretical arrival time of this cycle is equal to the first arrival time, the funds will be credited according to the theoretical arrival time of the next cycle.
[0030] According to a second aspect of the present disclosure, a device for automatically processing recharge installment gifts is provided, comprising:
[0031] A judgment module, for responding to the recharge order data sent by the cash register system, matching the corresponding recharge rules, and judging whether the recharge order satisfies the conditions of the immediate return of the first-term gift amount and the regular return of the gift amount set in the recharge rules;
[0032] A calculation module, for calculating the gift amount for each period and its corresponding installment arrival time according to the recharge order data and the recharge rules when confirming that the recharge order meets the conditions of the immediate return of the first-period gift amount and the regular return of the gift amount;
[0033] A generation module, used to transfer the first gift amount to the member account, and automatically generate corresponding installment gift tasks according to the remaining gift amount and the installment arrival time;
[0034] An execution module, used for automatically executing the corresponding installment gift task at each installment arrival time, and transferring each installment gift amount of the remaining gift amount into the member account one by one;
[0035] The monitoring module is used to monitor the execution of the installment gift tasks of each recharge activity until it is confirmed that the gift amounts of each period of all the remaining gift amounts are transferred to the member account, then terminate all the installment gift tasks related to the current recharge activity.
[0036] In some embodiments of the present disclosure, it further includes:
[0037] A construction module, used to construct the recharge activity and configure the recharge rules of the recharge activity;
[0038] The sending module is used to synchronize the data including the recharge rules to the cash register system so that the cash register system can monitor and process the recharge orders participating in the recharge activity.
[0039] According to a third aspect of the present disclosure, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the method in any one of the above embodiments are implemented.
[0040] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.
[0041] The method for automatically processing recharge installment gifts provided by the embodiment of the present disclosure responds to the received recharge order data, matches the corresponding recharge rules, and determines whether the recharge order satisfies the conditions of the immediate return of the first-term gift amount and the periodic return of the gift amount set in the recharge rules. If so, the gift amount for each period and its corresponding installment arrival time are calculated according to the recharge order data and the recharge rules; the first-term gift amount is transferred to the member account, and the corresponding installment gift task is automatically generated according to the remaining gift amount and the installment arrival time; at each installment arrival time, the corresponding installment gift task is automatically executed, and the gift amount for each period of the remaining gift amount is transferred to the member account one by one; at the same time, the execution of the installment gift task of each recharge activity is monitored until it is confirmed that the gift amount for each period of all the remaining gift amounts has been transferred to the member account, then all installment gift tasks related to the current recharge activity are terminated. The method provided by the embodiment of the present disclosure adopts automated intelligent installment payment. By dividing the gift amount into multiple installments, the gift amount and the precise arrival time interval are intelligently calculated and set. The gift amount is immediately credited after the first recharge, and the gift amount is only allowed to be credited once in each subsequent arrival cycle. The scheduled task of installment payment is automatically executed, and the installment payment of the gift amount is realized. Through algorithms and flexible parameter settings, the instability caused by multiple arrivals in a single cycle is effectively avoided, the operating efficiency and accuracy are improved, and the dual improvement of member activity and fund management efficiency is achieved.
[0042] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below. It should be noted that the drawings described below only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure, wherein:
[0044] Figure 1 It is a flowchart of a method for automatically processing recharge installment gifts provided by an embodiment of the present disclosure;
[0045] Figure 2 It is a structural schematic diagram of a device for automatically processing recharge installment gifts provided by an embodiment of the present disclosure;
[0046] Figure 3 It is a structural diagram of a computer device provided in an embodiment of the present disclosure.
[0047] In the drawings, reference numerals with the same last two digits correspond to the same elements. It should be noted that the elements in the drawings are schematic and not drawn to scale. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present disclosure.
[0049] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase "embodiments" in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0050] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists, A and B exist at the same time, and B exists. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0051] Furthermore, in all embodiments of the present disclosure, terms such as “first” and “second” are used only to distinguish one component (or a part of a component) from another component (or another part of a component).
[0052] In the description of the present application, unless otherwise specified, "plurality" means more than two (including two), and similarly, "multiple groups" means more than two groups (including two).
[0053] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0054] The method for automatically processing recharge installment gifts provided by the embodiment of the present disclosure is applied to background system equipment.
[0055] Based on the problems existing in the existing technology, Figure 1 : is a flow chart of a method for automatically processing recharge installment gifts provided by an embodiment of the present disclosure, such as Figure 1 As shown, the specific process of the method for automatically processing recharge installment gifts includes:
[0056] S110, in response to receiving the recharge order data sent by the cash register system, the backend system matches the corresponding recharge rules and determines whether the recharge order satisfies the conditions of the immediate return of the first-term gift amount and the regular return of the gift amount set in the recharge rules;
[0057] In a specific implementation, the recharge order data includes one or more of the following:
[0058] Recharge member ID, first recharge time and order amount.
[0059] After receiving the recharge order data sent by the cash register system, the backend system automatically reads the recharge member ID, the first recharge time, the order amount and other data in the recharge order. The backend system identifies the applicable recharge rules based on the order amount of the current recharge order.
[0060] The recharge rules include one or more of the following settings:
[0061] Rule name, top-up amount, gift amount, gift points, gift method, number of installments, gift ratio, return period, gift coupons, and calculation method of gift amount for each installment and time of receipt;
[0062] The gifting method includes: the conditions of immediate return of the first gift amount and / or regular return of the gift amount;
[0063] The return period includes one or more of the following: every day, a fixed date of each week, and a fixed date of each month.
[0064] S120. When it is confirmed that the recharge order meets the conditions of the immediate refund of the first-period gift amount and the periodic refund of the gift amount, the gift amount for each period and its corresponding installment arrival time are calculated according to the recharge order data and the recharge rules.
[0065] In a specific implementation, the gift amount for each installment is calculated according to the order amount in the recharge order data and the gift amount and the number of installments in the recharge rule, including:
[0066] When the first-period gift amount is the same as the gift amount for each subsequent installment, assuming that the recharge amount is L, the gift amount is M, and the number of installments is N, the gift amount for each installment P can be obtained by evenly allocating the gift amount M to N installments, and the calculation formula is: P = M / N;
[0067] Optionally, the first-period gift amount Q is directly equal to the gift amount P for each period, that is, the expression is Q = P;
[0068] The remaining gift amount R to be distributed is the gift amount M minus the first gift amount Q. The calculation formula is: R = MQ. Since Q = P, it can be regarded as R = MP.
[0069] Taking the example of recharging 1,000 yuan to get a gift of 200 yuan, the recharge amount is 1,000 yuan, the gift amount is 200 yuan, and the number of installments is 5, that is, the gift amount is divided into 5 installments, the gift amount in each installment = 200 yuan / 5 = 40 yuan, the first gift amount is 40 yuan, and the remaining gift amount is 200-40 = 160 yuan, divided into four installments, and the gift amount in each subsequent installment is 40 yuan, that is, the second gift amount is 40 yuan, the third gift amount is 40 yuan, the fourth gift amount is 40 yuan, and the fifth gift amount is 40 yuan, ensuring that the 200 yuan gift is completed in five installments.
[0070] When the first bonus amount is different from the bonus amount of each subsequent installment, let the recharge amount be L, the bonus amount be M, the number of installments be N, the first bonus amount be Q, and the subsequent bonus amount be P. If P is different from Q, then the remaining bonus amount needs to cover all the bonuses from the second to the Nth installment, that is, the total amount of the (N-1)th installment. The remaining bonus amount is MQ after deducting the first bonus amount;
[0071] Optionally, if the gift amount in each subsequent period is the same P, then the total amount of the (N-1) period is (N-1)*P, so as to correctly allocate the remaining gift amount.
[0072] Optionally, the gift amount in each subsequent period may be the same or P may be different.
[0073] In summary, it is necessary to ensure that the gift amount is distributed within N periods and the total amount does not exceed.
[0074] In a specific implementation, the time for the installment gift to arrive is calculated based on the return period in the recharge rule and the first recharge time in the recharge order data.
[0075] The calculation of the time for the installment gift to arrive takes into account the relative relationship between the first arrival time and the return period, ensuring that the gift amount arrives only once in each arrival period and that the first installment gift amount arrives immediately after the first recharge. Determine whether each arrival time should be calculated based on the first arrival time and the return period to ensure that the next arrival time meets the set conditions.
[0076] Record the first arrival time A, the theoretical arrival time of this cycle B and the theoretical arrival time of the next cycle C, where the theoretical arrival time of this cycle and the theoretical arrival time of the next cycle are separated by X days, X=CB, and the first arrival time and the theoretical arrival time of the next cycle are separated by Y days, Y=AB. By calculating these two time intervals, the time point of installment arrival can be accurately controlled;
[0077] The next arrival time is calculated as follows:
[0078] If the theoretical arrival time of this cycle is earlier than the first arrival time, the next arrival time will be the XYth day after the first arrival time;
[0079] If the theoretical arrival time of this cycle is later than the first arrival time, the next arrival time will be the X+Y day after the first arrival time;
[0080] If the theoretical arrival time of this cycle is equal to the first arrival time, the funds will be credited according to the theoretical arrival time of the next cycle.
[0081] For example, convert the arrival time into a specific day of the week or date. Taking week as an example, compare the set return date (e.g., every Wednesday) with the first arrival date; if the first arrival date is earlier than the set return date, the next arrival time is set on the 7th day after the first arrival date (or other set cycle days), and is the next return date (e.g., next Wednesday); if the set return date is earlier than the first arrival date, the next arrival time is also set on the 7th day after the first arrival date (or other set cycle days), and meets the conditions of the next return date.
[0082] The following are some specific examples:
[0083] Example 1: The recharge rules set the gift method as immediate refund of the first gift amount and regular refund of the gift amount, and the refund cycle is every day. If the first recharge time of the recharge order is today, the first arrival time is today, the theoretical arrival time of this period is today, and the theoretical arrival time of the next period is tomorrow. X=CB=1, Y=AB=0, XY=1, X+Y=1, and the actual next arrival time is tomorrow. It will be received according to the normal cycle, that is, every day.
[0084] Example 2: The recharge rules set the gift method as immediate refund of the first gift amount and regular refund of the gift amount, and the refund period is every Tuesday. If the first recharge time of the recharge order is this Tuesday, the first arrival time is this Tuesday, the theoretical arrival time of this period is this Tuesday, and the theoretical arrival time of the next period is next Tuesday. X=CB=7, Y=AB=0, XY=7, X+Y=7, and the actual next arrival time is next Tuesday. It will be received according to the normal cycle, that is, every Tuesday.
[0085] Example 3: The recharge rule sets the gift method as immediate refund of the first gift amount and regular refund of the gift amount, and the refund period is every Tuesday. If the first recharge time of the recharge order is this Monday, the first arrival time is this Monday, the theoretical arrival time for this period is this Tuesday, and the theoretical arrival time for the next period is next Tuesday. X=CB=7, Y=AB=1, XY=6, X+Y=8, and the actual next arrival time is next Tuesday. If B is greater than A, the next arrival must be on the 8th day after the recharge, that is, next Tuesday.
[0086] Example 4: The recharge rule sets the gift method as immediate refund of the first gift amount and regular refund of the gift amount, and the refund period is every Tuesday. If the first recharge time of the recharge order is this Wednesday, the first arrival time is this Wednesday, the theoretical arrival time of this period is this Tuesday, and the theoretical arrival time of the next period is next Tuesday. X=CB=7, Y=AB=1, XY=6, X+Y=8, and the actual next arrival time is next Tuesday. If B is greater than A, the next arrival must be on the 8th day after the recharge, that is, next Tuesday.
[0087] Example 5: The recharge rules set the gift method as immediate refund of the first gift amount and regular refund of the gift amount, and the refund period is the 28th of each month. If the first recharge time of the recharge order is April 28, 2024, the first arrival time is April 28, 2024. The theoretical arrival time for this period is April 28, 2024, and the theoretical arrival time for the next period is May 28, 2024. X=CB=30, Y=AB=0, XY=30, X+Y=30, and the actual next arrival time is May 28, 2024. It will arrive according to the normal cycle, that is, the 30th day after the recharge, that is, May 28, 2024.
[0088] Example 6: The recharge rules set the gift method as immediate refund of the first gift amount and regular refund of the gift amount, and the refund period is the 28th of each month. If the first recharge time of the recharge order is April 27, 2024, the first arrival time is April 27, 2024, the theoretical arrival time for this period is April 28, 2024, and the theoretical arrival time for the next period is May 28, 2024. X=CB=30, Y=AB=1, XY=29, X+Y=31, and the actual next arrival time is May 28, 2024. The next arrival must be on the 31st day after the recharge, that is, May 28, 2024.
[0089] Example 7: The recharge rules set the gift method as immediate refund of the first gift amount and regular refund of the gift amount, and the refund period is the 28th of each month. If the first recharge time of the recharge order is April 29, 2024, the first arrival time is April 29, 2024. The theoretical arrival time for this period is April 28, 2024, and the theoretical arrival time for the next period is May 28, 2024. X=CB=30, Y=AB=1, XY=29, X+Y=31, and the actual next arrival time is May 28, 2024. The next arrival must be on the 29th day after the recharge, that is, May 28, 2024.
[0090] Ensure that the gift amount is only credited once in each payment cycle to prevent duplicate credits in the same cycle.
[0091] S103, transferring the first installment gift amount to the member account, and automatically generating corresponding installment gift tasks according to the remaining gift amount and the installment arrival time.
[0092] In a specific implementation method, once the background system confirms that the recharge order meets the gift conditions and determines the first gift amount, the background system immediately executes the transfer operation and transfers the first gift amount to the member account. After the first gift is completed, based on the remaining gift amount and the installment arrival time, combined with the remaining gift amount, a gift task is automatically generated for each period. These tasks will be arranged into an orderly task sequence, and each task includes key elements such as gift amount, arrival time, and member account information.
[0093] Through the above method, the automatic processing of the recharge orders of the installment gift type sent by the cash register system can be realized, which improves the efficiency and reduces the manual operation.
[0094] S130. At each installment arrival time, the corresponding installment gift task is automatically executed, and each installment gift amount of the remaining gift amount is transferred to the member account one by one.
[0095] In a specific implementation method, the backend system automatically triggers and executes the corresponding gift task at each arrival time according to a preset schedule, and transfers the gift amount to the member account accurately.
[0096] After each successful transfer, a transfer record is automatically generated, including key information such as transfer time, transfer amount, transfer-out account, transfer-in account, etc., and the transfer record is saved in the database.
[0097] S140, monitoring the execution status of the installment gift task of each recharge activity until it is confirmed that all gift amounts are transferred to the member account, and then activating the stop process to terminate the installment gift task related to the current recharge activity.
[0098] In a specific implementation, during the entire installment gifting process, the backend system continuously monitors the execution of each gifting task, and can periodically query the execution of the task through an interface call or polling mechanism, including whether the task has been started, is being executed, successfully completed or failed, etc. Once a task is successfully executed, the system will record the successful transfer information and update the balance of the member account.
[0099] Before executing the transfer operation, check whether the current time has reached the scheduled arrival time. If not, delay the execution. If it has, continue to execute the transfer operation. In this way, ensure that each transfer operation strictly corresponds to the scheduled arrival time, and prevent repeated transfers in the same cycle.
[0100] Through the above scheme, it is possible to achieve comprehensive monitoring and management of the execution status of the installment gift tasks of each recharge activity, ensure that each transfer operation is carried out according to the predetermined return cycle, and automatically trigger the stop mechanism after reaching the installment number to terminate all related tasks. This not only improves the automation and accuracy of the background system, but also prevents the occurrence of potential problems such as duplicate transfers.
[0101] In a specific embodiment, before step S110, the following steps are also included:
[0102] S1001. Construct the recharge activity and configure the recharge rules of the recharge activity, wherein the recharge rules at least include the setting of conditions for the immediate return of the first bonus amount and the regular return of the bonus amount.
[0103] In a possible implementation, an intuitive user interface (UI) may be provided to allow merchants to input relevant information of recharge activities through a graphical interface. The interface should include an area for inputting basic information of recharge activities (e.g., rule name, etc.), an area for setting recharge and gift rules (e.g., recharge amount, gift amount, gift points, gift method, number of installments, etc.), and an area for selecting a return period (e.g., a fixed date every day, a fixed date every week, a fixed date every month, etc.).
[0104] The backend system receives the relevant information of the recharge activity input from the merchant interface through a preset interface (such as API, Web service, etc.), and the information is encoded as structured data (such as JSON, XML);
[0105] In a specific implementation, the recharge rules are configured according to the specific information of the recharge activity, including:
[0106] First, set the recharge amount conditions and clarify the recharge amount threshold for participating in the recharge activity. It can be a single threshold, such as 100 yuan, or multiple levels, such as 10 yuan for 100 yuan, 80 yuan for 500 yuan, etc. Then, according to the different levels of the recharge amount, set the corresponding gift amount, which can be a fixed amount or a certain proportion of the recharge amount. Thirdly, determine the points gift rules and gift methods, such as direct deposit or installment gift, etc. For installment gift, it is necessary to further set the number of installments, the gift amount for each installment, and the return period. It is also necessary to give the first installment gift. If the activity method involves the immediate return of the first installment amount, it is necessary to determine the gift amount or proportion of the first installment return. If the activity involves the regular return of the gift amount, it is necessary to set the number of installments and the return time or period of each installment, such as three installments, and return once each installment. If the recharge activity includes coupons, it is necessary to determine the type of coupons, such as full-reduction coupons, discount coupons, etc., as well as the denomination, validity period, and usage conditions. Set the activity status, such as start, pause, end, etc.; set trigger conditions, such as automatic matching rules when members recharge, set actions, such as calculating the gift amount, issuing points and coupons, etc., as well as subsequent tracking and feedback mechanisms, such as recording gift records, monitoring activity execution, etc.
[0107] S1002. Synchronize the data including the recharge rules to the cash register system, so that the cash register system can monitor and process the recharge orders participating in the recharge activity.
[0108] In a specific implementation, after the recharge activity is set up, the system automatically sends the recharge rule data to the cash register system in real time, and can achieve instant data transmission and update through Websocket, Sever-Sent Events or other real-time communication technologies.
[0109] The cash register system obtains the recharge rule data from the background system through data downloading and saves it in a database.
[0110] The cash register system monitors the recharge orders participating in the recharge activity in real time, and collects relevant data including the recharge user ID, the first recharge time, and the order amount;
[0111] It should be noted that the cash register system determines whether each recharge order participating in the recharge activity belongs to the installment gift type based on the recharge rule data. For recharge orders that belong to the installment gift type, the recharge order data is sent to the background system. For recharge orders that do not belong to the installment gift type, the cash register directly transfers the entire gift amount to the member account.
[0112] Specifically, the cashier system will compare the order amount in the recharge order with the recharge amount in the recharge rules to determine whether the recharge order meets the conditions for participating in the recharge activity. If the order amount meets the conditions set in the recharge rules, such as falling within a specific range, etc., then the recharge order is deemed to meet the requirements of the recharge activity and is a recharge order of the installment gift type.
[0113] Through the above steps, the order amount in the recharge order can be effectively compared and distinguished from the recharge amount set by the recharge rules, ensuring the accuracy of the recharge activities, and realizing seamless connection and data sharing between the cash register system and the background system, thereby enhancing the consistency and accuracy of the data.
[0114] The method for automatically processing recharge installment gifts provided by the embodiments of the present disclosure is applicable to the scenario of instant refund for the first recharge and installment gifts, and the method includes: in response to receiving recharge order data sent by the cash register system, identifying the recharge rules applicable to the recharge order; calculating the gift amount for each period and the arrival time of the installment gifts based on the recharge order data and the recharge rules, and generating corresponding installment gift tasks according to the calculation results; at each preset installment gift arrival time, automatically triggering the execution of the corresponding installment gift task, and transferring the calculated gift amount for each period into the member account; monitoring the execution status of the installment gift tasks of each recharge activity until it is confirmed that all gift amounts have been transferred to the member account, and then activating the stop process to terminate the installment gift tasks related to the current recharge activity. The method provided by the embodiment of the present disclosure adopts automated intelligent installment payment. By dividing the gift amount into multiple installments, the gift amount and the precise arrival time interval are intelligently calculated and set. The gift amount is immediately credited after the first recharge, and the gift amount is only allowed to be credited once in each subsequent arrival cycle. The scheduled task of installment payment is automatically executed, and the installment payment of the gift amount is realized. Through algorithms and flexible parameter settings, the instability caused by multiple arrivals in a single cycle is effectively avoided, the operating efficiency and accuracy are improved, and the dual improvement of member activity and fund management efficiency is achieved.
[0115] Based on the above embodiments, the present disclosure also provides a device for automatically processing recharge installment gifts, such as Figure 2 As shown, the device for automatically processing recharge installment gifts includes:
[0116] The judgment module 201 is used to respond to the recharge order data sent by the cash register system, match the corresponding recharge rules, and judge whether the recharge order satisfies the conditions of the first period bonus amount instant refund and the bonus amount regular refund set in the recharge rules;
[0117] The calculation module 202 is used to calculate the gift amount for each period and its corresponding installment arrival time according to the recharge order data and the recharge rules when confirming that the recharge order meets the conditions of the immediate return of the first period gift amount and the periodic return of the gift amount;
[0118] The generating module 203 is used to transfer the first gift amount to the member account, and automatically generate the corresponding installment gift task according to the remaining gift amount and the installment arrival time;
[0119] An execution module 204 is used to automatically execute the corresponding installment gift task at each installment arrival time, and transfer each installment gift amount of the remaining gift amount into the member account one by one;
[0120] The monitoring module 205 is used to monitor the execution of the installment gift tasks of each recharge activity until it is confirmed that all the remaining gift amounts of each period are transferred to the member account, and then terminate all the installment gift tasks related to the current recharge activity.
[0121] In a specific embodiment, it also includes:
[0122] A construction module 205 is used to construct the recharge activity and configure the recharge rules of the recharge activity;
[0123] The sending module 206 is used to synchronize the data including the recharge rules to the cash register system, so that the cash register system can monitor and process the recharge orders participating in the recharge activity.
[0124] In a specific implementation, the recharge rule includes one or more of the following settings:
[0125] Rule name, top-up amount, gift amount, gift points, gift method, number of installments, return period, gift coupons, and calculation method of gift amount for each installment and time of receipt;
[0126] The gifting methods include: immediate refund of the first gift amount and / or regular refund of the gift amount;
[0127] The return period includes one or more of the following: every day, a fixed date of each week, and a fixed date of each month.
[0128] In a specific implementation, the recharge order data includes one or more of the following:
[0129] Recharge member ID, first recharge time and recharge amount.
[0130] In a specific implementation, the processing module 202 is specifically used to:
[0131] Determine the applicable recharge rules corresponding to the recharge amount of the current recharge order;
[0132] Automatically calculate each gift amount based on the selected recharge rules and the time of the first recharge;
[0133] If the refund is based on a proportion, it will be calculated based on the recharge amount and the gift ratio. If the refund is a fixed amount, the preset gift amount will be directly used.
[0134] In a specific implementation, the processing module 202 is specifically used to:
[0135] Record the first arrival time A, the theoretical arrival time of this cycle B and the theoretical arrival time of the next cycle C, where the theoretical arrival time of this cycle and the theoretical arrival time of the next cycle are separated by X days, X=CB, and the first arrival time and the theoretical arrival time of the next cycle are separated by Y days, Y=AB;
[0136] The next arrival time is calculated as follows:
[0137] If the theoretical arrival time of this cycle is earlier than the first arrival time, the next arrival time will be the XYth day after the first arrival time;
[0138] If the theoretical arrival time of this cycle is later than the first arrival time, the next arrival time will be the X+Y day after the first arrival time;
[0139] If the theoretical arrival time of this cycle is equal to the first arrival time, the funds will be credited according to the theoretical arrival time of the next cycle.
[0140] It should be noted that in the case where the return period is a fixed date of each month, since the number of days in each month is different, for example, 28, 29, 30, and 31 days are all possible, the first time is equivalent to an irregular arrival, and each subsequent arrival is in installments. Therefore, the above calculation method can ensure that the next time the payment will be made accurately according to the specified arrival time.
[0141] The device for automatically processing recharge installment gifts provided by the disclosed embodiment is suitable for the scenario of immediate refund for the first recharge and installment gifts. Automated intelligent installment payment is adopted, by dividing the gift amount into multiple installments, intelligently calculating and setting the time interval between each gift amount and the precise arrival of the account, the gift amount is immediately credited after the first recharge, and the gift amount is only allowed to be credited once in each subsequent arrival cycle, and the scheduled task of installment payment is automatically executed, realizing the installment payment of the gift amount. Through algorithms and flexible parameter settings, the instability caused by multiple arrivals in a single cycle is effectively avoided, the operational efficiency and accuracy are improved, and the dual improvement of member activity and fund management efficiency is achieved.
[0142] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only 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 the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.
[0143] The present application also provides a computer device. Figure 3 , Figure 3 This is a basic structural block diagram of the computer device in this embodiment.
[0144] The computer device includes a memory 310 and a processor 320 that are connected to each other through a system bus. It should be noted that the figure only shows a computer device with components 310-320, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0145] Computer devices can be computing devices such as desktop computers, notebooks, PDAs, and cloud servers. Computer devices can interact with users through keyboards, mice, remote controls, touch pads, or voice control devices.
[0146] The memory 310 includes at least one type of readable storage medium, and the readable storage medium includes a non-volatile memory or a volatile memory, for example, a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc., and the RAM may include a static RAM or a dynamic RAM. In some embodiments, the memory 310 may be an internal storage unit of a computer device, for example, a hard disk or a memory of the computer device. In other embodiments, the memory 310 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, or a flash card (FlashCard) equipped on the computer device. Of course, the memory 310 may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory 310 is generally used to store the operating system and various application software installed on the computer device, such as the program code of the above method. In addition, the memory 310 may also be used to temporarily store various data that have been output or are to be output.
[0147] The processor 320 is generally used to perform the overall operation of the computer device. In this embodiment, the memory 310 is used to store program codes or instructions, the program code includes computer operation instructions, and the processor 320 is used to execute the program codes or instructions stored in the memory 310 or process data, such as running the program code of the above method.
[0148] In this article, the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus system can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0149] Another embodiment of the present application also provides a computer-readable medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads a computer-readable program code stored in the computer-readable medium, so that the processor can execute the functional actions specified in each step or a combination of steps in the above method; and generate a device for implementing the functional actions specified in each block or a combination of blocks in the block diagram.
[0150] Computer-readable media include but are not limited to electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor systems, devices or apparatuses, or any appropriate combination of the foregoing, the memory is used to store program codes or instructions, the program codes include computer operating instructions, and the processor is used to execute the program codes or instructions of the above methods stored in the memory.
[0151] For the definitions of memory and processor, please refer to the description of the aforementioned computer device embodiment and will not be repeated here.
[0152] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0153] Each functional unit or module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional unit.
[0154] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0155] Unless the context clearly indicates otherwise, the singular form of the words used herein and in the appended claims includes the plural and vice versa. Thus, when referring to the singular, the plural form of the corresponding term is generally included. Similarly, the words "comprise" and "include" are to be interpreted as inclusive rather than exclusive. Likewise, the terms "include" and "or" should be interpreted as inclusive unless such interpretation is expressly prohibited herein. Where the term "example" is used herein, particularly when it is located after a group of terms, the "example" is merely exemplary and illustrative and should not be considered exclusive or comprehensive.
[0156] Further aspects and scopes of adaptability become apparent from the description provided herein. It should be understood that various aspects of the present application can be implemented individually or in combination with one or more other aspects. It should also be understood that the description and specific embodiments herein are intended for purposes of illustration only and are not intended to limit the scope of the present application.
[0157] Several embodiments of the present disclosure are described in detail above, but it is obvious that those skilled in the art can make various modifications and variations to the embodiments of the present disclosure without departing from the spirit and scope of the present disclosure. The protection scope of the present disclosure is defined by the attached claims.
Claims
1. A method for automatically processing recharge installment gifts, characterized in that: include: In response to receiving the recharge order data sent by the cash register system, matching the corresponding recharge rules, and determining whether the recharge order satisfies the conditions of the immediate return of the first-term gift amount and the regular return of the gift amount set in the recharge rules; When it is confirmed that the recharge order meets the conditions for the immediate return of the first-period gift amount and the regular return of the gift amount, the gift amount for each period and its corresponding installment arrival time are calculated according to the recharge order data and the recharge rules; The first installment gift amount is transferred to the member account, and the corresponding installment gift tasks are automatically generated according to the remaining gift amount and the installment arrival time; At each installment arrival time, the corresponding installment gift task is automatically executed, and each installment gift amount of the remaining gift amount is transferred to the member account one by one; At the same time, the execution of the installment gift tasks of each recharge activity is monitored until it is confirmed that the gift amounts of each installment of all the remaining gift amounts are transferred to the member account, then all the installment gift tasks related to the current recharge activity are terminated.
2. The method according to claim 1, characterized in that Before the step of responding to receiving the recharge order data sent by the cash register system, the method includes: Constructing the recharge activity and configuring the recharge rules of the recharge activity, wherein the recharge rules at least include setting conditions for the immediate return of the first bonus amount and the regular return of the bonus amount; The data including the recharge rules are synchronized to a cash register system, so that the cash register system can monitor and process the recharge orders of the recharge activities.
3. The method according to claim 1, characterized in that The recharge rules include one or more of the following settings: Rule name, top-up amount, gift amount, gift points, gift method, number of installments, return period, gift coupons, and calculation method of gift amount for each installment and time of receipt; The gifting method includes: the conditions of immediate return of the first gift amount and / or regular return of the gift amount; The return period includes one or more of the following: every day, a fixed date of each week, and a fixed date of each month.
4. The method according to claim 1, characterized in that: The recharge order data includes one or more of the following: Recharge member ID, first recharge time and recharge amount.
5. The method according to claim 1, characterized in that: The step of calculating each gift amount includes: When the first-period gift amount is the same as the gift amount for each subsequent installment, assuming that the recharge amount is L, the gift amount is M, and the number of installments is N, the gift amount for each installment P can be obtained by evenly allocating the gift amount M to N installments, and the calculation formula is: P = M / N; Optionally, the first-period gift amount Q is directly equal to the gift amount P per period, that is, the expression is Q = P; The remaining gift amount R to be distributed in installments is the gift amount M minus the first installment gift amount Q. The calculation formula is: R=MQ. Since Q=P, we get R=MP.
6. The method according to claim 1, characterized in that The step of calculating the time for the installment gift to arrive includes: Record the first arrival time, theoretical arrival time of this cycle and theoretical arrival time of the next cycle, where the theoretical arrival time of this cycle and the theoretical arrival time of the next cycle are separated by X days, and the first arrival time and the theoretical arrival time of the next cycle are separated by Y days; The next arrival time is calculated as follows: If the theoretical arrival time of this cycle is earlier than the first arrival time, the next arrival time will be the XYth day after the first arrival time; If the theoretical arrival time of this cycle is later than the first arrival time, the next arrival time will be the X+Y day after the first arrival time; If the theoretical arrival time of this cycle is equal to the first arrival time, the funds will be credited according to the theoretical arrival time of the next cycle.
7. A device for automatically processing recharge installment gifts, characterized in that: include: A judgment module, for responding to the recharge order data sent by the cash register system, matching the corresponding recharge rules, and judging whether the recharge order satisfies the conditions of the immediate return of the first-term gift amount and the regular return of the gift amount set in the recharge rules; A calculation module, for calculating the gift amount for each period and its corresponding installment arrival time according to the recharge order data and the recharge rules when confirming that the recharge order meets the conditions of the immediate return of the first-period gift amount and the regular return of the gift amount; A generation module, used to transfer the first gift amount to the member account, and automatically generate corresponding installment gift tasks according to the remaining gift amount and the installment arrival time; An execution module, used for automatically executing the corresponding installment gift task at each installment arrival time, and transferring each installment gift amount of the remaining gift amount into the member account one by one; The monitoring module is used to monitor the execution of the installment gift tasks of each recharge activity until it is confirmed that the gift amounts of each period of all the remaining gift amounts are transferred to the member account, then terminate all the installment gift tasks related to the current recharge activity.
8. The device according to claim 1, characterized in that Also includes: A construction module, used to construct the recharge activity and configure the recharge rules of the recharge activity; The sending module is used to synchronize the data including the recharge rules to the cash register system so that the cash register system can monitor and process the recharge orders participating in the recharge activity.
9. A computer device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.