Information processing method and device

By obtaining the objective function and its input parameters, using expression functions and logical operators to determine whether the client meets the information processing conditions, the problem of low judgment efficiency on the server is solved and efficient information processing is achieved.

CN119938704APending Publication Date: 2025-05-06BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311459868.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-03
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The server is less efficient at judging whether the client meets the information processing conditions.

Method used

By obtaining the objective function and its input parameters, use expression functions and logical operators to determine whether the input parameters meet information processing conditions, and avoid complex state machine jumping processes.

Benefits of technology

The efficiency of the server to determine whether the input parameters meet the information processing conditions is improved, and the processing process is simplified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938704A_ABST
    Figure CN119938704A_ABST
Patent Text Reader

Abstract

The invention discloses an information processing method and device, and the method comprises the steps: obtaining a target function and an input parameter of the target function, the target function indicating an information processing condition, and the target processing condition comprising at least one sub-condition; and according to the target function and the input parameter, determining whether the input parameter satisfies an information processing condition. The target function is determined according to an expression function corresponding to each sub-condition in the at least one sub-condition, and the expression function corresponding to each sub-condition comprises an operator. Therefore, by means of the scheme, when whether the input parameters meet the information processing conditions or not is determined, only the target function needs to be called, the target function is determined according to the expression function, the expression function comprises the operators and does not involve complex processing processes such as state machine jumping, and therefore the calling process of the target function is simple and efficient. Therefore, by utilizing the scheme, the efficiency of determining whether the input parameter meets the information processing condition or not by the server can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an information processing method and device. Background Art

[0002] With the development of computer technology, more and more applications have emerged, and users can obtain information through applications. For example, users can watch live broadcasts through the client to obtain relevant information. At present, when the server pushes information to the client, it can push information in combination with information processing conditions. For example, the server can determine whether the client meets the information processing conditions, and if so, push the information to be pushed to the client.

[0003] Currently, the efficiency of the server in judging whether the client meets the information processing conditions is low. Therefore, a solution is urgently needed to solve the above problem. Summary of the invention

[0004] In order to solve or at least partially solve the above technical problems, an embodiment of the present application provides an information processing method and device.

[0005] In a first aspect, an embodiment of the present application provides an information processing method, the method comprising:

[0006] Obtaining an objective function and input parameters of the objective function, wherein the objective function is used to indicate an information processing condition, the information processing condition includes at least one sub-condition, the objective function is determined according to an expression function corresponding to each sub-condition in the at least one sub-condition, and the expression function corresponding to each sub-condition includes: an operator;

[0007] According to the objective function and the input parameters of the objective function, it is determined whether the input parameters meet the information processing condition.

[0008] Optionally, the expression function corresponding to each sub-condition further includes: a parameter name and a preset parameter threshold;

[0009] When the information processing condition includes a sub-condition, the objective function includes an expression function corresponding to the sub-condition;

[0010] When the information processing condition includes multiple sub-conditions, the target function includes: a target logic function, the parameters of the target logic function include: a target operator and an input function, the input function is obtained according to the expression function corresponding to each sub-condition in the multiple sub-conditions, and the target logic function is used to perform the logical operation corresponding to the target logic operator on its input function.

[0011] Optionally, if the information processing condition includes two sub-conditions, the input function includes an expression function corresponding to the first sub-condition and an expression function corresponding to the second sub-condition, and the two sub-conditions include the first sub-condition and the second sub-condition.

[0012] Optionally, if the information processing condition includes at least three sub-conditions, and the at least three sub-conditions include a third sub-condition and at least two fourth sub-conditions, then the input function includes an expression function corresponding to the third sub-condition and a logic function obtained based on the expression function corresponding to the at least two fourth sub-conditions.

[0013] Optionally, the method further includes:

[0014] Acquire at least two sub-conditions configured in the configuration page and a logical relationship between the at least two sub-conditions;

[0015] According to at least two sub-conditions configured in the configuration page and the logical relationship between the at least two sub-conditions, a logical expression is obtained, wherein the logical expression includes an expression function corresponding to each of the at least two sub-conditions and a logical relationship between the expression functions corresponding to each of the sub-conditions;

[0016] According to the logic expression, the target logic function is obtained.

[0017] Optionally, the target logic function is determined in the following manner:

[0018] Traverse the logical expression, where:

[0019] If the expression function is traversed, the expression function is put into the expression stack;

[0020] If the operator is traversed, then:

[0021] If the expression stack is empty, the currently traversed operator is placed into the operator stack;

[0022] If the currently traversed operator is a left bracket, the currently traversed operator is placed in the operator stack; if the currently traversed operator is a right bracket, two expression functions are popped from the expression stack and one operator is popped from the operator stack; the two popped expression functions are operated based on the popped operator, and the operation result is placed in the expression stack until the operator popped from the operator stack is a left bracket;

[0023] If the operator currently traversed is an operator, then if the priority of the operator currently traversed is less than or equal to the priority of the top operator of the operator stack, two expression functions are popped from the expression stack and one operator is popped from the operator stack, and the two expression functions are operated based on the popped operator, and the operation results are placed in the expression stack until the priority of the operator currently traversed is greater than the priority of the top operator, and then the operator currently traversed is placed in the operator stack; if the priority of the operator currently traversed is greater than the priority of the top operator, the operator currently traversed is placed in the operator stack;

