Data modification processing method, device, electronic equipment and storage medium

By combining single frequency control and overall frequency control methods in social apps, users are restricted from frequently modifying user information, which solves the problem of meaningless consumption of network resources caused by frequent modifications by users, and achieves efficient utilization of resources and reduced server pressure.

CN114140260BActive Publication Date: 2025-02-28BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111276244.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-29
Publication Date
2025-02-28
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

Users frequently modify user information leads to meaningless consumption of network resources, increasing server pressure and cost.

Method used

By obtaining the user's data modification records during this frequency control period, including the historical number of modifications of the target modification project and the total number of modifications of all data items, data modification is allowed only if the historical number of modifications of the target modification project is less than the current frequency control number and the total number of modifications of all data items of the user is less than the current total frequency control number.

Benefits of technology

It effectively restricts users from frequently modifying user information at will, avoiding meaningless consumption of network resources, and reducing server pressure and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114140260B_ABST
    Figure CN114140260B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data modification processing method, device, electronic device and storage medium, the method comprising: in response to obtaining a data modification request, obtaining a data modification record of a user in the current frequency control period, the data modification request is used to modify a target modification item of the user's data, the data modification record at least includes: the historical modification times of the target modification item and the total historical modification times of all data items, and finally, when the historical modification times of the target modification item are less than the current frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the current total frequency control times of all data items, modifying the data according to the data modification request. By adopting a method combining single-item frequency control and overall frequency control, it is possible to better limit users from frequently and arbitrarily modifying user data, and avoid meaningless consumption of network resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to data modification technology, and more particularly to a data modification processing method, device, electronic device and storage medium. Background Art

[0002] In some social apps, each user has his or her own profile. Common user profiles include user avatar, nickname, personal profile, etc. User profile is the first business card of the current user. All other users who are interested in the current user can enter the current user's personal homepage to view the current user's relevant information. Given the importance of user profiles in social occasions, users prefer to update their user profiles on a daily basis to ensure that the user profiles are real-time, which can promote social interaction.

[0003] However, if there are no restrictions on the update of social profiles, some users will modify their profiles too frequently and too casually. Such frequent and casual modification of user profiles will dilute the concept of user profiles as the user's first business card, and the user profile information will not be reliable. In addition, frequent and meaningless modification of user profiles will occupy certain network resources, bring certain pressure to the server, and cause network resources to be wasted meaninglessly, increasing costs. Summary of the invention

[0004] The present disclosure provides a data modification processing method, device, electronic device and storage medium to at least solve the problem in the related art that users frequently modify user data, resulting in meaningless consumption of network resources. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a data modification processing method is provided, comprising:

[0006] In response to obtaining a data modification request, obtaining a data modification record in the current frequency control period, wherein the data modification request is used to modify a target modification item of the user data, and the data modification record includes at least: a historical modification count of the target modification item and a total historical modification count of all data items;

[0007] When the historical modification times of the target modification item are less than the current frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the current total frequency control times of all data items, data modification is performed according to the data modification request.

[0008] Optionally, the method further comprises:

[0009] When the number of historical modifications of the target modification item is greater than or equal to the current frequency control number of the target modification item, or when the total number of historical modifications of all data items is greater than or equal to the current total frequency control number of all data items of the user, a prompt message for rejecting data modification is output.

[0010] Optionally, the difference between the current frequency control number of the target modification project and the historical modification number of the target modification project is calculated to obtain the remaining modification number of the target modification project, and when the remaining modification number of the target modification project is less than a first preset threshold, the remaining modification number of the target modification project is output; and / or

[0011] The difference between the current total frequency control times of all data items of the user and the total number of historical modifications of all data items is calculated to obtain the remaining modification times of all data items, and when the remaining modification times of all data items are less than a second preset threshold, the remaining modification times of all data items are output.

[0012] Optionally, when the number of historical modifications of the target modification item is less than the current frequency control number of the target modification item, and the total number of historical modifications of all data items of the user is less than the current total frequency control number of all data items, before modifying the data according to the data modification request, the method further includes:

[0013] When the data modification request is an abnormal request, reducing the current frequency control times of the target modification item and the current total frequency control times of all data items to obtain the updated frequency control times of the target modification item and the updated total frequency control times of all data items;

[0014] When the historical modification times of the target modification item are less than the current frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the current total frequency control times of all data items, modifying the target modification item according to the data modification request includes:

[0015] When the historical modification times of the target modification item are less than the update frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the total update frequency control times of all data items, the data is modified according to the data modification request.

[0016] Optionally, the data modification record also includes an item identifier of a historical modification item;

[0017] When the data modification request is an abnormal request, before reducing the current frequency control times of the target modification item and the current total frequency control times of all data items, the method further includes:

[0018] When the project identifier of the target modification project and the project identifier of the historical modification project are continuously the same, it is determined that the data modification request is an abnormal request.

[0019] Optionally, when the data modification request is an abnormal request, reducing the current frequency control times of the target modification item and the current total frequency control times of all data items includes:

[0020] When the target modification item is modified continuously, obtaining the number of continuous modifications of the target modification item;

[0021] Based on the number of consecutive modifications, the current frequency control number of the target modification item and the current total frequency control number of all data items are reduced, and the magnitude of the reduction is positively correlated with the number of consecutive modifications.

[0022] According to a second aspect of an embodiment of the present disclosure, there is provided a data modification processing device, comprising:

[0023] an acquisition module, configured to acquire a data modification record in the current frequency control period in response to acquiring a data modification request, wherein the data modification request is used to modify a target modification item of the user data, and the data modification record at least includes: a historical modification count of the target modification item and a total historical modification count of all data items;

[0024] The modification module is configured to perform data modification according to the data modification request when the historical modification number of the target modification item is less than the current frequency control number of the target modification item and the total historical modification number of all data items of the user is less than the current total frequency control number of all data items.

[0025] Optionally, the device further comprises:

[0026] The output module is configured to output a prompt message of rejecting data modification when the number of historical modifications of the target modification item is greater than or equal to the current frequency control number of the target modification item, or when the total number of historical modifications of all data items is greater than or equal to the current total frequency control number of all data items of the user.

[0027] Optionally, the device further comprises:

[0028] A first calculation module is configured to calculate the difference between the current frequency control number of the target modification project and the historical modification number of the target modification project to obtain the remaining modification number of the target modification project, and output the remaining modification number of the target modification project when the remaining modification number of the target modification project is less than a first preset threshold;

[0029] The second calculation module is configured to calculate the difference between the current total frequency control times of all data items of the user and the total number of historical modifications of all data items to obtain the remaining modification times of all data items, and output the remaining modification times of all data items when the remaining modification times of all data items are less than a second preset threshold.

[0030] Optionally, before the modification module, the device further includes:

[0031] a reduction module configured to, when the data modification request is an abnormal request, reduce the current frequency control number of the target modification item and the current total frequency control number of all data items to obtain the updated frequency control number of the target modification item and the updated total frequency control number of all data items;

[0032] The modification module comprises:

[0033] The modification submodule is configured to modify the data according to the data modification request when the historical modification number of the target modification item is less than the update frequency control number of the target modification item and the total historical modification number of all data items of the user is less than the total update frequency control number of all data items.

[0034] Optionally, the data modification record also includes an item identifier of a historical modification item;

[0035] Before the modification module, the device further includes:

[0036] The determination module is configured to determine that the data modification request is an abnormal request when the project identifier of the target modification project and the project identifier of the historical modification project are continuously the same.

[0037] Optionally, the reduction module comprises:

[0038] an acquisition submodule, configured to acquire the number of consecutive modifications of the target modification item when the target modification item is modified consecutively;

[0039] The reduction submodule is configured to reduce the current frequency control times of the target modification item and the current total frequency control times of all data items based on the continuous modification times, and the reduction range is positively correlated with the continuous modification times.

[0040] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0041] processor;

[0042] a memory for storing instructions executable by the processor;

[0043] Wherein, the processor is configured to execute the instructions to implement the data modification processing method as described in the first aspect.

[0044] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the data modification processing method as described in the first aspect.

[0045] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, which includes a readable program code. When the readable program code is executed by a processor of an electronic device, the electronic device can execute the data modification processing method as described in the first aspect.

[0046] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0047] The present disclosure obtains the user's data modification record in the current frequency control period in response to the data modification request, wherein the data modification request is used to modify the target modification item of the user's data, and the data modification record at least includes: the historical modification times of the target modification item and the total historical modification times of all data items, and finally, when the historical modification times of the target modification item are less than the current frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the current total frequency control times of all data items, the data is modified according to the data modification request. By adopting a method combining single-item frequency control (i.e., the current frequency control times of the target modification item) and overall frequency control (i.e., the current total frequency control times of all data items), it is possible to better restrict users from frequently and arbitrarily modifying user data, and avoid meaningless consumption of network resources.

