Member rights synchronization method, device, equipment and storage medium

By retrying and compensating synchronization when member rights synchronization fails, the problem of synchronization failure caused by server failure or network instability is solved, and the final successful synchronization of member rights and resource optimization is achieved.

CN115333989BActive Publication Date: 2024-10-29SHENZHEN XIAOPAI TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210955008.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-10
Publication Date
2024-10-29
Estimated Expiration
2042-08-10

AI Technical Summary

Technical Problem

In the case of server failure or network instability, the problem of member rights synchronization failure cannot be effectively solved by existing technology.

Method used

Adopt the member rights synchronization method, including retrying when synchronization fails, recording the number of retries, and saving abnormal data to the exception list when the preset number of times is reached. The asynchronous operation mechanism regularly traverses the exception list for compensatory synchronization, and deletes synchronized items in a timely manner. Successful data, updates unsuccessful retry count, and monitors warnings and chargeback processing when thresholds are reached.

Benefits of technology

It effectively avoids the failure of member rights synchronization caused by server failure or network instability, ensures the final successful synchronization of member rights, reduces the waste of system resources, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115333989B_ABST
    Figure CN115333989B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of Internet consumption technology, and in particular to a member rights synchronization method, device, equipment and storage medium, wherein the member rights synchronization method comprises: when the member rights synchronization fails, performing a synchronization retry; recording the number of retries of the synchronization retry, and when the number of retries reaches a preset number, saving the synchronization exception data in the synchronization retry process to an abnormal synchronization list; traversing the synchronization exception data stored in the abnormal synchronization list, and performing compensatory synchronization of member rights according to the traversed current synchronization exception data. The present invention avoids the influence of server failure or network instability on member rights synchronization at a certain moment by storing the synchronization exception data whose number of retries reaches a preset threshold into the abnormal synchronization list, traversing the synchronization exception data in the abnormal synchronization list every period of time, and performing compensatory synchronization on the traversed synchronization exception data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet consumption technology, and in particular to a member rights synchronization method, device, equipment and storage medium. Background Art

[0002] At present, with the rapid development of e-commerce, it has become more and more common to purchase service rights on the Internet, such as purchasing video membership, music membership, etc. The issue of member rights synchronization needs to be paid special attention to ensure that users can enjoy their rights normally after purchasing service rights.

[0003] Currently, the synchronization of member benefits often adopts a one-time synchronization or retry method when synchronization fails. In the case of server failure or network instability, the member's service benefits may fail to synchronize.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a member rights synchronization method, device, equipment and storage medium, aiming to solve the technical problem of the prior art that the member's service rights will fail to synchronize when the server fails or the network is unstable.

[0006] To achieve the above object, the present invention provides a member rights synchronization method, the method comprising the following steps:

[0007] When member benefit synchronization fails, retry the synchronization;

[0008] Recording the number of retries of the synchronization retry, and when the number of retries reaches a preset number, saving the synchronization abnormality data in the synchronization retry process to an abnormal synchronization list;

[0009] The synchronization exception data stored in the abnormal synchronization list is traversed, and compensation synchronization of member rights and interests is performed according to the traversed current synchronization exception data.

[0010] Optionally, traversing the synchronization exception data stored in the abnormal synchronization list, and performing compensation synchronization of member rights and interests according to the traversed current synchronization exception data, includes:

[0011] Adopting an asynchronous operation mechanism to traverse the synchronization exception data stored in the abnormal synchronization list every preset compensation time, and judging whether the current synchronization exception data traversed has been synchronized successfully;

[0012] If yes, deleting the current synchronization exception data from the exception synchronization list;

[0013] If not, compensatory synchronization of member benefits is performed based on the current synchronization exception data.

[0014] Optionally, after the step of traversing the synchronization exception data stored in the abnormal synchronization list and performing compensation synchronization of member rights and interests according to the traversed current synchronization exception data, the method further includes:

[0015] Obtaining the retry count corresponding to each synchronization exception data stored in the exception synchronization list;

[0016] When it is detected that the retry count reaches a preset threshold, a member benefit monitoring warning is performed based on the synchronous abnormal data corresponding to the retry count.

[0017] Optionally, the compensatory synchronization of member benefits according to the current synchronization abnormal data includes:

[0018] Synchronize the member rights and interests of the member users corresponding to the current synchronization abnormal data;

[0019] When the member benefits synchronization is successful, the current synchronization abnormal data in the abnormal synchronization list is deleted;

