Data updating method, device, electronic device and storage medium
By implementing real-time, proactive and lazy update mechanisms in the operator server of WeChat public account, the problem of data inconsistency between WeChat public platform and operator server is solved, data consistency and user experience are improved, and the accuracy and stability of marketing services are enhanced. sex.
Patent Information
- Application Number
- CN202210859574.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-21
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2042-07-21
AI Technical Summary
User data between WeChat public platform and operator servers are inconsistent due to network fluctuations and abnormal situations such as firewalls, resulting in user data loss and push service failure, affecting user experience and marketing accuracy.
By realizing real-time update, active update and lazy update mechanisms in the WeChat public account operator server, we can judge and obtain the latest user data of the WeChat public platform to ensure the consistency of the data.
It realizes timely and accurate updates of user data between WeChat public platform and operator server, improves data consistency and user experience, and enhances the accuracy and stability of marketing services.
Smart Images

Figure CN115361351B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network technology, and in particular to a data updating method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of network technology, instant messaging tools have become an indispensable part of people's lives, and WeChat is the best among them. WeChat is a social platform with a huge user base. It not only supports sending videos, voices, pictures, and texts, but also combines real-time communication with social information and life services. It has also successively updated important functions such as "Friends Circle", "WeChat Official Account", "WeChat Mini Program", and "WeChat Payment". Among them, the WeChat Official Account function is one of the most important services.
[0003] WeChat public accounts are an important means for users to obtain information, and companies also use public accounts as an important way to promote their companies and provide services. After a user follows a WeChat public account, the WeChat public platform will push the user data to the operator's server of the WeChat public account. The operator's server can analyze the user's preferences and interests based on the user data and push advertisements, notifications and other services to the user. However, the push of the WeChat public platform requires the operator's server to respond within a set time, otherwise the user data will be lost. However, in actual applications, due to abnormal conditions such as network fluctuations and firewalls, the operator's server cannot respond within the set time, so it cannot obtain user data, resulting in inconsistency between the user data of the operator's server and the user data of the WeChat public platform. Summary of the invention
[0004] In view of the above problems, the embodiments of the present application propose a data updating method, device, electronic device and storage medium, which can ensure the consistency of user data in the WeChat public platform and the operator's server.
[0005] According to one aspect of an embodiment of the present application, a data updating method is provided, which is applied to an operator server of a WeChat public account, and the method includes:
[0006] Determine whether a user data update condition is met; the user data update condition includes at least one of the following: a real-time update condition, an active update condition, and a lazy update condition;
[0007] After determining that the user data update condition is met, determining a target user identifier for which user data update is required;
[0008] The latest user data corresponding to the target user ID is obtained from the WeChat public platform.
[0009] Optionally, when the user data update condition includes the real-time update condition, determining whether the real-time update condition is met includes: determining whether a user data update message is monitored, the user data update message being generated when the user triggers a preset update contact; and when the user data update message is monitored, determining that the real-time update condition is met.
[0010] Optionally, the determining the target user identifier for which user data update is required includes: acquiring a user identifier that triggers the update contact as the target user identifier.
[0011] Optionally, when the user data update condition includes the active update condition, determining whether the active update condition is met includes: determining whether a preset update time has arrived; and when the update time has arrived, determining that the active update condition is met.
[0012] Optionally, determining the target user identifier that requires user data update includes: based on a preset random update condition, obtaining some user identifiers that have followed the WeChat public account as the target user identifier; or, obtaining all user identifiers that have followed the WeChat public account as the target user identifier.
[0013] Optionally, when the user data update condition includes the lazy update condition, determining whether the lazy update condition is met includes: obtaining business exception data; analyzing the exception cause corresponding to the business exception data, and determining whether the exception cause is user data lag; when the exception cause is user data lag, determining that the lazy update condition is met.
[0014] Optionally, the determining the target user identifier for which user data update is required includes: obtaining a user identifier corresponding to the service abnormality data whose abnormality cause is user data lag as the target user identifier.
[0015] According to another aspect of an embodiment of the present application, a data updating device is provided, which is applied to a server of an operator of a WeChat public account, and the device includes:
[0016] A judgment module, used to judge whether a user data update condition is met; the user data update condition includes at least one of the following: a real-time update condition, an active update condition, and a lazy update condition;
[0017] A determination module, configured to determine a target user identifier for which user data update is required after determining that the user data update condition is met;
[0018] The acquisition module is used to obtain the latest user data corresponding to the target user identifier from the WeChat public platform.
[0019] Optionally, the judgment module includes: a first judgment unit, used to judge whether a user data update message is monitored when the user data update condition includes the real-time update condition, and the user data update message is generated when the user triggers a preset update contact; when the user data update message is monitored, it is determined that the real-time update condition is met.
[0020] Optionally, the determination module includes: a first determination unit, configured to obtain a user identifier that triggers the update touch point as the target user identifier.
[0021] Optionally, the judgment module includes: a second judgment unit, used to judge whether a preset update time has been reached when the user data update condition includes the active update condition; when the update time is reached, determine that the active update condition is met.
[0022] Optionally, the determination module includes: a second determination unit, used to obtain some user identifiers who have followed the WeChat public account as the target user identifier based on a preset random update condition; or, to obtain all user identifiers who have followed the WeChat public account as the target user identifier.
[0023] Optionally, the judgment module includes: a third judgment unit, used to obtain business exception data when the user data update condition includes the lazy update condition; analyze the exception cause corresponding to the business exception data, and determine whether the exception cause is user data lag; when the exception cause is user data lag, determine that the lazy update condition is met.
[0024] Optionally, the determination module includes: a third determination unit, configured to obtain a user identifier corresponding to the service abnormality data whose abnormality cause is user data lag, as the target user identifier.
[0025] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; and one or more computer-readable storage media having instructions stored thereon; when the instructions are executed by the one or more processors, the processors execute the data update method as described in any one of the above items.
[0026] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the data updating method as described in any one of the above items.
[0027] In the embodiment of the present application, the operator server of the WeChat public account determines whether the user data update conditions are met; the user data update conditions include at least one of the following: real-time update conditions, active update conditions, lazy update conditions; after determining that the user data update conditions are met, determine the target user ID that needs to update the user data; obtain the latest user data corresponding to the target user ID from the WeChat public platform. It can be seen that in the embodiment of the present application, the operator server of the WeChat public account can determine whether the user data update conditions are met through different user data update conditions, and update the user data of the target user ID corresponding to different user data update conditions, so that the latest user data can be obtained more timely and accurately, and the consistency of user data in the WeChat public platform and the operator server can be ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solution of the embodiment of the present application, the drawings required for use in the description of the embodiment of the present application will be briefly introduced below. Obviously, the drawings described below are only some drawings of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0029] Figure 1 It is a schematic diagram of a system architecture of an embodiment of the present application.
[0030] Figure 2 It is a step flow chart of a data updating method according to an embodiment of the present application.
[0031] Figure 3 It is a schematic diagram of another system architecture of an embodiment of the present application.
[0032] Figure 4 It is a processing flow chart of the real-time update part of an embodiment of the present application.
[0033] Figure 5 It is a processing flow chart of the active update part of an embodiment of the present application.
[0034] Figure 6 This is a processing flow chart of the lazy update part of an embodiment of the present application.
[0035] Figure 7 It is a structural block diagram of a data updating device according to an embodiment of the present application.
[0036] Figure 8 It is a schematic diagram of an electronic device structure according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0038] After a user follows a WeChat public account, the WeChat public platform will push the user's user data to the operator's server of the WeChat public account. However, the WeChat public platform's push requires the operator's server of the WeChat public account to respond within a set time, otherwise the user data will be lost. And after the subsequent user data changes, the WeChat public platform will no longer push the user data to the operator's server of the WeChat public account, resulting in inconsistency between the user data on the operator's server and the user data on the WeChat public platform.
[0039] Enterprises launch public account services mainly to provide users with precise services and precision marketing. To achieve this, they need to analyze user data. If the user data is not timely, it is impossible to push accurately. At the same time, more seriously, WeChat users will not be able to receive relevant template messages, tweets and other marketing services. In the embodiment of the present application, the consistency of user data in the operator's server and the WeChat public platform can be ensured through multiple mechanisms such as real-time update, active update, and lazy update.
[0040] Reference Figure 1 , shows a schematic diagram of a system architecture of an embodiment of the present application. Figure 1 As shown, the system architecture includes the WeChat public platform, user data update service and operator management service, and the three can communicate with each other.
[0041] The WeChat public platform is used to manage real-time user data, including obtaining and storing the latest user data, etc. After a user follows a WeChat public account, the WeChat public platform can push the user data of the user to the operator server of the WeChat public account (specifically, it can be the operator management service in the operator server).
[0042] The user data update service and the operator management service belong to the operator server of the WeChat public account. The user data update service is a newly added service used to execute the data update method of the embodiment of the present application. The operator management service is used to manage user data. In the embodiment of the present application, it is necessary to establish a connection with the WeChat public platform to obtain user data, and to interact with the WeChat public platform using the relevant interfaces launched by the WeChat public platform.
[0043] Reference Figure 2 , shows a step flow chart of a data updating method in an embodiment of the present application. Figure 2The data update method shown can be applied to the operator server of the WeChat public account (specifically, it can be the user data update service in the operator server).
[0044] like Figure 2 As shown, the data updating method may include the following steps:
[0045] Step 201, determining whether a user data update condition is met.
[0046] Exemplarily, the user data update condition may include at least one of the following: a real-time update condition, an active update condition, and a lazy update condition.
[0047] Exemplarily, the real-time update condition is monitoring a user data update message, and the user data update message is generated when the user triggers a preset update contact. Accordingly, judging whether the real-time update condition is met includes: judging whether the user data update message is monitored; and when the user data update message is monitored, determining that the real-time update condition is met.
[0048] Exemplarily, the active update condition is reaching a preset update time. Accordingly, judging whether the active update condition is met includes: judging whether the preset update time is reached; and when the update time is reached, determining that the active update condition is met.
[0049] Exemplarily, the lazy update condition is that the abnormal cause of the business abnormal data is user data lag. Accordingly, judging whether the lazy update condition is met includes: acquiring the business abnormal data, analyzing the abnormal cause corresponding to the business abnormal data; judging whether the abnormal cause is user data lag; and when the abnormal cause is user data lag, determining that the lazy update condition is met.
[0050] Step 202: after determining that the user data update condition is met, determine the target user identifier for which user data update is required.
[0051] When different user data update conditions are met, the target user identifiers that need to perform user data update are different.
[0052] Exemplarily, when the real-time update condition is met, determining the target user identifier for which user data update is required includes: acquiring the user identifier that triggers the update contact as the target user identifier.
[0053] Exemplarily, when the active update conditions are met, the target user identifier that needs to update user data is determined, including: based on preset random update conditions, obtaining some user identifiers that have followed the WeChat public account as the target user identifier; or, obtaining all user identifiers that have followed the WeChat public account as the target user identifier.
[0054] Exemplarily, when the lazy update condition is met, determining the target user identifier for which user data update is required includes: obtaining a user identifier corresponding to the service abnormality data whose abnormality cause is user data lag as the target user identifier.
[0055] Step 203, obtaining the latest user data corresponding to the target user identifier from the WeChat public platform.
[0056] Through the interface provided by the WeChat public platform, the latest user data corresponding to the target user identifier can be obtained from the WeChat public platform, so as to update the user data stored in the operator management service using the obtained latest user data.
[0057] The following is a detailed introduction to three different user data update conditions.
[0058] Reference Figure 3 , shows a schematic diagram of another system architecture of an embodiment of the present application. Figure 3 As shown, the user data update service can interact with the WeChat public platform to obtain user data, and the user data update service can interact with the operator management service to transmit the obtained user data to the operator management service so as to update the user data stored by the operator management service. The user data update service includes at least one of a real-time update part, an active update part, and a lazy update part.
[0059] 1. Real-time update part
[0060] Reference Figure 4 , showing a processing flow chart of the real-time update part of an embodiment of the present application.
[0061] like Figure 4 As shown, the processing flow of the real-time update part may include the following steps:
[0062] (1) Bind the preset update contact.
[0063] The update contact is pre-set and embedded in the backend code of the system. When the corresponding backend code is executed, the user data update service is called to detect whether the user triggers the update contact.
[0064] Exemplarily, it can be set that when the user operates the basic functions of the WeChat official account (for example, the user follows, unfollows, sends text, pictures, etc.); when the user clicks on the user menu webpage and performs an operation (for example, the user orders a product, operates an intention, and other operations that prove the user is active); when the user replies to a message on the official account and the backend processes the user message; when the user clicks on the personal center of the front-end page and the backend calls the personal information, etc., the binding of the update contact is performed.
[0065] (2) Real-time production messages.
[0066] The real-time update part of the user data update service detects in real time whether the user triggers the pre-bound update contact. When it is detected that the user triggers the update contact, a user data update message will be generated. The user data update message is used to indicate that the user data needs to be updated currently.
[0067] (3) Real-time consumption of messages.
[0068] The real-time update part of the user data update service monitors the user data update message in real time. When it monitors that a user data update message is queued, that is, when the user data update service monitors the user data update message, it determines that the real-time update condition is met.
[0069] After determining that the real-time update condition is met, the real-time update part of the user data update service actively obtains the user identifier that triggers the update contact, and uses the obtained user identifier as the target user identifier.
[0070] (4) Update user data.
[0071] The real-time update part of the user data update service obtains the latest user data corresponding to the target user identifier from the WeChat public platform through the interface provided by the WeChat public platform, and uses the obtained latest user data to update the user data corresponding to the target user identifier, thereby updating the user data and ensuring data consistency.
[0072] Exemplarily, the user identifier is a string of fixed length, and the user identifier can be the user's WeChat ID, mobile phone number, etc.
[0073] 2. Active Update
[0074] Reference Figure 5 , showing a processing flow chart of the active update part of an embodiment of the present application.
[0075] like Figure 5 As shown, the processing flow of the active update part may include the following steps:
[0076] (1) Set up scheduled tasks.
[0077] Set the update time in advance to perform scheduled updates.
[0078] For example, the update time may be set to a time when the system is idle, such as early morning, so as to avoid affecting the normal use of the system.
[0079] The active update part of the user data update service determines in real time whether a preset update time has been reached, and when the update time has been reached, determines that the active update condition is met.
[0080] (2) Randomly update some user data.
[0081] Considering that the amount of user data is relatively large and the user data is stored in the database, the workload of full update is relatively large. Therefore, the active update part of the user data update service can obtain some user identifiers of the WeChat public account that have been followed as target user identifiers based on preset random update conditions after determining that the active update conditions are met.
[0082] Exemplarily, the random update condition may be set according to the user's attention time, the first character of the user ID, etc. For example, a user ID whose first character of the user ID is A may be selected as the target user ID, and so on.
[0083] (3) Update all user data.
[0084] Taking into account the comprehensiveness of user data updates, the active update part of the user data update service can obtain the full set of user IDs of the WeChat public account that has been followed as the target user ID after determining that the active update conditions are met.
[0085] (4) Update user data.
[0086] The active update part of the user data update service obtains the latest user data corresponding to the target user identifier from the WeChat public platform through the interface provided by the WeChat public platform, and uses the obtained latest user data to update the user data corresponding to the target user identifier, thereby updating the user data and ensuring data consistency.
[0087] 3. Lazy update part
[0088] Reference Figure 6 , showing a processing flow chart of the lazy update part of an embodiment of the present application.
[0089] like Figure 6 As shown, the processing flow of the lazy update part may include the following steps:
[0090] (1) Obtain business exception data.
[0091] When the WeChat public account operator's server interacts with the WeChat public platform, business anomalies may occur, generating business anomaly data, which can be stored in system logs, databases, data tables, etc. Therefore, the lazy update part of the user data update service can obtain business anomaly data from the above media.
[0092] (2) Analyze the causes of anomalies and filter out anomalies caused by delayed user data.
[0093] When a business abnormality occurs, the WeChat public platform will generate an error message and return the error message to the operator's server, which will store the error message and the business abnormality data in correspondence. The error message may include but is not limited to the cause of the abnormality. For example, the cause of the abnormality may include but is not limited to: parameter abnormality, network timeout, user data lag, etc.
[0094] For example, when the operator server of a WeChat public account fails to push a template message to a user, the push failure is caused by the user not following the WeChat public account. Therefore, the WeChat public platform will generate an error message. The error message indicates that the abnormal reason is the lag of user data, specifically, the user does not follow the WeChat public account.
[0095] Therefore, the lazy update part of the user data update service can analyze the cause of the exception based on the error information reported by the WeChat public platform.
[0096] (3) Obtain the target user ID.
[0097] The lazy update part of the user data update service determines that the lazy update condition is met when it is determined that the abnormal cause corresponding to the business abnormal data is user data lag. After determining that the lazy update condition is met, the user ID corresponding to the business abnormal data whose abnormal cause is user data lag can be obtained as the target user ID in combination with the error message of the WeChat public platform and the business abnormal data.
[0098] (4) Update user data.
[0099] The lazy update part of the user data update service obtains the latest user data corresponding to the target user identifier from the WeChat public platform through the interface provided by the WeChat public platform, and uses the obtained latest user data to update the user data corresponding to the target user identifier, thereby updating the user data and ensuring data consistency.
[0100] In the embodiment of the present application, user data is updated in real time through pages and public account embedding points; user data is updated in full and randomly through scheduled tasks; and user data is updated by analyzing abnormal system services and selecting WeChat public platform services to update user data. Through the three-level update mechanism of real-time update, active update, and lazy update, the three ideas are innovatively combined, and the user data of the WeChat public platform and the user data obtained by the operator management server are kept consistent, ensuring the real-time nature of user data and greatly improving the accuracy of WeChat public account operator server notifications and advertising marketing; through the analysis of abnormal data of WeChat public platform services, not only the consistency of user data is improved, but also the stability of WeChat public account operator management services is enhanced, which greatly improves the user experience and indirectly improves user stickiness.
[0101] The embodiments of the present invention can be applied to scenarios such as the Tianyi anti-harassment public account, optimizing a large number of anomalies in which the annual bill template message of the user fails to be sent due to the user not following the public account, and also compensating for the problem of inconsistent user data caused by network fluctuations and public network firewalls.
[0102] Reference Figure 7 , shows a structural block diagram of a data updating device in an embodiment of the present application. Figure 7 The data updating device shown is applied to the operator server of the WeChat public account.
[0103] like Figure 7 As shown, the data updating device may include the following modules:
[0104] The judgment module 701 is used to judge whether the user data update condition is met; the user data update condition includes at least one of the following: real-time update condition, active update condition, lazy update condition;
[0105] A determination module 702, configured to determine a target user identifier for which user data update is required after determining that the user data update condition is met;
[0106] The acquisition module 703 is used to acquire the latest user data corresponding to the target user identifier from the WeChat public platform.
[0107] Optionally, the judgment module 701 includes: a first judgment unit, used to determine whether a user data update message is monitored when the user data update condition includes the real-time update condition, and the user data update message is generated when the user triggers a preset update contact; when the user data update message is monitored, it is determined that the real-time update condition is met.
[0108] Optionally, the determination module 702 includes: a first determination unit, configured to obtain a user identifier that triggers the update touch point as the target user identifier.
[0109] Optionally, the judgment module 701 includes: a second judgment unit, used to judge whether a preset update time has been reached when the user data update condition includes the active update condition; when the update time is reached, determine that the active update condition is met.
[0110] Optionally, the determination module 702 includes: a second determination unit, used to obtain some user identifiers who have followed the WeChat public account as the target user identifier based on a preset random update condition; or, to obtain all user identifiers who have followed the WeChat public account as the target user identifier.
[0111] Optionally, the judgment module 701 includes: a third judgment unit, used to obtain business exception data when the user data update condition includes the lazy update condition; analyze the exception cause corresponding to the business exception data, and determine whether the exception cause is user data lag; when the exception cause is user data lag, determine that the lazy update condition is met.
[0112] Optionally, the determination module 702 includes: a third determination unit, configured to obtain a user identifier corresponding to the service abnormality data whose abnormality cause is user data lag, as the target user identifier.
[0113] In an embodiment of the present application, the operator server of the WeChat public account can determine whether the user data update conditions are met through different user data update conditions, and update the user data of the target user identifier corresponding to the different user data update conditions, so as to obtain the latest user data more timely and accurately, and ensure the consistency of user data in the WeChat public platform and the operator server.
[0114] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0115] In an embodiment of the present application, an electronic device is also provided. The electronic device may include one or more processors, and one or more computer-readable storage media storing instructions thereon, the instructions being, for example, application programs. When the instructions are executed by the one or more processors, the processors execute the data updating method of any of the above embodiments.
[0116] Reference Figure 8 , shows a schematic diagram of an electronic device structure according to an embodiment of the present application. Figure 8As shown, the electronic device includes a processor 801, a communication interface 802, a memory 803 and a communication bus 804. The processor 801, the communication interface 802 and the memory 803 communicate with each other through the communication bus 804.
[0117] The memory 803 is used to store computer programs.
[0118] The processor 801 is used to implement the data updating method of any of the above embodiments when executing the program stored in the memory 803.
[0119] The communication interface 802 is used for communication between the above electronic device and other devices.
[0120] The communication bus 804 mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus 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.
[0121] The processor 801 mentioned above may include but is not limited to: a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0122] The memory 803 mentioned above may include but is not limited to: Read Only Memory (ROM), Random Access Memory (RAM), Compact Disc Read Only Memory (CD-ROM), Electronic Erasable Programmable Read Only Memory (EEPROM), hard disk, floppy disk, flash memory, etc.
[0123] In an embodiment of the present application, a computer-readable storage medium is further provided, on which a computer program is stored. The program can be executed by a processor of an electronic device. When the computer program is executed by the processor, the processor executes the data updating method described in any of the above embodiments.
[0124] The various embodiments in this specification are interrelated, and each embodiment is described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referenced to each other.
[0125] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0126] 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 by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, 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 ROM, RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0127] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0128] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0129] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0130] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. 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.
[0131] 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 network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0132] 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.
[0133] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0134] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A data updating method, characterized in that: Applied to the operator server of WeChat public account, the method comprises: Determine whether a user data update condition is met; the user data update condition includes at least one of the following: a real-time update condition, an active update condition, and a lazy update condition; wherein the real-time update condition is monitoring a user data update message, the active update condition is reaching a preset update time, and the lazy update condition is that the abnormal cause of the service abnormality data is user data lag; when the user data update condition includes the lazy update condition, determine whether the lazy update condition is met, including: acquiring service abnormality data, analyzing the abnormal cause corresponding to the service abnormality data, determining whether the abnormal cause is user data lag, and when the abnormal cause is user data lag, determining that the lazy update condition is met; After determining that the user data update condition is met, determining a target user identifier for which user data update is required; The latest user data corresponding to the target user ID is obtained from the WeChat public platform.
2. The method according to claim 1, characterized in that In the case where the user data update condition includes the real-time update condition, determining whether the real-time update condition is satisfied includes: Determining whether a user data update message is monitored, where the user data update message is generated when a user triggers a preset update contact; When the user data update message is monitored, it is determined that the real-time update condition is met.
3. The method according to claim 2, characterized in that The step of determining a target user identifier for which user data update is required includes: The user identifier that triggers the update touchpoint is obtained as the target user identifier.
4. The method according to claim 1, characterized in that In the case where the user data update condition includes the active update condition, determining whether the active update condition is met includes: Determine whether the preset update time has been reached; When the update time is reached, it is determined that the active update condition is satisfied.
5. The method according to claim 4, characterized in that The step of determining a target user identifier for which user data update is required includes: Based on a preset random update condition, obtaining some user identifiers that have followed the WeChat public account as the target user identifier; or, Obtain all user identifiers that have followed the WeChat public account as the target user identifier.
6. The method according to claim 1, characterized in that The step of determining a target user identifier for which user data update is required includes: The user identifier corresponding to the service abnormality data whose abnormality cause is user data lag is obtained as the target user identifier.
7. A data updating device, characterized in that: Applied to the operator server of WeChat public account, the device comprises: A judgment module, used to judge whether a user data update condition is met; the user data update condition includes at least one of the following: a real-time update condition, an active update condition, and a lazy update condition; wherein the real-time update condition is monitoring a user data update message, the active update condition is reaching a preset update time, and the lazy update condition is that the abnormal cause of the business abnormality data is user data lag; the judgment module includes: a third judgment unit, used to obtain business abnormality data when the user data update condition includes the lazy update condition; analyze the abnormal cause corresponding to the business abnormality data, and judge whether the abnormal cause is user data lag; when the abnormal cause is user data lag, determine that the lazy update condition is met; A determination module, configured to determine a target user identifier for which user data update is required after determining that the user data update condition is met; The acquisition module is used to obtain the latest user data corresponding to the target user identifier from the WeChat public platform.
8. An electronic device, characterized in that: include: one or more processors; and one or more computer-readable storage media having instructions stored thereon; When the instructions are executed by the one or more processors, the processors are enabled to execute the data updating method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the processor executes the data updating method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Internet-based public library management system
CN106780252A
Method, storage medium and electronic device for unified management of wechat official account users
CN107729356A
Electronic device capable of uniform management of WeChat official account users
CN108777656A
User data updating method and related equipment
CN110019260A
Shared data analysis method and equipment based on application link and readable storage medium
CN111782617A