[0048] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0050] Figure 1 is a flow chart of a data modification processing method according to an exemplary embodiment;

[0051] Figure 2 is a flow chart of another data modification processing method according to an exemplary embodiment;

[0052] Figure 3 is an interactive flow chart of a data modification processing method according to an exemplary embodiment;

[0053] Figure 4 is a block diagram of a data modification processing device according to an exemplary embodiment;

[0054] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0055] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0056] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0057] If users frequently and arbitrarily modify their user information, the concept of user information as the user's first business card will fade, and the user information will become unreliable. In addition, frequent and meaningless modifications to user information will occupy certain network resources, put certain pressure on the server, and cause network resources to be meaninglessly consumed, increasing costs.

[0058] If only single-item frequency control is considered, when a certain user profile reaches the frequency control threshold, the user can still modify the remaining profiles. Only when all profile modifications reach the frequency control threshold will the modification behavior be restricted. For users who maliciously and arbitrarily modify user profiles, there is no way to implement effective frequency control restrictions. If only overall frequency control is considered, when the user uses all the modification times on a certain profile, the remaining profiles will be unable to be modified, which will affect the user experience to a certain extent.

[0059] In order to solve the problem in the related art that users frequently modify user information and cause network resources to be meaninglessly consumed, the present application provides a technical concept: by adopting a method that combines single-item frequency control (i.e., the current frequency control times of the target modification item) and overall frequency control (i.e., the current total frequency control times of all information items), it is better to restrict users from frequently and arbitrarily modifying user information and avoid meaningless consumption of network resources.

[0060] Figure 1is a flow chart of a data modification processing method according to an exemplary embodiment. Figure 1 As shown, the data modification processing method can be used in a server, comprising the following steps:

[0061] In step S11, in response to obtaining a data modification request, a data modification record within the current frequency control period is obtained, wherein the data modification request is used to modify a target modification item of the user data, and the data modification record includes at least: the historical modification times of the target modification item and the total historical modification times of all data items.

[0062] Social type App clients can be installed on mobile terminals or fixed terminals, where mobile terminals can be mobile phones and tablets, etc., and fixed terminals can be fixed computers, etc. After the user logs in to the client, the user information can be modified, where the user can be an individual, a merchant, a company or a school, etc., that is, the user information can be user information, or it can be merchant information, company information, school information, etc. When modifying the user information, the user can send a information modification request to the server through the client, where the information modification request can at least include the target modification item.

[0063] The server can detect in real time whether a data modification request is obtained. When a data modification request is obtained, the server obtains the user's data modification record within the current frequency control period in response to the obtained data modification request, wherein before detecting whether a data modification request is obtained, a frequency control period is set for the user. Within each frequency control period, each data item of the user is respectively set with an original frequency control number, and an original total frequency control number of all data items is set. The frequency control period can be one day, three days or one month, and can be set specifically according to actual conditions. No specific limitation is made here. The current frequency control period is the frequency control period corresponding to the current moment. The data modification record includes at least the historical modification number of the target modification item and the total historical modification number of all data items. For example, taking user data as an example, the user data may include a user avatar, a nickname and a personal profile. If the target modification item is a user avatar, the historical modification number of the target modification item is the number of modifications to the user avatar within the current frequency control period, and the total historical modification number of all data items is the total number of modifications to the user avatar, the nickname and the personal profile within the current frequency control period.

[0064] In step S12, when the historical modification times of the target modification item are less than the current frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the current total frequency control times of all data items, data modification is performed according to the data modification request.

[0065] Among them, the current frequency control number of the target modification project may be the original frequency control number of the target modification project, the current total frequency control number of all data projects may be the original total frequency control number of all data projects, and the data modification request may also include modification content. Specifically, when the historical modification number of the target modification project is less than the current frequency control number of the target modification project, it is determined that there is no violation of the single frequency control number, and when the total historical modification number of all data projects of the user is less than the current total frequency control number of all data projects, it is determined that there is no violation of the overall frequency control number. When there is no violation of the single frequency control number and the overall frequency control number, it is determined that the data modification request can be executed, and the data of the target modification project is modified according to the modification content in the data modification request.

