CN112308590B - Parameter processing method and device, computing equipment and storage medium - Google Patents

Parameter processing method and device, computing equipment and storage medium Download PDF

Info

Publication number
CN112308590B
CN112308590B CN201910708681.XA CN201910708681A CN112308590B CN 112308590 B CN112308590 B CN 112308590B CN 201910708681 A CN201910708681 A CN 201910708681A CN 112308590 B CN112308590 B CN 112308590B
Authority
CN
China
Prior art keywords
parameter
matching
specified
activity
name
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.)
Active
Application number
CN201910708681.XA
Other languages
Chinese (zh)
Other versions
CN112308590A (en
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 CN201910708681.XA priority Critical patent/CN112308590B/en
Publication of CN112308590A publication Critical patent/CN112308590A/en
Application granted granted Critical
Publication of CN112308590B publication Critical patent/CN112308590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • 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/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • 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/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Data Mining & Analysis (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a parameter processing method and device, computing equipment and storage medium, and relates to the technical field of data processing, comprising the following steps: receiving a parameter name set sent by a client and parameter values corresponding to each parameter name in the parameter name set; searching an activity identifier corresponding to the parameter name set in a preset database table; acquiring a parameter matching rule corresponding to the activity identifier, wherein the parameter matching rule comprises a matching mode, a specified parameter type of each parameter name and a specified parameter value; and calling a matching mode to obtain a matching result between the parameter value corresponding to each parameter name and the specified parameter value and a matching result between the parameter type and the specified parameter type. By the method, the activity parameters can be flexibly configured, the background program code is not required to be continuously modified to realize the modification of the activity parameter configuration, and the configuration efficiency of the activity parameters is improved.

Description

Parameter processing method and device, computing equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing parameters, a computing device, and a storage medium.
Background
In life, people receive various operational activity information, such as: market discount activities, online store goods sales promotion, bank credit card consumption discount activities, and the like. Different operation activities need to be configured with different operation parameters and different operation activity rules, however, in the prior art, the operation parameters and the operation activity rules need to be configured one by one through codes by a background developer, each operation activity corresponds to a set of dead codes, and once the operation activity parameters and the activity parameter rules need to be reconfigured, the background developer needs to rewrite a set of program codes, so that the operation activity information cannot be flexibly configured.
Disclosure of Invention
The embodiment of the application provides a parameter processing method and device, computing equipment and storage medium, which are used for solving the problem of poor flexibility of intelligent terminal control in the prior art.
In a first aspect, an embodiment of the present application provides a parameter processing method, where the method includes:
receiving a parameter name set sent by a client and parameter values corresponding to each parameter name in the parameter name set;
searching an activity identifier corresponding to the parameter name set in a preset database table;
acquiring a parameter matching rule corresponding to the activity identifier, wherein the parameter matching rule comprises a matching mode, a specified parameter type of each parameter name and a specified parameter value;
and calling a matching mode to obtain a matching result between the parameter value corresponding to each parameter name and a specified parameter value and a matching result between the parameter type and the specified parameter type.
Optionally, the method further comprises:
and determining whether the client meets the condition of participating in the activity corresponding to the activity identifier according to the matching result.
Optionally, the determining, according to the matching result, whether the client meets a condition of participating in the activity corresponding to the activity identifier includes:
if the parameter value corresponding to each parameter name matches a specified parameter value and the parameter type of each parameter value matches a specified parameter type, determining whether the client meets the condition of participating in the activity corresponding to the activity identifier or not according to the stored distinguishing information in the preset database table, wherein the distinguishing information comprises the condition that the matching is not met or the condition that the matching is met.
Optionally, the calling a matching manner to obtain a matching result between the parameter value corresponding to each parameter name and the specified parameter value, and a matching result between the parameter type and the specified parameter type, includes:
for each parameter name, if the parameter type of the specified parameter value is of an integer type, matching whether the parameter value is in the value range of the specified parameter value or not;
and if the specified parameter type is a character string type, performing parameter value matching in a regular matching mode or an irregular matching mode.
Optionally, if the parameter names include a plurality of parameter names, obtaining a matching result between a parameter value corresponding to each parameter name and a specified parameter value, and a matching result between a parameter type and a specified parameter type, including:
invoking a splicing rule in a matching mode to splice the parameter values of at least two appointed parameter names in the plurality of parameter names according to an appointed sequence to obtain spliced part parameters and non-spliced part parameters;
for the spliced part parameters and the non-spliced part parameters, the following operations are executed:
and respectively carrying out matching processing on the specified parameter values corresponding to the spliced part parameters and the non-spliced part parameters, and respectively carrying out matching processing on the specified parameter types corresponding to the spliced part parameters and the non-spliced part parameters.
Optionally, the preset database table includes a parameter name table, a parameter activity table and a parameter value table, and the parameter name and the activity identifier are stored in the parameter name table.
Optionally, the method further comprises:
the preset database table is configured according to the following method:
displaying an activity parameter configuration interface, wherein the configuration interface comprises: a parameter name input window, a parameter value input window, an active identification input window and a matching mode selection window;
responding to an operation instruction of a user on the configuration interface, and obtaining a parameter matching rule corresponding to the activity identifier;
and storing the specified parameter values, the specified parameter types and the matching modes included in the parameter matching rules into the preset database table according to preset storage rules.
In a second aspect, an embodiment of the present application provides a parameter processing apparatus, including:
the receiving module is used for receiving a parameter name set sent by the client and parameter values corresponding to each parameter name in the parameter name set;
the searching module is used for searching the activity identifier corresponding to the parameter name set in a preset database table;
the acquisition module is used for acquiring a parameter matching rule corresponding to the activity identifier, wherein the parameter matching rule comprises a matching mode, a specified parameter type of each parameter name and a specified parameter value;
and the calling module is used for calling the matching mode to obtain a matching result between the parameter value corresponding to each parameter name and the specified parameter value and a matching result between the parameter type and the specified parameter type.
Optionally, the apparatus further includes: and the matching module is used for determining whether the client meets the condition of participating in the activity corresponding to the activity identifier according to the matching result.
Optionally, the matching module is configured to:
if the parameter value corresponding to each parameter name matches a specified parameter value and the parameter type of each parameter value matches a specified parameter type, determining whether the client meets the condition of participating in the activity corresponding to the activity identifier or not according to the stored distinguishing information in the preset database table, wherein the distinguishing information comprises the condition that the matching is not met or the condition that the matching is met.
Optionally, the calling module is configured to:
for each parameter name, if the parameter type of the specified parameter value is of an integer type, matching whether the parameter value is in the value range of the specified parameter value or not;
and if the specified parameter type is a character string type, performing parameter value matching in a regular matching mode or an irregular matching mode.
Optionally, if the parameter name includes a plurality of parameter names, the calling module is configured to:
invoking a splicing rule in a matching mode to splice the parameter values of at least two appointed parameter names in the plurality of parameter names according to an appointed sequence to obtain spliced part parameters and non-spliced part parameters;
for the spliced part parameters and the non-spliced part parameters, the following operations are executed:
and respectively carrying out matching processing on the specified parameter values corresponding to the spliced part parameters and the non-spliced part parameters, and respectively carrying out matching processing on the specified parameter types corresponding to the spliced part parameters and the non-spliced part parameters.
Optionally, the preset database table includes a parameter name table, a parameter activity table and a parameter value table, and the parameter name and the activity identifier are stored in the parameter name table.
Optionally, the apparatus further includes: the interface configuration module is used for configuring the preset database table according to the following method;
displaying an activity parameter configuration interface, wherein the configuration interface comprises: a parameter name input window, a parameter value input window, an active identification input window and a matching mode selection window;
responding to an operation instruction of a user on the configuration interface, and obtaining a parameter matching rule corresponding to the activity identifier;
and storing the specified parameter values, the specified parameter types and the matching modes included in the parameter matching rules into the preset database table according to preset storage rules.
In a third aspect, embodiments of the present invention also provide a computing device, comprising:
a memory and a processor;
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and processing the parameters according to any one of the obtained program first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions for causing a computer to perform any one of the parameter processing methods in the embodiments of the present application.
In the method, firstly, a parameter name set sent by a client and parameter values corresponding to each parameter name in the parameter name set are received, then, an activity identifier corresponding to the parameter name set is searched in a preset database table, and then, a parameter matching rule corresponding to the activity identifier is obtained, wherein the parameter matching rule comprises a matching mode, a specified parameter type and a specified parameter value of each parameter name, and finally, the matching mode is called to obtain a matching result between the parameter value corresponding to each parameter name and the specified parameter value and a matching result between the parameter type and the specified parameter type. By the method, the activity parameters can be flexibly configured, the background program code is not required to be continuously modified to realize the modification of the activity parameter configuration, and the configuration efficiency of the activity parameters is improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of a parameter processing method provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a parameter processing method according to an embodiment of the present application;
FIG. 3 is a configuration interface diagram provided in an embodiment of the present application;
FIG. 4 is a flowchart of another parameter processing method according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of an application scenario when parameters are matched according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a parameter processing device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computing device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
With the rapid development of the internet industry, more and more merchants release activity information through the internet, and in the prior art, based on the activity of the internet, a service background is required to match activity parameters sent by a terminal so as to automatically judge whether a user has a condition of participating in the activity. For example: and when the user enters the activity page and clicks a control for participating in the activity to trigger the transmission of the parameters to the service background, the service background needs to perform matching processing on the parameters so as to determine whether the user can meet the conditions for participating in the activity, and then the matching processing of the parameters needs to be realized by writing codes by developers.
If a merchant needs to issue a certain commodity activity information, a background person needs to set a matching rule of activity parameters in the activity information through codes, for example: when a merchant works out the shopping lottery 1 and starts to set up the shopping full 500 elements to participate in the lottery, program codes are required to be written to realize the matching of parameters of the end user. However, after the activity is performed for several days, the customer does not increase, so that the merchant wants to change the shopping lottery 1 into the shopping lottery 2, that is, the shopping lottery is completed by 500 yuan to obtain 50 gold-element coupons and can participate in lottery, and then the background personnel needs to edit the matching rules of the activity parameters by writing the program codes. The efficiency of configuring the active parameters by writing the program codes is low, and the active configuration rules are changed by continuously modifying the program codes, so that the flexibility of parameter configuration is poor. Based on the above, the application provides a parameter processing method to realize flexible configuration of the activity parameters.
Referring to fig. 1, an application scenario of a parameter processing method is provided in the embodiment of the present application, where the scenario includes a user 10, a terminal 11, a service background server 12, a database server 13, an operation and maintenance person 14, and a terminal 15 of the operation and maintenance person.
Before the activities are brought on line, the terminal 15 displays an interface on which the operator can configure parameters, and the operator 14 can configure each activity, as well as parameters required for each activity, and matching rules of the parameters, by simple selection operations or input operations of the input box based on the interface. If the matching rule for the string type parameter is selectable, the character abc must be matched.
After setting the parameters required for the activities and their matching rules, the terminal 15 may store the parameters required for the respective activities and their matching rules in a database table of the database 13 for recall based on the operation of the operation and maintenance personnel 14.
After the activity is on line, the user 10 participating in the activity participates in the activity through the terminal 11 and transmits parameters to be matched to the service background server 12 through the communication network. The service background server calls the database table in the database server 13 to perform the activity parameter matching.
If the matching rule of a certain activity needs to be changed, the operation and maintenance personnel 14 can reconfigure the parameters and the matching rule of the certain activity through the activity parameter configuration interface of the terminal 15 again.
The terminal 11 and the service background server 12 may be in communication connection through a communication network, and the service background server 12 and the database server 13 may be in communication connection through a communication network, where the network may be a local area network, a wide area network, or the like. The terminals 11 and 15 may be mobile phones, tablet computers, notebook computers, personal computers, etc., and the service backend server 12 and the database server 13 may be any server devices capable of supporting corresponding database processing.
The parameter processing method according to the embodiment of the present application is further described below with reference to the accompanying drawings, as shown in fig. 2, and may include the following steps:
step 201: and receiving parameter values corresponding to the parameter names in the parameter name set sent by the client.
It should be noted that the parameter names received from the client may include one or more parameter names, and each parameter name corresponds to a parameter value. This is illustrated by a specific example, such as: aiming at preferential activities of taking a car by adopting on-line subway mobile phone software (Application, APP), taking a subway 7 fold preferential after 9:00 of a working day off-peak time period, and taking a subway 8 fold preferential before 9:00 of a working day off-peak time period, so that parameter names acquired by a client may comprise: the time of riding and the interval of riding, the parameter value corresponding to the time of riding is the time point or the time zone, and the parameter value corresponding to the interval of riding is the station names of two specific subway stations.
Step 202: and searching the activity identifier corresponding to the parameter name set in a preset database table.
Optionally, in an embodiment, it should be noted that, in a preset database, different parameter names may be classified according to a preset rule, and setting a plurality of data tables can avoid the problem of inconvenient management of the table information amount caused by that all information is put in one data table. Optionally, the preset database table includes 3 tables, as shown in tables 1-3, including a parameter name table, a parameter activity table and a parameter value table.
Wherein, as shown in table 1, the parameter name table comprises: an activity identity, a parameter name, a parameter type, a matching rule, and a primary key. As shown in table 2, the parameter activity table includes: activity identification, activity name, start time, and end time. As shown in table 3, the parameter value table includes: the primary key, the associated information of the parameter name table and the parameter value. The parameter value table can be associated with the parameter name table by associating t_paadef table id.
TABLE 1
Figure BDA0002152983750000081
TABLE 2
Figure BDA0002152983750000082
TABLE 3 Table 3
Figure BDA0002152983750000083
Figure BDA0002152983750000091
It should be noted that the number of divided tables and the information in each table are only used to illustrate the embodiments of the present application, and are not limited to the embodiments of the present application. In the implementation, the number of tables and the information contained in each table can be set according to actual needs, which are all applicable to the embodiment of the application.
After having the table above, step 203 may be employed to achieve a match of the activity parameters transmitted by the terminal.
Step 203: and acquiring a parameter matching rule corresponding to the activity identifier, wherein the parameter matching rule comprises a matching mode, a specified parameter type of each parameter name and a specified parameter value.
The matching method is at least one of numerical matching, regular matching and irregular matching.
Alternatively, each parameter name may correspond to a matching manner, or a plurality of parameter names may correspond to the same matching manner, for example, both the parameter A1 and the parameter A2 are numerical parameters, which correspond to numerical matching manners.
Step 204: and calling a matching mode to obtain a matching result between the parameter value corresponding to each parameter name and the specified parameter value and a matching result between the parameter type and the specified parameter type.
For example, if the parameter type of the predetermined parameter value is an integer type, it is matched whether the parameter value is within the value range of the predetermined parameter value. And if the specified parameter type is a character string type, performing parameter value matching in a regular matching mode or an irregular matching mode.
For integer type matching, the matching mode 1 is numerical type matching, the specified parameter type is integer type, the specified parameter value is a parameter value larger than 10, and if the received parameter value is 12, the matching result is that the matching is passed because the received parameter value is larger than 10 and is an integer type parameter; if the set parameter value is an integer with the value between 10 and 30, the matching is passed if the received parameter value is 18, and the 18 is between 10 and 30.
For matching of character string types, for example, a regular matching method requires that a parameter prefix is consistent with a predetermined parameter, and an irregular matching method requires that all characters in the parameter are consistent with a predetermined parameter value. Such as: if the matching mode is regular matching, the specified parameter value is abc, and the received parameter is ab, the regular matching requirement is met; if the matching mode is irregular matching, the specified parameter value is abc, and the received parameter is abc, the irregular matching requirement is met.
By setting the matching rules of the parameters of different parameter types, the classification configuration according to the implementation parameters is facilitated.
In one embodiment, if the parameter names include a plurality of parameter names, matching rules can be flexibly set to realize flexible selection in the configuration of the active parameters. For example, the matching may be performed in a splicing manner, and the parameter values of at least two specified parameter names in the plurality of parameter names are spliced according to a specified sequence by calling a splicing rule in the matching manner to obtain a spliced portion parameter and an un-spliced portion parameter. For the spliced part parameters and the non-spliced part parameters, the following operations are executed:
and respectively carrying out matching processing on the specified parameter values corresponding to the spliced part parameters and the non-spliced part parameters, and respectively carrying out matching processing on the specified parameter types corresponding to the spliced part parameters and the non-spliced part parameters.
In order to clearly illustrate the above-mentioned splicing manner for matching, if a splicing manner is adopted, the spliced parameters can be represented by a field in the corresponding parameter value table. As shown in table 4, assuming that the actual parameter names are 5 parameter 1-parameter 5, the parameter values of the two parameter names of the parameter 1-parameter 2 can be spliced, and the parameter names of the parameter 4-parameter 5 can be only 3 parameter names in the corresponding parameter value table.
TABLE 4 Table 4
Parameter name Parameter value
Parameter 1-parameter 2 Value 1
Parameter 3 Value 2
Parameter 4-parameter 5 Value 3
When the parameters are matched, the parameters 1 and 2 can be spliced, the parameters 4 and 5 can be spliced, the spliced parameters of the parameters 1 and 2 are matched with the corresponding parameter value 1, the spliced parameters of the parameters 4 and 5 are matched with the corresponding parameter value 3, and the parameters 3 are matched with the corresponding parameter value 2. Therefore, when in storage, the table content in the parameter value table can be reduced, so that the storage space is saved, when in matching, the original two times of matching are needed, the matching can be completed only by one time, and the matching efficiency is improved.
In one embodiment, to further determine whether the user meets the condition of participating in the activity, the embodiment of the application may further analyze according to the matching result.
Optionally, as shown in table 5, a piece of discrimination information (only the content added to table 2 is shown in table 5) may be added on the basis of table 2, to indicate whether the parameter matches the upper white list or the blacklist, if the parameter matches the upper white list, the condition of participating in the activity is satisfied, and if the parameter matches the upper blacklist, the condition of participating in the activity is not satisfied. As shown in table 5, the discrimination information includes that the matching satisfies the condition, the matching is a white list, and thus the matching is a condition that the corresponding user satisfies the participation activity. If the judging information is that the matching does not meet the condition, the matching is indicated to be a blacklist, so that the matching is indicated that the corresponding user does not meet the condition of participating in the activity. As for the white list or the black list, it may be determined according to actual needs, for example, if fewer users who meet the activity condition are involved, the white list may be used, and if fewer users who do not meet the activity condition are involved, the black list may be used, so as to reduce the computational complexity of the matching process and the amount of data processed.
TABLE 5
Discrimination information Meet the condition on matching Under-match condition
In one embodiment, to facilitate flexible configuration of database tables, the preset database tables may be configured according to the following method.
Step A1: displaying an activity parameter configuration interface, wherein the configuration interface comprises: a parameter name input window, a parameter value input window, an active identification input window, and a matching mode selection window.
The configuration interface may be as shown in fig. 3.
Step A2: and responding to an operation instruction of a user on a configuration interface, and obtaining a parameter matching rule corresponding to the activity identifier.
Step A3: and storing the specified parameter values, the specified parameter types and the matching modes included in the parameter matching rules into a preset database table according to preset storage rules.
The activity parameters can be flexibly configured through the setting of the configuration interface.
Referring to fig. 4, a method for processing parameters according to an embodiment of the present application includes:
step 401: and receiving parameter values corresponding to the parameter names in the parameter name set sent by the client.
Step 402: and searching the activity identifier corresponding to the parameter name set in a preset database table.
Step 403: and acquiring a parameter matching rule corresponding to the activity identifier, wherein the parameter matching rule comprises a matching mode, a specified parameter type of each parameter name and a specified parameter value.
Step 404: and calling a matching mode to obtain a matching result between the parameter value corresponding to each parameter name and the specified parameter value and a matching result between the parameter type and the specified parameter type.
Step 405: judging whether the parameter values of the parameter names are matched with the upper specified parameter values or not, and judging whether the parameter types of the parameter values are matched with the upper specified parameter types or not; if both match, execute step 406; if not all matches are successful, step 407 is performed.
Step 406: according to the judging information stored in the preset database table, determining whether the parameters of the client meet the conditions of participating in the activities corresponding to the activity identifications or not; if yes, go to step 408; if not, go to step 409.
Step 407: the activity condition is not satisfied.
Step 408: and determining that parameters of the client are matched with the white list, and meeting the participation activity condition.
Step 409: and determining that the parameters of the client are matched with the blacklist, and the condition of parameter activity is not met.
As shown in fig. 5, when a user wants to participate in an activity, the following steps may be performed when the activity parameters are matched:
step S1: an activity request parameter matching request is input to a server through a client.
Step S2: the server inquires whether the local cache has an activity parameter matching rule, if so, the step S3 is executed, and if not, the step S4 is executed.
Step S3: and calling the local cache to match parameters, and then executing step S7.
Step S4: and searching the related data of the activity parameters in the database.
Wherein the related data comprises: matching method, specified parameter name and specified parameter value.
Step S5: and caching the related data searched in the database.
Step S6: and calling the local cache to match parameters, and then executing step S7.
Step S7: and returning the matching result to the client.
And finally, displaying the matching result through the client for the user to check.
In this embodiment, the matching efficiency is improved by defining the parameter type, the parameter value and the matching mode corresponding to the cache activity.
Referring to fig. 6, an embodiment of the present application provides a parameter processing apparatus, which is characterized in that the apparatus includes a receiving module 61, a searching module 62, an obtaining module 63, and a calling module 64.
The receiving module 61 is configured to receive a parameter name set sent by a client and parameter values corresponding to each parameter name in the parameter name set.
And the searching module 62 is configured to search the preset database table for the activity identifier corresponding to the parameter name set.
The obtaining module 63 is configured to obtain a parameter matching rule corresponding to the activity identifier, where the parameter matching rule includes a matching mode, a specified parameter type of each parameter name, and a specified parameter value.
And a calling module 64, configured to call the matching manner, and obtain a matching result between the parameter value corresponding to each parameter name and the specified parameter value, and a matching result between the parameter type and the specified parameter type.
Optionally, the apparatus further includes: and the matching module is used for determining whether the client meets the condition of participating in the activity corresponding to the activity identifier according to the matching result.
Optionally, the matching module is configured to:
if the parameter value corresponding to each parameter name matches a specified parameter value and the parameter type of each parameter value matches a specified parameter type, determining whether the client meets the condition of participating in the activity corresponding to the activity identifier or not according to the stored distinguishing information in the preset database table, wherein the distinguishing information comprises the condition that the matching is not met or the condition that the matching is met.
Optionally, the calling module is configured to:
for each parameter name, if the parameter type of the specified parameter value is of an integer type, matching whether the parameter value is in the value range of the specified parameter value or not;
and if the specified parameter type is a character string type, performing parameter value matching in a regular matching mode or an irregular matching mode.
Optionally, if the parameter name includes a plurality of parameter names, the calling module is configured to:
invoking a splicing rule in a matching mode to splice the parameter values of at least two appointed parameter names in the plurality of parameter names according to an appointed sequence to obtain spliced part parameters and non-spliced part parameters;
for the spliced part parameters and the non-spliced part parameters, the following operations are executed:
and respectively carrying out matching processing on the specified parameter values corresponding to the spliced part parameters and the non-spliced part parameters, and respectively carrying out matching processing on the specified parameter types corresponding to the spliced part parameters and the non-spliced part parameters.
Optionally, the preset database table includes a parameter name table, a parameter activity table and a parameter value table, and the parameter name and the activity identifier are stored in the parameter name table.
Optionally, the apparatus further includes: the interface configuration module is used for configuring the preset database table according to the following method;
displaying an activity parameter configuration interface, wherein the configuration interface comprises: a parameter name input window, a parameter value input window, an active identification input window and a matching mode selection window;
responding to an operation instruction of a user on the configuration interface, and obtaining a parameter matching rule corresponding to the activity identifier;
and storing the specified parameter values, the specified parameter types and the matching modes included in the parameter matching rules into the preset database table according to preset storage rules.
Having described the parameter processing methods and apparatus in exemplary embodiments of the present application, next, a computing apparatus of another exemplary embodiment of the present application is described.
Those skilled in the art will appreciate that the various aspects of the present application may be implemented as a system, method, or program product. Accordingly, aspects of the present application may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
In some possible implementations, a computing device according to the present application may include at least one processor, and at least one memory. Wherein the memory stores a computer program which, when executed by the processor, causes the processor to perform the steps in the parameter processing method according to various exemplary embodiments of the present application described above in the present specification. For example, the processor may perform steps 201-204 as shown in fig. 1.
A computing device 130 according to such an implementation of the present application is described below with reference to fig. 7. The computing device 130 shown in fig. 7 is merely an example and should not be taken as limiting the functionality and scope of use of embodiments of the present application.
As shown in fig. 7, the computing device 130 is embodied in the form of a general purpose computing apparatus. Components of computing device 130 may include, but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting the various system components, including the memory 132 and the processor 131.
Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, and a local bus using any of a variety of bus architectures.
Memory 132 may include readable media in the form of volatile memory such as Random Access Memory (RAM) 1321 and/or cache memory 1322, and may further include Read Only Memory (ROM) 1323.
Memory 132 may also include a program/utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Computing device 130 may also communicate with one or more external devices 134 (e.g., keyboard, pointing device, etc.), and/or with any device (e.g., router, modem, etc.) that enables computing device 130 to communicate with one or more other computing apparatuses. Such communication may occur through an input/output (I/O) interface 135. Moreover, computing device 130 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 136. As shown, network adapter 136 communicates with other modules for computing device 130 over bus 133. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in connection with computing device 130, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In some possible embodiments, aspects of the parameter processing method provided herein may also be implemented in the form of a program product comprising a computer program for causing a computer device to perform the steps of the parameter processing method according to the various exemplary embodiments herein described above when the program product is run on the computer device, e.g. the computer device may perform steps 201-204 as shown in fig. 2.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product for parameter processing of embodiments of the present application may employ a portable compact disc read only memory (CD-ROM) and comprise a computer program and may run on a computing device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave in which a readable computer program is embodied. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer program embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer programs for performing the operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer program may execute entirely on the target object computing device, partly on the target object appliance, as a stand-alone software package, partly on the target object computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the target object computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected over the Internet using an Internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such a division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the elements described above may be embodied in one element in accordance with embodiments of the present application. Conversely, the features and functions of one unit described above may be further divided into a plurality of units to be embodied.
Furthermore, although the operations of the methods of the present application are depicted in the drawings in a particular order, this is not required to or suggested that these operations must be performed in this particular order or that all of the illustrated operations must be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having a computer-usable computer program embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (10)

1. A method of parameter processing, the method comprising:
receiving a parameter name set sent by a client and parameter values corresponding to each parameter name in the parameter name set;
searching an activity identifier corresponding to the parameter name set in a preset database table;
acquiring a parameter matching rule corresponding to the activity identifier, wherein the parameter matching rule comprises a matching mode, a specified parameter type of each parameter name and a specified parameter value;
and calling a matching mode to obtain a matching result between the parameter value corresponding to each parameter name and a specified parameter value and a matching result between the parameter type and the specified parameter type.
2. The method according to claim 1, wherein the method further comprises:
and determining whether the client meets the condition of participating in the activity corresponding to the activity identifier according to the matching result.
3. The method according to claim 2, wherein determining whether the client satisfies a condition of participating in the activity corresponding to the activity identification according to the matching result comprises:
if the parameter value corresponding to each parameter name matches a specified parameter value and the parameter type of each parameter value matches a specified parameter type, determining whether the client meets the condition of participating in the activity corresponding to the activity identifier or not according to the stored distinguishing information in the preset database table, wherein the distinguishing information comprises the condition that the matching is not met or the condition that the matching is met.
4. A method according to claim 3, wherein the calling a matching method to obtain a matching result between the parameter value corresponding to each parameter name and the specified parameter value, and a matching result between the parameter type and the specified parameter type includes:
for each parameter name, if the parameter type of the specified parameter value is of an integer type, matching whether the parameter value is in the value range of the specified parameter value or not;
and if the specified parameter type is a character string type, performing parameter value matching in a regular matching mode or an irregular matching mode.
5. The method according to claim 1, wherein if the parameter names include a plurality of parameter names, obtaining a result of matching between a parameter value corresponding to each parameter name and a prescribed parameter value, and a result of matching between a parameter type and a prescribed parameter type, comprises:
invoking a splicing rule in a matching mode to splice the parameter values of at least two appointed parameter names in the plurality of parameter names according to an appointed sequence to obtain spliced part parameters and non-spliced part parameters;
for the spliced part parameters and the non-spliced part parameters, the following operations are executed:
and respectively carrying out matching processing on the specified parameter values corresponding to the spliced part parameters and the non-spliced part parameters, and respectively carrying out matching processing on the specified parameter types corresponding to the spliced part parameters and the non-spliced part parameters.
6. The method of claim 1, wherein the pre-set database table comprises a parameter name table, a parameter activity table, and a parameter value table, the parameter name and activity identification being stored in the parameter name table.
7. The method according to claim 1, wherein the method further comprises:
configuring the preset database table according to the following method;
displaying an activity parameter configuration interface, wherein the configuration interface comprises: a parameter name input window, a parameter value input window, an active identification input window and a matching mode selection window;
responding to an operation instruction of a user on the configuration interface, and obtaining a parameter matching rule corresponding to the activity identifier;
and storing the specified parameter values, the specified parameter types and the matching modes included in the parameter matching rules into the preset database table according to preset storage rules.
8. A parameter processing apparatus, the apparatus comprising:
the receiving module is used for receiving a parameter name set sent by the client and parameter values corresponding to each parameter name in the parameter name set;
the searching module is used for searching the activity identifier corresponding to the parameter name set in a preset database table;
the acquisition module is used for acquiring a parameter matching rule corresponding to the activity identifier, wherein the parameter matching rule comprises a matching mode, a specified parameter type of each parameter name and a specified parameter value;
and the calling module is used for calling the matching mode to obtain a matching result between the parameter value corresponding to each parameter name and the specified parameter value and a matching result between the parameter type and the specified parameter type.
9. A computing device, comprising: a memory and a processor;
a memory for storing program instructions;
a processor for invoking program instructions stored in said memory and for performing the method of any of claims 1-7 in accordance with the obtained program.
10. A computer storage medium storing computer executable instructions for performing the method of any one of claims 1-7.
CN201910708681.XA 2019-08-01 2019-08-01 Parameter processing method and device, computing equipment and storage medium Active CN112308590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910708681.XA CN112308590B (en) 2019-08-01 2019-08-01 Parameter processing method and device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910708681.XA CN112308590B (en) 2019-08-01 2019-08-01 Parameter processing method and device, computing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112308590A CN112308590A (en) 2021-02-02
CN112308590B true CN112308590B (en) 2023-07-04

Family

ID=74485459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910708681.XA Active CN112308590B (en) 2019-08-01 2019-08-01 Parameter processing method and device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112308590B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113470762B (en) * 2021-05-17 2022-10-18 重庆砼磊高新混凝土有限公司 Concrete formula generation method
CN114579433A (en) * 2022-02-15 2022-06-03 北京达佳互联信息技术有限公司 Page parameter checking method, device, electronic equipment, medium and program product
CN117592911A (en) * 2024-01-19 2024-02-23 天津盛驰精工有限公司 Management method, system, equipment and medium for metal forming processing resources

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6266675B1 (en) * 1997-10-07 2001-07-24 Phycom Corporation System and method for using a relational database to enable the dynamic configuration of an application program
CN104301447A (en) * 2014-09-10 2015-01-21 深圳市高视数字技术有限公司 Software module communication method
CN104715395A (en) * 2015-02-13 2015-06-17 北京集奥聚合科技有限公司 Method and system for filtering cheat clicks
CN108287831A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of URL classification method and system, data processing method and system
CN109101812A (en) * 2018-08-28 2018-12-28 北京神州绿盟信息安全科技股份有限公司 A kind of parameter verification method, apparatus, computing device and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030132956A1 (en) * 2002-01-16 2003-07-17 Sun Microsystems, Inc. Method, system, and program for managing a configuration file including device driver parameters
US8972783B2 (en) * 2011-06-28 2015-03-03 International Business Machines Corporation Systems and methods for fast detection and diagnosis of system outages
US20180211272A1 (en) * 2017-01-20 2018-07-26 Oracle International Corporation Combinatorial optimization using a reduced search space
TW201923684A (en) * 2017-10-02 2019-06-16 美商英佩瑞提芙執行股份有限公司 Systems and methods for optimizing trade execution

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6266675B1 (en) * 1997-10-07 2001-07-24 Phycom Corporation System and method for using a relational database to enable the dynamic configuration of an application program
CN104301447A (en) * 2014-09-10 2015-01-21 深圳市高视数字技术有限公司 Software module communication method
CN104715395A (en) * 2015-02-13 2015-06-17 北京集奥聚合科技有限公司 Method and system for filtering cheat clicks
CN108287831A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of URL classification method and system, data processing method and system
CN109101812A (en) * 2018-08-28 2018-12-28 北京神州绿盟信息安全科技股份有限公司 A kind of parameter verification method, apparatus, computing device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于构造字符串的数据存取方法;陈晓兵;廖文和;;计算机技术与发展(07);全文 *

Also Published As

Publication number Publication date
CN112308590A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN112308590B (en) Parameter processing method and device, computing equipment and storage medium
EP3622394B1 (en) Intelligent cloud management based on profile
CN107844324A (en) Customer terminal webpage redirects treating method and apparatus
CN111324786B (en) Method and device for processing consultation problem information
US20210082026A1 (en) Content-recommendation method and apparatus, electronic device, and system
CN110895472A (en) Method and device for identifying service change
CN105072139A (en) Recommendation method and recommendation device
CN113157947A (en) Knowledge graph construction method, tool, device and server
CN107911449A (en) Method and apparatus for pushed information
CN110798567A (en) Short message classification display method and device, storage medium and electronic equipment
CN109002385A (en) Method for testing pressure and device for data flow system
CN111552463A (en) Page jump method and device, computer equipment and storage medium
CN113297287B (en) Automatic user policy deployment method and device and electronic equipment
CN113591934A (en) Method, device and equipment for arranging business analysis model and storage medium
CN107977876B (en) Method and device for processing order information
CN116661936A (en) Page data processing method and device, computer equipment and storage medium
CN111881392A (en) Page display method and device
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN110796543A (en) Method and device for obtaining customized information based on relational network and electronic equipment
CN110443441A (en) Regular efficacy monitoring method, apparatus, computer equipment and storage medium
CN114693358A (en) Data processing method and device, electronic equipment and storage medium
CN112527991A (en) Information processing method, apparatus and medium
CN109447806B (en) Front-end control method and device, storage medium and electronic equipment
CN111127077A (en) Recommendation method and device based on stream computing
CN117273958A (en) Method, device, equipment and medium for processing kernel protection data based on rule engine

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
GR01 Patent grant
GR01 Patent grant