[0024] After the traversal is completed, the target logic function is calculated based on the expression stack and the operator stack.

[0025] Optionally, the information processing condition is a processing condition corresponding to the live broadcast room, and the input parameter is a characteristic parameter of the live broadcast room. After determining whether the input parameter satisfies the information processing condition, the method further includes:

[0026] The processing method to be performed on the live broadcast room is determined according to the result of determining whether the input parameter satisfies the information processing condition.

[0027] Optionally, the processing method includes:

[0028] Push the target function to the live broadcast room, or cancel the target function for the live broadcast room.

[0029] In a second aspect, an embodiment of the present application provides an information processing device, the device comprising:

[0030] A first acquisition unit is used to acquire an objective function and an input parameter of the objective function, wherein the objective function is used to indicate an information processing condition, wherein the information processing condition includes at least one sub-condition, and wherein the objective function is determined according to an expression function corresponding to each sub-condition in the at least one sub-condition, wherein the expression function corresponding to each sub-condition includes: an operator;

[0031] The first determining unit is used to determine whether the input parameter meets the information processing condition according to the objective function and the input parameter of the objective function.

[0032] Optionally, the expression function corresponding to each sub-condition further includes: a parameter name and a preset parameter threshold;

[0033] When the information processing condition includes a sub-condition, the objective function includes an expression function corresponding to the sub-condition;

[0034] When the information processing condition includes multiple sub-conditions, the target function includes: a target logic function, the parameters of the target logic function include: a target operator and an input function, the input function is obtained according to the expression function corresponding to each sub-condition in the multiple sub-conditions, and the target logic function is used to perform the logical operation corresponding to the target logic operator on its input function.

[0035] Optionally, if the information processing condition includes two sub-conditions, the input function includes an expression function corresponding to the first sub-condition and an expression function corresponding to the second sub-condition, and the two sub-conditions include the first sub-condition and the second sub-condition.

[0036] Optionally, if the information processing condition includes at least three sub-conditions, and the at least three sub-conditions include a third sub-condition and at least two fourth sub-conditions, then the input function includes an expression function corresponding to the third sub-condition and a logic function obtained based on the expression function corresponding to the at least two fourth sub-conditions.

[0037] Optionally, the device further comprises:

[0038] A second acquisition unit, configured to acquire at least two sub-conditions configured in the configuration page and a logical relationship between the at least two sub-conditions;

[0039] A third acquisition unit is used to obtain a logical expression according to at least two sub-conditions configured in the configuration page and the logical relationship between the at least two sub-conditions, wherein the logical expression includes an expression function corresponding to each of the at least two sub-conditions and a logical relationship between the expression functions corresponding to each of the sub-conditions;

[0040] The fourth acquisition unit is used to obtain the target logic function according to the logic expression.

[0041] Optionally, the target logic function is determined in the following manner:

[0042] Traverse the logical expression, where:

[0043] If the expression function is traversed, the expression function is put into the expression stack;

[0044] If the operator is traversed, then:

[0045] If the expression stack is empty, the currently traversed operator is placed into the operator stack;

[0046] If the currently traversed operator is a left bracket, the currently traversed operator is placed in the operator stack; if the currently traversed operator is a right bracket, two expression functions are popped from the expression stack and one operator is popped from the operator stack; the two popped expression functions are operated based on the popped operator, and the operation result is placed in the expression stack until the operator popped from the operator stack is a left bracket;

[0047] If the operator currently traversed is an operator, then if the priority of the operator currently traversed is less than or equal to the priority of the top operator of the operator stack, two expression functions are popped from the expression stack and one operator is popped from the operator stack, and the two expression functions are operated based on the popped operator, and the operation results are placed in the expression stack until the priority of the operator currently traversed is greater than the priority of the top operator, and then the operator currently traversed is placed in the operator stack; if the priority of the operator currently traversed is greater than the priority of the top operator, the operator currently traversed is placed in the operator stack;

[0048] After the traversal is completed, the target logic function is calculated based on the expression stack and the operator stack.

[0049] Optionally, the information processing condition is a processing condition corresponding to the live broadcast room, and the input parameter is a characteristic parameter of the live broadcast room. After determining whether the input parameter satisfies the information processing condition, the device further includes:

[0050] The second determination unit is used to determine the processing method to be performed on the live broadcast room according to the determination result of whether the input parameter meets the information processing condition.

[0051] Optionally, the processing method includes:

[0052] Push the target function to the live broadcast room, or cancel the target function for the live broadcast room.

[0053] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a processor and a memory;

[0054] The processor is used to execute instructions stored in the memory so that the electronic device executes the method described in any one of the first aspects above.

[0055] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, wherein the instructions instruct a device to execute any of the methods described in the first aspect above.

[0056] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect above.

[0057] Compared with the prior art, the embodiments of the present application have the following advantages:

