Method, device, electronic device and storage medium for sending correction information
By determining the sending time of the target account and sending the correction information uniformly, the problem of processing pressure caused by frequent sending correction information is solved, and the balanced utilization of resources and the reduction of interactions is achieved.
Patent Information
- Application Number
- CN202010852472.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-21
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2040-08-21
AI Technical Summary
Frequently sending correction information leads to high pressure on the processor of correction information, and the existing technology is difficult to effectively solve this problem.
By determining the acquisition time of the correction information sent by the target account and determining the corresponding transmission time based on the time, the target correction information is added to the information set, and the transmission is uniformly sent according to the transmission time, reducing the number of transmission times of the correction information.
It significantly reduces the processing pressure of the grading information processor, reduces the number of interactions between the product agent platform and the provider, and improves resource utilization.
Smart Images

Figure CN112132532B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for sending correction information. Background Art
[0002] The product agent platform can provide users with management and operation services for a variety of products. Users can perform various operations on the product operation form through the product agent platform. After the user performs the operation, the product agent platform will generate the correction information of the operation form and give it to the product provider for correction operation.
[0003] During a product activity, a large number of users may perform operations on the product's operation form. In response to the operations performed by a large number of users, the product agent platform will generate a large amount of correction information and send a large amount of correction information to the product provider. Since different users perform operations at different times, the product agent platform will frequently send correction information, resulting in a large processing pressure on the correction information processor. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for sending correction information, so as to solve the problem that frequent sending of correction information causes high processing pressure on the correction information processor. The specific technical solution is as follows:
[0005] The present application provides a method for sending correction information, the method comprising:
[0006] In the case of acquiring target revision information sent by the target account, determining the acquisition time of the target revision information, wherein the target revision information is used to indicate that a revision operation is performed on the operation form of the target account;
[0007] Determine a first sending time corresponding to the target account according to the acquisition time, wherein the first sending time is used to indicate a time for sending the correction information sent by the target account before the first sending time;
[0008] Adding the target revision information to the first information set corresponding to the target account to obtain a second information set, wherein the first information set is used to record the revision information sent by the target account acquired before the acquisition time;
[0009] The second information set is sent according to the first sending time.
[0010] The present application provides a device for sending correction information, the device comprising:
[0011] A first determination module is used to determine the acquisition time of the target revision information sent by the target account when the target revision information is acquired, wherein the target revision information is used to indicate the execution of the revision operation on the operation form of the target account;
[0012] A second determining module, configured to determine a first sending time corresponding to the target account according to the acquisition time, wherein the first sending time is used to indicate a time for sending the correction information sent by the target account before the first sending time;
[0013] An adding module, used for adding the target correction information to the first information set corresponding to the target account, to obtain a second information set, wherein the first information set is used for recording the correction information sent by the target account acquired before the acquisition time;
[0014] A sending module is used to send the second information set according to the first sending time.
[0015] Optionally, the second determining module includes:
[0016] An acquisition submodule, used to acquire a first target duration corresponding to the target account;
[0017] The first determining submodule is used to delay the acquisition time by the first target time length to obtain a time as the first sending time.
[0018] Optionally, the acquisition submodule is used to acquire operation log data of multiple accounts, the operation log data is used to record the time when the account sends correction information; and for each of the accounts, according to the start time and end time of sending the correction information by the account, calculate the sending duration corresponding to the account; and according to the sending times corresponding to the multiple accounts, calculate the average sending duration; and use the average sending duration as the first target duration.
[0019] Optionally, the acquisition submodule is used to acquire account attribute information of the target account, the account attribute information is used to indicate the sending priority of sending the target correction information; and to search for the target duration corresponding to the sending priority of the target account among the sending priorities and target durations having a corresponding relationship, to obtain the first target duration.
[0020] Optionally, the second determining module includes:
[0021] A first search submodule, used for searching for correction information contained in the first information set;
[0022] The second determination submodule is used to use the second sending time corresponding to the target account as the first sending time when the correction information is found in the first information set, and the second sending time is determined according to the time when the correction information is received; and when the correction information is not found in the first information set, the time obtained by delaying the acquisition time by the second target time length is used as the first sending time.
[0023] Optionally, the second determining module includes:
[0024] A second search submodule is used to search for a third sending time corresponding to the target account among the accounts and sending times having a corresponding relationship;
[0025] The third determination submodule is used to use the third sending time as the first sending time when the acquisition time is earlier than the third sending time; and when the acquisition time is not earlier than the third sending time, use the time obtained by delaying the acquisition time by the third target time as the first sending time.
[0026] Optionally, the device further comprises:
[0027] A third determination module is used to determine the relationship between the acquisition time and a first preset time period, where the first preset time period is the last time period of a plurality of time periods obtained by dividing the target time period;
[0028] The sending module is further used to immediately send the target correction information if the acquisition time is within the first preset time period;
[0029] The third determining module is further configured to, when the acquisition time is not within the first preset time period, call the second determining module to execute the step of determining the first sending time corresponding to the target account according to the acquisition time.
[0030] Optionally, the device further comprises:
[0031] A fourth determining module, configured to determine, when the acquisition time is not within the first preset time period, a relationship between the acquisition time and a second preset time period, the second preset time period being a time period before the first preset time period;
[0032] a fifth determining module, configured to, if the acquisition time is within the second preset time period, use the target sending time as the first sending time, and the target sending time is not earlier than the end time of the second preset time period;
[0033] The fourth determining module is further configured to, when the acquisition time is not within the second preset time period, call the second determining module to execute the step of determining the first sending time corresponding to the target account according to the acquisition time.
[0034] The present application provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0035] Memory, used to store computer programs;
[0036] The processor is used to implement any method steps described in the first aspect when executing the program stored in the memory.
[0037] The present application provides a computer storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of the first aspects are implemented.
[0038] The present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above method through the computer program.
[0039] The present application provides a computer program product or a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps of any embodiment of the above-mentioned method for sending correction information.
[0040] Beneficial effects of the embodiments of the present application:
[0041] The embodiments of the present application provide a method, device, electronic device and storage medium for sending correction information. When the target correction information sent by the target account is obtained, the acquisition time of the target correction information can be determined, and then the first sending time corresponding to the target account can be determined according to the acquisition time, wherein the target correction information is used to indicate the execution of the correction operation on the operation form of the target account, and the first sending time is used to indicate the time of sending the correction information sent by the target account before the first sending time. Then, the target correction information is added to the first information set corresponding to the target account to obtain a second information set, wherein the first information set is used to record the correction information sent by the target account obtained before the acquisition time. After that, the second information set is sent according to the first sending time.
[0042] Since the correction information sent by the target account before the first sending time is uniformly sent to the correction information processor, the number of times the correction information is sent can be reduced, thereby alleviating the processing pressure of the correction information processor.
[0043] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0045] Figure 1 is a schematic diagram of a hardware environment of a method for sending correction information according to an embodiment of the present application;
[0046] Figure 2a is a schematic diagram of an optional activity page according to an embodiment of the present application;
[0047] Figure 2b is a schematic diagram of another optional activity page according to an embodiment of the present application;
[0048] Figure 3 is a flowchart of an optional method for sending correction information according to an embodiment of the present application;
[0049] Figure 4 is an example diagram of an optional method for sending correction information according to an embodiment of the present application;
[0050] Figure 5 is an example diagram of an optional method for sending correction information according to an embodiment of the present application;
[0051] Figure 6 is a schematic structural diagram of an optional correction information sending device according to an embodiment of the present application;
[0052] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0053] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] 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, 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 are within the scope of protection of this application.
[0055] According to one aspect of the embodiments of the present application, a method embodiment of a method for sending correction information is provided.
[0056] For ease of understanding, the nouns involved in the embodiments of the present application are first explained:
[0057] Free insurance: also known as free insurance, is an insurance product that an insurance company or insurance agency gives to customers for free. By giving away insurance, insurance companies or insurance agencies can, on the one hand, increase customers' awareness of the insurance company or agency, and on the other hand, gain customers' trust by letting customers experience insurance products for free.
[0058] Revision: During the insurance period, the parties to the insurance contract modify or delete some of the terms of the insurance contract in accordance with the conditions and procedures prescribed by law and based on the consensus of the parties.
[0059] In the embodiment of the present application, the operation form may be an insurance contract, and the revision information may be the insurance amount, insurance period, etc. to be modified.
[0060] Message queue: It is a communication method between applications. Message queue is a typical representative of the consumer-producer model. The message publisher continuously writes messages to the message queue, and the message consumer can read the messages in the queue. The message publisher only needs to publish the message to the message queue without restricting the message consumer, and the message consumer only needs to read the message from the message queue without restricting the message publisher. In this way, the message publisher and the message consumer do not need to know the existence of each other.
[0061] Redis database: A Key-Value database written in ANSI C language. Redis database can store data based on memory and can also achieve persistent data storage.
[0062] Optionally, in this embodiment, the above-mentioned method for sending correction information can be applied to: Figure 1 In the hardware environment shown in FIG. 1 , a terminal 101, a first server 103 and a second server 105 are formed. Figure 1As shown, the first server 103 is connected to the terminal 101 through a network, and the second server 105 is connected to the first server 103 through a network. The above network includes but is not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, etc.
[0063] The first server 103 can be used to provide services (such as product management services and operation services, application services, etc.) to the terminal or the client installed on the terminal, and a database can be set on the server or independently of the server to provide data storage services for the server 103. The second server 105 can be used to provide the first server 103 with processing services for correcting information.
[0064] After the user performs an operation on the operation form of the product through the terminal 101, the first server 103 may generate correction information of the operation form and then send the correction information to the second server 105. Then, the second server 105 may perform a correction operation on the operation form based on the received correction information.
[0065] Taking the product as a free insurance as an example, an insurance agent client can be installed in the terminal 101, and the product agent platform can be the first server 103 of the insurance agent client. The product agent platform can provide users with management and operation services for various insurances. The provider of the product can be the second server 105 of the insurance company.
[0066] Users can claim the free insurance by visiting the event page, such as Figure 2a As shown, it is a schematic diagram of an activity page provided in an embodiment of the present application. Among them, the type of free insurance can be driving accident insurance, the icon indicated by the circle can represent the task that needs to be performed to obtain the free insurance, and 100 represents the specific content of the task. For example, 100 can represent "subscription benefits", "car insurance quotation", and "share with friends" respectively. After the user performs a task, the first server 103 can obtain the correction information of the operation form, and then the first server 103 can send the correction information of the operation form to the second server 105.
[0067] For example, if a task is "Share with Friends", the user can click the icon representing the "Share with Friends" task on the activity page to send a sharing message to the friend. Figure 2b As shown, 200 represents the specific content of the sharing message. After the friend clicks the sharing message, the first server 103 can obtain the correction information sent by the account used by the user. Then, the first server 103 can send the correction information of the operation form to the second server 105. The second server 105 can change the user's operation form based on the received correction information.
[0068] The method for sending correction information of the embodiment of the present application can be executed by the first server 103, or by the terminal 101, or by both the first server 103 and the terminal 101. The method for sending correction information of the embodiment of the present application can be executed by the terminal 101 or by a client installed thereon.
[0069] The following will describe in detail a method for sending correction information provided by an embodiment of the present application in combination with a specific implementation method. Figure 3 As shown, the specific steps are as follows:
[0070] Step 301: When target revision information sent by a target account is obtained, determine the time at which the target revision information is obtained.
[0071] The target revision information is used to instruct to perform a revision operation on the operation form of the target account.
[0072] In implementation, the user can log in to the product agent client with the target account. When the user performs an operation on the product operation form through the product agent client, the product agent client can generate target correction information based on the detected operation. Among them, the operations performed by the user on the product operation form may include: creating a new operation form, updating the operation form. Taking insurance as an example, the operations performed by the user on the product operation form may include: creating a new insurance policy, extending the effective period of the insurance policy, and increasing the insurance policy's coverage amount.
[0073] Then, the product agent client can send the target revision information to the first server. Thus, the first server can receive the target revision information sent by the target account. After that, the first server can determine the acquisition time of the target revision information.
[0074] In the embodiment of the present application, the first server can determine the acquisition time of the target correction information in a variety of ways: in one feasible implementation, the first server can use the time of receiving the target correction information as the acquisition time of the target correction information. In another feasible implementation, the acquisition time can be the time when the product agent client generates the target correction information, and the product agent client can send the time when sending the target correction information, so that the first server can use the time sent by the product agent client as the acquisition time of the target correction information.
[0075] Step 302: Determine a first sending time corresponding to the target account according to the acquisition time.
[0076] The first sending time is used to indicate the time when the correction information is sent by the target account before the first sending time.
[0077] In implementation, the first server can determine the first sending time corresponding to the target account according to the acquisition time in various ways. In a feasible implementation, a target duration can be set in advance for each account. After receiving the target correction information sent by the target account, the first server can determine the first target duration corresponding to the target account, and then determine the first sending time according to the first target duration and the acquisition time. The specific processing process will be described in detail later.
[0078] In a second feasible implementation, the first server may obtain a first information set corresponding to the target account, and then determine a first sending time based on the correction information and the acquisition time included in the first information set. The specific processing process will be described in detail later.
[0079] In a third feasible implementation, the first server can determine the third sending time corresponding to the target account from the corresponding account and sending time. Then, the first server can update the third sending time according to the acquisition time to obtain the first sending time corresponding to the target account. The specific processing process will be described in detail later.
[0080] Step 303: Add the target correction information to the first information set corresponding to the target account to obtain a second information set.
[0081] The first information set is used to record the correction information sent by the target account obtained before the acquisition time. The second information set is the first information set with the target correction information added.
[0082] In implementation, after receiving the target revision information sent by the target account, the first server can determine the first information set corresponding to the target account from the corresponding accounts and information sets, and then add the target revision information to the first information set to obtain the second information set.
[0083] Step 304: Send the second information set according to the first sending time.
[0084] In the embodiment of the present application, the first server can determine the acquisition time of the target correction information when acquiring the target correction information sent by the target account, and then determine the first sending time corresponding to the target account according to the acquisition time. Then, the first server can add the target correction information to the first information set corresponding to the target account to obtain the second information set. After that, the first server can send the second information set according to the first sending time.
[0085] Since the correction information sent by the target account before the first sending time is uniformly sent to the correction information processor, the number of times the correction information is sent can be reduced, thereby alleviating the processing pressure of the correction information processor.
[0086] By adopting the correction information sending method provided in the embodiment of the present application, the number of times correction information is sent can be reduced during online activities, the number of interactions between the product agent platform and the product provider can be significantly reduced, the number of QPS (Queries per second) of the product agent platform can be significantly reduced, and the resource utilization of the product agent platform and the product provider can be improved.
[0087] Optionally, an embodiment of the present application provides an implementation method for determining a first sending time according to a first target duration and an acquisition time corresponding to a target account, including:
[0088] Step 1: Get the first target duration corresponding to the target account.
[0089] In implementation, the same target duration may be set for each account, so that after receiving the target revision information sent by the target account, the first server may obtain the pre-stored target duration and use the target duration as the first target duration corresponding to the target account.
[0090] Alternatively, different target durations may be set for multiple accounts, so that after receiving the target correction information sent by the target account, the first server may determine the target duration corresponding to the target account and use the target duration as the first target duration. The specific processing process will be described in detail later.
[0091] During an online event, different users visit the event page at different times, and the accounts used by the users send correction information at different times. The second server used to process the correction information needs to receive and process the correction information at any time. At this time, the second server's resource consumption may be uneven, that is, during peak traffic periods, the second server needs to process a large amount of correction information, resulting in a large processing pressure on the second server. However, during non-peak traffic periods, the second server rarely processes correction information, resulting in the second server's processing resources being idle.
[0092] In the embodiment of the present application, by setting a target duration for each account and uniformly sending the correction information sent by the account within the target duration, it is possible to spread the correction requests for correction information from different users over different times, thereby solving the problem of uneven consumption of server resources.
[0093] Step 2: delay the acquisition time by the first target time length to obtain a time which is used as the first sending time.
[0094] For example, the acquisition time is 8:10, and the first target duration corresponding to the target account is 30 minutes. The first server may delay the acquisition time 8:10 by 30 minutes after the first target duration to obtain a time of 8:40 as the first sending time.
[0095] In the embodiment of the present application, since the first server uses the time obtained after delaying the acquisition time by the first target time as the first sending time, and sends the second information set at the first sending time, on the one hand, it can ensure that multiple correction information sent by the target account are sent to the product provider in a unified manner, reducing the number of correction information sending times. On the other hand, it is convenient for the product provider to centrally process the correction information sent by the target account, thereby reducing the processing pressure of the product provider.
[0096] Optionally, in the case where the same target duration is set for each account, an embodiment of the present application provides a method for obtaining a first target duration, including:
[0097] Step 1: Get the operation log data of multiple accounts.
[0098] The operation log data is used to record the time when the account sends the correction information.
[0099] In implementation, for each account, after receiving the correction information sent by the account, the first server can record the account and the time when the account sent the correction information to obtain the operation log data of the account. Thus, the first server can store the operation log data of multiple accounts locally.
[0100] Alternatively, the first server may obtain the operation log data of each account from the account respectively, so as to obtain the operation log data of multiple accounts.
[0101] Step 2: For each account, calculate the sending duration corresponding to the account according to the start time and end time of sending the correction information of the account.
[0102] In implementation, the first server can determine the start time and end time of the modification information of each account in a day by searching the operation log data, and then calculate the time difference between the end time and the start time, and use the time difference as the sending duration corresponding to the account.
[0103] Step 3: Calculate the average sending duration based on the sending durations corresponding to multiple accounts.
[0104] In implementation, the first server may calculate the average of the sending durations corresponding to the multiple accounts to obtain the average sending duration.
[0105] Alternatively, the first server may determine, among the sending durations corresponding to multiple accounts, a sending duration whose sending duration is greater than a preset duration threshold, and then calculate an average value of the determined sending durations and use the average value as the average sending duration.
[0106] Step 4: Use the average sending duration as the first target duration.
[0107] In the embodiment of the present application, the technicians found through statistical analysis of the user tracking data of online activities that, in general, the account used by the user may send correction information multiple times within a period of time after the user first visits the activity page. After this period of time, the probability of the account sending correction information again on the same day is small. Therefore, the same target duration can be set for each account.
[0108] Take the example of free insurance. When the product agency platform provides free insurance services, when users visit the event page to claim the free insurance, they will generally claim all the free insurance on the current event page at once. After the user shares the free insurance event page to Moments or friend groups, many friends will click on the event page in a short period of time. After more than half an hour, few friends will click on the event page. As a result, the account used by the user will send correction information multiple times within half an hour. After more than half an hour, the account will no longer send correction information on the same day.
[0109] Based on this, the first target duration can be set to 30 minutes. In addition to 30 minutes, the first target duration can also be set to other durations, which are not specifically limited in the embodiments of the present application.
[0110] In the embodiment of the present application, the first target duration is used to measure the duration of the user's visit to the activity page, and the first target duration is calculated based on the operation log data of multiple accounts. Therefore, the setting of the first target duration is more in line with the user's usage habits of visiting the activity page, ensuring that the second information set includes multiple correction information sent by the target account during the user's visit. Subsequently, by sending the second information set, the number of times the correction information is sent can be further reduced, reducing the processing pressure of the correction information processor.
[0111] Optionally, in the case where a different target duration is set for each account, an embodiment of the present application provides a method for obtaining a first target duration, including:
[0112] Step 1: Get the target account's account attribute information.
[0113] The account attribute information is used to indicate the sending priority of the target correction information. For example, the account attribute information may be an account level identifier, which may indicate an important user's account or an ordinary user's account. The sending priority of an important user's account is higher than that of an ordinary user's account. The account attribute information may also be account activity, which may be one of high, medium and low. The higher the account activity, the higher the sending priority.
[0114] In implementation, the first server may obtain account attribute information of multiple accounts, and then the first server may search for account attribute information of a target account in the account attribute information of the multiple accounts.
[0115] Step 2: among the sending priorities and target durations having a corresponding relationship, find the target duration corresponding to the sending priority of the target account to obtain a first target duration.
[0116] In implementation, the first server may determine the sending priority indicated by the account attribute information of the target account, and then search for the target duration corresponding to the sending priority of the target account among the sending priorities and target durations having a corresponding relationship, and use the target duration as the first target duration.
[0117] For example, the target duration can be set according to the importance of the account. If the first account is an ordinary user's account, the target duration corresponding to the account can be the first duration. If the second account is an important user's account, the target duration corresponding to the account can be the second duration, which is smaller than the first duration.
[0118] In the embodiment of the present application, since the target duration is set according to the sending priority indicated by the account attribute information, the personalized sending requirements of different accounts can be met. By setting different target durations for different accounts, the correction requests of different users for correction information can be spread over different times, which can reduce the processing pressure of the second server and ensure that the processing resources of the second server are used evenly.
[0119] Optionally, the embodiment of the present application further provides an implementation method for determining the first sending time according to the correction information and the acquisition time included in the first information set, including:
[0120] Step 1: Search for the correction information contained in the first information set.
[0121] In implementation, the first server may pre-store information sets corresponding to each account, and after receiving the target correction information sent by the target account, the first server may obtain the first information set corresponding to the target account. Then, the first server may search for the correction information included in the first information set.
[0122] Step 2: If the revision information is found in the first information set, the second sending time corresponding to the target account is used as the first sending time.
[0123] The second sending time is determined according to the time when the correction information is received.
[0124] In implementation, if the first server finds the revision information in the first information set, it indicates that the revision information sent by the target account has not been sent to the second server in full, and then the first server can determine the second sending time corresponding to the target account, and then use the second sending time as the first sending time. That is, the first server may not update the sending time corresponding to the target account.
[0125] For example, if the first server finds the correction information in the first information set, the first server can determine the second sending time corresponding to the target account zhangsan and obtain 8:40. Then, the first server can use the second sending time 8:40 as the first sending time.
[0126] Step 3: If no correction information is found in the first information set, a time obtained by delaying the acquisition time by the second target time length is used as the first sending time.
[0127] In implementation, if the first server does not find the correction information in the first information set, it means that the correction information sent to the first server by the target account before the acquisition time has been sent to the second server. At this time, the first server can determine the duration corresponding to the target account and obtain the second target duration. Then, the first server can delay the acquisition time by the second target duration to obtain the time obtained as the first sending time.
[0128] For example, if the acquisition time is 8:10 and the first server does not find the correction information in the first information set, the first server can determine the second target duration corresponding to the target account and obtain 30 minutes. Then, the first server can delay the acquisition time 8:10 by 30 minutes after the second target duration to obtain the time 8:40 as the first sending time.
[0129] Optionally, the first server determines the second target duration corresponding to the target account, and the processing process can refer to the first server determines the first target duration corresponding to the target account, which is not repeated here. The first target duration and the second target duration can be the same or different, and the embodiment of the present application does not specifically limit it.
[0130] In an embodiment of the present application, the first server can search for correction information included in the first information set. When correction information is found in the first information set, the second sending time corresponding to the target account is used as the first sending time, and when correction information is not found in the first information set, the time obtained by delaying the acquisition time by the second target time length is used as the first sending time. In this way, it is possible to send the second information set at the first sending time, ensure that multiple correction information sent by the target account are uniformly sent to the provider of the product, and reduce the number of times the correction information is sent. Furthermore, it is convenient for the provider of the product to centrally process the correction information sent by the target account, thereby reducing the processing pressure of the provider of the product.
[0131] Optionally, the embodiment of the present application further provides an implementation method for updating the third sending time corresponding to the target account according to the acquisition time to obtain the first sending time corresponding to the target account, and the processing process includes:
[0132] Step 1: Find the third sending time corresponding to the target account among the accounts and sending times that have a corresponding relationship.
[0133] In implementation, after receiving the correction information sent by a certain account, the first server can determine the first sending time corresponding to the account according to the acquisition time of the correction information, and then the first server can record the account and the first sending time accordingly to obtain the corresponding relationship between the account and the sending time.
[0134] Thus, after receiving the target correction information sent by the target account, the first server can search for the third sending time corresponding to the target account among the accounts and sending times that have a corresponding relationship. If the first server does not find the third sending time corresponding to the target account, the first server can delay the acquisition time by the first target time length to obtain a time as the first sending time.
[0135] If the first server finds the third sending time corresponding to the target account, the first server may compare the sequence between the acquisition time and the third sending time.
[0136] Step 2: If the acquisition time is earlier than the third sending time, the third sending time is used as the first sending time.
[0137] In implementation, if the acquisition time is earlier than the third sending time, it means that the correction information sent by the target account before the acquisition time has not been sent to the second server, and then the first server can use the third sending time as the first sending time. That is, the first server may not update the sending time corresponding to the target account.
[0138] Step 3: If the acquisition time is not earlier than the third sending time, a time obtained by delaying the acquisition time by the third target time length is used as the first sending time.
[0139] In implementation, if the acquisition time is not earlier than the third sending time, it means that the correction information sent to the first server by the target account before the acquisition time has been sent to the second server. At this time, the first server can determine the target duration corresponding to the target account and obtain the third target duration. Then, the first server can delay the acquisition time by the time obtained after the third target duration as the first sending time.
[0140] For example, if the acquisition time is 8:20, the first server can determine the third sending time corresponding to the target account from the corresponding accounts and sending times, and obtain 8:40. Then, the first server can compare the acquisition time 8:20 with the third sending time 8:40. Since the acquisition time 8:20 is earlier than the third sending time 8:40, the first server can use the third sending time 8:40 as the first sending time.
[0141] Still taking the free insurance as an example, when the user receives the free insurance by visiting the activity page, the period of time after the user visits the activity page can be used as a visit time interval, and the end time of the visit time interval is the third sending time. The third sending time can be the acquisition time of the first correction information received within the visit time interval, which is determined by delaying the first target time length.
[0142] After receiving the target correction information, the first server can compare the acquisition time and the third sending time corresponding to the target account. If the acquisition time is earlier than the third sending time, it indicates that the target correction information is sent by the target account within the access time interval. In this case, there is no need to update the sending time, and the third sending time can be used as the first sending time corresponding to the target account. If the acquisition time is not earlier than the third sending time, it indicates that after the last access time interval, the user has visited the activity page again, and the target account has sent the correction information to the first server again, so it is necessary to re-determine the sending time.
[0143] Optionally, the process of the first server determining the third target duration corresponding to the target account can refer to the process of the first server determining the first target duration corresponding to the target account, which will not be repeated here. The first target duration, the second target duration, and the third target duration can be the same or different, and the embodiment of the present application does not specifically limit it.
[0144] In the embodiment of the present application, the first server can determine the first sending time corresponding to the target account by comparing the third sending time with the acquisition time. Therefore, the subsequent sending of the second information set according to the first sending time can ensure that multiple correction information sent by the target account is sent uniformly, reducing the number of times the correction information is sent. Further, it is convenient for the product provider to centrally process the correction information sent by the target account, thereby reducing the processing pressure of the product provider.
[0145] Optionally, a target time period may be preset, and the target time period is used to indicate a time range for the product provider to process the correction information in a timely manner. The target time period may be divided into multiple time periods, and the last time period among the multiple time periods is referred to as the first preset time period. For example, the target time period may be a natural day, and the target time period may be divided into two time periods, namely 0:00-23:30 and 23:30-24:00, and the first preset time period may be 23:30-24:00.
[0146] The first server may send the target correction information based on the first preset time period, including the following steps:
[0147] Step 1: When the target revision information sent by the target account is obtained, determine the time at which the target revision information is obtained.
[0148] In implementation, the processing of this step may refer to the processing of step 301 and will not be described in detail here.
[0149] Step 2: Determine the relationship between the acquisition time and the first preset time period.
[0150] In implementation, the first server may compare the acquisition time with a first preset time period to determine whether the acquisition time is within the first preset time period.
[0151] Step 3: If the acquisition time is within the first preset time period, the target correction information is sent immediately.
[0152] For example, the acquisition time is 23:40, and the first preset time period is 23:30-24:00. The first server may determine that the acquisition time is within the first preset time period, and then the first server may immediately send the target correction information.
[0153] Step 4: If the acquisition time is not within the first preset time period, determine the first sending time corresponding to the target account according to the acquisition time.
[0154] In implementation, the processing of this step may refer to the processing of step 302, which will not be described in detail here.
[0155] Step 5: Add the target revision information to the first information set corresponding to the target account to obtain a second information set.
[0156] In implementation, the processing of this step may refer to the processing of step 303, which will not be described in detail here.
[0157] Step six: Send the second information set according to the first sending time.
[0158] In implementation, the processing of this step may refer to the processing of step 304, which will not be described in detail here.
[0159] In an embodiment of the present application, the first preset time period is the last time period within the target time period. If the target correction information is received within the first preset time period, and the acquisition time of the target correction information is delayed by the time after the first target time length as the first sending time, the first sending time may be later than the end time of the target time period, thereby resulting in a backdating phenomenon in which the correction information is sent later than the target time period.
[0160] Based on this, if the acquisition time is within the first preset time period, the target correction information is sent immediately to avoid backdating. Further, while ensuring the timeliness of sending the correction information, it can facilitate the product provider to perform correction processing in a timely manner.
[0161] Optionally, the target time period can be divided into at least three time periods. For easy distinction, the last time period is called the first preset time period, and the time period before the first preset time period is called the second preset time period. For example, the target time period can be a natural day, the first preset time period is 23:30-24:00, and the second preset time period is 23:00-23:30.
[0162] In the case where the target time period includes a first preset time period and a second preset time period, if the acquisition time is not in the first preset time period, the sending process of the first server includes:
[0163] Step (1): determine the relationship between the acquisition time and the second preset time period.
[0164] In implementation, the first server may determine whether the acquisition time is within a second preset time period.
[0165] If the acquisition time is within the second preset time period, the first server may execute step 2; if the acquisition time is not within the second preset time period, the first server may execute step 3.
[0166] Step (ii): taking the target sending time as the first sending time.
[0167] The target sending time is not earlier than the end time of the second preset time period. For example, the second preset time period is 23:00-23:30, and the end time of the second preset time period is 23:30. The target sending time can be 23:30 or 23:45.
[0168] In implementation, the first server may obtain the locally pre-stored target sending time, or the first server may randomly select a time within the first preset time period as the target sending time.
[0169] Then, the first server may use the target sending time as the first sending time corresponding to the target account.
[0170] In the embodiment of the present application, if the target correction information is received within the second preset time period, and the acquisition time of the target correction information is delayed by the time after the first target time length as the first sending time, then the first sending time will be within the first preset time period, and the first sending time may be close to the end time of the first preset time period. At this time, if the second information set contains too much correction information, the provider of the product may not be able to process it in time, resulting in the backdating problem of the correction information. Based on this, the backdating problem can be avoided by reasonably setting the target sending time.
[0171] Furthermore, the target sending time is set to be no earlier than the end time of the second preset time period. On the one hand, it can avoid the situation that when the target sending time is set to be earlier than the end time, after sending the second information set corresponding to the target account at the target sending time, the correction information sent by the target account is received again before the end time. On the other hand, the correction information sent by the target account can be continuously received before the end of the second preset time period. In this way, the correction information sent by the target account within the second preset time period is uniformly sent to the second server, which can reduce the number of times the correction information is sent, thereby alleviating the processing pressure of the second server.
[0172] The target sending time can be set according to the processing capacity of the product provider. Taking the first preset time period as 23:30-24:00 and the second preset time period as 23:00-23:30 as an example, the target sending time can be 23:30.
[0173] Step 3: Determine the first sending time corresponding to the target account according to the acquisition time.
[0174] In implementation, the processing of this step may refer to the processing of step 302, which will not be described in detail here.
[0175] Step 4: Add the target revision information to the first information set corresponding to the target account to obtain a second information set.
[0176] In implementation, the processing of this step may refer to the processing of step 303, which will not be described in detail here.
[0177] Step 5: Send the second information set according to the first sending time.
[0178] In implementation, the processing of this step may refer to the processing of step 304, which will not be described in detail here.
[0179] In the embodiment of the present application, the second information set corresponding to each account determined within the second preset time period is uniformly sent according to the target sending time. On the one hand, it is convenient for the product provider to centrally process the correction information, thereby reducing the processing burden of the product provider. On the other hand, when a large amount of correction information is received near the end time of the first preset time period, the backdating problem of the correction information caused by the inability of the product provider to process it in time can be avoided.
[0180] Optionally, after determining the acquisition time of the target correction information, the first server may determine a time period including the acquisition time from among the multiple time periods included in the target time period. If the acquisition time is within the first preset time period, the first server may immediately send the target correction information to the second server. If the acquisition time is within the second preset time period, the first server may use the target sending time as the first sending time. If the acquisition time is not within the first preset time period and the second preset time period, the first server may use the time after the acquisition time is delayed by the first target time length as the first sending time.
[0181] The present application embodiment also provides an example of sending correction information, such as Figure 4 As shown, including:
[0182] Step 401: When the first server obtains target revision information sent by a target account, it determines the time when the target revision information is obtained.
[0183] The target revision information is used to instruct to perform a revision operation on the operation form of the target account.
[0184] In implementation, the processing of this step may refer to the processing of step 301 above, and will not be described in detail here.
[0185] Step 402: The first server determines the relationship between the acquisition time and the first preset time period.
[0186] The first preset time period is the last time period of multiple time periods obtained by dividing the target time period.
[0187] In implementation, the processing of this step can refer to the processing of step 2 above, and will not be repeated here.
[0188] Step 403: If the acquisition time is within the first preset time period, the first server immediately sends the target correction information to the second server.
[0189] In implementation, the processing of this step can refer to the processing of step three above, which will not be repeated here.
[0190] Step 404: If the acquisition time is not within the first preset time period, the first server determines the relationship between the acquisition time and the second preset time period.
[0191] The second preset time period is a time period before the first preset time period.
[0192] In implementation, the processing of this step can refer to the processing of step (I) above, and will not be repeated here.
[0193] Step 405: If the acquisition time is within the second preset time period, the first server uses the target sending time as the first sending time.
[0194] The target sending time is no earlier than the end time of the second preset time period.
[0195] In implementation, the processing of this step can refer to the processing of the above step (ii), which will not be repeated here.
[0196] Step 406: If the acquisition time is not within the second preset time period, the first server determines a first sending time corresponding to the target account according to the acquisition time.
[0197] The first sending time is used to indicate the time when the correction information is sent by the target account before the first sending time.
[0198] In implementation, the processing of this step may refer to the processing of step 302 above, and will not be described in detail here.
[0199] Step 407: The first server adds the target correction information to the first information set corresponding to the target account to obtain a second information set.
[0200] The first information set is used to record the correction information sent by the target account obtained before the acquisition time.
[0201] In implementation, the processing of this step may refer to the processing of step 303 above, which will not be described in detail here.
[0202] Step 408: The first server sends the second information set to the second server according to the first sending time.
[0203] In implementation, the processing of this step may refer to the processing of step 304 above, which will not be described in detail here.
[0204] In the embodiment of the present application, the first server can determine the acquisition time of the target revision information when the target revision information is acquired. If the acquisition time is within the first preset time period, the first server can immediately send the target revision information to the second server, thereby avoiding the backdating problem caused by the second server being unable to process a large amount of revision information within the first preset time period.
[0205] The first server may use the target sending time as the first sending time if the acquisition time is within the second preset time period, and determine the first sending time according to the acquisition time if the acquisition time is not within the second preset time period. The first server may also add the target correction information to the first information set to obtain a second information set, and send the second information set at the determined first sending time.
[0206] Thus, the correction information sent by the target account before the first sending time can be uniformly sent to the correction information processor, which can reduce the number of times the correction information is sent, thereby alleviating the processing pressure of the correction information processor.
[0207] Optionally, the first server may include a front-end business server and a back-end business server. The front-end business server is used to respond to the operation performed by the user on the product agent client, generate target correction information, and send the target correction information to the back-end business server. The back-end business server is used to send the received target correction information to the second server of the product provider. The front-end business server can send the target correction information to the back-end business server in the form of a message queue.
[0208] The backend business server can store the first information set based on the Redis database. Specifically, the account and the information set can be stored in the Redis database with the account as the key and the first information set as the value. The backend business server can subscribe to the expiration event function of the Redis database and set the first sending time corresponding to the account as the expiration time. When the expiration time is reached, the backend business server can monitor the expiration event of the Rediskey, and then the backend business server can send the first information set to the second server by executing the sending operation of sending the value.
[0209] In another feasible implementation, the backend business server may serve as the first server, and the target revision information acquired by the first server may be sent by the frontend business server.
[0210] In the embodiment of the present application, the first server includes a front-end business server and a back-end business server as an example to illustrate the sending process of the correction information. Figure 4 As shown, including:
[0211] The product agent client can send notification information to the front-end business server after detecting the processing operation performed by the target account on the activity page. The processing operation includes accessing the activity page and / or executing the task included in the activity page, and the notification information is used to indicate the processing operation performed by the target account on the activity page.
[0212] The front-end business server can generate the target modification information of the target account according to the received notification information, and publish the target modification information to the message queue MQ. The back-end business server can read the target modification information sent by the target account from the message queue by subscribing to the message queue.
[0213] Optionally, the front-end business server and the back-end business server may also use inter-process communication to transmit the target correction information. For example, the inter-process communication method may be sending an HTTP (hypertext transfer protocol) request or an RPC (remote procedure call) request.
[0214] After reading the target correction information, the backend business server can determine the acquisition time of the target correction information and determine the relationship between the acquisition time and the first preset time period. If the acquisition time is within the first preset time period, it indicates that immediate correction is required. At this time, the backend business server can immediately send the target correction information to the interface provided by the second server to request the second server to perform correction processing. The second server can perform correction processing based on the target correction information to obtain a correction result. Then, the second server can send the correction result to the backend business server.
[0215] If the acquisition time is not within the first preset time period, it indicates that delayed correction is possible. At this time, the backend business server can determine the first sending time corresponding to the target account according to the acquisition time, and add the target correction information to the first information set corresponding to the target account in the Redis database to obtain the second information set.
[0216] Subsequently, the backend business server can monitor the expiration event of the target account with key at the first sending time, and then the backend business server can send the second information set to the interface provided by the second server to request the second server to perform correction processing. The second server can perform correction processing based on the second information set to obtain the correction result. Then, the second server can send the correction result to the backend business server.
[0217] Since the backend business server sends the correction information sent by the target account before the first sending time to the second server, the number of times the correction information is sent can be reduced, thereby significantly reducing the number of interactions between the backend business server and the interface provided by the second server, and significantly reducing the QPS (Queries per second) number of the backend business server.
[0218] The embodiment of the present application provides an example of sending correction information, including: user zhangsan visited the activity page at 8:10, 8:20, 8:40, 12:00, 23:20 and 23:35 respectively. The operation process of the first server includes:
[0219] (1) At 8:10, the first server receives the target correction information sent by the target account zhangsan. The first server can determine that the acquisition time of the target correction information is 8:10, and the first target duration corresponding to the target account zhangsan is 30 minutes. The first server can use the acquisition time 8:10 delayed by the first target duration to obtain the time 8:40 as the first sending time corresponding to the target account zhangsan. Then, the first server can use zhangsan as the key in the Redis database, and the first information set containing the target correction information as the value, and set the expiration time of zhangsan to 8:40.
[0220] (2) At 8:20, the first server receives the target correction information sent by the target account zhangsan. The first server can use the time 8:50 obtained by delaying the acquisition time 8:20 by the first target duration as the first sending time corresponding to the target account zhangsan, that is, update the expiration time of zhangsan to 8:50. The first server can also add the received target correction information to the first information set corresponding to the target account zhangsan to obtain a second information set. The second information set is the updated first information set.
[0221] (3) At 8:40, the first server receives the target correction information sent by the target account zhangsan. The first server can use the time 8:40 obtained by delaying the first target duration to obtain the time 9:10 as the first sending time corresponding to the target account zhangsan, that is, update the expiration time of zhangsan to 9:10. The first server can also add the received target correction information to the first information set corresponding to the target account zhangsan to obtain a second information set. The second information set is the updated first information set.
[0222] (4) At 9:10, the first server can monitor the expiration event of the target account zhangsan, and the first server can send the second information set corresponding to the target account zhangsan to the second server. After sending the second information set, the second information set becomes an empty set.
[0223] (5) At 12:00, the first server receives the target correction information sent by the target account zhangsan. The first server can determine that the acquisition time of the target correction information is 12:00, and then delay the acquisition time 12:00 by the first target time to obtain the time 12:30 as the first sending time corresponding to the target account zhangsan. The first server can also add the target correction information to the first information set corresponding to the target account zhangsan to obtain the second information set.
[0224] (6) At 12:30, the first server may monitor the expiration event of the target account zhangsan, and the first server may send a second information set corresponding to the target account zhangsan to the second server.
[0225] (7) At 23:20, the first server receives the target correction information sent by the target account zhangsan. The first server can determine that the acquisition time 23:20 of the target correction information is within the second preset time period 23:00-23:30, and the first server can use the target sending time 23:30 as the first sending time corresponding to the target account zhangsan. The first server can also add the target correction information to the first information set corresponding to the target account zhangsan to obtain the second information set.
[0226] (8) At 23:20, the first server may monitor the expiration event of the target account zhangsan, and the first server may send a second information set corresponding to the target account zhangsan to the second server.
[0227] (9) At 23:35, the first server receives the target correction information sent by the target account zhangsan. The first server can determine that the acquisition time 23:35 of the target correction information is within the first preset time period 23:30-24:00, and the first server can immediately send the target correction information to the second server.
[0228] Based on the same technical concept, the embodiment of the present application also provides a device for sending correction information, such as Figure 6 As shown, the device comprises:
[0229] The first determination module 610 is used to determine the acquisition time of the target revision information sent by the target account when the target revision information is acquired, wherein the target revision information is used to indicate that a revision operation is performed on the operation form of the target account;
[0230] A second determining module 620 is used to determine a first sending time corresponding to the target account according to the acquisition time, wherein the first sending time is used to indicate a time for sending the correction information sent by the target account before the first sending time;
[0231] An adding module 630, configured to add the target correction information to a first information set corresponding to the target account, to obtain a second information set, wherein the first information set is used to record the correction information sent by the target account acquired before the acquisition time;
[0232] The sending module 640 is used to send the second information set according to the first sending time.
[0233] Optionally, the second determining module includes:
[0234] An acquisition submodule, used to acquire a first target duration corresponding to the target account;
[0235] The first determining submodule is used to delay the acquisition time by the first target time length to obtain a time as the first sending time.
[0236] Optionally, the acquisition submodule is used to acquire operation log data of multiple accounts, the operation log data is used to record the time when the account sends correction information; and for each of the accounts, according to the start time and end time of sending the correction information by the account, calculate the sending duration corresponding to the account; and according to the sending times corresponding to the multiple accounts, calculate the average sending duration; and use the average sending duration as the first target duration.
[0237] Optionally, the acquisition submodule is used to acquire account attribute information of the target account, the account attribute information is used to indicate the sending priority of sending the target correction information; and to search for the target duration corresponding to the sending priority of the target account among the sending priorities and target durations having a corresponding relationship, to obtain the first target duration.
[0238] Optionally, the second determining module includes:
[0239] A first search submodule, used for searching for correction information contained in the first information set;
[0240] The second determination submodule is used to use the second sending time corresponding to the target account as the first sending time when the correction information is found in the first information set, and the second sending time is determined according to the time when the correction information is received; and when the correction information is not found in the first information set, the time obtained by delaying the acquisition time by the second target time length is used as the first sending time.
[0241] Optionally, the second determining module includes:
[0242] A second search submodule is used to search for a third sending time corresponding to the target account among the accounts and sending times having a corresponding relationship;
[0243] The third determination submodule is used to use the third sending time as the first sending time when the acquisition time is earlier than the third sending time; and when the acquisition time is not earlier than the third sending time, use the time obtained by delaying the acquisition time by the third target time as the first sending time.
[0244] Optionally, the device further comprises:
[0245] A third determination module is used to determine the relationship between the acquisition time and a first preset time period, where the first preset time period is the last time period of a plurality of time periods obtained by dividing the target time period;
[0246] The sending module is further used to immediately send the target correction information if the acquisition time is within the first preset time period;
[0247] The third determining module is further configured to, when the acquisition time is not within the first preset time period, call the second determining module to execute the step of determining the first sending time corresponding to the target account according to the acquisition time.
[0248] Optionally, the device further comprises:
[0249] A fourth determining module, configured to determine, when the acquisition time is not within the first preset time period, a relationship between the acquisition time and a second preset time period, the second preset time period being a time period before the first preset time period;
[0250] a fifth determining module, configured to, if the acquisition time is within the second preset time period, use the target sending time as the first sending time, and the target sending time is not earlier than the end time of the second preset time period;
[0251] The fourth determining module is further configured to, when the acquisition time is not within the second preset time period, call the second determining module to execute the step of determining the first sending time corresponding to the target account according to the acquisition time.
[0252] The embodiment of the present application provides a device for sending correction information, which can determine the acquisition time of the target correction information when the target correction information sent by the target account is acquired, and then determine the first sending time corresponding to the target account according to the acquisition time, wherein the target correction information is used to indicate the execution of the correction operation on the operation form of the target account, and the first sending time is used to indicate the time of sending the correction information sent by the target account before the first sending time. Then, the target correction information is added to the first information set corresponding to the target account to obtain the second information set, wherein the first information set is used to record the correction information sent by the target account acquired before the acquisition time. After that, the second information set is sent according to the first sending time.
[0253] Since the first sending time corresponding to the target account is determined according to the acquisition time of the target correction information, and a second information set including the correction information sent by the target account before the first sending time is generated, and the second information set is sent according to the first sending time, the number of times the correction information is sent can be reduced, thereby alleviating the processing pressure of the party processing the correction information.
[0254] Based on the same technical concept, the embodiment of the present application also provides an electronic device, such as Figure 7 As shown, it includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.
[0255] Memory 703, used for storing computer programs;
[0256] The processor 701 is used to execute the program stored in the memory 703 to implement the following steps:
[0257] In the case of acquiring target revision information sent by the target account, determining the acquisition time of the target revision information, wherein the target revision information is used to indicate that a revision operation is performed on the operation form of the target account;
[0258] Determine a first sending time corresponding to the target account according to the acquisition time, wherein the first sending time is used to indicate a time for sending the correction information sent by the target account before the first sending time;
[0259] Adding the target revision information to the first information set corresponding to the target account to obtain a second information set, wherein the first information set is used to record the revision information sent by the target account acquired before the acquisition time;
[0260] The second information set is sent according to the first sending time.
[0261] Optionally, determining the first sending time corresponding to the target account according to the acquisition time includes:
[0262] Obtaining a first target duration corresponding to the target account;
[0263] The time obtained by delaying the acquisition time by the first target time length is used as the first sending time.
[0264] Optionally, obtaining the first target duration corresponding to the target account includes:
[0265] Acquire operation log data of multiple accounts, where the operation log data is used to record the time when the account sends the correction information;
[0266] For each of the accounts, according to the start time and end time of sending the correction information by the account, calculate the sending duration corresponding to the account;
[0267] Calculate an average sending duration according to the sending durations corresponding to the multiple accounts;
[0268] The average sending duration is used as the first target duration.
[0269] Optionally, obtaining the first target duration corresponding to the target account includes:
[0270] Acquire account attribute information of the target account, wherein the account attribute information is used to indicate a sending priority of sending the target correction information;
[0271] Among the sending priorities and target durations having a corresponding relationship, the target duration corresponding to the sending priority of the target account is searched to obtain a first target duration.
[0272] Optionally, determining the first sending time corresponding to the target account according to the acquisition time includes:
[0273] searching for correction information contained in the first information set;
[0274] If the revision information is found in the first information set, the second sending time corresponding to the target account is used as the first sending time, wherein the second sending time is determined according to the time when the revision information is obtained when the revision information is received;
[0275] If no revision information is found in the first information set, a time obtained by delaying the acquisition time by a second target time length is used as the first sending time.
[0276] Optionally, determining the first sending time corresponding to the target account according to the acquisition time includes:
[0277] Searching for a third sending time corresponding to the target account among the accounts and sending times that have a corresponding relationship;
[0278] If the acquisition time is earlier than the third sending time, taking the third sending time as the first sending time;
[0279] If the acquisition time is not earlier than the third sending time, a time obtained by delaying the acquisition time by the third target time length is used as the first sending time.
[0280] Optionally, before determining the first sending time corresponding to the target account according to the acquisition time, the method further includes:
[0281] Determine a relationship between the acquisition time and a first preset time period, where the first preset time period is the last time period of a plurality of time periods obtained by dividing the target time period;
[0282] If the acquisition time is within the first preset time period, the target correction information is sent immediately;
[0283] If the acquisition time is not within the first preset time period, the step of determining a first sending time corresponding to the target account according to the acquisition time is performed.
[0284] Optionally, before executing the step of determining the first sending time corresponding to the target account according to the acquisition time, the method further includes:
[0285] If the acquisition time is not within the first preset time period, determining the relationship between the acquisition time and a second preset time period, where the second preset time period is a time period before the first preset time period;
[0286] If the acquisition time is within the second preset time period, the target sending time is used as the first sending time, and the target sending time is not earlier than the end time of the second preset time period;
[0287] If the acquisition time is not within the second preset time period, the step of determining the first sending time corresponding to the target account according to the acquisition time is performed.
[0288] The communication bus mentioned in the above electronic device 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.
[0289] The communication interface is used for communication between the above electronic device and other devices.
[0290] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0291] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be 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.
[0292] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods for sending correction information are implemented.
[0293] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any one of the correction information sending methods in the above embodiments.
[0294] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0295] According to another aspect of the embodiments of the present application, an electronic device for implementing the above-mentioned method for sending correction information is also provided.
[0296] Figure 8 is a structural block diagram of an electronic device according to an embodiment of the present application, such as Figure 8 As shown, the electronic device may include: one or more (only one is shown in the figure) processors 801, a memory 803, and a transmission device 805, such as Figure 8 As shown, the electronic device may further include an input / output device 807 .
[0297] Among them, the memory 803 can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for sending correction information in the embodiment of the present application. The processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 803, that is, realizing the above-mentioned method for sending correction information. The memory 803 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 803 may further include a memory remotely arranged relative to the processor 801, and these remote memories can be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0298] The above-mentioned transmission device 805 is used to receive or send data via a network, and can also be used for data transmission between a processor and a memory. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 805 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 805 is a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.
[0299] Specifically, the memory 803 is used to store application programs.
[0300] The processor 801 may call the application stored in the memory 803 through the transmission device 805 to perform the following steps:
[0301] In the case of acquiring target revision information sent by the target account, determining the acquisition time of the target revision information, wherein the target revision information is used to indicate that a revision operation is performed on the operation form of the target account;
[0302] Determine a first sending time corresponding to the target account according to the acquisition time, wherein the first sending time is used to indicate a time for sending the correction information sent by the target account before the first sending time;
[0303] Adding the target revision information to the first information set corresponding to the target account to obtain a second information set, wherein the first information set is used to record the revision information sent by the target account acquired before the acquisition time;
[0304] The second information set is sent according to the first sending time.
[0305] The embodiment of the present application provides a correction information sending solution. Since the correction information sent by the target account before the first sending time is uniformly sent to the correction information processor, the number of correction information sending times can be reduced, thereby alleviating the processing pressure of the correction information processor.
[0306] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0307] It can be understood by those skilled in the art that Figure 8The structure shown is for illustration only, and the electronic device may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, or other electronic devices. Figure 8 The structure of the electronic device is not limited. Figure 8 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 8 Different configurations are shown.
[0308] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the electronic device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0309] The present application provides a computer program product or a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps of any embodiment of the above-mentioned method for sending correction information.
[0310] It should be noted that, in this article, relational terms such as "first" and "second" 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 device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0311] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for sending correction information, characterized in that: Applied to a first server, the method comprises: In the case of acquiring the target correction information sent by the target account, determining the acquisition time of the target correction information, wherein the target correction information is used to indicate the execution of the correction operation on the operation form of the target account, and the acquisition time is the time when the first server receives the target correction information, or the time when the product agent client generates the target correction information, or the time when the product agent client sends the target correction information; Determine a first sending time corresponding to the target account according to the acquisition time, wherein the first sending time is used to indicate a time for sending the correction information sent by the target account before the first sending time; Adding the target revision information to the first information set corresponding to the target account to obtain a second information set, wherein the first information set is used to record the revision information sent by the target account acquired before the acquisition time; Sending the second information set according to the first sending time; Wherein, determining the first sending time corresponding to the target account according to the acquisition time includes at least one of the following: Acquire a first target duration corresponding to the target account; delay the acquisition time by the first target duration to obtain a time as the first sending time; Searching for the revision information included in the first information set; if the revision information is found in the first information set, using the second sending time corresponding to the target account as the first sending time, wherein the second sending time is determined according to the time when the revision information is obtained when the revision information is received; if the revision information is not found in the first information set, using the time obtained by delaying the obtaining time by the second target time as the first sending time; Among the accounts and sending times that have a corresponding relationship, search for the third sending time corresponding to the target account; if the acquisition time is earlier than the third sending time, use the third sending time as the first sending time; if the acquisition time is not earlier than the third sending time, use the time obtained by delaying the acquisition time by the third target time as the first sending time.
2. The method according to claim 1, characterized in that The obtaining the first target duration corresponding to the target account includes: Acquire operation log data of multiple accounts, where the operation log data is used to record the time when the account sends the correction information; For each of the accounts, according to the start time and end time of sending the correction information by the account, calculate the sending duration corresponding to the account; Calculate an average sending duration according to the sending durations corresponding to the multiple accounts; The average sending duration is used as the first target duration.
3. The method according to claim 1, characterized in that The obtaining the first target duration corresponding to the target account includes: Acquire account attribute information of the target account, wherein the account attribute information is used to indicate a sending priority of sending the target correction information; Among the sending priorities and target durations having a corresponding relationship, the target duration corresponding to the sending priority of the target account is searched to obtain a first target duration.
4. The method according to claim 1, characterized in that: Before determining the first sending time corresponding to the target account according to the acquisition time, the method further includes: Determine a relationship between the acquisition time and a first preset time period, where the first preset time period is the last time period of a plurality of time periods obtained by dividing the target time period; If the acquisition time is within the first preset time period, the target correction information is sent immediately; If the acquisition time is not within the first preset time period, the step of determining a first sending time corresponding to the target account according to the acquisition time is performed.
5. The method according to claim 4, characterized in that Before executing the step of determining the first sending time corresponding to the target account according to the acquisition time, the method further includes: If the acquisition time is not within the first preset time period, determining the relationship between the acquisition time and a second preset time period, where the second preset time period is a time period before the first preset time period; If the acquisition time is within the second preset time period, the target sending time is used as the first sending time, and the target sending time is not earlier than the end time of the second preset time period; If the acquisition time is not within the second preset time period, the step of determining the first sending time corresponding to the target account according to the acquisition time is performed.
6. A device for sending correction information, characterized in that: The device comprises: A first determination module is used to determine the acquisition time of the target correction information sent by the target account when the target correction information is acquired, wherein the target correction information is used to indicate the execution of the correction operation on the operation form of the target account, and the acquisition time is the time when the first server receives the target correction information, or the time when the product agent client generates the target correction information, or the time when the product agent client sends the target correction information; A second determining module, configured to determine a first sending time corresponding to the target account according to the acquisition time, wherein the first sending time is used to indicate a time for sending the correction information sent by the target account before the first sending time; An adding module, used for adding the target correction information to the first information set corresponding to the target account, to obtain a second information set, wherein the first information set is used for recording the correction information sent by the target account acquired before the acquisition time; A sending module, configured to send the second information set according to the first sending time; The second determining module is further configured to implement at least one of the following: Acquire a first target duration corresponding to the target account; delay the acquisition time by the first target duration to obtain a time as the first sending time; Searching for the revision information included in the first information set; if the revision information is found in the first information set, using the second sending time corresponding to the target account as the first sending time, wherein the second sending time is determined according to the time when the revision information is obtained when the revision information is received; if the revision information is not found in the first information set, using the time obtained by delaying the obtaining time by the second target time as the first sending time; Among the accounts and sending times that have a corresponding relationship, search for the third sending time corresponding to the target account; if the acquisition time is earlier than the third sending time, use the third sending time as the first sending time; if the acquisition time is not earlier than the third sending time, use the time obtained by delaying the acquisition time by the third target time as the first sending time.
7. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 5 when executing a program stored in a memory.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 5 are implemented.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