[0020] When the member benefit synchronization fails, the member benefit synchronization retry count of the current synchronization exception data is updated.

[0021] Optionally, when it is detected that the retry count reaches a preset threshold, monitoring and warning of member benefits according to the synchronous abnormal data corresponding to the retry count includes:

[0022] When it is detected that the retry count reaches a preset threshold, determining whether the synchronization abnormal data whose retry count reaches the preset threshold is synchronized successfully;

[0023] If yes, deleting the current synchronization exception data from the exception synchronization list;

[0024] If not, a monitoring warning of member benefits is issued based on the current synchronization abnormal data.

[0025] Optionally, the monitoring and warning of member benefits according to the current synchronization abnormal data includes:

[0026] Determining whether monitoring warning information has been sent according to the current synchronization abnormal data;

[0027] When it is detected that a monitoring warning has been sent, an operation instruction of a maintenance person is obtained, and the current synchronization abnormal data is processed accordingly according to the operation instruction of the maintenance person;

[0028] If no monitoring warning is detected, the monitoring alarm is sent to a target maintenance personnel.

[0029] Optionally, after the step of obtaining an operation instruction of a maintenance personnel when detecting that a monitoring warning has been sent, and performing corresponding processing on the current synchronization abnormal data according to the operation instruction of the maintenance personnel, the method further includes:

[0030] When it is detected that a monitoring warning has been sent and the operation instruction of the maintenance personnel has failed to be obtained, it is determined whether to return the order according to the synchronization abnormal data and the retry count;

[0031] When the retry count reaches the chargeback processing threshold, chargeback processing is performed.

[0032] In addition, to achieve the above-mentioned purpose, the present invention also proposes a member rights synchronization device, which includes: a synchronization retry module and a supplementary synchronization module.

[0033] The synchronization retry module is used to perform synchronization retry when the member benefits synchronization fails;

[0034] The synchronous retry module is further used to record the retry count of the synchronous retry, and when the retry count reaches a preset number of times, save the synchronization abnormality data in the synchronous retry process to the abnormal synchronization list;

[0035] The compensation synchronization module is used to traverse the synchronization exception data stored in the exception synchronization list, and perform compensation synchronization of member rights and interests according to the traversed current synchronization exception data.

[0036] In addition, to achieve the above objectives, the present invention also proposes a member rights synchronization device, which includes: a memory, a processor, and a member rights synchronization program stored on the memory and executable on the processor, and the member rights synchronization program is configured to implement the steps of the member rights synchronization method described above.

[0037] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a member rights synchronization program is stored, and when the member rights synchronization program is executed by a processor, the steps of the member rights synchronization method described above are implemented.

[0038] The present invention relates to the field of Internet consumption technology, and in particular to a member rights synchronization method, device, equipment and storage medium, wherein the member rights synchronization method comprises: when the member rights synchronization fails, performing a synchronization retry; recording the number of retries of the synchronization retry, and when the number of retries reaches a preset number, saving the synchronization exception data in the synchronization retry process to an abnormal synchronization list; traversing the synchronization exception data stored in the abnormal synchronization list, and performing compensatory synchronization of member rights according to the traversed current synchronization exception data. The present invention avoids the influence of server failure or network instability on member rights synchronization at a certain moment by storing the synchronization exception data whose number of retries reaches a preset threshold into the abnormal synchronization list, traversing the synchronization exception data in the abnormal synchronization list every period of time, and performing compensatory synchronization on the traversed synchronization exception data. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a structural diagram of a member rights synchronization device in a hardware operating environment involved in an embodiment of the present invention;

[0040] Figure 2 It is a flowchart of the first embodiment of the member rights synchronization method of the present invention;

[0041] Figure 3 It is a flowchart of the second embodiment of the member rights synchronization method of the present invention;

[0042] Figure 4 It is a flowchart of the third embodiment of the member rights synchronization method of the present invention;

[0043] Figure 5 It is a structural block diagram of the first embodiment of the member benefits synchronization device of the present invention.

[0044] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0045] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0046] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of a member rights synchronization device in a hardware operating environment involved in an embodiment of the present invention.

[0047] like Figure 1As shown, the member rights synchronization device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0048] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the member benefit synchronization device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0049] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a member benefit synchronization program.

[0050] exist Figure 1 In the member rights synchronization device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the member rights synchronization device of the present invention can be set in the member rights synchronization device, and the member rights synchronization device calls the member rights synchronization program stored in the memory 1005 through the processor 1001, and executes the member rights synchronization method provided by the embodiment of the present invention.