[0058] The embodiment of the present application provides an information processing method. In one example, the method can be executed by a server. The method includes: obtaining a target function and an input parameter of the target function, the target function indicating an information processing condition, and the target processing condition including at least one sub-condition. According to the target function and the input parameter, determine whether the input parameter meets the information processing condition. In an embodiment of the present application, the target function is determined according to the expression function corresponding to each sub-condition in the at least one sub-condition, and the expression function corresponding to each sub-condition includes: an operator. It can be seen that, using the scheme of the embodiment of the present application, when determining whether the input parameter meets the information processing condition, the target function can be called. The target function is determined according to the expression function, and the expression function includes an operator, which does not involve complex processing processes such as state machine jumps, so the calling process of the target function is simple and efficient. Using the scheme of the embodiment of the present application, it is possible to efficiently determine whether the input parameter meets the information processing condition, thereby improving the efficiency of the server in determining whether the input parameter meets the information processing condition. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0060] Figure 1 A flowchart of an information processing method provided in an embodiment of the present application;

[0061] Figure 2 A flowchart of a method for generating a target logic function provided in an embodiment of the present application;

[0062] Figure 3 A flowchart of an information processing method provided in an embodiment of the present application;

[0063] Figure 4 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0065] The inventor of the present application has found through research that, at present, when the server determines whether the client meets the information processing conditions, it can be implemented by a compilation and parsing system similar to a programming language. Specifically, the compilation and parsing system performs syntax analysis, lexical analysis and semantic analysis to obtain a syntax tree corresponding to the information processing conditions, and then executes the syntax tree to determine whether the client meets the information processing conditions. Among them, judging whether the client meets the information processing conditions refers to whether the relevant parameters of the client meet the information processing conditions. In the process of executing the syntax tree, a large number of state machine jumps are involved, which leads to the low efficiency of the server in determining whether the client meets the information processing conditions. Taking the server determining whether the client meets "parameter A>5" as an example, the server first parses parameter A. After obtaining parameter A, the state machine jumps to the operator judgment state, and obtains the operator ">" in the operator judgment state. Further, the state machine jumps to the threshold processing state, in which the server obtains the threshold "5" and further determines whether "parameter A>5" is established. In this process, two state machine jumps are involved. When the information processing condition includes multiple sub-conditions, the number of state machine jumps involved is greater.

[0066] In order to solve the above problems, the embodiments of the present application provide an information processing method and device. By using the solution of the embodiments of the present application, when determining whether the client satisfies the information processing conditions, the target function can be called. The target function is determined according to the expression function, and the expression function includes an operator, which does not involve complex processing processes such as state machine jumps. Therefore, the calling process of the target function is simple and efficient. By using the solution of the embodiments of the present application, it is possible to efficiently determine whether the input parameters meet the information processing conditions, thereby improving the efficiency of the server in determining whether the input parameters meet the information processing conditions.

[0067] Various non-limiting implementations of the present application are described in detail below in conjunction with the accompanying drawings.

[0068] Exemplary Methods

[0069] See also Figure 1, which is a flow chart of an information processing method provided in an embodiment of the present application. The information processing method provided in an embodiment of the present application can be executed by a server, and in a specific example, can be executed by a rule engine deployed on the server.

[0070] In this embodiment, the method may include the following steps: S101-S102.

[0071] S101: Obtain an objective function and input parameters of the objective function, wherein the objective function is used to indicate an information processing condition, wherein the information processing condition includes at least one sub-condition, and the objective function is determined based on an expression function corresponding to each sub-condition in the at least one sub-condition, wherein the expression function corresponding to each sub-condition includes: an operator.

[0072] In an embodiment of the present application, the objective function is a function used to indicate an information processing condition. The information processing condition includes at least one sub-condition. When the information processing condition includes multiple sub-conditions, the objective function can be used to indicate the multiple sub-conditions and the logical relationship between the multiple sub-conditions. Among them, for any two sub-conditions, the logical relationship between the sub-conditions can be an "or" relationship or an "and" relationship.

[0073] In the embodiment of the present application, the objective function may be pre-generated by the server and stored in the server. Therefore, when obtaining the objective function in a specific implementation, for example, the pre-stored objective function may be obtained.

[0074] In an embodiment of the present application, the input parameter of the objective function may be a relevant parameter of the client, for example, it may be a characteristic parameter of the live broadcast room displayed by the client. The input parameter may include input parameters corresponding to each sub-condition in at least one sub-condition involved in the information processing condition. For a certain sub-condition, the input parameter corresponding to the sub-condition may be the actual parameter value corresponding to the parameter name of the expression function corresponding to the sub-condition mentioned below. For example, as another example, the input parameter may be the type of live broadcast room. As another example, when the server corresponds to multiple applications, the input parameter may be the name of the application. As another example, the input parameter may be whether to enable the live broadcast reservation function.

[0075] The way in which the server obtains the input parameter depends on the content of the input parameter. For example, when the input parameter is a parameter related to the client, the server can obtain the input parameter from the client. The server can also obtain the input parameter from other data sources, which is not specifically limited in the embodiments of the present application.

