CN110688291A - Data processing method and related device - Google Patents

Data processing method and related device Download PDF

Info

Publication number
CN110688291A
CN110688291A CN201910950913.2A CN201910950913A CN110688291A CN 110688291 A CN110688291 A CN 110688291A CN 201910950913 A CN201910950913 A CN 201910950913A CN 110688291 A CN110688291 A CN 110688291A
Authority
CN
China
Prior art keywords
addiction
behavior
rule
keyword
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910950913.2A
Other languages
Chinese (zh)
Inventor
王炼
黄子健
黄文设
阎纲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910950913.2A priority Critical patent/CN110688291A/en
Publication of CN110688291A publication Critical patent/CN110688291A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a data processing method and a related device, which are used for flexibly combining and updating anti-addiction rule conditions required in an anti-addiction rule model in a management database, and can also directly modify the anti-addiction rule model from the management database when the anti-addiction rule model changes due to the change of the anti-addiction rule conditions, thereby greatly shortening the running cost and the testing time. The data processing method provided by the embodiment of the invention comprises the following steps: acquiring user behavior data; determining a behavior result of the user behavior data through an anti-addiction rule model; and executing a behavior strategy according to the behavior result, wherein the behavior strategy and the behavior result are correspondingly stored in a management database.

Description

Data processing method and related device
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a data processing method and a related device.
Background
With the rapid development of network technology, a variety of network games are also proposed in succession, and in the present society, network games gradually occupy most of people's time and energy. The anti-addiction system is a system which limits the game behaviors of minors so as to achieve the effect of preventing the minors from being addicted to the network game for a long time or the network game for a long time.
Anti-addiction systems, which have been introduced in order to limit the play behaviour of minors, are currently generated using profiles and logic codes, each profile and corresponding logic code serving only a limiting role in certain situations, for example: logic codes in a certain configuration file show that for players under 18 years old, if the game duration exceeds 60 minutes, a prompt pops up, if the game duration exceeds 120 minutes, the game is forcibly quitted, namely, the configuration file and the corresponding logic codes are only suitable for the players under 18 years old, and if the anti-addiction system allows the game behavior of the players between 16 and 18 years old to be unlimited in a certain day, the configuration file and the logic codes of the previously configured players under 18 years old are not suitable, fields of the configuration file are fixed, cannot be flexibly added or flexibly combined, and if the codes are modified to support new game players, running cost and test time are spent.
Therefore, how to solve the problems that the configuration files in the existing anti-addiction system cannot be flexibly added and combined, and the test time and the operation cost are shortened is an urgent need to be solved.
Disclosure of Invention
The embodiment of the invention provides a data processing method and a related device, which are used for flexibly combining and updating anti-addiction rule conditions required in an anti-addiction rule model in a management database, and can also directly modify the anti-addiction rule model from the management database when the anti-addiction rule model changes due to the change of the anti-addiction rule conditions, so that the running cost and the testing time are greatly shortened.
In a first aspect, an embodiment of the present invention provides a data processing method, including:
acquiring user behavior data;
determining a behavior result of the user behavior data through an anti-addiction rule model;
and executing a behavior strategy according to the behavior result, wherein the behavior strategy and the behavior result are correspondingly stored in a management database.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, including:
the acquiring unit is used for acquiring user behavior data;
the determining unit is used for determining the behavior result of the user behavior data acquired by the acquiring unit through an anti-addiction rule model;
and the execution unit is used for executing the behavior strategy according to the behavior result determined by the determination unit, and the behavior strategy and the behavior result are correspondingly stored in a management database.
In one possible design, in a first possible implementation manner of the second aspect of the embodiment of the present invention, the determining unit includes:
the analysis module is used for analyzing the user behavior data to obtain a keyword array, and the keyword array comprises at least one keyword;
the determining module is used for determining a first operation function corresponding to each keyword obtained by the analyzing module, and the first operation function is contained in the anti-addiction rule model;
the first calculation module is used for calculating a first result value corresponding to each keyword according to the first operation function determined by the determination module;
and the second calculation module is used for calculating the Boolean value of each first result value calculated by the first calculation module according to a logical operation function so as to obtain the behavior result of the user data.
In one possible design, in a second possible implementation manner of the second aspect of the embodiment of the present invention, the data processing apparatus further includes:
the loading unit is used for loading preset anti-addiction rule conditions from the management database before the user behavior data are acquired;
the word segmentation unit is used for segmenting each keyword in the preset anti-addiction rule conditions loaded by the loading unit to obtain a affix expression;
the conversion unit is used for converting the infix expression obtained by the word segmentation unit into a suffix expression through a scheduling field algorithm;
and the generating unit is used for generating the anti-addiction rule model according to the operation priority of the suffix expression obtained by conversion of the converting unit.
In one possible design, in a third possible implementation manner of the second aspect of the embodiment of the present invention, the data processing apparatus further includes:
the detection unit is used for detecting whether the preset anti-addiction rule conditions are updated in the management database after the preset anti-addiction rule conditions are loaded from the management database;
the determining unit is used for determining an updated first anti-addiction rule condition when the detecting unit detects that the preset anti-addiction rule condition is updated in the management database;
correspondingly, the word segmentation unit comprises:
and the word segmentation module is used for segmenting each keyword in the updated first anti-addiction rule condition determined by the determination unit.
In one possible design, in a fourth possible implementation manner of the second aspect of the embodiment of the present invention, the behavior policy includes a real-name authentication operation, and the execution unit includes:
and the prompting module is used for prompting the user to execute the real-name authentication operation when the behavior result is true.
In a third aspect, an embodiment of the present invention provides a server, where the server includes:
the method comprises the following steps: an input/output (I/O) interface, a processor and a memory,
the memory has stored therein program instructions;
the processor is configured to execute program instructions stored in the memory for implementing the method according to any one of the possible implementations of the first aspect and the second aspect.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer-executable instructions for performing the method according to any one of the possible implementation manners of the first aspect and the first aspect.
A fifth aspect of embodiments of the present invention provides a computer program product comprising instructions which, when run on a computer or processor, cause the computer or processor to perform the method of any of the above aspects.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the embodiment of the invention, after the user behavior data is obtained, the behavior result of the user behavior data can be determined through the anti-addiction rule model, so that the behavior strategy is executed according to the behavior result, and the behavior strategy and the behavior result are correspondingly stored in the management database, so that the anti-addiction rule conditions required in the anti-addiction rule model can be flexibly combined and updated in the management database, and the anti-addiction rule model can be directly modified from the management database when being changed due to the change of the anti-addiction rule conditions, thereby greatly shortening the operation cost and the test time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the following description are only some embodiments of the present invention.
FIG. 1 is a system architecture diagram of data processing according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of one embodiment of a method of data processing provided in an embodiment of the invention;
FIG. 3 is a diagram illustrating configuring anti-addiction rule conditions in an embodiment of the present invention;
FIG. 4 is a schematic diagram of an anti-addiction rule model in an embodiment of the invention;
FIG. 5 is a schematic diagram of determining behavior results by an anti-addiction rule model according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an embodiment of a data processing apparatus provided in an embodiment of the present invention;
fig. 7 is a schematic diagram of another embodiment of a data processing apparatus provided in the embodiment of the present invention;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a data processing method and a related device, which are used for flexibly combining and updating rule conditions required in an anti-addiction rule model in a management database, and can also directly modify the anti-addiction rule model correspondingly from the management database when the anti-addiction rule model changes due to the change of the anti-addiction rule conditions, thereby greatly shortening the running cost and the testing time.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The naming or numbering of the steps appearing in the present invention does not mean that the steps in the method flow must be executed in the chronological/logical order indicated by the naming or numbering, and the named or numbered flow steps may be changed in execution order according to the technical purpose to be achieved, as long as the same or similar technical effects are achieved.
It should be understood that the data processing method provided by the embodiment of the invention can be applied to various game applications. As products such as game applications are increasing, users increasingly use game applications to enrich their entertainment lives, such as: the royal is glory, stimulates the battlefield, fun fighting the landlord, peace elite and so on as entertainment tools in daily work or life. Currently, for the unarmed users, it is usually necessary to set certain anti-addiction rules and corresponding anti-addiction systems to avoid the game behaviors of the unarmed users, such as game duration, game devices, and the like. The existing anti-addiction system is implemented based on the configuration file with fixed fields and logic codes, however, the method cannot flexibly add and combine new fields, and large running cost and test time are needed if the logic codes are modified to update the configuration file.
To solve the above problems, an embodiment of the present invention provides a data processing method, which can be applied to the data processing system shown in fig. 1, and please refer to fig. 1, which is a schematic diagram of a system architecture of data processing in an embodiment of the present invention. As can be seen from fig. 1, the system architecture diagram includes a server and a terminal device, where the server and the terminal device are connected through a network. The server acquires the behavior strategy and the anti-addiction rule model in the management database, wherein the anti-addiction rule condition corresponding to the anti-addiction rule model can be flexibly combined and updated in the management database, and determines the corresponding behavior result based on the anti-addiction model after acquiring the user behavior data, so as to execute the corresponding behavior strategy, such as: sending a prompt message or the like to the terminal device to prompt the user to perform real-name authentication operation, or forcing the user to quit the game application, or the like. In practical applications, the terminal device includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a desktop computer, or the like, or a computer with a mobile terminal device, a portable, pocket, handheld, computer-embedded or vehicle-mounted mobile device, an intelligent wearable device, or the like, and the embodiment of the present invention is not limited in particular.
To facilitate better understanding of the solution proposed by the embodiment of the present invention, a detailed flow in the embodiment of the present invention is described below, referring to fig. 2, which is a schematic diagram of an embodiment of a method for processing data provided in the embodiment of the present invention, and the method is applied to a server, and the method includes:
201. and acquiring user behavior data.
In this embodiment, the user behavior data may include real-name state information of the user, login device information, internet protocol IP address information, game duration information, age information, or information indicating the current time. In practical applications, other behavior data may also be included to represent the behavior information of the user in the game, and the embodiment of the present invention is not particularly limited.
202. And determining the behavior result of the user behavior data through an anti-addiction rule model.
In this embodiment, the anti-addiction rule model is actually a rule condition that is configured and set in advance by a game dealer in order to respond to a call by a country to prevent minors from being addicted to a game, so that the behavior result of the user behavior data can be determined by the anti-addiction rule model only after the user behavior data is acquired, that is, whether the user behavior data matches the rule condition in the anti-addiction rule model or not can be detected and determined according to some rule conditions in the anti-addiction rule model, so that the behavior result of the user behavior data can be determined according to the result of whether the user behavior data matches the rule condition in the anti-addiction rule model or not.
In addition, it should be noted that, in fact, the rule condition in the anti-addiction rule model described above is a conditional expression, and may be represented by various types of structures, or may be represented by a combination of the types of structures, and so on. Such as: these structure types may include, but are not limited to, operator types, numeric types, character string types, or array types, and in practical applications, other structure types may also be included, and specific details will not be described in any specific limitation in the embodiments of the present invention.
Optionally, in other embodiments, the behavior result of the user behavior data may be specifically determined by: analyzing the user behavior data to obtain a keyword array, wherein the keyword array comprises at least one keyword; determining a first operation function corresponding to each keyword, wherein the first operation function is contained in the anti-addiction rule model; calculating a first result value corresponding to each keyword according to the first operation function; and calculating the Boolean value of each first result value according to a logical operation function to obtain the behavior result of the user data.
That is, it is understood that, since the user behavior data may also be a mathematical expression combining real-name state information, login device information, internet protocol IP address information, game duration information, age information, or current time information, which characterize the user behavior data, by keywords such as logical operators, functions, comparison operators, constants, built-in functions, priority symbols, or mathematical operators, for example: (not GetIsRealName ()) and (GetAge () <0 or GetAge () >) 18 and (getnature () in SET ("japan")) represent a piece of user behavior data about a game player who does not perform real-name authentication and lives in japan, wherein GetIsRealName returns real-name state information of the game player, GetAge returns age information of the game player, getnature returns the country or region where the game player is located, and SET represents a built-in function representing a SET.
Therefore, after the user behavior data is obtained, the user behavior data may be analyzed to obtain a keyword array, so as to determine a first operation function corresponding to each keyword in the keyword array, where the first operation function described herein includes GetIsRealName, GetAge, GetNation, and the like. In practical applications, the system may further include, but is not limited to, a face authentication function and a corresponding face authentication time function, a device information class function, a game duration class function, or other class functions, where the described device information class function may include operating system information, information of a country, a province, or a city where the device is located, the described game duration class function includes, but is not limited to, information of a single time duration, a time of day, or a fatigue duration, and the described other class functions include, but is not limited to, information of a current timestamp or whether to save a holiday.
It should be noted that the first operation function is already stored in the anti-addiction rule model, so that after the first operation function corresponding to the keyword is determined, the keyword can be used as a variable to be stored in the first operation function, and the first result value corresponding to each keyword is calculated according to the first operation function. Since the mathematical expression is represented by a logic function, etc., after the first result value is obtained, it is further required to calculate a boolean value of each first result value according to a logic operation function, so as to obtain a behavior result of the user data, where the logic operation function includes: AND, OR, NOT, IN.
Optionally, in other embodiments, before acquiring the user behavior data, the method further includes: loading preset anti-addiction rule conditions from the management database; performing word segmentation on each keyword in the preset anti-addiction rule condition to obtain a affix expression; converting the infix expression into a suffix expression by a scheduling field algorithm; and generating the anti-addiction rule model according to the operation priority of the suffix expression.
It should be understood that the preset anti-addiction rule condition is configured at the management end first, please refer to fig. 3, which is a schematic diagram illustrating the configuration of the anti-addiction rule condition and the behavior policy in the embodiment of the present invention. As can be seen from fig. 3, for the game of "XXXX", the anti-addiction rule conditions SET are "(not GetIsRealName ()) and (GetAge () <0 or GetAge () > 18) and (getnature () in SET (" japan "," korea "))", and the rule policy corresponding to the anti-addiction rule condition, that is, the above-described behavior policy is "real name authentication". It should be understood that the described behavior policies may include other actions such as "forcibly quit", "open a face recognition webpage", or "continue a game" besides "real name authentication", and of course, the behavior policies are mainly determined according to different preset anti-addiction rule conditions, and will not be specifically limited in the present invention.
In addition, the expression of infixes is also called infix notation, and is a general arithmetic or logic formula expression method, and operators are in the form of infixes in the middle of operands, such as: 3+4, they are widely used in program languages, mainly because they have the characteristics of conforming to people's common usage and are not easily parsed by computer devices like prefix expressions (e.g. + 34) or suffix expressions (e.g.: 34 +). Therefore, after the preset anti-addiction rule conditions are loaded in the management database in the management end, lexical analysis can be performed on the preset anti-addiction rule conditions, namely, each keyword in the preset anti-addiction rule conditions is segmented, so that a keyword array can be obtained, and the keyword array belongs to infix expressions which are easy to understand by human beings. For example: on the basis of the described preset anti-addiction rule conditions of fig. 3, the corresponding infix expression is:
(
not
GetIsRealName()
)
And
(
GetAge()
<
0
Or
GetAge()
>=
18
)
And
(
GetNation()
In
SET
("Japan", "Korea")
)。
Since the infix expression is not easy to be resolved by the computer and other devices, the infix expression also needs to be converted into a suffix expression that has already been resolved by the computer and other devices through a dispatching field Algorithm (shooting Yard Algorithm), and if necessary, an abstract syntax tree, i.e. the anti-addiction rule model, needs to be generated according to the running priority of the suffix expression. Please refer to fig. 4, which is a schematic diagram of an anti-addiction rule model according to an embodiment of the present invention. Based on the preset anti-addiction rule conditions described in fig. 3, it can be seen from fig. 4 that the mathematical operators of "+, -,",/, and modulo (%) "and the built-in functions of" SET (SET), Vector (VEC) "or other custom functions are generally run first, and then" >, | are performed! The logical operators "AND", "OR", "NOT", "IN" are finally performed as "comparison operators".
It is noted that in the anti-addiction rule model described in fig. 4, first, the entire syntax tree is traversed in the subsequent order starting from the root node, and the operation is performed on the parent node using the data of the left and right nodes. And after the result of the father node is obtained, the father node of the father node is used as a child node to operate with the adjacent brother node, and then the final behavior result is obtained.
Optionally, in other embodiments, after loading the preset anti-addiction rule condition from the management database, the method may further include: detecting whether the preset anti-addiction rule conditions are updated in the management database; when the preset anti-addiction rule conditions are updated in the management database, determining updated first anti-addiction rule conditions; correspondingly, the word segmentation of each keyword in the preset anti-addiction rule condition includes: and segmenting each keyword in the updated first anti-addiction rule condition.
In this embodiment, if the anti-addiction rule conditions enforced by the country and the game merchant change, the preset anti-addiction rule conditions set in the past may be adjusted on the web page of the management end, for example: the game of "please catch monster" implements a more strict measure of ' banning ' for the immature user, and the ' 21: 00-day 8: the "forbidden play between 00" strategy extends from "under 13 years of age" for other games to a population of underage users. Then, if it is determined that the preset anti-addiction rule condition is updated by checking whether the preset anti-addiction rule condition has been updated in the management database, an updated first anti-addiction rule condition is determined, such as: GetAge () <18, which represents the extension described above to all underage users.
It should be noted that, since the preset anti-addiction rules in the management database are updated, the corresponding anti-addiction rule model will also change, and at this time, the updated first anti-addiction rule condition needs to be reloaded, and the updated first anti-addiction rule condition is used as the basis for generating the anti-addiction rule model.
203. And executing a behavior strategy according to the behavior result, wherein the behavior strategy and the behavior result are correspondingly stored in a management database.
In this embodiment, the behavior policy is some anti-addiction measures that need to be executed when the user behavior data satisfies the anti-addiction rule model, so as to achieve the effect of preventing the user from excessively indulging the game. The described behavior policy may include other actions such as "forcibly quit", "open a face recognition webpage", or "continue game" besides "real name authentication", and of course, these behavior policies are mainly determined according to different preset anti-addiction rule conditions, and will not be specifically limited in the present invention.
Optionally, in some embodiments, when the behavior policy includes a real-name authentication operation, if the behavior result is determined to be true, the user is prompted to perform the real-name authentication operation.
That is, it is understood that the behavior result is true meaning that the user behavior data satisfies the anti-addiction rule model, and thus a corresponding behavior policy needs to be executed. Referring to fig. 5, a schematic diagram of determining a behavior result through an anti-addiction rule model according to an embodiment of the present invention is shown based on the embodiment described in fig. 4. As can be seen from fig. 5, the acquired user behavior data is behavior data about a game player who does not perform real-name authentication and lives in japan, that is, (notGetIsRealName ()) and (GetAge () <0 or GetAge () > 18 and (getnature () in SET)'), and then the behavior data is substituted into the anti-addiction rule model described in fig. 4, and it is determined that the behavior result of the user behavior data is true, that is, it is determined that the user does not perform real-name authentication when playing the game of "XXXX". Therefore, the user needs to be prompted to perform the real name authentication operation before continuing playing the game "XXXX".
It should be noted that in the logic operation described in fig. 5, for the AND operation, if the operation result of the left node is false, the parent node corresponding to the left node is determined to be false, AND the right node does not need to be calculated at this time; for the OR operation, if the operation result of the left node is true, the parent node corresponding to the left node is determined to be true, and the right node does not need to be calculated at this time.
In the embodiment of the invention, after the user behavior data is obtained, the behavior result of the user behavior data can be determined through the anti-addiction rule model, so that the behavior strategy is executed according to the behavior result, and the behavior strategy and the behavior result are correspondingly stored in the management database, so that the anti-addiction rule conditions required in the anti-addiction rule model can be flexibly combined and updated in the management database, and the anti-addiction rule model can be directly modified from the management database when being changed due to the change of the anti-addiction rule conditions, thereby greatly shortening the operation cost and the test time.
The scheme provided by the embodiment of the invention is mainly introduced from the perspective of a method. It is to be understood that the hardware structure and/or software modules for performing the respective functions are included to realize the above functions. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software for performing the exemplary modules and algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiment of the present invention, the device may be divided into the functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Referring to fig. 6, for describing the data processing apparatus 60 in detail in the embodiment of the present invention, fig. 6 is a schematic diagram of an embodiment of the data processing apparatus provided in the embodiment of the present invention, where the data processing apparatus 60 may include:
an obtaining unit 601, configured to obtain user behavior data;
a determining unit 602, configured to determine, through an anti-addiction rule model, a behavior result of the user behavior data acquired by the acquiring unit 601;
an executing unit 603, configured to execute a behavior policy according to the behavior result determined by the determining unit 602, where the behavior policy and the behavior result are stored in a management database in a corresponding manner.
Optionally, on the basis of the embodiment corresponding to fig. 6, referring to fig. 7, for a schematic view of another embodiment of the data processing apparatus 60 according to an embodiment of the present invention, the determining unit 602 includes:
the analysis module 6021 is configured to analyze the user behavior data to obtain a keyword array, where the keyword array includes at least one keyword;
a determining module 6022, configured to determine a first operation function corresponding to each keyword obtained by the analyzing module 6021, where the first operation function is included in the anti-addiction rule model;
a first calculating module 6023, configured to calculate a first result value corresponding to each keyword according to the first operation function determined by the determining module 6022;
a second calculating module 6024, configured to calculate a boolean value of each first result value calculated by the first calculating module 6023 according to a logical operation function, so as to obtain a behavior result of the user data.
Optionally, on the basis of the embodiment corresponding to fig. 6, in another embodiment of the data processing apparatus 60 provided in the embodiment of the present invention, the data processing apparatus 60 further includes:
the loading unit is used for loading preset anti-addiction rule conditions from the management database before the user behavior data are acquired;
the word segmentation unit is used for segmenting each keyword in the preset anti-addiction rule conditions loaded by the loading unit to obtain a affix expression;
the conversion unit is used for converting the infix expression obtained by the word segmentation unit into a suffix expression through a scheduling field algorithm;
and the generating unit is used for generating the anti-addiction rule model according to the operation priority of the suffix expression obtained by conversion of the converting unit.
Optionally, on the basis of the above optional corresponding embodiment, in another embodiment of the data processing apparatus 60 provided in the embodiment of the present invention, the data processing apparatus 60 further includes:
the detection unit is used for detecting whether the preset anti-addiction rule conditions are updated in the management database after the preset anti-addiction rule conditions are loaded from the management database;
the determining unit is used for determining an updated first anti-addiction rule condition when the detecting unit detects that the preset anti-addiction rule condition is updated in the management database;
correspondingly, the word segmentation unit comprises:
and the word segmentation module is used for segmenting each keyword in the updated first anti-addiction rule condition determined by the determination unit.
Optionally, on the basis of the embodiment corresponding to fig. 6, in another embodiment of the data processing apparatus 60 provided in the embodiment of the present invention, the behavior policy includes a real-name authentication operation, and the executing unit includes:
and the prompting module is used for prompting the user to execute the real-name authentication operation when the behavior result is true.
In the embodiment of the present invention, after the obtaining unit 601 obtains the user behavior data, the determining unit 602 may determine the behavior result of the user behavior data by using the anti-addiction rule model, so that the executing unit 603 executes the behavior policy according to the behavior result, and since the behavior policy and the behavior result are stored in the management database in a corresponding manner, the rule conditions required in the anti-addiction rule model may be flexibly combined and updated in the management database, and when the anti-addiction rule model changes due to a change in the anti-addiction rule conditions, the corresponding modification may also be directly performed from the management database, thereby greatly reducing the operation cost and the test time.
The data processing apparatus 60 in the embodiment of the present invention is described above from the perspective of a modular functional entity, and the server in the embodiment of the present invention is described below from the perspective of hardware processing. Fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server may include the data processing apparatus described above, the server may generate a relatively large difference due to different configurations or performances, and the server may include at least one processor 801, a communication line 807, a memory 803, and at least one communication interface 804.
The processor 801 may be a general-purpose Central Processing Unit (CPU), microprocessor, application-specific integrated circuit (server IC), or one or more ICs for controlling the execution of programs in accordance with the present invention.
The communication link 807 may include a path that conveys information between the aforementioned components.
The communication interface 804 may be any device, such as a transceiver, for communicating with other devices or communication networks, such as an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), etc.
The memory 803 may be a read-only memory (ROM) or other type of static storage device that may store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that may store information and instructions, which may be separate and coupled to the processor via a communication line 807. The memory may also be integral to the processor.
The memory 803 is used for storing computer-executable instructions for implementing aspects of the present invention, and is controlled by the processor 801 for execution. The processor 801 is configured to execute computer-executable instructions stored in the memory 803, thereby implementing the data processing method provided by the above-described embodiments of the present invention.
Optionally, the computer-executable instructions in the embodiment of the present invention may also be referred to as application program codes, which is not specifically limited in this embodiment of the present invention.
In particular implementations, the server may include multiple processors, such as processor 801 and processor 802 in FIG. 8, for example, as an example. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In particular implementations, the server may also include an output device 805 and an input device 806, as one embodiment. The output device 805 is in communication with the processor 801 and may display information in a variety of ways. The input device 806 is in communication with the processor 801 and may receive user input in a variety of ways. For example, the input device 806 may be a mouse, a touch screen device, or a sensing device, among others.
The server may be a general purpose device or a dedicated device. In particular implementations, the server may be a desktop, laptop, nas server, wireless end device, embedded device, or a device with a similar structure as in fig. 8. The embodiment of the present invention does not limit the type of the server.
In the embodiment of the present invention, the processor 801 included in the server further has the following functions:
acquiring user behavior data;
determining a behavior result of the user behavior data through an anti-addiction rule model;
and executing a behavior strategy according to the behavior result, wherein the behavior strategy and the behavior result are correspondingly stored in a management database.
In some embodiments of the invention, the processor 801 may also be specifically configured to,
analyzing the user behavior data to obtain a keyword array, wherein the keyword array comprises at least one keyword;
determining a first operation function corresponding to each keyword, wherein the first operation function is contained in the anti-addiction rule model;
calculating a first result value corresponding to each keyword according to the first operation function;
and calculating the Boolean value of each first result value according to a logical operation function to obtain the behavior result of the user data.
In some embodiments of the invention, the processor 801 may also be specifically configured to,
loading preset anti-addiction rule conditions from the management database;
performing word segmentation on each keyword in the preset anti-addiction rule condition to obtain a affix expression;
converting the infix expression into a suffix expression by a scheduling field algorithm;
and generating the anti-addiction rule model according to the operation priority of the suffix expression.
In some embodiments of the invention, the processor 801 may also be specifically configured to,
after loading preset anti-addiction rule conditions from the management database, detecting whether the preset anti-addiction rule conditions are updated in the management database;
when the preset anti-addiction rule conditions are updated in the management database, determining updated first anti-addiction rule conditions;
correspondingly, the word segmentation of each keyword in the preset anti-addiction rule condition includes:
and segmenting each keyword in the updated first anti-addiction rule condition.
In some embodiments of the invention, the processor 801 may also be specifically configured to,
the action strategy comprises real-name authentication operation, and the execution of the action strategy according to the action result comprises the following steps:
and when the behavior result is true, prompting the user to execute the real-name authentication operation.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of data processing, comprising:
acquiring user behavior data;
determining a behavior result of the user behavior data through an anti-addiction rule model;
and executing a behavior strategy according to the behavior result, wherein the behavior strategy and the behavior result are correspondingly stored in a management database.
2. The method of claim 1, wherein determining the behavior result of the user behavior data through an anti-addiction rule model comprises:
analyzing the user behavior data to obtain a keyword array, wherein the keyword array comprises at least one keyword;
determining a first operation function corresponding to each keyword, wherein the first operation function is contained in the anti-addiction rule model;
calculating a first result value corresponding to each keyword according to the first operation function;
and calculating the Boolean value of each first result value according to a logical operation function to obtain the behavior result of the user data.
3. The method of claim 1 or 2, wherein before the obtaining the user behavior data, further comprising:
loading preset anti-addiction rule conditions from the management database;
performing word segmentation on each keyword in the preset anti-addiction rule condition to obtain a affix expression;
converting the infix expression into a suffix expression by a scheduling field algorithm;
and generating the anti-addiction rule model according to the operation priority of the suffix expression.
4. The method of claim 3, further comprising, after loading preset anti-addiction rule conditions from the administrative database:
detecting whether the preset anti-addiction rule conditions are updated in the management database;
when the preset anti-addiction rule conditions are updated in the management database, determining updated first anti-addiction rule conditions;
the word segmentation of each keyword in the preset anti-addiction rule conditions comprises the following steps:
and segmenting each keyword in the updated first anti-addiction rule condition.
5. The method of claim 1, wherein the behavior policy comprises a real-name authentication operation, and wherein executing the behavior policy according to the behavior result comprises:
and when the behavior result is true, prompting the user to execute the real-name authentication operation.
6. The method of claim 1, wherein the user behavior data comprises real-name status information, login device information, Internet Protocol (IP) address information, game duration information, age information, or current time information of the user.
7. A data processing apparatus, comprising:
the acquiring unit is used for acquiring user behavior data;
the determining unit is used for determining the behavior result of the user behavior data acquired by the acquiring unit through an anti-addiction rule model;
and the execution unit is used for executing the behavior strategy according to the behavior result determined by the determination unit, and the behavior strategy and the behavior result are correspondingly stored in a management database.
8. The data processing apparatus according to claim 7, wherein the determining unit includes:
the analysis module is used for analyzing the user behavior data to obtain a keyword array, and the keyword array comprises at least one keyword;
the determining module is used for determining a first operation function corresponding to each keyword obtained by the analyzing module, and the first operation function is contained in the anti-addiction rule model;
the first calculation module is used for calculating a first result value corresponding to each keyword according to the first operation function determined by the determination module;
and the second calculation module is used for calculating the Boolean value of each first result value calculated by the first calculation module according to a logical operation function so as to obtain the behavior result of the user data.
9. A server, characterized in that the server comprises: an input/output (I/O) interface, a processor and a memory,
the memory has stored therein program instructions;
the processor is configured to execute program instructions stored in the memory to perform the method of any of claims 1 to 6.
10. A computer-readable storage medium comprising instructions that, when executed on a server, cause the server to perform the method of any of claims 1 to 6.
CN201910950913.2A 2019-10-08 2019-10-08 Data processing method and related device Pending CN110688291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910950913.2A CN110688291A (en) 2019-10-08 2019-10-08 Data processing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910950913.2A CN110688291A (en) 2019-10-08 2019-10-08 Data processing method and related device

