CN112308590A - 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
CN112308590A
CN112308590A CN201910708681.XA CN201910708681A CN112308590A CN 112308590 A CN112308590 A CN 112308590A CN 201910708681 A CN201910708681 A CN 201910708681A CN 112308590 A CN112308590 A CN 112308590A
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.)
Granted
Application number
CN201910708681.XA
Other languages
Chinese (zh)
Other versions
CN112308590B (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)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a parameter processing method, a parameter processing device, a computing device and a storage medium, which relate to the technical field of data processing and comprise the following steps: receiving a parameter name set sent by a client and parameter values corresponding to parameter names 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 change of the activity parameter configuration is realized without continuously modifying background program codes, 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 application relates to the field of data processing technologies, and in particular, to a parameter processing method and apparatus, a computing device, and a storage medium.
Background
In life, people receive various operation activity information, such as: market discounting activities, online store sales promotion, bank credit card consumption discounting 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 background research and development personnel, each operation activity corresponds to a set of written-down codes, once the operation activity parameters and the operation activity parameter rules need to be reconfigured, the background research and development personnel need 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 a 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 parameter names 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.
Optionally, the method further includes:
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 for participating in the activity corresponding to the activity identifier includes:
and if the parameter values corresponding to the parameter names match with the specified parameter values and the parameter types of the parameter values match with the specified parameter types, determining whether the client side meets the conditions for participating in the activity corresponding to the activity identifier according to judgment information stored in the preset database table, wherein the judgment information comprises the condition that the client side does not meet the conditions on matching or the condition that the client side meets the conditions on matching.
Optionally, the invoking the 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:
aiming at each parameter name, if the parameter type of the specified parameter value is integer, whether the matching parameter value is in the value range of the specified parameter value is judged;
and if the specified parameter type is a character string type, matching the parameter values in a regular matching mode or a non-regular matching mode.
Optionally, if the parameter names include a plurality of parameter names, obtaining 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, including:
calling a splicing rule in a matching mode to splice the parameter values of at least two specified parameter names in the plurality of parameter names according to a specified sequence to obtain a spliced part parameter and an un-spliced part parameter;
for the spliced part parameter and the un-spliced part parameter, executing the following operations:
and respectively matching specified parameter values corresponding to the parameters of the spliced part and the parameters of the un-spliced part, and respectively matching specified parameter types corresponding to the parameters of the spliced part and the parameters of the un-spliced part.
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:
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 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 a client and parameter values corresponding to all parameter names in the parameter name set;
the searching module is used for searching the activity identification 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 comprises: and the matching module is used for determining whether the client side meets the condition of participating in the activity corresponding to the activity identification according to the matching result.
Optionally, the matching module is configured to:
and if the parameter values corresponding to the parameter names match with the specified parameter values and the parameter types of the parameter values match with the specified parameter types, determining whether the client side meets the conditions for participating in the activity corresponding to the activity identifier according to judgment information stored in the preset database table, wherein the judgment information comprises the condition that the client side does not meet the conditions on matching or the condition that the client side meets the conditions on matching.
Optionally, the invoking module is configured to:
aiming at each parameter name, if the parameter type of the specified parameter value is integer, whether the matching parameter value is in the value range of the specified parameter value is judged;
and if the specified parameter type is a character string type, matching the parameter values in a regular matching mode or a non-regular matching mode.
Optionally, if the parameter names include a plurality of parameter names, the calling module is configured to:
calling a splicing rule in a matching mode to splice the parameter values of at least two specified parameter names in the plurality of parameter names according to a specified sequence to obtain a spliced part parameter and an un-spliced part parameter;
for the spliced part parameter and the un-spliced part parameter, executing the following operations:
and respectively matching specified parameter values corresponding to the parameters of the spliced part and the parameters of the un-spliced part, and respectively matching specified parameter types corresponding to the parameters of the spliced part and the parameters of the un-spliced part.
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 comprises: 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, an embodiment of the present invention further provides a computing device, including:
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 first aspect of the obtained program.
In a fourth aspect, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions are configured to cause a computer to execute any parameter processing method in the embodiment of the present application.
According to the parameter processing method, the parameter name set and parameter values corresponding to all parameter names in the parameter name set are received at first, then an activity mark corresponding to the parameter name set is searched in a preset database table, then a parameter matching rule corresponding to the activity mark is obtained, wherein the parameter matching rule comprises a matching mode, specified parameter types of all parameter names and specified parameter values, and finally the matching mode is called to obtain a matching result between the parameter values corresponding to all parameter names and the specified parameter values and a matching result between the parameter types and the specified parameter types. By the method, the activity parameters can be flexibly configured, the change of the activity parameter configuration is realized without continuously modifying background program codes, 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 the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof 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 needed to be used 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 it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a parameter processing method according to 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 by an embodiment of the present application;
fig. 4 is a schematic flowchart of another parameter processing method according to an embodiment of the present application;
fig. 5 is a schematic view 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 apparatus 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 clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
With the rapid development of the internet industry, more and more merchants issue activity information through the internet, and in the prior art, based on the activities of the internet, a service background is required to perform matching processing on activity parameters sent by a terminal, so as to automatically judge whether a user has a condition for participating in the activities. For example: and the user enters an activity page, clicks a control participating in the activity, and triggers the sending of the parameters to the service background, so that the service background needs to perform matching processing on the parameters to determine whether the user can meet the conditions of participating in the activity, and the matching processing of the parameters needs developers to write codes to realize the matching processing.
If a merchant needs to issue activity information of a certain commodity, background personnel are required to set a matching rule of activity parameters in the activity information through a code, for example: when a certain merchant finds out the shopping lottery activity 1 and begins to set that the lottery can be played after shopping for 500 yuan, program codes need to be written to realize the matching of the parameters of the end users. However, after the activity is executed for several days, the number of customers is not increased, so that the merchant wants to change the shopping lottery activity 1 to the shopping lottery activity 2, namely, the merchant is full of 500 yuan, obtains 50-element cash voucher and can participate in lottery, and the backstage supporter needs to edit the matching rule of the activity parameter by writing program codes. The efficiency of configuring the activity parameters by writing the program codes is low, and the flexibility of parameter configuration is poor because the program codes are continuously modified to change the activity configuration rules. Based on this, the application provides a parameter processing method to realize flexible configuration of activity parameters.
Referring to fig. 1, an application scenario diagram 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 online, the terminal 15 displays an interface for the operation and maintenance personnel to configure the parameters, and the operation and maintenance personnel 14 can configure each activity, the parameters required by each activity and the matching rules of the parameters through simple selection operation or input operation of an input box based on the interface. E.g. the matching rule for the string-type parameters may be chosen to be that the upper character abc must be matched.
After the parameters required for the activities and the matching rules thereof are set, the terminal 15 may store the parameters required for each activity and the matching rules thereof in the database table of the database 13 for calling based on the operation of the operation and maintenance personnel 14.
After the activity is on line, the users 10 participating in the activity participate in the activity through the terminal 11 and transmit the parameters needing 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 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 of the certain activity and the matching rule 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 via a communication network, and the service background server 12 and the database server 13 are in communication connection via a communication network, where the network may be a local area network, a wide area network, or the like. The terminal 11 and the terminal 15 may be a mobile phone, a tablet computer, a notebook computer, a personal computer, etc., and the service background server 12 and the database server 13 may be any server devices capable of supporting corresponding database processing.
The parameter processing method provided by the embodiment of the present application is further described below with reference to the accompanying drawings, and as shown in fig. 2, the method may include the following steps:
step 201: and receiving the parameter name set sent by the client and the parameter values corresponding to the parameter names in the parameter name set.
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 one parameter value. This is illustrated here by a specific example, such as: for preferential activities of taking a bus by using on-line subway mobile phone software (APP), a preferential event is given by 7 discount when the client terminal takes the subway after a weekday off-duty low peak time period, namely after 9:00 evening, and a preferential event is given by 8 discount when the client terminal takes the subway before 9:00 evening, so that parameter names acquired by the client terminal may include: the method comprises the following steps of taking a bus time and taking a bus section, wherein the parameter value corresponding to the taking time is a time point or a time period, and the parameter value corresponding to the taking section is the station names of two concrete subway stations.
Step 202: and searching an activity identifier corresponding to the parameter name set in a preset database table.
Optionally, in an embodiment, it should be noted that different parameter names may be classified in a preset database according to preset rules, and setting a plurality of data tables can avoid a problem that a large amount of table information is inconvenient to manage because all information is put in one data table. Optionally, the preset database table includes 3 tables, as shown in tables 1 to 3, which are a parameter name table, a parameter activity table, and a parameter value table, respectively.
As shown in table 1, the parameter name table includes: activity identification, parameter name, parameter type, matching rule and primary key. As shown in table 2, the parameter activity table includes: an activity identification, an activity name, a start time, and an end time. As shown in table 3, the parameter value table includes: primary key words, associated information of the parameter name table and parameter values. Wherein, the parameter value table can be associated with the parameter name table by associating the t _ paradef table id.
TABLE 1
Figure BDA0002152983750000081
TABLE 2
Figure BDA0002152983750000082
TABLE 3
Figure BDA0002152983750000083
Figure BDA0002152983750000091
It should be noted that the number of the divided tables and the information in each table are only used for illustrating the embodiment of the present application, and are not used for limiting the embodiment of the present application. In specific implementation, the number of tables and the information contained in each table can be set according to actual needs, and the method and the device are suitable for the embodiment of the application.
After having the above table, step 203 can be adopted to implement matching of the activity parameters transmitted from 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, for example, at least one of a numerical matching method, a regular matching method, and an irregular matching method.
Optionally, each parameter name may correspond to one matching mode, or multiple parameter names may correspond to the same matching mode, for example, the parameter a1 and the parameter a2 are both numerical parameters, and both of them correspond to numerical matching modes.
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 specified parameter value is integer, whether the matching parameter value is within the value range of the specified parameter value is determined. And if the specified parameter type is a character string type, matching the parameter values in a regular matching mode or a non-regular matching mode.
For integer matching, the matching mode 1 is numerical matching, the specified parameter type is integer, and the specified parameter value is greater than 10, both the specified parameter type and the specified parameter value meet the requirements, if the received parameter value is 12, the matching result is that the matching is passed because 12 is greater than 10 and is an integer parameter; if the specified parameter value is an integer with a value between 10 and 30, the matching is passed because 18 is between 10 and 30 if the received parameter value is 18.
For the character string type matching, for example, the regular matching method requires that the parameter prefix is consistent with the predetermined parameter, and the irregular matching method requires that all the characters in the parameter are consistent with the 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 requirement of the regular matching is met; and if the matching mode is irregular matching, the specified parameter value is abc, and the received parameter is abc, the requirement of irregular matching is met.
By setting matching rules of different parameter types, the classification configuration according to the implementation parameters is facilitated.
In one embodiment, if the parameter name comprises a plurality of parameter names, the matching rule can be flexibly set to realize flexible selection in activity parameter configuration. For example, the matching can be performed by a splicing mode, and the parameters 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 mode to obtain a spliced part parameter and an un-spliced part parameter. For the spliced part parameter and the un-spliced part parameter, executing the following operations:
and respectively matching specified parameter values corresponding to the parameters of the spliced part and the parameters of the un-spliced part, and respectively matching specified parameter types corresponding to the parameters of the spliced part and the parameters of the un-spliced part.
For clarity, if the splicing method is adopted for matching, the parameters of the splicing can be represented by a field in the corresponding parameter value table. As shown in table 4, it is assumed that 5 actual parameter names are respectively parameter 1-parameter 5, wherein the parameter values of two parameter names of parameter 1-parameter 2 can be spliced, and the parameter names of parameter 4-parameter 5 in the parameter value table can be only 3.
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 parameters after the parameters 1 and 2 are spliced are matched with one corresponding parameter value 1, the parameters after the parameters 4 and 5 are spliced are matched with one corresponding parameter value 3, and the parameters 3 are matched with the corresponding parameter values 2. Therefore, during storage, the table content in the parameter value table can be reduced, so that the storage space is saved, during matching, two times of matching which are originally required can be completed only by one time of matching, and the matching efficiency is improved.
In one embodiment, in order to further determine whether the user meets the condition for participating in the activity, the embodiment of the present application may further analyze the user according to the matching result.
Optionally, as shown in table 5, on the basis of table 2, discrimination information (only contents added to table 2 are shown in table 5) may be added to indicate whether the parameters match the white list or the black list after matching, where if the parameters match the white list, the conditions for participating in the activity are satisfied, and if the parameters match the black list, the conditions for participating in the activity are not satisfied. As shown in table 5, the judgment information includes that the matching satisfies the condition, which indicates that the matching is the white list, and thus the matching indicates that the corresponding user satisfies the condition for participating in the activity. If the judgment information is that the condition is not met in the matching, the matching is represented by the blacklist, so that the matching is represented by the condition that the corresponding user is not met in the participation activity. Whether a white list or a black list is used may be determined according to actual needs, for example, if there are fewer users who satisfy the activity participation condition, the white list may be used, and if there are fewer users who do not satisfy the activity participation condition, 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 Satisfies the condition on matching Not satisfying the condition on the match
In one embodiment, to facilitate flexible configuration of the 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 activity 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 parameter processing method provided in the embodiment of the present application includes:
step 401: and receiving the parameter name set sent by the client and the parameter values corresponding to the parameter names in the parameter name set.
Step 402: and searching an 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 value of each parameter name is matched with the specified parameter value or not and whether the parameter type of each parameter value is matched with the specified parameter type or not; if both match, go to step 406; if not, go to step 407.
Step 406: determining whether the parameters of the client meet the conditions for participating in the activity corresponding to the activity identifier according to the stored discrimination information in a preset database table; 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 the parameters of the client are matched with the white list to meet the activity participation condition.
Step 409: and determining that the parameters of the client are matched with the blacklist and do not meet the conditions of parameter activities.
As described in detail below with reference to the practical application of the user, as shown in fig. 5, when a user wants to participate in an activity, the following steps may be performed:
step S1: and inputting an activity request parameter matching request to the server through the client.
Step S2: the server inquires whether the activity parameter matching rule exists in the local cache, if so, the step S3 is executed, and if not, the step S4 is executed.
Step S3: the local cache is called for parameter matching, and then step S7 is executed.
Step S4: and searching the relevant data of the activity parameter in a database.
Wherein the relevant data comprises: a matching method, a specified parameter name, and a specified parameter value.
Step S5: and caching the related data searched in the database.
Step S6: the local cache is called for parameter matching, and then step S7 is executed.
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 the type of the specified parameter, the specified parameter value, and the matching method corresponding to the caching activity.
Referring to fig. 6, an embodiment of the present application provides a parameter processing apparatus, which 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 a parameter value corresponding to each parameter name in the parameter name set.
And the searching module 62 is configured to search the activity identifier corresponding to the parameter name set in a preset database table.
An obtaining module 63, 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.
The invoking module 64 is configured to invoke the matching manner, so as 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 comprises: and the matching module is used for determining whether the client side meets the condition of participating in the activity corresponding to the activity identification according to the matching result.
Optionally, the matching module is configured to:
and if the parameter values corresponding to the parameter names match with the specified parameter values and the parameter types of the parameter values match with the specified parameter types, determining whether the client side meets the conditions for participating in the activity corresponding to the activity identifier according to judgment information stored in the preset database table, wherein the judgment information comprises the condition that the client side does not meet the conditions on matching or the condition that the client side meets the conditions on matching.
Optionally, the invoking module is configured to:
aiming at each parameter name, if the parameter type of the specified parameter value is integer, whether the matching parameter value is in the value range of the specified parameter value is judged;
and if the specified parameter type is a character string type, matching the parameter values in a regular matching mode or a non-regular matching mode.
Optionally, if the parameter names include a plurality of parameter names, the calling module is configured to:
calling a splicing rule in a matching mode to splice the parameter values of at least two specified parameter names in the plurality of parameter names according to a specified sequence to obtain a spliced part parameter and an un-spliced part parameter;
for the spliced part parameter and the un-spliced part parameter, executing the following operations:
and respectively matching specified parameter values corresponding to the parameters of the spliced part and the parameters of the un-spliced part, and respectively matching specified parameter types corresponding to the parameters of the spliced part and the parameters of the un-spliced part.
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 comprises: 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 method and apparatus in the exemplary embodiment of the present application, a computing apparatus of another exemplary embodiment of the present application is described next.
As will be appreciated by one skilled in the art, aspects of the present application may be embodied as a system, method or program product. Accordingly, various aspects of the present application may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally 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 of 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.
The computing device 130 according to this embodiment of the present application is described below with reference to fig. 7. The computing device 130 shown in fig. 7 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present application.
As shown in FIG. 7, 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 that connects the various system components (including the memory 132 and the processor 131).
Bus 133 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The 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 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The 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 the computing device 130 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 135. Also, computing device 130 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via network adapter 136. As shown, network adapter 136 communicates with other modules for computing device 130 over bus 133. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computing device 130, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In some possible embodiments, various aspects of the parameter processing method provided in the present application may also be implemented in the form of a program product including a computer program for causing a computer device to perform the steps in the parameter processing method according to various exemplary embodiments of the present application described above in this specification when the program product is run on the computer device, for example, the computer device may perform the 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. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc 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 the embodiments of the present application may employ a portable compact disc read only memory (CD-ROM) and include a computer program, and may be 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.
A readable signal medium may include a propagated data signal with a readable computer program embodied therein, either in baseband or as part of a carrier wave. 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 thereof. 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 carrying out 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 apparatus, as a stand-alone software package, partly on the target object computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the target object computing device over 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., 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 division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units described above may be embodied in one unit, according to embodiments of the application. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 the 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. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

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 parameter names 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.
2. The method of claim 1, further comprising:
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 the determining whether the client meets the condition for participating in the activity corresponding to the activity identifier according to the matching result comprises:
and if the parameter values corresponding to the parameter names match with the specified parameter values and the parameter types of the parameter values match with the specified parameter types, determining whether the client side meets the conditions for participating in the activity corresponding to the activity identifier according to judgment information stored in the preset database table, wherein the judgment information comprises the condition that the client side does not meet the conditions on matching or the condition that the client side meets the conditions on matching.
4. The method according to claim 3, wherein the invoking the matching manner to obtain the matching result between the parameter value corresponding to each parameter name and the specified parameter value and the matching result between the parameter type and the specified parameter type comprises:
aiming at each parameter name, if the parameter type of the specified parameter value is integer, whether the matching parameter value is in the value range of the specified parameter value is judged;
and if the specified parameter type is a character string type, matching the parameter values in a regular matching mode or a non-regular matching mode.
5. The method of claim 1, wherein obtaining 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 if the parameter names include a plurality of parameter names comprises:
calling a splicing rule in a matching mode to splice the parameter values of at least two specified parameter names in the plurality of parameter names according to a specified sequence to obtain a spliced part parameter and an un-spliced part parameter;
for the spliced part parameter and the un-spliced part parameter, executing the following operations:
and respectively matching specified parameter values corresponding to the parameters of the spliced part and the parameters of the un-spliced part, and respectively matching specified parameter types corresponding to the parameters of the spliced part and the parameters of the un-spliced part.
6. The method of claim 1, wherein the predetermined database tables include a parameter name table, a parameter activity table, and a parameter value table, and wherein the parameter name and the activity identifier are stored in the parameter name table.
7. The method of claim 1, further comprising:
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. An apparatus for processing parameters, the apparatus comprising:
the receiving module is used for receiving a parameter name set sent by a client and parameter values corresponding to all parameter names in the parameter name set;
the searching module is used for searching the activity identification 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 calling program instructions stored in said memory to execute the method of any one of claims 1 to 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 true CN112308590A (en) 2021-02-02
CN112308590B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113470762A (en) * 2021-05-17 2021-10-01 重庆砼磊混凝土有限公司 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 (9)