[0066] The data modification processing method provided by this exemplary embodiment detects whether a data modification request is obtained, the data modification request includes a target modification item, and then in response to the obtained data modification request, obtains the user's data modification record in the current frequency control period, the data modification record at least includes: the historical modification times of the target modification item and the total historical modification times of all data items, and finally, when the historical modification times of the target modification item are less than the current frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the current total frequency control times of all data items, the data is modified according to the data modification request. By adopting a method combining single-item frequency control (i.e., the current frequency control times of the target modification item) and overall frequency control (i.e., the current total frequency control times of all data items), it is possible to better limit users from frequently and arbitrarily modifying user data and avoid meaningless consumption of network resources.

[0067] Figure 2 is a flowchart of another data modification processing method according to an exemplary embodiment. Figure 2 On the basis of the above technical solution, in order to better limit the malicious and frequent modification of users, another data modification processing method is proposed, which includes the following steps:

[0068] In step S21, in response to obtaining a data modification request, a data modification record within the current frequency control period is obtained, wherein the data modification request is used to modify a target modification item of the user data, and the data modification record includes at least: the historical modification times of the target modification item and the total historical modification times of all data items.

[0069] The explanation of the above step S21 can refer to the explanation of step S11, which will not be repeated here.

[0070] After step S21, it is necessary to determine whether the data modification request is an abnormal request.

[0071] After obtaining the data modification request and the data modification record of the user in the current frequency control period, it can be determined whether the data modification request is an abnormal request based on the user's data modification request and the data modification record.

[0072] Specifically, based on the above technical solution, the data modification record also includes the project identifier of the historical modification project, and the method for determining whether the data modification request is an abnormal request may be:

[0073] When the project identifier of the target modification project and the project identifier of the historical modification project are continuously the same, it is determined that the data modification request is an abnormal request.

[0074] Specifically, whether the target modification project is continuously modified is determined based on whether the project identifier of the target modification project and the project identifier of the historical modification project are continuously the same. When the target modification project is continuously modified, the data modification request is determined to be an abnormal request.

[0075] In the above method, if the project identifier of the target modification project is the same as the project identifier of the last modified project in the historical modification project, it can be determined that the target modification project has been continuously modified. If the project identifier of the target modification project is different from the project identifier of the last modified project in the historical modification project, the target modification project has not been continuously modified. When the target modification project is continuously modified, it can be determined that the data modification request is an abnormal request.

[0076] In step S22, when the data modification request is an abnormal request, the current frequency control times of the target modification item and the current total frequency control times of all data items are reduced to obtain the updated frequency control times of the target modification item and the updated total frequency control times of all data items.

[0077] When the data modification request is an abnormal request, the current frequency control times of the target modification project and the current total frequency control times of all data projects can be modified. Specifically, the current frequency control times of the target modification project and the current total frequency control times of all data projects can be reduced respectively, and the magnitude of each modification can be the same or different.

[0078] If the original frequency control number of the target modification project has not been modified during the current frequency control cycle, the current frequency control number of the target modification project is the original frequency control number of the target modification project; if the original frequency control number of the target modification project has been modified during the current frequency control cycle, the current frequency control number of the target modification project is the updated frequency control number of the target modification project obtained after the last modification of the target modification project; if the current total frequency control number of all data projects has not been modified during the current frequency control cycle, the current total frequency control number of all data projects is the original frequency control number of all data projects; if the current total frequency control number of all data projects has been modified during the current frequency control cycle, the current total frequency control number of all data projects is the updated frequency control number of all data projects obtained after the last modification.

[0079] In order to obtain a better restriction effect, when the request is abnormal, the specific method of reducing the current frequency control times of the target modification item and the current total frequency control times of all data items may be:

[0080] When the target modification item is modified continuously, obtaining the number of continuous modifications of the target modification item;

[0081] Based on the number of consecutive modifications, the current frequency control number of the target modification item and the current total frequency control number of all data items are reduced, and the magnitude of the reduction is positively correlated with the number of consecutive modifications.