[0051] The embodiment of the present invention provides a member rights synchronization method, referring to Figure 2 , Figure 2 It is a flowchart of the first embodiment of the member benefits synchronization method of the present invention.

[0052] In this embodiment, the member rights synchronization method includes the following steps:

[0053] Step S10: When the synchronization of member benefits fails, retry the synchronization;

[0054] It should be understood that the above-mentioned member rights synchronization includes operations performed by the user according to the member rights activation service on the user interface. In the specific implementation, it includes the user selecting the corresponding member rights service on the mobile terminal and paying the corresponding fees, the mobile terminal sending the member rights data to the background server, and the background server sending the corresponding synchronization data to the mobile terminal according to the above-mentioned member rights data, so that the above-mentioned mobile terminal provides the user with the corresponding member rights service according to the above-mentioned synchronization data. The above-mentioned member rights data may include the account information for activating the member rights and the above-mentioned fee payment information. Correspondingly, the failure of the above-mentioned member rights synchronization may be that there is an error in the member rights data sent by the mobile terminal received by the background server or the background server fails to send the corresponding synchronization data.

[0055] It should be understood that the synchronization retry is to repeat the member benefits synchronization process again after the background server detects the member benefits synchronization failure, so as to avoid the failure of member benefits synchronization caused by occasional errors.

[0056] Step S20: recording the number of retries of the synchronization retry, and when the number of retries reaches a preset number, saving the synchronization abnormality data in the synchronization retry process to an abnormal synchronization list;

[0057] It should be understood that the above-mentioned number of retries is recorded once in the corresponding counter in the background each time the above-mentioned background server performs a synchronization retry. The preset number of times is the counter threshold pre-set in the background server. When the number of retries recorded by the above-mentioned counter reaches the preset number of times, the above-mentioned synchronization exception data is saved in the abnormal synchronization list. In a specific implementation, the preset number of times can be 5 times.

[0058] It should be understood that the above-mentioned synchronization exception data includes the above-mentioned member rights data, synchronization data, the time for performing the above-mentioned member rights synchronization, and the number of times the above-mentioned member rights synchronization is performed; the above-mentioned abnormal synchronization list can be an Excel list, and every time the above-mentioned retry number reaches the above-mentioned preset number, the above-mentioned abnormal synchronization list is refreshed and the above-mentioned synchronization exception data is saved.

[0059] Step S30: Traversing the synchronization exception data stored in the abnormal synchronization list, and performing compensation synchronization of member rights and interests according to the traversed current synchronization exception data.

[0060] It should be understood that the above-mentioned compensatory synchronization is a method of re-synchronizing the member benefits of the abnormal synchronization data in the above-mentioned abnormal synchronization list.

[0061] The present embodiment relates to a member rights synchronization method, apparatus, equipment and storage medium, the member rights synchronization method comprising: when the member rights synchronization fails, retrying the synchronization; recording the number of retries of the synchronization retry, and when the number of retries reaches a preset number, saving the synchronization exception data in the synchronization retry process to an abnormal synchronization list; traversing the synchronization exception data stored in the abnormal synchronization list, and performing compensatory synchronization of member rights according to the traversed current synchronization exception data. The present embodiment avoids the influence of server failure or network instability on member rights synchronization at a certain moment by storing the synchronization exception data whose number of retries reaches a preset threshold into the abnormal synchronization list, traversing the synchronization exception data in the abnormal synchronization list every period of time, and performing compensatory synchronization on the traversed synchronization exception data.

[0062] refer to Figure 3 , Figure 3 It is a flowchart of the second embodiment of the member benefits synchronization method of the present invention.

[0063] Based on the above first embodiment, in this embodiment, step S30 includes:

[0064] Step S31: using an asynchronous operation mechanism to traverse the synchronization exception data stored in the abnormal synchronization list at every preset compensation time, and determining whether the current synchronization exception data traversed has been synchronized successfully;

[0065] It needs to be understood that the above-mentioned asynchronous operation mechanism is a method for simultaneously processing the synchronous exception data in the above-mentioned exception synchronization list. It can be understood that when judging the current synchronous exception data traversed, corresponding operations need to be performed according to the judgment results. Through the above-mentioned asynchronous operation mechanism, several synchronous exception data in the above-mentioned exception synchronization list can be processed separately, so as to avoid taking too long to process several synchronous exception data under the synchronous operation mechanism.