[0076] In the embodiment of the present application, the information processing condition may be a push or cancel condition corresponding to the content to be pushed. The embodiment of the present application does not specifically limit the content to be pushed, and the content to be pushed may be a function of the live broadcast room application (hereinafter referred to as the target function).

[0077] When the information processing condition includes a sub-condition, the objective function includes an expression function corresponding to the sub-condition, wherein the parameters of the expression function include at least an operator. The embodiment of the present application does not specifically limit the operator, and the operator may be a comparison operator or a custom operator (for example, determining whether a parameter is in a parameter whitelist), which is not specifically limited in the embodiment of the present application. In a specific example, the expression function may also include: a parameter name and a preset parameter threshold.

[0078] Regarding the expression function, here is an example:

[0079] In one example, the expression function may be: pre-bookEQ(yes), where "pre-book" is the parameter name, EQ represents the operator "equal to", and "yes" is the preset parameter threshold. The sub-condition indicated by the expression function is: enable the live broadcast room reservation function.

[0080] In another example, the expression function may be: roomtypeEQ(1), where: "roomtype" is a parameter name, EQ represents the operator "equal to", and "1" is a preset parameter threshold. The sub-condition indicated by the expression function is: the live broadcast room type is type 1, where type 1 may be, for example, a voice live broadcast.

[0081] In one example, when the information processing condition includes a sub-condition, the target function is the expression function itself corresponding to the sub-condition.

[0082] In another example, when the information processing condition includes multiple sub-conditions, the target function includes: a target logic function, the parameters of the target logic function include: a target operator and an input function, the input function is obtained according to the expression function corresponding to each of the multiple sub-conditions, and the target logic function is used to perform the logic operation corresponding to the target logic operator on its input function. The logic operation can be an "and" operation, an "or" operation, or a "not" operation.

[0083] In one example, the target logic function may include two input functions. For example, the target logic function may be: And(a, b), where a and b are both input functions, And represents the logical operation "AND", and And(a, b) represents performing an "AND" operation on input functions a and b. For another example, the target logic function may be: Or(a1, b1), where a1 and b1 are both input functions, Or represents the logical operation "OR", and Or(a1, b1) represents performing an "OR" operation on input functions a1 and b1.

[0084] For this case, in one example, if the information processing condition includes two sub-conditions, for example, a first sub-condition and a second sub-condition, the input function may include an expression function corresponding to the first sub-condition and an expression function corresponding to the second sub-condition. For example, the expression function corresponding to the first sub-condition may correspond to the aforementioned input function a, and the expression function corresponding to the second sub-condition may correspond to the aforementioned input function b. For another example, the expression function corresponding to the first sub-condition may correspond to the aforementioned input function c, and the expression function corresponding to the second sub-condition may correspond to the aforementioned input function d.

[0085] For the expression functions corresponding to the sub-conditions, please refer to the relevant description section above, which will not be repeated here.

[0086] In another example, if the information processing condition includes at least three sub-conditions, and the at least three sub-conditions include a third sub-condition and at least two fourth sub-conditions, then one of the input functions included in the input function may be an expression function corresponding to the third sub-condition, and another input function included in the input function may be a logic function obtained according to the expression functions corresponding to the at least two fourth sub-conditions. In other words, the expression functions corresponding to the at least two fourth sub-conditions may be firstly subjected to a logical operation to obtain the logic function, and then the logic function and the expression function corresponding to the third sub-condition may be used as input functions of the target logic function. For example, the expression function corresponding to the third sub-condition may correspond to the aforementioned input function a, and the logic function may correspond to the aforementioned input function b. For another example, the expression function corresponding to the third sub-condition may correspond to the aforementioned input function c, and the logic function may correspond to the aforementioned input function d.

[0087] The target logic function is now described with reference to specific examples.

[0088] Assume that the information processing condition includes three sub-conditions, and the three sub-conditions are in an "and" relationship, and the three sub-conditions are:

[0089] Sub-condition 1: Enable the live broadcast room reservation function;

[0090] Sub-condition 2: The live broadcast room type is voice live broadcast.

[0091] but:

[0092] The expression function corresponding to sub-condition 1 is: pre-bookEQ(yes);

[0093] The expression function corresponding to sub-condition 2 is: roomtypeEQ(1).

[0094] Correspondingly, the target logic function is:

[0095] e=And(c,d), where:

[0096] c = expression function pre-bookEQ(yes) corresponding to sub-condition 1;

[0097] d = expression function roomtypeEQ(1) corresponding to sub-condition 2.

[0098] In another example, the target logic function may include at least three input functions. For example, the target logic function may be: And(a, b, e), wherein a, b and e are all input functions, And represents the logical operation "and", and And(a, b, e) represents the execution of the "and" operation on the input functions a, b and e, that is, represents the logical operation a&&b&&e. For another example, the target logic function may be: Or(a1, b1, e1), wherein a1, b1 and e1 are all input functions, Or represents the logical operation "or", and Or(a1, b1, e1) represents the execution of the "or" operation on the input functions a1, b1 and e1, that is, represents the logical operation a||b||e. For another example, the target logic function may be AndOr(a, b, e), wherein AndOr(a, b, e) represents the logical operation: (a&&b)||e. For another example, the target logic function may be OrAnd(a, b, e), where OrAnd(a, b, e) represents the logic operation: (a||b)&&e. For another example, the target logic function may be AndAndNot1(a, b, e), where AndAndNot1(a, b, e) represents the logic operation: (!a)&&b&&e, where Not* represents the negation of the *th input function, i.e., Not1 represents the negation of the first input function a.

