Business compensation method, device and system
By detecting and managing the execution status of business tasks in the saga model, and using the correction trajectory table and timing detection mechanism, the problem of complex business module calls and multiple threads is solved, real-time monitoring and compensation of the business is realized, and the system structure is simplified.
Patent Information
- Application Number
- CN201810988646.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-08-28
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2038-08-28
AI Technical Summary
When the saga model handles multiple businesses, the calling relationship between business modules is complex and involves many threads. Existing technology cannot effectively solve this problem.
By obtaining the business request, determine the business requested by the business request, including the first type of task and the second type of task, and execute it in different systems, detect the task execution status, compensate if it is abnormal, and use the correction track table to record and manage Task status, the compensation status is detected according to the preset time period to ensure real-time monitoring and compensation of the business.
It reduces the processes and modules involved in the business execution process, realizes real-time monitoring and compensation of the business, simplifies the module calling relationship, and improves the stability and efficiency of the system.
Smart Images

Figure CN109254840B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a service compensation method, device and system. Background Art
[0002] In the prior art, when the saga model processes multiple businesses, it is necessary to process the corresponding businesses in multiple different business modules, and the multiple business modules interact with each other. For example, module A is responsible for parsing business data, module B is responsible for sorting each business, module C records the execution status of each task, module D is used to process business data, and module C calls module E to compensate for abnormal business execution. There are many threads involved in the business execution process, and the calling relationship between modules is complex.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a service compensation method, device, and system to at least solve the technical problem that there are many threads involved in the service execution process and the calling relationship between modules is complex.
[0005] According to one aspect of an embodiment of the present application, a service compensation method is provided, comprising: obtaining a service request; determining the service requested by the service request according to the service request; the service comprising a first category of tasks and a second category of tasks, wherein the first category of tasks are executed in a first system, and the second category of tasks are executed in a second system, and the execution order of the second category of tasks is different from that of the first category of tasks; detecting the execution status of the first category of tasks and the second category of tasks, and compensating the service if an execution abnormality of the first category of tasks or the second category of tasks is detected.
[0006] Optionally, after determining the service for responding to the service request, the method includes: recording an execution status of the service, a first execution status including at least one of the following: starting to execute the service, ending the service execution, executing the service, and whether the service execution is abnormal.
[0007] Optionally, before compensating the business, the method also includes: obtaining the second execution status of the first category of tasks and / or the second category of tasks from the reversal trajectory table, wherein the reversal trajectory table is used to record the names of the first category of tasks and / or the second category of tasks, and the second execution status of the first category of tasks and / or the second category of tasks; determining whether to compensate the business based on the second execution status, wherein when the second execution status of the first category of tasks or the second category of tasks indicates an abnormality, determining to compensate the business.
[0008] Optionally, when the second execution state of the first type of task or the second type of task indicates an abnormality, determining compensation for the business includes: determining the maximum number of corrections and the number of corrections already made for the business; if the number of corrections already made is less than the maximum number of corrections, determining compensation for the business.
[0009] Optionally, after compensating the service, the method further comprises: regularly detecting the compensation status of the service according to a preset time period, wherein the compensation status comprises: compensation success and compensation failure; when it is detected that the compensation status is compensation failure, re-compensating the service.
[0010] Optionally, compensating the business includes: determining a compensation order of tasks in the business, wherein the tasks are subtasks of the first category of tasks or subtasks of the second category of tasks; and compensating the tasks in the business according to the compensation order.
[0011] According to another aspect of the embodiment of the present application, a service compensation system is provided, comprising: a first system for obtaining a service request; determining the service requested by the service request according to the service request; the service includes a first type of task and a second type of task, wherein the first type of task is executed in the first system, the second type of task is executed in the second system, and the execution order of the second type of task and the first type of task is different; detecting the execution status of the first type of task and the second type of task, and compensating the service if an abnormality is detected in the execution of the first type of task or the second type of task. A second system for executing the first type of task; and a third system for executing the second type of task.
[0012] According to another aspect of an embodiment of the present application, a service compensation device is provided, comprising: a collection device for obtaining a service request; a determination device for determining, based on the service request, the service requested by the service request; the service comprising a first category of tasks and a second category of tasks, wherein the first category of tasks is executed in a first system, and the second category of tasks is executed in a second system, and the execution order of the second category of tasks is different from that of the first category of tasks; a processing device for detecting the execution status of the first category of tasks and the second category of tasks; and for compensating the service if an abnormality in the execution of the first category of tasks or the second category of tasks is detected.
[0013] According to another aspect of an embodiment of the present application, a storage medium is provided, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above service compensation method.
[0014] According to another aspect of an embodiment of the present application, a processor is provided, the processor being used to run a program, wherein the above service compensation method is executed when the program is running.
[0015] In an embodiment of the present application, a business request is obtained; based on the business request, the business requested by the business request is determined; the business includes a first type of task and a second type of task, wherein the first type of task is executed in the first system, the second type of task is executed in the second system, and the execution order of the second type of task is different from that of the first type of task; the execution status of the first type of task and the second type of task is detected, and if an abnormality is detected in the execution of the first type of task or the second type of task, the business is compensated. Thus, real-time monitoring of the business corresponding to the business request is achieved, and whether to compensate the business is determined based on the detection results. When executing the business, the technical effect of fewer processes involved and fewer modules involved for executing the business is achieved. This solves the technical problem that there are many threads involved in the business execution process and the calling relationship between modules is complex. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0017] Figure 1 is a flow chart of a service compensation method according to an embodiment of the present application;
[0018] Figure 2 is a structural diagram of a service compensation system according to an embodiment of the present application;
[0019] Figure 3 It is a structural diagram of another service compensation device according to an embodiment of the present application. DETAILED DESCRIPTION
[0020] 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 drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0021] It should be noted that the terms "first", "second", etc. in the specification, claims and above-mentioned drawings of this application are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0022] Before describing the compensation mode of the service, two concepts are defined first: Business exception: A situation where an error occurs in the business logic, such as insufficient account balance, insufficient commodity inventory, etc. Technical exception: An exception that is not caused by the business logic, such as network connection exception, network timeout, etc. The compensation mode uses an additional coordination service to coordinate each service that needs to ensure consistency. The coordination service calls each service in sequence. If an exception occurs in the call of a certain service (including business exceptions and technical exceptions), all previously successfully called services will be cancelled. When each sub-transaction T1, T2,..., Tn has corresponding compensation definitions C1, C2,..., Cn-1, then the system can ensure that the sub-transaction sequence T1, T2,..., Tn is completed (best case). Or the sequence T1, T2,..., Tj, Cj,..., C2, C1, 0 < j < n, is completed. In other words, through the above-defined transaction / compensation, the following business rules are ensured to be met: All businesses are executed successfully. If any one fails, it will be cancelled. If the last step fails, all businesses will also be cancelled.
[0023] Reversal is a remedial measure taken when the system deems that a transaction may fail. That is, a transaction has been set as a success flag at the terminal. However, the accounting transaction packet sent to the host has not received a response, that is, the terminal transaction times out. So it is uncertain whether the transaction has been successfully completed at the host end. To ensure the interests of users, the terminal resends a request to the host to request cancellation of the transaction record of this transaction. If the transaction has been successfully completed at the host end, the transaction will be rolled back. Otherwise, it will not be processed, and then the processing result will be returned to the terminal.
[0024] As Figure 1 shown, Figure 1 is a schematic flowchart of a service compensation method according to an embodiment of the present application. The method at least includes steps S102 - S106:
[0025] Step S102, obtain a service request.
[0026] In an optional embodiment, when a user handles a business, there are two systems involved, a bank system and a third-party system. The bank system includes a local system and a data processing system, wherein the local system can be a counter system or a user's client system; the data processing system is a system for the bank to process business requests. The third-party system can be a system of China Mobile or an insurance company. If a user purchases insurance from Pacific Insurance Company through a bank counter or a bank's client, the third-party system is the system of Pacific Insurance Company. When a user handles a business, the local system obtains the user's business request. Specifically, the local system receives the business request input by the user and sends the business request to the data processing system.
[0027] Step S104: determining the service requested by the service request according to the service request.
[0028] The business includes first-category tasks and second-category tasks, wherein the first-category tasks are executed in the first system, the second-category tasks are executed in the second system, and the execution order of the second-category tasks and the first-category tasks is different.
[0029] In some embodiments, based on the acquired business request, the business requested by the business request is determined, and the various systems used to execute the business are determined. For example: based on the acquired business request for handling insurance, the system for executing the corresponding business is determined to be the bank data processing system and the insurance company's system. For example: the first type of task is the bank's selection of insurance categories, fee calculation, and confirmation of payment for the insurance business, and the second type of task is the insurance company's successful registration business task. Among them, the second type of task is executed only after the first type of task is completed; the second type of task can also be executed first, and then the first type of task, which is flexibly determined according to the actual situation.
[0030] In an optional embodiment of the present application, the method for determining the execution order of the above-mentioned first and second categories of tasks includes but is not limited to the following methods: executing the first and second categories of tasks according to the actual order of executing the business, and executing the first and second categories of tasks according to a customized execution order.
[0031] In some embodiments, after determining the service for responding to the service request, the execution status of the service is recorded, and the first execution status includes at least one of the following: starting to execute the service, ending the service execution, executing the service, and whether the service execution is abnormal.
[0032] The first execution state refers to the execution state of the service.
[0033] In an optional embodiment, before the service starts to be executed in the first system, the first execution status is recorded as the service execution starts, when the service starts to be executed in the first system and has not been completed, the service execution status is recorded as the service execution is in progress, and after the service is completed in the second system, the service execution status is recorded as the service execution is completed. When an abnormal situation occurs during the execution of the service in the first system or the second system, the first system or the second system will feedback the service execution abnormality, which can be a business abnormality or a technical abnormality.
[0034] In an optional embodiment, the first execution state may be stored in its own central flow table, which may be used for end-of-day reconciliation.
[0035] In addition to feeding back the first execution status, the first system or the second system also feeds back the second execution status of the first category of tasks or the second category of tasks. A correction trajectory table is stored in the local system, and the correction trajectory table is used to record the name of the first category of tasks and / or the second category of tasks, and the second execution status of the first category of tasks and / or the second category of tasks. When the first system executes the first category of tasks, it needs to feed back the second execution status of the first category of tasks to the local system, and the second execution status includes at least one of the following: starting to execute the first category of tasks, ending the execution of the first category of tasks, and whether the first category of tasks are executed abnormally during execution. Similarly, when the second system executes the second category of tasks, it also needs to feed back the second execution status of the second category of tasks to the local system.
[0036] Step S106, detecting the execution status of the first type of tasks and the second type of tasks, and if it is detected that the first type of tasks or the second type of tasks are executed abnormally, compensating the business.
[0037] Determine whether to compensate the business based on the second execution state, wherein when the second execution state of the first type of task or the second type of task indicates an abnormality, determine to compensate the business. Specifically, it is necessary to determine the maximum number of reversals and the number of reversals of the business; if the number of reversals is less than the maximum number of reversals, determine to compensate the business.
[0038] The maximum number of reversals refers to the preset maximum number of reversals allowed for the corresponding business.
[0039] In an optional embodiment, a water meter to be flushed is stored in the local system, and the water meter to be flushed stores at least one of the following information: whether the business is successfully flushed, the maximum number of times the business is flushed, and the number of times the business has been flushed.
[0040] The first category of tasks and the second category of tasks may include one or more subtasks respectively, that is, the first category of tasks includes one or more subtasks, and the second category of tasks includes one or more subtasks. When the first system executes each subtask of the first category of tasks, it needs to feed back the third execution status of each subtask of the first category of tasks to the local system, and when the second system executes each subtask of the second category of tasks, it needs to feed back the third execution status of each subtask of the second category of tasks to the local system.
[0041] The third execution state refers to the execution state of each subtask in the first category of tasks and the second category of tasks. The third execution state includes at least one of the following: starting to execute a subtask, ending the execution of the subtask, executing the subtask, and whether the subtask is executed abnormally.
[0042] A correction track table is stored in the local system, and is also used to record the names of the subtasks of the first category of tasks and / or the subtasks of the second category of tasks, as well as the third execution status of the subtasks of the first category of tasks and / or the subtasks of the second category of tasks. Determine whether to compensate for the business based on the third execution status, wherein when the third execution status of the subtasks of the first category of tasks or the subtasks of the second category of tasks indicates an abnormality, determine to compensate for the business. Specifically, it is necessary to determine the maximum number of corrections and the number of corrections that have been made for the business; if the number of corrections that have been made is less than the maximum number of corrections, determine to compensate for the business.
[0043] When compensating for a business, it is necessary to determine the compensation order of tasks in the business, where the tasks are subtasks of the first category of tasks or subtasks of the second category of tasks; the tasks in the business are compensated in the compensation order. When compensating for subtasks of the first category of tasks or subtasks of the second category of tasks, the tasks can be compensated in the order according to the preset priority of task compensation; in addition, tasks can also be compensated selectively.
[0044] The local system is set with a timer. After the service is compensated, the compensation status of the service is regularly detected according to a preset time period. The compensation status includes: compensation success and compensation failure. When the compensation status is detected as compensation failure, the service is compensated again.
[0045] Specifically, the pending reversal track table may be checked, and according to the number of reversals, if the number of reversals is less than the maximum number of reversals, the corresponding business may be compensated.
[0046] The above-mentioned center serial number table, reversal track table and pending reversal track table all contain the center serial number, which is used to mark the business, and each center serial number corresponds to one business.
[0047] It is understandable that when the first system and the second system respectively execute the corresponding first-type tasks and second-type tasks, task codes can be used to mark different tasks, and different task compensation codes can be used when compensating the tasks.
[0048] It should be noted that the execution subject of steps S102-S106 may include but is not limited to a computer device, and the local system may be run on the computer device, but is not limited thereto.
[0049] In an embodiment of the present application, a business request is obtained; based on the business request, the business requested by the business request is determined; the business includes a first type of task and a second type of task, wherein the first type of task is executed in the first system, the second type of task is executed in the second system, and the execution order of the second type of task is different from that of the first type of task; the execution status of the first type of task and the second type of task is detected, and if an abnormality is detected in the execution of the first type of task or the second type of task, the business is compensated. Thus, real-time monitoring of the business corresponding to the business request is achieved, and whether to compensate the business is determined based on the detection results. When executing the business, the technical effect of fewer processes involved and fewer modules involved for executing the business is achieved. This solves the technical problem that there are many threads involved in the business execution process and the calling relationship between modules is complex.
[0050] Figure 2 is a schematic diagram of the structure of a service compensation system according to an embodiment of the present application. Figure 2 As shown, the system includes: a first system 22; a second system 24; and a third system 26. Among them:
[0051] The first system 22 is used to obtain a business request; determine the business requested by the business request according to the business request; the business includes a first-category task and a second-category task, wherein the first-category task is executed in the first system, the second-category task is executed in the second system, and the execution order of the second-category task and the first-category task is different; detect the execution status of the first-category task and the second-category task, and if it is detected that the execution of the first-category task or the second-category task is abnormal, compensate the business;
[0052] The first system 22 is also used to record the execution status of the service. The first execution status includes at least one of the following: starting to execute the service, ending the service execution, executing the service, and whether the service execution is abnormal.
[0053] The second system 22 is also used to store a reversal track table, a central flow table, and a flow table to be reversal. The reversal track table is used to record the name of the first type of task and / or the second type of task, and the second execution status of the first type of task and / or the second type of task; the central flow table is used to store the first execution status; and the flow table to be reversal stores at least one of the following information: whether the business is reversal successful, the maximum number of reversal times for the business, and the number of times the business has been reversal.
[0054] The second system 24 is used to perform the first type of tasks;
[0055] The third system 26 is used to perform the second type of tasks.
[0056] It should be noted that Figure 2 The preferred implementation of the illustrated embodiment can be found in Figure 1 The relevant description of the illustrated embodiment will not be repeated here.
[0057] Figure 3 is a schematic diagram of the structure of a service compensation device according to an embodiment of the present application. Figure 3 As shown, the system includes: a collection module 32; a determination module 34; and a processing module 36. Among them:
[0058] A collection module 32, used to obtain business requests;
[0059] The determination module 34 is used to determine the service requested by the service request according to the service request; the service includes a first type of task and a second type of task, wherein the first type of task is executed in the first system, the second type of task is executed in the second system, and the execution order of the second type of task is different from that of the first type of task;
[0060] The processing module 36 is used to detect the execution status of the first type of tasks and the second type of tasks; if it is detected that the first type of tasks or the second type of tasks are executed abnormally, then compensate the business.
[0061] It should be noted that Figure 3 The preferred implementation of the illustrated embodiment can be found in Figure 1 The relevant description of the illustrated embodiment will not be repeated here.
[0062] The above modules involved in this embodiment can be implemented by software or by corresponding hardware. For example, each of the above modules can be located in a processor, for example: each of the above modules is located in a processor: a processor, including: the above acquisition module 32, and the above determination module 34 and the above processing module 36; each of the above modules is located in a corresponding processor: the above acquisition module 32 and the determination module 34 are located in a first processor, and the above processing module 36 is located in a second processor. According to another aspect of the embodiment of the present application, a storage medium is provided, the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above service compensation method.
[0063] According to another aspect of an embodiment of the present application, a processor is provided, the processor being used to run a program, wherein the above service compensation method is executed when the program is running.
[0064] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0065] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, 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 units or modules, which can be electrical or other forms.
[0066] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0067] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0068] 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, a tasker or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0069] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A business compensation method, It is characterized in that The method comprises: Get business request; Determine, according to the service request, the service requested by the service request; the service includes a first type of task and a second type of task, wherein the first type of task is executed in a first system, the second type of task is executed in a second system, and the execution order of the second type of task and the first type of task is different; Detecting the execution status of the first-type task and the second-type task, and if it is detected that the first-type task or the second-type task is executed abnormally, compensating the business; Before compensating the service, the method further includes: obtaining a second execution status of the first-category task and / or the second-category task from a reversal track table, wherein the reversal track table is used to record the name of the first-category task and / or the second-category task, and the second execution status of the first-category task and / or the second-category task; determining whether to compensate the service according to the second execution status, wherein when the second execution status of the first-category task or the second-category task indicates an abnormality, determining to compensate the service; Among them, when the second execution state of the first type of task or the second type of task indicates an abnormality, compensation for the business is determined, including: determining the maximum number of corrections and the number of corrections already made for the business; if the number of corrections already made is less than the maximum number of corrections, compensation for the business is determined.
2. The method according to claim 1, It is characterized in that After determining the service for responding to the service request, the method includes: recording a first execution state of the service, wherein the first execution state includes at least one of the following: starting to execute the service, ending the service execution, executing the service, and whether the service execution is abnormal.
3. The method according to claim 1, It is characterized in that After compensating the service, the method further includes: Regularly detecting the compensation status of the service according to a preset time period, wherein the compensation status includes: compensation success and compensation failure; When it is detected that the compensation status is compensation failure, the service is compensated again.
4. The method according to claim 1, It is characterized in that Compensation for the said services, including: Determine a compensation order of tasks in the business, wherein the tasks are subtasks of the first category of tasks or subtasks of the second category of tasks; and compensate the tasks in the business according to the compensation order.
5. A business compensation system, It is characterized in that include: The first system is used to obtain a service request; determine the service requested by the service request according to the service request; the service includes a first type of task and a second type of task, wherein the first type of task is executed in the first system, the second type of task is executed in the second system, and the execution order of the second type of task and the first type of task is different; detect the execution status of the first type of task and the second type of task, and if it is detected that the execution of the first type of task or the second type of task is abnormal, compensate the service; The second system is used to perform the first type of tasks; The third system is used to perform the second type of tasks; Before the first system compensates the business, it also includes: obtaining the second execution status of the first type of task and / or the second type of task from the reversal track table, wherein the reversal track table is used to record the name of the first type of task and / or the second type of task, and the second execution status of the first type of task and / or the second type of task; determining whether to compensate the business according to the second execution status, wherein when the second execution status of the first type of task or the second type of task indicates an abnormality, determining to compensate the business; Among them, when the second execution state of the first type of task or the second type of task indicates an abnormality, compensation for the business is determined, including: determining the maximum number of corrections and the number of corrections already made for the business; if the number of corrections already made is less than the maximum number of corrections, compensation for the business is determined.
6. A service compensation device, It is characterized in that include: Collection module, used to obtain business requests; A determination module, configured to determine the service requested by the service request according to the service request; the service includes a first type of task and a second type of task, wherein the first type of task is executed in a first system, the second type of task is executed in a second system, and the execution order of the second type of task is different from that of the first type of task; A processing module, used for detecting the execution status of the first type of tasks and the second type of tasks; and for compensating the business if it is detected that the execution of the first type of tasks or the second type of tasks is abnormal; Before the processing module compensates the business, it also includes: obtaining the second execution status of the first-category task and / or the second-category task from the reversal track table, wherein the reversal track table is used to record the name of the first-category task and / or the second-category task, and the second execution status of the first-category task and / or the second-category task; determining whether to compensate the business according to the second execution status, wherein when the second execution status of the first-category task or the second-category task indicates an abnormality, determining to compensate the business; Among them, when the second execution state of the first type of task or the second type of task indicates an abnormality, compensation for the business is determined, including: determining the maximum number of corrections and the number of corrections already made for the business; if the number of corrections already made is less than the maximum number of corrections, compensation for the business is determined.
7. A storage medium, It is characterized in that The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the service compensation method according to any one of claims 1 to 4.