Publications (1)

Publication Number Publication Date
CN110688291A true CN110688291A (en) 2020-01-14

Family

ID=69111515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910950913.2A Pending CN110688291A (en) 2019-10-08 2019-10-08 Data processing method and related device

Country Status (1)

Country Link
CN (1) CN110688291A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036910A (en) * 2013-01-05 2013-04-10 北京网康科技有限公司 Method and device for controlling user web access behaviors
CN105095777A (en) * 2015-07-31 2015-11-25 华中科技大学 Multi-mode access control strategy making and executing method under cloud environment
CN106991187A (en) * 2017-04-10 2017-07-28 武汉朱雀闻天科技有限公司 The analysis method and device of a kind of campus data
WO2017185696A1 (en) * 2016-04-25 2017-11-02 中兴通讯股份有限公司 Anti-addiction method and system
CN108632087A (en) * 2018-04-26 2018-10-09 四川斐讯信息技术有限公司 A kind of online management method and system based on router
CN109587325A (en) * 2018-11-01 2019-04-05 Oppo(重庆)智能科技有限公司 Using the management-control method of operation, device, storage medium and electronic equipment
CN109617852A (en) * 2018-03-29 2019-04-12 腾讯科技(深圳)有限公司 Anti- sinking network method and apparatus based on flow analysis

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036910A (en) * 2013-01-05 2013-04-10 北京网康科技有限公司 Method and device for controlling user web access behaviors
CN105095777A (en) * 2015-07-31 2015-11-25 华中科技大学 Multi-mode access control strategy making and executing method under cloud environment
WO2017185696A1 (en) * 2016-04-25 2017-11-02 中兴通讯股份有限公司 Anti-addiction method and system
CN106991187A (en) * 2017-04-10 2017-07-28 武汉朱雀闻天科技有限公司 The analysis method and device of a kind of campus data
CN109617852A (en) * 2018-03-29 2019-04-12 腾讯科技(深圳)有限公司 Anti- sinking network method and apparatus based on flow analysis
CN108632087A (en) * 2018-04-26 2018-10-09 四川斐讯信息技术有限公司 A kind of online management method and system based on router
CN109587325A (en) * 2018-11-01 2019-04-05 Oppo(重庆)智能科技有限公司 Using the management-control method of operation, device, storage medium and electronic equipment

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
GIANTMFC123: "《重构:改善既有代码的设计》 简化条件表达式 之 2 合并条件表达式 consolidate conditional expression", 《HTTPS://BLOG.CSDN.NET/MAFUCUN1988/ARTICLE/DETAILS/89741629 》 *
GIANTMFC123: "《重构:改善既有代码的设计》 简化条件表达式 之 2 合并条件表达式 consolidate conditional expression", 《HTTPS://BLOG.CSDN.NET/MAFUCUN1988/ARTICLE/DETAILS/89741629 》, 1 May 2019 (2019-05-01) *
天晴问友: "网易实名认证与防沉迷介绍", 《HTTPS://WWW.TIANQING123.CN/JY/142816.HTML》 *
天晴问友: "网易实名认证与防沉迷介绍", 《HTTPS://WWW.TIANQING123.CN/JY/142816.HTML》, 2 June 2019 (2019-06-02) *
成科扬;: "基于Agent技术的网络游戏防沉迷系统研究", 计算机应用与软件, no. 02, pages 148 - 31 *