[0099] S102: Determine, based on the objective function and the input parameters of the objective function, whether the input parameters meet the information processing conditions.

[0100] After the server obtains the objective function and the input parameters of the objective function, the server can use the input parameters as the input of the objective function and execute the objective function. Accordingly, after the server executes the objective function, it can determine whether the input parameters meet the information processing conditions. Specifically, the server can determine whether the input parameters meet the information processing conditions based on the return value after the objective function is executed. For example, when the return value after the objective function is executed is true (true), it indicates that the input parameters meet the information processing conditions. When the return value after the objective function is executed is false (false), it indicates that the input parameters do not meet the information processing conditions.

[0101] From the above description, it can be seen that by utilizing the solution of the embodiment of the present application, when determining whether the input parameters meet the information processing conditions, it is sufficient to call the target function, and the target function is an expression function or a target logic function that performs logical operations on the input function. The calling process of the target function is simple and does not involve complex processing processes such as state machine jumps. Therefore, by utilizing the solution of the embodiment of the present application, it is possible to efficiently determine whether the input parameters meet the information processing conditions, thereby improving the efficiency of the server in determining whether the input parameters meet the information processing conditions.

[0102] In one example, the information processing condition is the processing condition corresponding to the live broadcast room, and correspondingly, the input parameter is the characteristic parameter of the live broadcast room. The characteristic parameters of the live broadcast room include, but are not limited to, the parameters of the live broadcast room page and the parameters of the anchor. The parameters of the live broadcast room page include, but are not limited to, one or more of the parameters such as the type of live broadcast room, the live broadcast duration of the live broadcast room, the type of live video played in the live broadcast room, etc. The anchor parameters include, but are not limited to, parameters such as the anchor type. In this case, after determining whether the input parameters meet the information processing conditions, the server can determine the processing method to be performed on the live broadcast room according to the determination result of whether the input parameters meet the information processing conditions.

[0103] The embodiments of the present application do not specifically limit the processing method executed for the live broadcast room. The processing method executed for the live broadcast room may be to push the target function to the live broadcast room, or to cancel the target function for the live broadcast room, thereby realizing the directional push of the target function to the live broadcast room. In a specific example, the information processing condition is a live broadcast room push condition. If it is determined that the input parameter meets the information processing condition, the target function is pushed to the live broadcast room. If it is determined that the input parameter does not meet the information processing condition, the target function is canceled for the live broadcast room.

[0104] Of course, the processing method is not limited to pushing or canceling the target function to the live broadcast room, but can also be other methods, which are not listed in detail here.

[0105] In one example, the target logic function may be pre-generated by the server. Next, the method of generating the target logic function by the server is introduced.

[0106] See also Figure 2 , which is a flow chart of a method for generating a target logic function provided in an embodiment of the present application. Figure 2 The method shown may include the following S201-S203.

[0107] S201: Acquire at least two sub-conditions configured in a configuration page and a logical relationship between the at least two sub-conditions.

[0108] In the embodiment of the present application, for any sub-condition, the configuration method is the same. Next, the target sub-condition is taken as an example for introduction.

[0109] In one example, the configuration page may include a parameter name configuration area, an operator configuration area, and a threshold configuration area corresponding to the target sub-condition. The user may configure the parameter name of the target sub-condition in the parameter name configuration area, the user may configure the operator in the target sub-condition in the operator configuration area, and the user may configure the preset parameter threshold corresponding to the target sub-condition in the threshold configuration area. The parameter name configuration area, the operator configuration area, and the threshold configuration area may correspond to different areas in the configuration page.

[0110] Specifically, the server may receive a first operation triggered in the parameter name configuration area, display parameter name candidates in response to the first operation, and obtain the target name as the parameter name in response to a selection operation on a target name in the parameter name candidates. The first operation mentioned here may be, for example, a click operation triggered in the parameter name configuration area.

[0111] The server may receive a second operation triggered in the operator configuration area, and in response to the second operation, display operator candidates; and in response to a selection operation for a target operator in the operator candidates, obtain the target operator as the operator. The second operation mentioned here may be, for example, a click operation triggered in the operator configuration area.

[0112] The server may receive a third operation triggered in the threshold configuration area, and in response to the third operation, display parameter threshold candidates; in response to a selection operation for a target threshold in the parameter threshold candidates, obtain the target threshold as the preset parameter threshold. Alternatively, the server may receive the preset parameter threshold input in the parameter threshold configuration area. The third operation mentioned here may be, for example, a click operation triggered in the parameter threshold configuration area.

[0113] For the logical relationship between the sub-conditions, please refer to the relevant description section above, which will not be described in detail here.