[0082] The number of consecutive modifications is determined by the number of times the last several historical modification items in the historical modification items are identical to the target modification items. Specifically, whether the historical modification items and the target modification items are identical can be determined by the item identifier of the target modification item and the item identifier of the historical modification item. For example, if the last historical modification item is identical to the target modification item, the number of consecutive modifications is determined to be 1. If the last two historical modification items are identical to the target modification item, the number of consecutive modifications is determined to be 2. The current frequency control number of the target modification item and the current total frequency control number of all data items are reduced according to the number of consecutive modifications, and the reduction range is positively correlated with the number of consecutive modifications. That is, if the user wants to modify the same data item multiple times in a row, the reduction range will increase with the increase in the number of consecutive modifications, thereby achieving a better restriction effect.

[0083] Specifically, based on the above technical solution, the method for reducing the current frequency control times of the target modification item may be:

[0084] Subtract or divide the current frequency control times of the target modification project by the first preset value and round it to the integer to obtain the updated frequency control times corresponding to the target modification project, wherein the first preset value is positively correlated with the number of continuous modifications. For example, the first preset value may be the product of the benchmark value and the number of continuous modifications, and the benchmark value may be pre-set according to actual conditions.

[0085] Specifically, based on the above technical solution, the method for reducing the current total frequency control times of all data items can be:

[0086] If the original total frequency control times of all data items are not related to the original frequency control times of each data item, then the current total frequency control times of all data items are subtracted or divided by a second preset value and rounded to the integer to obtain the updated total frequency control times of all data items, wherein the second preset value is positively correlated with the number of continuous modifications. For example, the second preset value may be the product of a reference value and the number of continuous modifications. The reference value may be preset according to actual conditions. The first preset value and the second preset value may be the same or different.

[0087] If the original total frequency control times of all data items are related to the original frequency control times of each data item, the updated total frequency control times of all data items are obtained according to the updated frequency control times corresponding to the target modification item and the current frequency control times of other data items. For example, if the original total frequency control times of all data items are equal to the average value of the original frequency control times of each data item and then added with the third preset value after rounding, the updated frequency control times corresponding to the target modification item and the average value of the current frequency control times of other data items are calculated and rounded to obtain the average frequency control times. The sum of the average frequency control times and the third preset value is determined as the updated total frequency control times corresponding to all data items, wherein the third preset value is a positive integer, for example, the third preset value may be 1 or 2, so as to ensure that different data items can be modified.

[0088] The technical solution provided by the embodiment of the present disclosure realizes flexible adjustment of user profile frequency control restrictions by effectively combining single frequency control and overall frequency control of user profile modification, combined with user profile modification records. This method not only solves the problem that user profile modification is too restricted when there is only overall frequency control, but also avoids the problem of wasting server resources when multiple user profile modifications reach the frequency control threshold when there is only single frequency control.

[0089] In step S23, when the historical modification times of the target modification item are less than the current frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the current total frequency control times of all data items, data modification is performed according to the data modification request.

[0090] The explanation of the above step S23 can refer to the explanation of step S12, which will not be repeated here.

[0091] On the basis of the above technical solution, if the current frequency control times of the target modification project and the current total frequency control times of all data projects of the user are not modified in response to this modification request, then when the historical modification times of the target modification project are greater than or equal to the current frequency control times of the target modification project, or when the total historical modification times of all data projects are greater than or equal to the current total frequency control times of all data projects of the user, a prompt message of rejecting data modification is output.

[0092] On the basis of the above technical solution, if the current frequency control times of the target modification project and the current total frequency control times of all data projects of the user are modified in response to this modification request, then when the historical modification times of the target modification project are greater than or equal to the updated frequency control times of the target modification project, or when the total historical modification times of all data projects are greater than or equal to the updated total frequency control times of all data projects of the user, a prompt message of rejecting data modification is output.

[0093] On the basis of the above technical solution, the user can be prompted for the remaining number of modifications so that the user can modify the user information carefully. The specific solution is as follows:

[0094] Calculating the difference between the current frequency control number of the target modification project and the historical modification number of the target modification project to obtain the remaining modification number of the target modification project, and when the remaining modification number of the target modification project is less than a first preset threshold, outputting the remaining modification number of the target modification project; and / or

[0095] The difference between the current total frequency control times of all data items of the user and the total number of historical modifications of all data items is calculated to obtain the remaining modification times of all data items, and when the remaining modification times of all data items are less than a second preset threshold, the remaining modification times of all data items are output.