* 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
US20030132956A1 (en) * 2002-01-16 2003-07-17 Sun Microsystems, Inc. Method, system, and program for managing a configuration file including device driver parameters
US20130007538A1 (en) * 2011-06-28 2013-01-03 International Business Machines Corporation Systems and methods for fast detection and diagnosis of system outages
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
US20180211272A1 (en) * 2017-01-20 2018-07-26 Oracle International Corporation Combinatorial optimization using a reduced search space
CN109101812A (en) * 2018-08-28 2018-12-28 北京神州绿盟信息安全科技股份有限公司 A kind of parameter verification method, apparatus, computing device and storage medium
US20190102838A1 (en) * 2017-10-02 2019-04-04 Imperative Execution Inc Systems and methods for optimizing trade execution

Patent Citations (9)

* 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
US20030132956A1 (en) * 2002-01-16 2003-07-17 Sun Microsystems, Inc. Method, system, and program for managing a configuration file including device driver parameters
US20130007538A1 (en) * 2011-06-28 2013-01-03 International Business Machines Corporation Systems and methods for fast detection and diagnosis of system outages
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
US20180211272A1 (en) * 2017-01-20 2018-07-26 Oracle International Corporation Combinatorial optimization using a reduced search space
US20190102838A1 (en) * 2017-10-02 2019-04-04 Imperative Execution Inc Systems and methods for optimizing trade execution
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
陈晓兵;廖文和;: "一种基于构造字符串的数据存取方法", 计算机技术与发展, no. 07 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113470762A (en) * 2021-05-17 2021-10-01 重庆砼磊混凝土有限公司 Concrete formula generation method
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
CN117592911B (en) * 2024-01-19 2024-05-28 天津盛驰精工有限公司 Management method, system, equipment and medium for metal forming processing resources