Similar Documents

Publication Publication Date Title
US10628294B2 (en) Mock services for software infrastructures
Oliner et al. Carat: Collaborative energy diagnosis for mobile devices
US9979592B2 (en) Event notifications for applications
US10146531B2 (en) Method and apparatus for generating a refactored code
US20160306689A1 (en) Nexus determination in a computing device
CN106909543B (en) Pattern matching method and device of rule engine
CN107729227B (en) Application program test range determining method, system, server and storage medium
KR101423030B1 (en) Method of analysis application object which computer-executable, server performing the same and storage media storing the same
CN108475314A (en) It is tracked using the information flow of incremental profile analysis
CN109194689A (en) Abnormal behaviour recognition methods, device, server and storage medium
CN111930366A (en) Rule engine implementation method and system based on JIT real-time compilation
Folino et al. Automatic offloading of mobile applications into the cloud by means of genetic programming
CN113765734A (en) Method and device for detecting network access amount
US20140052842A1 (en) Measuring problems from social media discussions
US9747448B2 (en) Cryptographic mechanisms to provide information privacy and integrity
CN112333171A (en) Service data processing method and device and computer equipment
CN110688291A (en) Data processing method and related device
CN107403352B (en) Prioritizing topics of interest determined from product evaluations
Ahmad et al. A case and framework for code analysis–based smartphone application energy estimation
CN107451050B (en) Function acquisition method and device and server
Dang et al. Implementation of a trust-behavior based reputation system for mobile applications
Higgs et al. Analysing user behaviour through dynamic population models
CN112133420A (en) Data processing method, device and computer readable storage medium
CN112231186A (en) Performance data processing method and device, electronic equipment and medium
KR102187880B1 (en) Method and apparatus for game event guide

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200114