[0096] Among them, the remaining modification times of the target modification project can be obtained by subtracting the historical modification times of the target modification project from the current frequency control times of the target modification project, and the remaining modification times of all data items can be obtained by subtracting the difference between the current total frequency control times of all data items of the user and the total historical modification times of all data items. The first preset threshold and the second preset threshold can be set according to the specific situation. For example, the first preset threshold can be 2 or 3, and the second preset threshold can be the same as the first preset threshold or different. When the remaining modification times of the target modification project are less than the first preset threshold, the remaining modification times of the target modification project are output, and / or, when the remaining modification times of all data items are less than the second preset threshold, the remaining modification times of all data items are output, so as to timely remind the user of the available modification times and prevent the user from modifying the user data at will.

[0097] Based on the above technical solution, when the data modification request is an abnormal request, only the current frequency control times of the target modification item can be reduced without modifying the current total frequency control times of all data items, so as to avoid the user being unable to modify other data items.

[0098] Figure 3 is an interactive flow chart of a data modification processing method according to an exemplary embodiment, referring to Figure 3 The above method is explained below with specific embodiments:

[0099] If the frequency control cycle is one day, within one day, the original frequency control times (single frequency control) of each data item are the same and are N=4, and M=2, and the original total frequency control times (overall frequency control) of all data items are N+M=6 times.

[0100] The server receives a user data modification request sent by the client, in which the target modification item in the user data modification request is the user avatar. At this time, the server obtains the data modification records within this frequency control period from the memory, including the historical modification times of the target modification item and the total historical modification times of all data items, as well as the identifier of the historical modification item, so as to determine whether the identifier of the historical modification item is the same as the identifier of the target modification item, thereby determining whether the user avatar is modified continuously, so as to determine whether this data modification request is an abnormal request.

[0101] If this modification is not an abnormal request, then whether to execute this data modification request is directly determined based on the original frequency control times 4 of the user's avatar and the original total frequency control times 6 of all data items, as well as the historical modification times of the target modification item and the total historical modification times of all data items. That is, if the historical modification times of the target modification item are less than the current frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the current total frequency control times of all data items, the data modification is performed according to the data modification request, and the result of completing the data modification is returned to the client. In other cases, the data modification is rejected, and the result of rejecting the user's request is returned to the client.

[0102] If this modification is an abnormal request, the original frequency control times of the target modification item and the original total frequency control times of all data items are reduced. Specifically, if the number of consecutive modifications is 1, the reference value can be 2, that is, the updated frequency control times of the target modification item can be N / 2=2, and the original total frequency control times of all data items is N / 2+M=4.

[0103] When the number of historical modifications of the target modification item is less than the update frequency control number of the target modification item, and the total number of historical modifications of all the user's data items is less than the total update frequency control number of all data items, the data modification is performed according to the data modification request, and the result of the completed data modification is returned to the client; in other cases, the data modification is rejected, and the result of rejecting the user's request is returned to the client.

[0104] Figure 4 is a block diagram of a data modification processing device according to an exemplary embodiment. Figure 4 The device includes an acquisition module 41 and a modification module 42.

[0105] The acquisition module 41 is configured to acquire the user's profile modification record in the current frequency control period in response to acquiring a profile modification request, wherein the profile modification request is used to modify a target modification item of the user profile, and the profile modification record at least includes: the historical modification times of the target modification item and the total historical modification times of all profile items;

[0106] The modification module 42 is configured to modify the data according to the data modification request when the historical modification times of the target modification item are less than the current frequency control times of the target modification item and the total historical modification times of all data items of the user are less than the current total frequency control times of all data items.

[0107] Optionally, the device further comprises:

[0108] The output module is configured to output a prompt message of rejecting data modification when the number of historical modifications of the target modification item is greater than or equal to the current frequency control number of the target modification item, or when the total number of historical modifications of all data items is greater than or equal to the current total frequency control number of all data items of the user.

[0109] Optionally, the device further comprises:

[0110] A first calculation module is configured to calculate the difference between the current frequency control number of the target modification project and the historical modification number of the target modification project to obtain the remaining modification number of the target modification project, and output the remaining modification number of the target modification project when the remaining modification number of the target modification project is less than a first preset threshold;

[0111] The second calculation module is configured to calculate the difference between the current total frequency control times of all data items of the user and the total number of historical modifications of all data items to obtain the remaining modification times of all data items, and output the remaining modification times of all data items when the remaining modification times of all data items are less than a second preset threshold.

[0112] Optionally, before the modification module, the device further includes:

[0113] a reduction module configured to, when the data modification request is an abnormal request, reduce the current frequency control number of the target modification item and the current total frequency control number of all data items to obtain the updated frequency control number of the target modification item and the updated total frequency control number of all data items;

[0114] The modification module comprises:

[0115] The modification submodule is configured to modify the data according to the data modification request when the historical modification number of the target modification item is less than the update frequency control number of the target modification item and the total historical modification number of all data items of the user is less than the total update frequency control number of all data items.

[0116] Optionally, the data modification record also includes an item identifier of a historical modification item;

[0117] Before the modification module, the device further includes:

[0118] The determination module is configured to determine that the data modification request is an abnormal request when the project identifier of the target modification project and the project identifier of the historical modification project are continuously the same.

[0119] Optionally, the reduction module comprises:

[0120] an acquisition submodule, configured to acquire the number of consecutive modifications of the target modification item when the target modification item is modified consecutively;

[0121] The reduction submodule is configured to reduce the current frequency control times of the target modification item and the current total frequency control times of all data items based on the continuous modification times, and the reduction range is positively correlated with the continuous modification times.

[0122] The data modification processing device provided by this exemplary embodiment detects whether a data modification request is obtained, the data modification request includes a target modification item, and then in response to the obtained data modification request, obtains the user's data modification record in the current frequency control period, the data modification record at least includes: the historical modification times of the target modification item and the total historical modification times of all data items, and finally, when the historical modification times of the target modification item are less than the current frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the current total frequency control times of all data items, the data is modified according to the data modification request. By adopting a method combining single-item frequency control (i.e., the current frequency control times of the target modification item) and overall frequency control (i.e., the current total frequency control times of all data items), it is possible to better restrict users from frequently and arbitrarily modifying user data and avoid meaningless consumption of network resources.

[0123] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0124] Figure 5 5 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0125] Reference Figure 5 , the electronic device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0126] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0127] The memory 504 is configured to store various types of data to support operations on the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0128] The power supply component 506 provides power to the various components of the electronic device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 500.

[0129] The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0130] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the electronic device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0131] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0132] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 can detect the open / closed state of the electronic device 500, the relative positioning of components, such as the display and keypad of the electronic device 500, and the sensor assembly 514 can also detect the position change of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and the temperature change of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0133] The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 5G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0134] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned data modification processing method.

[0135] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of an electronic device 500 to complete the above-mentioned personnel authority management method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0136] In an exemplary embodiment, a computer program product is also provided, the computer program product includes a readable program code, the readable program code can be executed by the processor 520 of the electronic device 500 to complete the above-mentioned personnel authority management method. Optionally, the program code can be stored in a storage medium of the electronic device 500, and the storage medium can be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0137] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0138] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A data modification processing method, characterized in that: include: In response to obtaining a data modification request, obtaining a data modification record in the current frequency control period, wherein the data modification request is used to modify a target modification item of the user data, and the data modification record includes at least: a historical modification count of the target modification item and a total historical modification count of all data items; When the historical modification times of the target modification item are less than the current frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the current total frequency control times of all data items, modifying the data according to the data modification request includes: When the data modification request is an abnormal request, reducing the current frequency control times of the target modification item and the current total frequency control times of all data items, including: When the target modification item is modified continuously, obtaining the number of continuous modifications of the target modification item; Based on the number of consecutive modifications, reducing the current frequency control number of the target modification item and the current total frequency control number of all data items, wherein the magnitude of the reduction is positively correlated with the number of consecutive modifications, includes: The current frequency control times of the target modification item is subtracted or divided by a first preset value and rounded to an integer to obtain an updated frequency control times corresponding to the target modification item, wherein the first preset value is positively correlated with the continuous modification times.

2. The method according to claim 1, characterized in that The method further comprises: When the number of historical modifications of the target modification item is greater than or equal to the current frequency control number of the target modification item, or when the total number of historical modifications of all data items is greater than or equal to the current total frequency control number of all data items of the user, a prompt message for rejecting data modification is output.

3. The method according to claim 1, characterized in that The method further comprises: Calculating the difference between the current frequency control number of the target modification project and the historical modification number of the target modification project to obtain the remaining modification number of the target modification project, and when the remaining modification number of the target modification project is less than a first preset threshold, outputting the remaining modification number of the target modification project; and / or The difference between the current total frequency control times of all data items of the user and the total number of historical modifications of all data items is calculated to obtain the remaining modification times of all data items, and when the remaining modification times of all data items are less than a second preset threshold, the remaining modification times of all data items are output.