[0066] It should be understood that the compensation synchronization proposed in this embodiment is a method to solve the failure of member rights synchronization caused by occasional failures at a certain moment. Therefore, it is necessary to set the above-mentioned preset compensation time when performing compensation synchronization. There is a preset compensation time between every two compensation synchronizations to avoid the background server from repeating compensation synchronization when the above-mentioned occasional failures have not been repaired in the current period, thereby wasting system resources. In the specific implementation, the above-mentioned preset compensation time can be one hour or two hours.

[0067] It should be understood that step S31 traverses the synchronization field data stored in the above-mentioned abnormal compensation list, and determines whether the current synchronization abnormal data traversed has been synchronized successfully, that is, it determines whether the abnormal synchronization data has been synchronized before performing compensation synchronization, so as to avoid the abnormal synchronization data that has been synchronized and the abnormal synchronization data has not been deleted due to a fault, resulting in the need for compensation synchronization again.

[0068] Step S32: If yes, deleting the current synchronization exception data from the exception synchronization list;

[0069] It should be understood that after traversing the synchronization exception data in the above-mentioned abnormal synchronization list, the above-mentioned step S31 determines whether the current synchronization exception data traversed has been synchronized successfully. After detecting that the above-mentioned current synchronization exception data has completed synchronization, it can be determined that the group of synchronization exception data has lost its meaning, and the above-mentioned synchronization exception data is deleted to avoid interference.

[0070] Step S33: If not, compensatory synchronization of member benefits is performed according to the current synchronization abnormal data.

[0071] Furthermore, the above step S33 also includes:

[0072] Step S331: Synchronizing the member rights and interests of the member user corresponding to the current synchronization abnormal data;

[0073] It should be understood that the above-mentioned synchronization abnormal data contains account information for activating membership benefits. The background server can obtain the mobile terminal corresponding to the account information based on the above-mentioned account information, and send the above-mentioned synchronization data to the above-mentioned mobile terminal, so that the above-mentioned mobile terminal can provide the user with corresponding membership benefits services based on the above-mentioned synchronization data.

[0074] Step S332: when the member benefits synchronization is successful, deleting the current synchronization abnormal data in the abnormal synchronization list;

[0075] Step S333: when the member benefit synchronization is unsuccessful, the member benefit synchronization retry count of the current synchronization exception data is updated.

[0076] It should be understood that the above retry count is a kind of data used to record the number of the above compensation synchronizations, and is used to determine the monitoring alarm. The above retry count is calculated separately from the above retry times. When the above retry times reaches the corresponding preset times, a synchronization retry is performed; when the above retry count reaches the preset threshold, a monitoring alarm is issued.

[0077] This embodiment adopts an asynchronous operation mechanism to traverse the synchronization exception data stored in the above-mentioned exception synchronization list every preset compensation time, and performs compensatory synchronization when the current synchronization exception data traversed is a synchronization failure, and deletes the corresponding synchronization exception data in the above-mentioned exception synchronization list when the compensation synchronization succeeds, and updates the above-mentioned retry count when the compensation synchronization fails, so that when the synchronization retry fails to achieve member rights synchronization, member rights synchronization is performed according to conditions, further supplementing the method of member rights synchronization.

[0078] refer to Figure 4 , Figure 4 This is a flow chart of a third embodiment of the member rights synchronization method of the present invention. Based on the above embodiments, after the above step S30, it also includes:

[0079] Step S40: obtaining the retry count corresponding to each synchronization abnormality data stored in the abnormal synchronization list;

[0080] It should be understood that there is a monitoring warning time interval between every two acquisitions of each synchronization abnormality data stored in the above-mentioned abnormal synchronization list, that is, the background server obtains the above-mentioned abnormal synchronization data every above-mentioned monitoring warning time interval. In a specific implementation, the above-mentioned monitoring warning interval can be 12 hours or 24 hours, and this embodiment does not limit this.

[0081] Step S50: When it is detected that the retry count reaches a preset threshold, a member benefit monitoring warning is performed according to the synchronous abnormal data corresponding to the retry count.

[0082] In a specific implementation, the preset threshold is a value used to determine whether the retry count has reached a value that requires monitoring and warning, which may be three or five times, and this embodiment does not limit this;

[0083] The above step S50 also includes:

[0084] Step S51: when it is detected that the retry count reaches a preset threshold, determining whether the synchronization abnormal data whose retry count reaches the preset threshold is synchronized successfully;