[0114] In the embodiment of the present application, after configuring a certain sub-condition, when creating a new sub-condition, the user can configure the logical relationship between the configured sub-condition and the newly created sub-condition.

[0115] S202: Obtain a logical expression based on at least two sub-conditions configured in the configuration page and the logical relationship between the at least two sub-conditions, wherein the logical expression includes an expression function corresponding to each of the at least two sub-conditions and the logical relationship between the expression functions corresponding to each of the sub-conditions.

[0116] After obtaining the target sub-condition configured in the configuration page, the server can generate an expression function corresponding to the target sub-condition. Further, based on the expression function corresponding to each of the at least two sub-conditions and the logical relationship between the at least two sub-conditions, a logical expression can be obtained, the logical expression including the expression function corresponding to each of the at least two sub-conditions and the logical relationship between the expression functions corresponding to each of the at least two sub-conditions.

[0117] The logical expression is now described with reference to specific examples.

[0118] Assume that the information processing condition includes three sub-conditions, and the three sub-conditions are in an "and" relationship, and the three sub-conditions are:

[0119] Sub-condition 1: Enable the live broadcast room reservation function;

[0120] Sub-condition 2: The live broadcast room type is voice live broadcast.

[0121] but:

[0122] The expression function corresponding to sub-condition 1 is: pre-bookEQ(yes);

[0123] The expression function corresponding to sub-condition 2 is: roomtypeEQ(1).

[0124] Correspondingly, the logical expression is:

[0125] pre-bookEQ(yes)&&roomtypeEQ(1), the target logic function is: e=And(c,d), where: c=pre-bookEQ(yes), d=roomtypeEQ(1).

[0126] S203: Obtain the target logic function according to the logic expression.

[0127] After determining the logical expression, the target logical function can be obtained according to the logical expression. In one example, the server can traverse the logical expression and obtain the target logical function using an expression stack and an operator stack, wherein the expression stack is used to store expression functions and the operator stack is used to store operators.

[0128] In a specific example, the server may traverse the logical expression, and if an expression function is traversed, the expression function is placed in an expression stack;

[0129] If the operator is traversed, the next operation to be performed is determined based on the contents of the expression stack and the operator stack:

[0130] If the expression stack is empty, it means that there is no expression function that can perform logical operations at present, so the currently traversed operator is put into the operator stack.

[0131] If the currently traversed operator is a left bracket, it means that there is no need to calculate other expression functions at present, and the currently traversed operator is placed in the operator stack.

[0132] If the currently traversed operator is a right bracket, the bracket has a higher priority, and the operator function in the bracket needs to be calculated accordingly. Therefore, the server can pop two expression functions from the expression stack and pop one operator from the operator stack, and calculate the two popped expression functions based on the popped operator, and put the calculation result into the expression stack. Repeat the above steps until the operator popped from the operator stack is a left bracket, that is, until the calculation in the bracket has been completed.

[0133] If the operator currently traversing is an operator, and the priority of the operator currently traversing is less than or equal to the priority of the top operator of the operator stack, then the operation calculation corresponding to the top operator can be completed first. Specifically, the server can pop two expression functions from the expression stack and pop an operator from the operator stack, perform operations on the two popped expression functions based on the popped operators, and put the operation results into the expression stack. Repeat this step until the priority of the operator currently traversing is greater than the priority of the top operator, and then put the operator currently traversing into the operator stack;

[0134] If the currently traversed operator is an operator, and the priority of the currently traversed operator is greater than the priority of the top operator of the stack, it means that there is no need to calculate other expression functions at present, so the currently traversed operator is placed in the operator stack.

[0135] After the logical expression traversal is completed, the target logic function can be calculated based on the expression stack and the operator stack. Specifically, the top operator of the operator stack can be popped out in sequence, and the two expression functions of the expression stack can be popped out, and the corresponding calculation is performed based on the two popped expression functions and operators, and the calculation result is placed in the expression stack. And so on, until all the operators of the operator stack are popped out, at which point the server can calculate the target logic function.

[0136] In the embodiment of the present application, since one sub-condition corresponds to one expression function, when determining the target logic function, the server only needs to set an expression stack and an operator stack. By processing the expression stack and the operator stack, the target logic function can be efficiently obtained.

[0137] Regarding the determination method of the target logic function, now combined with Figure 3 To explain, Figure 3 A flowchart of an information processing method provided in an embodiment of the present application.

[0138] like Figure 3 As shown, the user has set two sub-conditions, which are:

[0139] Sub-condition 1: Enable the live broadcast room reservation function;

[0140] Sub-condition 2: The live broadcast room type is voice live broadcast;

[0141] The logical relationship between these three sub-conditions is: Sub-condition 1 && Sub-condition 2.

[0142] According to sub-condition 1 and sub-condition 2, we can get the logical expression: pre-bookEQ(yes)&&roomtypeEQ(1);

[0143] Traversing logical expressions:

[0144] 1. First traverse to the expression function pre-bookEQ(yes) and put the expression function pre-bookEQ(yes) into the expression stack.

[0145] 2. Then traverse to the operator "&&" and put the operator "&&" into the operator stack.