4. The method according to claim 1, characterized in that: When the historical modification times of the target modification item are less than the current frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the current total frequency control times of all data items, before modifying the data according to the data modification request, the method further includes: When the data modification request is an abnormal request, reducing the current frequency control times of the target modification item and the current total frequency control times of all data items to obtain the updated frequency control times of the target modification item and the updated total frequency control times of all data items; When the historical modification times of the target modification item are less than the current frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the current total frequency control times of all data items, modifying the target modification item according to the data modification request includes: When the historical modification times of the target modification item are less than the update frequency control times of the target modification item, and the total historical modification times of all data items of the user are less than the total update frequency control times of all data items, the data is modified according to the data modification request.

5. The method according to claim 4, characterized in that The data modification record also includes the project identification of the historical modification project; When the data modification request is an abnormal request, before reducing the current frequency control times of the target modification item and the current total frequency control times of all data items, the method further includes: When the project identifier of the target modification project and the project identifier of the historical modification project are continuously the same, it is determined that the data modification request is an abnormal request.

6. A data modification processing device, characterized in that: include: an acquisition module, configured to acquire a data modification record in the current frequency control period in response to acquiring a data modification request, wherein the data modification request is used to modify a target modification item of the user data, and the data modification record at least includes: a historical modification count of the target modification item and a total historical modification count of all data items; The modification module is configured to modify the data according to the data modification request when the historical modification number of the target modification item is less than the current frequency control number of the target modification item and the total historical modification number of all data items of the user is less than the current total frequency control number of all data items, including: When the data modification request is an abnormal request, reducing the current frequency control times of the target modification item and the current total frequency control times of all data items, including: When the target modification item is modified continuously, obtaining the number of continuous modifications of the target modification item; Based on the number of consecutive modifications, reducing the current frequency control number of the target modification item and the current total frequency control number of all data items, wherein the magnitude of the reduction is positively correlated with the number of consecutive modifications, includes: The current frequency control times of the target modification item is subtracted or divided by a first preset value and rounded to an integer to obtain an updated frequency control times corresponding to the target modification item, wherein the first preset value is positively correlated with the continuous modification times.

7. The device according to claim 6, characterized in that The device also includes: The output module is configured to output a prompt message of rejecting data modification when the number of historical modifications of the target modification item is greater than or equal to the current frequency control number of the target modification item, or when the total number of historical modifications of all data items is greater than or equal to the current total frequency control number of all data items of the user.

8. The device according to claim 6, characterized in that The device also includes: A first calculation module is configured to calculate the difference between the current frequency control number of the target modification project and the historical modification number of the target modification project to obtain the remaining modification number of the target modification project, and output the remaining modification number of the target modification project when the remaining modification number of the target modification project is less than a first preset threshold; The second calculation module is configured to calculate the difference between the current total frequency control times of all data items of the user and the total number of historical modifications of all data items to obtain the remaining modification times of all data items, and output the remaining modification times of all data items when the remaining modification times of all data items are less than a second preset threshold.

9. The device according to claim 6, characterized in that Before the modification module, the device further includes: a reduction module configured to, when the data modification request is an abnormal request, reduce the current frequency control number of the target modification item and the current total frequency control number of all data items to obtain the updated frequency control number of the target modification item and the updated total frequency control number of all data items; The modification module comprises: The modification submodule is configured to modify the data according to the data modification request when the historical modification number of the target modification item is less than the update frequency control number of the target modification item and the total historical modification number of all data items of the user is less than the total update frequency control number of all data items.

10. The device according to claim 9, characterized in that The data modification record also includes the project identification of the historical modification project; Before the modification module, the device further includes: The determination module is configured to determine that the data modification request is an abnormal request when the project identifier of the target modification project and the project identifier of the historical modification project are continuously the same.

11. The device according to claim 10, characterized in that The reduction module comprises: an acquisition submodule, configured to acquire the number of consecutive modifications of the target modification item when the target modification item is modified consecutively; The reduction submodule is configured to reduce the current frequency control times of the target modification item and the current total frequency control times of all data items based on the continuous modification times, and the reduction range is positively correlated with the continuous modification times.

12. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the data modification processing method as described in any one of claims 1 to 5.

13. A storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the data modification processing method as described in any one of claims 1 to 5.