[0085] Step S52: If yes, deleting the current synchronization exception data from the exception synchronization list;

[0086] Step S53: If not, monitoring and warning of member benefits are carried out according to the current synchronization abnormal data.

[0087] The above step S53 also includes:

[0088] Step S531: judging whether monitoring warning information has been sent according to the current synchronization abnormality data;

[0089] It should be understood that the above monitoring warning information includes the number of retries corresponding to the above current abnormal data and the reason for the synchronization failure.

[0090] Step S532: when it is detected that the monitoring warning has been sent, obtaining the operation instruction of the maintenance personnel, and performing corresponding processing on the current synchronization abnormal data according to the operation instruction of the maintenance personnel;

[0091] It should be understood that the above-mentioned maintenance personnel's operating instructions include the above-mentioned maintenance personnel's processing method for the current synchronization exception data, specifically including deleting the above-mentioned current synchronization exception data or returning the above-mentioned current synchronization exception data. Correspondingly, the above-mentioned corresponding processing of the current synchronization exception data is performed according to the above-mentioned maintenance personnel's operating instructions, that is, deleting the above-mentioned current synchronization exception data or returning the above-mentioned current synchronization exception data according to the maintenance personnel's operating instructions.

[0092] Furthermore, after step S532, the method further includes:

[0093] Step S5321: when it is detected that a monitoring warning has been sent and the operation instruction of the maintenance personnel has failed to be obtained, it is determined whether to perform a return order processing according to the synchronization abnormal data and the retry count;

[0094] It should be understood that the failure to obtain the maintenance personnel's operating instructions may be that the system fails to receive the maintenance personnel's operating instructions, or that after sending the above-mentioned monitoring alarm to the target maintenance personnel, the above-mentioned maintenance personnel does not issue an operating instruction within a certain period of time, and the above-mentioned certain period of time may be one hour or two hours.

[0095] It should be understood that the above-mentioned determination of whether to perform a return order processing based on the above-mentioned synchronous abnormal data and retry count includes: when the above-mentioned retry count reaches a certain threshold, the system issues a return order processing command, terminates the membership rights command to the corresponding mobile terminal based on the account information of the membership rights in the above-mentioned synchronous abnormal data, and refunds the user based on the fee payment information.

[0096] Step S5322: When the retry count reaches the return order processing threshold, return order processing is performed.

[0097] Step S533: If no monitoring warning is detected, the monitoring alarm is sent to the target maintenance personnel.

[0098] This embodiment performs monitoring and warning processing when the retry count reaches a certain threshold, alerts the monitoring personnel, accepts the operation instructions of the maintenance personnel, and determines whether to perform order return processing based on the operation instructions of the maintenance personnel, thereby solving the technical problem of long-term failure of member rights synchronization due to long-term server failure or network instability.

[0099] In addition, to achieve the above-mentioned purpose, the present invention further proposes a member rights synchronization device, which includes: a synchronization retry module 501 and a compensation synchronization module 502 .

[0100] The synchronization retry module 501 is used to perform synchronization retry when the member benefit synchronization fails;

[0101] The synchronization retry module 501 is further used to record the retry count of the synchronization retry, and when the retry count reaches a preset number of times, save the synchronization abnormality data in the synchronization retry process to the abnormal synchronization list;

[0102] The compensation synchronization module 502 is used to traverse the synchronization exception data stored in the exception synchronization list, and perform compensation synchronization of member rights and interests according to the traversed current synchronization exception data.

[0103] In addition, to achieve the above objectives, the present invention also proposes a member rights synchronization device, which includes: a memory, a processor, and a member rights synchronization program stored on the memory and executable on the processor, and the member rights synchronization program is configured to implement the steps of the member rights synchronization method described above.

[0104] In addition, an embodiment of the present invention further provides a storage medium, on which a member rights and interests synchronization program is stored. When the member rights and interests synchronization program is executed by a processor, the steps of the member rights and interests synchronization method described above are implemented.

[0105] Other embodiments or specific implementations of the member benefits synchronization device of the present invention can refer to the above-mentioned method embodiments, which will not be described in detail here.