[0146] 3. Traverse to the expression function roomtypeEQ(1) again and put it into the expression stack. The traversal is now complete.

[0147] Pop the expression functions pre-bookEQ(yes) and roomtypeEQ(1) from the expression stack, pop the operator "&&" from the operator stack, calculate pre-bookEQ(yes)&&roomtypeEQ(1), and get the target logical function: pre-bookEQ(yes)&&roomtypeEQ(1).

[0148] In one example, the server may obtain the target logic function and input parameters of the target logic function, and run the target logic function. Figure 3 It shows that when the return value of the target logic function is true, the processing method executed for the live broadcast room is: pushing the target function to the live broadcast room. In another example, if the return value of the target logic function is false, the processing method executed for the live broadcast room is: canceling the target function for the live broadcast room.

[0149] Exemplary Devices

[0150] Based on the method provided in the above embodiment, the embodiment of the present application further provides a device, which is described below in conjunction with the accompanying drawings.

[0151] See also Figure 4 , which is a schematic diagram of the structure of an information processing device provided in an embodiment of the present application. The device 400 may specifically include: a first acquisition unit 401 and a first determination unit 402.

[0152] The first acquisition unit 401 is used to acquire an objective function and input parameters of the objective function, wherein the objective function is used to indicate an information processing condition, wherein the information processing condition includes at least one sub-condition, and the objective function is determined according to an expression function corresponding to each sub-condition in the at least one sub-condition, wherein the expression function corresponding to each sub-condition includes: an operator;

[0153] The first determining unit 402 is configured to determine, according to the objective function and the input parameters of the objective function, whether the input parameters satisfy the information processing condition.

[0154] Optionally, the expression function corresponding to each sub-condition further includes: a parameter name and a preset parameter threshold;

[0155] When the information processing condition includes a sub-condition, the objective function includes an expression function corresponding to the sub-condition;

[0156] When the information processing condition includes multiple sub-conditions, the target function includes: a target logic function, the parameters of the target logic function include: a target operator and an input function, the input function is obtained according to the expression function corresponding to each sub-condition in the multiple sub-conditions, and the target logic function is used to perform the logical operation corresponding to the target logic operator on its input function.

[0157] Optionally, if the information processing condition includes two sub-conditions, the input function includes an expression function corresponding to the first sub-condition and an expression function corresponding to the second sub-condition, and the two sub-conditions include the first sub-condition and the second sub-condition.

[0158] Optionally, if the information processing condition includes at least three sub-conditions, and the at least three sub-conditions include a third sub-condition and at least two fourth sub-conditions, then the input function includes an expression function corresponding to the third sub-condition and a logic function obtained based on the expression function corresponding to the at least two fourth sub-conditions.

[0159] Optionally, the device further comprises:

[0160] A second acquisition unit, configured to acquire at least two sub-conditions configured in the configuration page and a logical relationship between the at least two sub-conditions;

[0161] A third acquisition unit is used to obtain a logical expression according to at least two sub-conditions configured in the configuration page and the logical relationship between the at least two sub-conditions, wherein the logical expression includes an expression function corresponding to each of the at least two sub-conditions and a logical relationship between the expression functions corresponding to each of the sub-conditions;

[0162] The fourth acquisition unit is used to obtain the target logic function according to the logic expression.

[0163] Optionally, the target logic function is determined in the following manner:

[0164] Traverse the logical expression, where:

[0165] If the expression function is traversed, the expression function is put into the expression stack;

[0166] If the operator is traversed, then:

[0167] If the expression stack is empty, the currently traversed operator is placed into the operator stack;

[0168] If the currently traversed operator is a left bracket, the currently traversed operator is placed in the operator stack; if the currently traversed operator is a right bracket, two expression functions are popped from the expression stack and one operator is popped from the operator stack; the two popped expression functions are operated based on the popped operator, and the operation result is placed in the expression stack until the operator popped from the operator stack is a left bracket;

[0169] If the operator currently traversed is an operator, then if the priority of the operator currently traversed is less than or equal to the priority of the top operator of the operator stack, two expression functions are popped from the expression stack and one operator is popped from the operator stack, and the two expression functions are operated based on the popped operator, and the operation results are placed in the expression stack until the priority of the operator currently traversed is greater than the priority of the top operator, and then the operator currently traversed is placed in the operator stack; if the priority of the operator currently traversed is greater than the priority of the top operator, the operator currently traversed is placed in the operator stack;

[0170] After the traversal is completed, the target logic function is calculated based on the expression stack and the operator stack.

[0171] Optionally, the information processing condition is a processing condition corresponding to the live broadcast room, and the input parameter is a characteristic parameter of the live broadcast room. After determining whether the input parameter satisfies the information processing condition, the device further includes:

[0172] The second determination unit is used to determine the processing method to be performed on the live broadcast room according to the determination result of whether the input parameter meets the information processing condition.

[0173] Optionally, the processing method includes:

[0174] Push the target function to the live broadcast room, or cancel the target function for the live broadcast room.