Also Published As

Publication number Publication date
CN112308590B (en) 2023-07-04

Similar Documents

Publication Publication Date Title
CN112308590B (en) Parameter processing method and device, computing equipment and storage medium
US20210082026A1 (en) Content-recommendation method and apparatus, electronic device, and system
CN111324786B (en) Method and device for processing consultation problem information
CN105183912A (en) Abnormal log determination method and device
CN112380227B (en) Data synchronization method, device, equipment and storage medium based on message queue
WO2016101811A1 (en) Information arrangement method and apparatus
CN105072139A (en) Recommendation method and recommendation device
EP4163801A1 (en) Auxiliary implementation method and apparatus for online prediction using machine learning model
CN112860662A (en) Data blood relationship establishing method and device, computer equipment and storage medium
US11798006B1 (en) Automating content and information delivery
CN111552463A (en) Page jump method and device, computer equipment and storage medium
CN110309142A (en) The method and apparatus of regulation management
US20180129664A1 (en) System and method to recommend a bundle of items based on item/user tagging and co-install graph
CN112363814A (en) Task scheduling method and device, computer equipment and storage medium
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN116661936A (en) Page data processing method and device, computer equipment and storage medium
CN113254106B (en) Task execution method and device based on Flink, computer equipment and storage medium
CN111859154B (en) Application recommendation method and device
CN110263044B (en) Data storage method, device, equipment and computer readable storage medium
CN111127077A (en) Recommendation method and device based on stream computing
CN111950770A (en) Method and device for managing resource return auxiliary strategy and electronic equipment
CN112395366A (en) Data processing and creating method and device of distributed database and electronic equipment
CN117111957A (en) Code generation method, device, computer equipment and storage medium
CN113806372A (en) New data information construction method and device, computer equipment and storage medium
CN116483327A (en) Function point generation method and device, electronic equipment and computer storage medium

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