[0106] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0107] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0109] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A member rights synchronization method, characterized in that: The member rights synchronization method includes: When member benefit synchronization fails, retry the synchronization; Recording the number of retries of the synchronization retry, and when the number of retries reaches a preset number, saving the synchronization abnormality data in the synchronization retry process to an abnormal synchronization list; Traversing the synchronization exception data stored in the abnormal synchronization list, and performing compensation synchronization of member rights and interests according to the traversed current synchronization exception data; The traversing of the synchronization exception data stored in the abnormal synchronization list and performing compensation synchronization of member rights and interests according to the traversed current synchronization exception data includes: Adopting an asynchronous operation mechanism to traverse the synchronization exception data stored in the abnormal synchronization list every preset compensation time, and judging whether the current synchronization exception data traversed has been synchronized successfully; If yes, deleting the current synchronization exception data from the exception synchronization list; If not, compensatory synchronization of member benefits is performed based on the current synchronization exception data.

2. The member rights synchronization method according to claim 1, characterized in that: After the step of traversing the synchronization exception data stored in the abnormal synchronization list and performing compensation synchronization of member rights and interests according to the traversed current synchronization exception data, the method further includes: Obtaining the retry count corresponding to each synchronization exception data stored in the exception synchronization list; When it is detected that the retry count reaches a preset threshold, a member benefit monitoring warning is performed based on the synchronous abnormal data corresponding to the retry count.

3. The member rights synchronization method according to claim 1, characterized in that: The compensatory synchronization of member rights and interests according to the current synchronization abnormal data includes: Synchronize the member rights and interests of the member users corresponding to the current synchronization abnormal data; When the member benefits synchronization is successful, the current synchronization abnormal data in the abnormal synchronization list is deleted; When the member benefit synchronization fails, the member benefit synchronization retry count of the current synchronization exception data is updated.

4. The member rights synchronization method according to claim 2, characterized in that: When it is detected that the retry count reaches a preset threshold, monitoring and warning of member rights and interests is performed according to the synchronous abnormal data corresponding to the retry count, including: When it is detected that the retry count reaches a preset threshold, determining whether the synchronization abnormal data whose retry count reaches the preset threshold is synchronized successfully; If yes, deleting the current synchronization exception data from the exception synchronization list; If not, a monitoring warning of member benefits is issued based on the current synchronization abnormal data.

5. The member rights synchronization method according to claim 4, characterized in that: The monitoring and warning of member rights and interests according to the current synchronous abnormal data includes: Determining whether monitoring warning information has been sent according to the current synchronization abnormal data; When it is detected that a monitoring warning has been sent, an operation instruction of a maintenance person is obtained, and the current synchronization abnormal data is processed accordingly according to the operation instruction of the maintenance person; If no monitoring warning is detected, the monitoring warning is sent to a target maintenance personnel.

6. The member rights synchronization method according to claim 5, characterized in that: After the step of obtaining the operation instruction of the maintenance personnel when detecting that the monitoring warning has been sent, and performing corresponding processing on the current synchronization abnormal data according to the operation instruction of the maintenance personnel, the method further includes: When it is detected that a monitoring warning has been sent and the operation instruction of the maintenance personnel has failed to be obtained, it is determined whether to return the order according to the synchronization abnormal data and the retry count; When the retry count reaches the chargeback processing threshold, chargeback processing is performed.

7. A member rights synchronization device, characterized in that: The member rights synchronization device includes: a synchronization retry module and a compensation synchronization module; The synchronization retry module is used to perform synchronization retry when the member benefits synchronization fails; The synchronous retry module is further used to record the retry count of the synchronous retry, and when the retry count reaches a preset number of times, save the synchronization abnormality data in the synchronous retry process to the abnormal synchronization list; The compensation synchronization module is used to traverse the synchronization exception data stored in the exception synchronization list, and perform compensation synchronization of member rights and interests according to the traversed current synchronization exception data; The compensation synchronization module is also used to adopt an asynchronous operation mechanism to traverse the synchronization exception data stored in the abnormal synchronization list every preset compensation time, and determine whether the current synchronization exception data traversed has been synchronized successfully; if so, delete the current synchronization exception data from the abnormal synchronization list; if not, perform compensation synchronization of member rights and interests according to the current synchronization exception data.

8. A member rights synchronization device, characterized in that: The device comprises: a memory, a processor, and a member rights and interests synchronization program stored in the memory and executable on the processor, wherein the member rights and interests synchronization program is configured to implement the steps of the member rights and interests synchronization method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium stores a member rights and interests synchronization program, and when the member rights and interests synchronization program is executed by the processor, the steps of the member rights and interests synchronization method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Traffic data self-recovery processing method and server

    CN107797896A