[0175] Since the device 400 is a device corresponding to the method provided in the above method embodiment, the specific implementation of each unit of the device 400 is based on the same concept as the above method embodiment. Therefore, for the specific implementation of each unit of the device 400, reference can be made to the description part of the above method embodiment, which will not be repeated here.

[0176] The embodiment of the present application also provides an electronic device, the electronic device comprising a processor and a memory;

[0177] The processor is used to execute instructions stored in the memory so that the electronic device executes the information display method described in any one of the above method embodiments.

[0178] An embodiment of the present application provides a computer-readable storage medium, including instructions, wherein the instructions instruct a device to execute the information processing method described in any one of the above method embodiments.

[0179] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer, the computer executes the information processing method described in any one of the above method embodiments.

[0180] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes 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 application are indicated by the following claims.

[0181] It should be understood that the present application is not limited to the precise structures that have 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 application is limited only by the appended claims.

[0182] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. An information processing method, characterized in that: The method comprises: Obtaining an objective function and input parameters of the objective function, wherein the objective function is used to indicate an information processing condition, the information processing condition includes at least one sub-condition, the objective function is determined according to an expression function corresponding to each sub-condition in the at least one sub-condition, and the expression function corresponding to each sub-condition includes: an operator; According to the objective function and the input parameters of the objective function, it is determined whether the input parameters meet the information processing condition.

2. The method according to claim 1, characterized in that The expression function corresponding to each sub-condition also includes: a parameter name and a preset parameter threshold; When the information processing condition includes a sub-condition, the objective function includes an expression function corresponding to the sub-condition; When the information processing condition includes multiple sub-conditions, the target function includes: a target logic function, the parameters of the target logic function include: a target operator and an input function, the input function is obtained according to the expression function corresponding to each sub-condition in the multiple sub-conditions, and the target logic function is used to perform the logical operation corresponding to the target logic operator on its input function.

3. The method according to claim 2, characterized in that If the information processing condition includes two sub-conditions, the input function includes an expression function corresponding to the first sub-condition and an expression function corresponding to the second sub-condition, and the two sub-conditions include the first sub-condition and the second sub-condition.

4. The method according to claim 2, characterized in that: If the information processing condition includes at least three sub-conditions, and the at least three sub-conditions include a third sub-condition and at least two fourth sub-conditions, then the input function includes an expression function corresponding to the third sub-condition and a logic function obtained based on the expression function corresponding to the at least two fourth sub-conditions.

5. The method according to claim 3 or 4, characterized in that: The method further comprises: Acquire at least two sub-conditions configured in the configuration page and a logical relationship between the at least two sub-conditions; According to at least two sub-conditions configured in the configuration page and the logical relationship between the at least two sub-conditions, a logical expression is obtained, wherein the logical expression includes an expression function corresponding to each of the at least two sub-conditions and a logical relationship between the expression functions corresponding to each of the sub-conditions; According to the logic expression, the target logic function is obtained.

6. The method according to claim 5, characterized in that The target logic function is determined as follows: Traverse the logical expression, where: If the expression function is traversed, the expression function is put into the expression stack; If the operator is traversed, then: If the expression stack is empty, the currently traversed operator is placed into the operator stack; If the currently traversed operator is a left bracket, the currently traversed operator is placed in the operator stack; if the currently traversed operator is a right bracket, two expression functions are popped from the expression stack and one operator is popped from the operator stack; the two popped expression functions are operated based on the popped operator, and the operation result is placed in the expression stack until the operator popped from the operator stack is a left bracket; If the operator currently traversed is an operator, then if the priority of the operator currently traversed is less than or equal to the priority of the top operator of the operator stack, two expression functions are popped from the expression stack and one operator is popped from the operator stack, and the two expression functions are operated based on the popped operator, and the operation results are placed in the expression stack until the priority of the operator currently traversed is greater than the priority of the top operator, and then the operator currently traversed is placed in the operator stack; if the priority of the operator currently traversed is greater than the priority of the top operator, the operator currently traversed is placed in the operator stack; After the traversal is completed, the target logic function is calculated based on the expression stack and the operator stack.

7. The method according to claim 1, characterized in that The information processing condition is a processing condition corresponding to the live broadcast room, and the input parameter is a characteristic parameter of the live broadcast room. After determining whether the input parameter satisfies the information processing condition, the method further includes: The processing method to be performed on the live broadcast room is determined according to the result of determining whether the input parameter satisfies the information processing condition.

8. The method according to claim 7, characterized in that The processing methods include: Push the target function to the live broadcast room, or cancel the target function for the live broadcast room.

9. An information processing device, characterized in that: The device comprises: A first acquisition unit is used to acquire an objective function and an input parameter of the objective function, wherein the objective function is used to indicate an information processing condition, wherein the information processing condition includes at least one sub-condition, and wherein the objective function is determined according to an expression function corresponding to each sub-condition in the at least one sub-condition, wherein the expression function corresponding to each sub-condition includes: an operator; The first determining unit is used to determine whether the input parameter meets the information processing condition according to the objective function and the input parameter of the objective function.

10. An electronic device, characterized in that: The electronic device comprises a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the electronic device performs the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The method comprises instructions for instructing a device to execute the method according to any one of claims 1 to 8.