Parameter filtering method, device, equipment and medium

By introducing parameter filtering methods in the bank information system and filtering request parameters using presets and custom rules, the problem of complex and costly traditional parameter adjustment methods is solved, and faster and more flexible parameter adjustment is achieved.

CN119646051APending Publication Date: 2025-03-18AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411716942.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The traditional bank information system parameter adjustment method relies on manual modification of source code, resulting in complex operations, high time and labor costs, extended update cycles, and reduced response speed and flexibility.

Method used

Provides a parameter filtering method, which obtains request parameters by receiving the address request, and performs parameter filtering according to preset and custom parameter filtering rules. The priority of preset rules is higher than that of custom rules, and the filtered parameters are directly adjusted to avoid directly modifying the source code.

Benefits of technology

It reduces the time and labor cost of parameter adjustment, improves response speed and flexibility, and enables the bank information system to respond more quickly to changes in business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119646051A_ABST
    Figure CN119646051A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a parameter filtering method and device, equipment and a medium, and relates to the technical field of data processing. The parameter filtering method comprises the following steps: when a parameter entry request is received, obtaining a request parameter corresponding to the parameter entry request; a parameter filtering rule corresponding to the request parameter is determined, the parameter filtering rule comprises a preset parameter filtering rule and a user-defined parameter filtering rule, and the priority of the preset parameter filtering rule is higher than that of the user-defined parameter filtering rule; and performing parameter filtering on the request parameter according to the parameter filtering rule. Therefore, after the request parameters are filtered through the parameter filtering rule matched with the request parameters, the filtered request parameters are directly adjusted. The complexity and high risk of directly modifying the source code are avoided, the time cost and the labor cost of parameter adjustment are reduced, the response speed and the flexibility of parameter adjustment are improved, and a bank information system can respond to the change of business requirements more quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a parameter filtering method, device, equipment and medium. Background Art

[0002] In the current era of rapid development of informatization, with the continuous development and change of banking business, in order to meet the ever-changing business needs, it is usually necessary to frequently adjust the parameters of the banking information system. Traditional parameter adjustment methods mostly rely on manual modification of source code by relevant technicians.

[0003] However, this method is not only complicated to operate, but also comes with a lot of verification, testing and inspection work, which not only consumes a lot of time and manpower costs, but also makes the update cycle of the bank information system unnecessarily extended, reducing the response speed and flexibility of the bank information system. Summary of the invention

[0004] Based on the above problems, the present application provides a parameter filtering method, device, equipment and medium, which can reduce the time cost and labor cost of parameter adjustment and improve the response speed and flexibility of parameter adjustment.

[0005] The embodiments of the present application disclose the following technical solutions:

[0006] In a first aspect, the present application discloses a parameter filtering method, the method comprising:

[0007] When receiving an input parameter request, obtaining request parameters corresponding to the input parameter request;

[0008] Determine a parameter filtering rule corresponding to the request parameter, wherein the parameter filtering rule includes a preset parameter filtering rule and a custom parameter filtering rule, and the priority of the preset parameter filtering rule is higher than the priority of the custom parameter filtering rule;

[0009] The request parameters are filtered according to the parameter filtering rule.

[0010] Optionally, the method of filtering the request parameters according to the preset parameter filtering rule is as follows:

[0011] Determining the ignore rules and verification rules indicated by the preset parameter filtering rules;

[0012] Removing the parameters to be ignored indicated by the ignore rule from the request parameters to obtain filtered request parameters;

[0013] According to the verification rule, the filtered request parameters are filtered.

[0014] Optionally, the preset parameter filtering rule indicates a log recording rule; after performing the parameter filtering on the request parameter, the method further includes:

[0015] If the log recording rule indicates recording the parameter filtering result of the request parameter, generating a parameter filtering log according to the parameter filtering result;

[0016] The parameter filtering log is stored in a non-relational database storage.

[0017] Optionally, determining a parameter filtering rule corresponding to the request parameter includes:

[0018] Obtaining information about the interface that receives the input parameter request;

[0019] Determine a parameter filtering rule corresponding to both the request parameter and the interface information.

[0020] Optionally, the preset parameter filtering rule is located in at least one of a distributed memory, a local cache, and a relational database memory.

[0021] In a second aspect, the present application discloses a parameter filtering device, the device comprising: a parameter acquisition module, a rule determination module and a parameter filtering module;

[0022] The parameter acquisition module is used to obtain the request parameters corresponding to the input parameter request when receiving the input parameter request;

[0023] The rule determination module is used to determine a parameter filtering rule corresponding to the request parameter, wherein the parameter filtering rule includes a preset parameter filtering rule and a custom parameter filtering rule, and the priority of the preset parameter filtering rule is higher than the priority of the custom parameter filtering rule;

[0024] The parameter filtering module is used to perform parameter filtering on the request parameters according to the parameter filtering rules.

[0025] Optionally, the unit for filtering the request parameters according to the preset parameter filtering rule is as follows:

[0026] A determination unit, used to determine the ignore rule and the verification rule indicated by the preset parameter filtering rule;

[0027] a removing unit, removing the parameters to be ignored indicated by the ignoring rule from the request parameters, to obtain the filtered request parameters;

[0028] The filtering unit is used to perform parameter filtering on the filtered request parameters according to the verification rules.

[0029] Optionally, the preset parameter filtering rule indicates a log recording rule; the device further comprises: a log generating module and a log storing module;

[0030] The log generation module is used to generate a parameter filtering log according to the parameter filtering result if the log recording rule indicates to record the parameter filtering result of the request parameter;

[0031] The log storage module is used to store the parameter filtering log in a non-relational database storage.

[0032] Optionally, the rule determination module is specifically used to: obtain interface information that receives the input parameter request; and determine a parameter filtering rule that corresponds to both the request parameter and the interface information.

[0033] Optionally, the preset parameter filtering rule is located in at least one of a distributed memory, a local cache, and a relational database memory.

[0034] In a third aspect, the present application discloses a parameter filtering device, the device comprising: a memory and a processor;

[0035] The memory is used to store programs;

[0036] The processor is used to execute the program to implement the various steps of the parameter filtering method as described in the first aspect.

[0037] In a fourth aspect, the present application discloses a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, the various steps of the parameter filtering method described in the first aspect are implemented.

[0038] Compared with the prior art, this application has the following beneficial effects:

[0039] The embodiments of the present application provide a parameter filtering method, device, equipment and medium, and the parameter filtering method includes: when receiving an input parameter request, obtaining the request parameters corresponding to the input parameter request; determining the parameter filtering rules corresponding to the request parameters, wherein the parameter filtering rules include preset parameter filtering rules and custom parameter filtering rules, and the priority of the preset parameter filtering rules is higher than the priority of the custom parameter filtering rules; according to the parameter filtering rules, the request parameters are parameter filtered. Thus, after the request parameters are parameter filtered by the parameter filtering rules that match the request parameters, the filtered request parameters are directly adjusted. This not only avoids the tediousness and high risk of directly modifying the source code, and reduces the time cost and labor cost of parameter adjustment, but also improves the response speed and flexibility of parameter adjustment, so that the bank information system can respond to changes in business needs more quickly. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0041] Figure 1 A flow chart of a parameter filtering method provided in an embodiment of the present application;

[0042] Figure 2 A flowchart of another parameter filtering method provided in an embodiment of the present application;

[0043] Figure 3 A schematic diagram of a method for generating a preset parameter filtering rule provided in an embodiment of the present application;

[0044] Figure 4 A flowchart of an initial parameter filtering rule for generating parameters provided in an embodiment of the present application;

[0045] Figure 5 A schematic diagram of a multi-level cache storage unit provided in an embodiment of the present application;

[0046] Figure 6 A schematic diagram of a filter device access unit provided in an embodiment of the present application;

[0047] Figure 7 A schematic diagram of parameter logging provided in an embodiment of the present application;

[0048] Figure 8 A schematic diagram of a parameter filtering device provided in an embodiment of the present application;

[0049] Fig. 9 A schematic diagram of a computer-readable medium provided for an embodiment of the present application. DETAILED DESCRIPTION

[0050] As described above, traditional parameter adjustment methods mostly rely on manual modification of source code by relevant technicians. However, this method is not only complicated to operate, but also accompanied by a lot of verification, testing and inspection workload. This not only consumes a lot of time and manpower costs, but also makes the update cycle of the bank information system unnecessarily extended, reducing the response speed and flexibility of the bank information system.

[0051] After research, the inventor proposed a parameter filtering method, device, equipment and medium. The parameter filtering method includes: when receiving an input parameter request, obtaining the request parameters corresponding to the input parameter request; determining the parameter filtering rules corresponding to the request parameters, wherein the parameter filtering rules include preset parameter filtering rules and custom parameter filtering rules, and the priority of the preset parameter filtering rules is higher than the priority of the custom parameter filtering rules; according to the parameter filtering rules, the request parameters are parameter filtered. Thus, after the request parameters are parameter filtered by the parameter filtering rules that match the request parameters, the filtered request parameters are directly adjusted. This not only avoids the tediousness and high risk of directly modifying the source code, and reduces the time cost and labor cost of parameter adjustment, but also improves the response speed and flexibility of parameter adjustment, so that the bank information system can respond to changes in business needs more quickly.

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

[0053] See also Figure 1 , which is a flow chart of a parameter filtering method provided in an embodiment of the present application. The method includes:

[0054] S101: When an input parameter request is received, obtain request parameters corresponding to the input parameter request.

[0055] An input request is a request sent by a client (such as a browser, mobile application, etc.) to a server. This request contains some data or instructions that the client wants the server to process. Request parameters are specific data items carried in an input request. These data items are used to describe the details and context of the input request. Request parameters can be various types of data, such as strings, numbers, Boolean values, etc.

[0056] After receiving the input request, the server needs to extract these specific request parameters from the input request. The extraction method depends on the format of the input request, which can be HTTP GET format, HTTP POST format, etc. In HTTP GET requests, request parameters are usually attached to the query string part; in HTTP POST requests, request parameters are included in the request body. This application does not limit the specific format.

[0057] It should be noted that after obtaining the request parameters corresponding to the input request, the request parameters can also be preliminarily verified, such as checking whether the request parameters are empty, whether the request parameter types are correct, whether the request parameter values ​​are within a reasonable range, etc. This application does not limit this.

[0058] S102: Determine a parameter filtering rule corresponding to the request parameter, wherein the parameter filtering rule includes a preset parameter filtering rule and a custom parameter filtering rule, and the priority of the preset parameter filtering rule is higher than the priority of the custom parameter filtering rule.

[0059] Parameter filtering rules are a set of rules that define how to validate and filter request parameters. These rules are designed to ensure the security, validity, and consistency of request parameters. Parameter filtering rules include preset parameter filtering rules and custom parameter filtering rules.

[0060] Among them, the preset parameter filtering rules are pre-defined and are usually used to handle common and general parameter verification requirements. In one example, the preset parameter filtering rules may include: ensuring that the type of the request parameter meets expectations. For example, amount should be a number. In another example, the preset parameter filtering rules may also include: ensuring that the value of the request parameter is within a reasonable range. For example, amount should be a positive number. In one example, the preset parameter filtering rules may include: ensuring that the request parameters have no potential security risks. For example, token should be a valid login token. This application does not limit the specific preset parameter filtering rules.

[0061] Custom parameter filtering rules are usually customized by developers or administrators according to specific business needs, and can flexibly respond to specific business scenarios. In the parameter filtering method provided in the embodiment of the present application, the priority of the preset parameter filtering rules is higher than the priority of the custom parameter filtering rules. This means that when performing parameter filtering, the preset parameter filtering rules will be applied first. If the preset parameter filtering rules do not cover a certain parameter or the verification fails, the custom rules will be applied. In this way, security and stability can be ensured while retaining a certain flexibility to respond to specific business needs.

[0062] Specifically, after extracting and parsing the request parameters from the input request, you can search for corresponding rules in the preset parameter filtering rule library based on the request parameters. If matching preset parameter filtering rules are found, these preset parameter filtering rules are immediately applied for parameter verification and filtering. If there are no matching preset parameter filtering rules in the preset rule library, or the preset parameter filtering rule verification fails, continue to search for corresponding custom parameter filtering rules in the custom parameter filtering rule library. If matching custom parameter filtering rules are found, these custom parameter filtering rules are applied for parameter verification and filtering.

[0063] S103: Filter the request parameters according to the parameter filtering rules.

[0064] Parameter filtering refers to the verification and processing of request parameters according to preset parameter filtering rules and custom parameter filtering rules to ensure that these request parameters meet the expected format, range, and security requirements.

[0065] In summary, an embodiment of the present application provides a parameter filtering method, which includes: when receiving an input parameter request, obtaining the request parameters corresponding to the input parameter request; determining the parameter filtering rules corresponding to the request parameters, wherein the parameter filtering rules include preset parameter filtering rules and custom parameter filtering rules, and the priority of the preset parameter filtering rules is higher than the priority of the custom parameter filtering rules; and filtering the request parameters according to the parameter filtering rules. Thus, after filtering the request parameters by the parameter filtering rules that match the request parameters, the filtered request parameters are directly adjusted. This not only avoids the tediousness and high risk of directly modifying the source code, and reduces the time cost and labor cost of parameter adjustment, but also improves the response speed and flexibility of parameter adjustment, so that the bank information system can respond to changes in business needs more quickly.

[0066] See also Figure 2 , which is a flow chart of another parameter filtering method provided by an embodiment of the present application. The method includes:

[0067] S201: Generate preset parameter filtering rules according to the parameter filtering scheme customization unit.

[0068] See also Figure 3 , which is a schematic diagram of a method for generating a preset parameter filtering rule provided in an embodiment of the present application. The method includes:

[0069] A1: Generate initial parameter filtering rules for parameters through the rule scheme configurator of the parameter filtering scheme customization unit.

[0070] See also Figure 4, which is a flow chart of an initial parameter filtering rule for generating parameters provided by an embodiment of the present application. Specifically, the steps of generating the initial parameter filtering rule for parameters are divided into the following steps:

[0071] The first step is to configure the parameter direction. Configuring the parameter direction means to specify whether the parameter is an input parameter (input parameter) or an output parameter (output parameter). This determines the application scenario of the rule. For example, some rules may only apply to input data, while other rules may only apply to output data.

[0072] The second step is to configure the ignore rule. If a parameter is marked as an ignore rule, the parameter will be ignored in the input or output parameters and will not participate in further verification or recording. The application scenarios of ignore rules usually include preventing parameter tampering (ignoring parameters that should not be modified) or sensitive data desensitization (avoiding the disclosure of sensitive information in logs or outputs). If the parameter is set to ignore the rule, go directly to step 4.

[0073] In the third step, if the parameter is not an ignored rule, you need to configure the validation rule. Specifically, the validation rule may refer to the validity of the validation parameter. In one example, the validation rule may be: parameter A cannot be empty. In another example, the validation rule may be: the length of parameter A should be between 10 and 100. In another example, the validation rule may be: the value range of parameter A is limited to a specific array (such as ["hello", "world", "good"]). It should be noted that when configuring the validation rule, you can also set the error message when the validation fails, so that the user can understand why the validation failed.

[0074] The fourth step is to configure logging rules to help system operators quickly locate and troubleshoot problems when they occur. For parameters that need to be logged, you can choose to log their original values, filtered values, or both.

[0075] A2: Customize the unit's interface group configurator through parameter filtering schemes to group multiple interfaces.

[0076] The purpose of grouping multiple interfaces is to apply the same preset parameter filtering rules in batches. Specifically, a group of interfaces with the same filtering requirements can be classified into an interface group. For example, interfaces 1, 2, 3, 4, 5, and 6 can be configured as interface group 1. In this way, all these interfaces will share the same set of preset parameter filtering rules, reducing the workload of repeated configuration.

[0077] It should be noted that a single interface can belong to multiple interface groups at the same time. For example, interface 1 can belong to both interface group 1 and interface group 2. In this case, interface 1 will inherit the preset parameter filtering rules of all interface groups to which it belongs, forming a comprehensive filtering strategy. Therefore, the interface group configurator provides a flexible interface management method, making the configuration of preset parameter filtering rules more efficient and convenient.

[0078] A3: By using the parameter filtering rule configurator of the parameter filtering solution customization unit, the parameters, ignore rules, validation rules, logging rules and interfaces / interface groups are associated to obtain preset parameter filtering rules.

[0079] The main functions of the parameter filtering rule configurator include: rule association and rule aggregation.

[0080] Among them, rule association refers to associating the parameters, specific rules defined in step A1 (including ignore rules, verification rules, and log record rules) with the interface or interface group defined in step A2, that is, obtaining the preset parameter filtering rules.

[0081] Rule aggregation means that when an interface or parameter is affected by multiple preset parameter filtering rules, the parameter filtering rule configurator will aggregate them according to the following priority rules: If there is an ignore rule, the ignore rule has the highest priority, and the ignore operation will be performed first even if other rules require verification or logging. In addition, all verification rules will take effect, that is, if multiple verification rules exist at the same time, all rules will be verified one by one. And, if there are multiple logging rules, as long as one rule requires logging a preset parameter filtering rule, the final result will be logging the preset parameter filtering rule.

[0082] S202: Storing the preset parameter filtering rules in at least one of the distributed memory, the local cache, and the relational database memory of the multi-level cache storage unit.

[0083] See also Figure 5 , which is a schematic diagram of a multi-level cache storage unit provided in an embodiment of the present application. The multi-level cache storage unit includes four main components: a distributed cache, a local cache, a relational database storage, and a non-relational database storage.

[0084] Among them, the distributed cache is a caching mechanism across multiple servers, which is used to store frequently accessed preset parameter filtering rules. It can significantly improve the reading speed of preset parameter filtering rules and reduce the access pressure on the back-end database. In addition, the distributed cache and the local cache together form a multi-level cache unit. The local cache is a caching mechanism running on a single server, which is used to store recently accessed preset parameter filtering rules. It is faster than the distributed cache because data access does not require network transmission. The relational database storage is a traditional database system used to store structured preset parameter filtering rules. It supports complex queries and transaction processing, and is suitable for scenarios that require high consistency and complex queries.

[0085] The preset parameter filtering rules will be stored in the distributed cache and / or the local cache to ensure fast reading of the preset parameter filtering rules. In addition, in order to prevent the preset parameter filtering rules from being lost after power failure, all the preset parameter filtering rules will be persistently stored in the relational database.

[0086] S203: When an input parameter request is received, the access unit of the filtering device performs parameter filtering on the request parameters according to the parameter filtering rules corresponding to the request parameters corresponding to the input parameter request, wherein the parameter filtering rules include preset parameter filtering rules and custom parameter filtering rules, and the priority of the preset parameter filtering rules is higher than the priority of the custom parameter filtering rules.

[0087] See also Figure 6 , which is a schematic diagram of a filter device access unit provided in an embodiment of the present application. The filter device access unit includes an input parameter interceptor, a parameter rule processor, a field interface access device and an output parameter interceptor.

[0088] The field interface accessor is responsible for connecting the external system to the filter device access unit. Specifically, the working steps of the field interface accessor are: the field interface accessor provides custom annotations in the Java programming language, which can be added to the system startup main function, interface function, and JavaBean parameters. Through custom annotations, the startup switch of the filter device and the custom parameter filtering rules of the interface and parameters can be configured at the source code level. For example, you can add the annotation @FilterEnabled to an interface function to enable the filtering function, or add the annotation @FilterRule("rule_name") to a parameter to specify the parameter filtering rules. In other words, the custom parameter filtering rules are configured on the field interface accessor. The input parameter interceptor is responsible for intercepting external input parameter requests and passing the request parameters corresponding to these input parameter requests to the parameter rule processor for filtering. The working steps of the parameter rule processor are: the parameter rule processor matches the preset parameter filtering rules and the custom parameter filtering rules for each request parameter, and performs the corresponding filtering operation. Among them, the preset parameter filtering rules have a higher priority. The output parameter interceptor is responsible for intercepting the request parameters that need to be output sent by the parameter rule processor.

[0089] Specifically, the workflow of the access unit of the filtering device is as follows: when the external system accesses the access unit of the filtering device through the field interface access device, the input parameter request is first intercepted by the input parameter interceptor, and the input parameter interceptor passes the request parameters corresponding to the input parameter request to the parameter rule processor, and the parameter rule processor matches each request parameter with the preset parameter filtering rule (obtained from at least one of the distributed memory, local cache and relational database memory of the multi-level cache storage unit) and the custom parameter filtering rule (obtained from the field interface access device), and performs the corresponding filtering operation. Combined with step S201, it can be seen that for the preset parameter filtering rule to filter the request parameters, first, determine the ignore rules and verification rules indicated by the preset parameter filtering rule; then, remove the parameters to be ignored indicated by the ignore rule from the request parameters to obtain the filtered request parameters; finally, according to the verification rules, filter the filtered request parameters.

[0090] It should be noted that since the preset parameter filtering rules are related to the interface, when determining the parameter filtering rules corresponding to the request parameters, you can first obtain the interface information that receives the input parameter request; then determine the parameter filtering rules that correspond to both the request parameters and the interface information.

[0091] S204: If the log recording rule indicates to record the parameter filtering result of the request parameter, generate a parameter filtering log according to the parameter filtering result.

[0092] See also Figure 7, which is a schematic diagram of a parameter log recording provided by an embodiment of the present application. The unit parameter log recording unit includes three main components: a log producer, a log transmitter and a log collector connected in sequence.

[0093] The log generator is responsible for generating parameter filtering logs in the server system. It should be noted that the log generator can be a default standard generator or a generator customized according to the specific needs of the user, thereby generating more detailed log records according to the specific needs of the user, such as logs containing more context information or specific formats.

[0094] The log transmitter is responsible for transmitting the parameter filtering logs generated by the log producer to the log collector in sequence through the message queue technology. The message queue technology can ensure the reliable transmission of the parameter filtering logs and the integrity of the parameter filtering logs even in the case of unstable network.

[0095] The log collector is connected to the multi-level cache storage unit, responsible for receiving parameter filtering logs from the message queue and transmitting the parameter filtering logs to the non-relational database (NoSQL database) in the multi-level cache storage unit. Non-relational databases usually have high performance and high scalability, and are suitable for storing large amounts of log data.

[0096] S205: Store the parameter filtering log in the non-relational database memory of the multi-level cache storage unit.

[0097] Depend on Figure 5 It can be seen that the multi-level cache storage unit includes a non-relational database storage (NoSQL database). The non-relational database storage is a database system used to store unstructured or semi-structured data (i.e., parameter filtering logs). It has high scalability and high performance, and is suitable for storing large amounts of log data and real-time analysis. The non-relational database storage is connected to the parameter log recording unit to provide log storage and query capabilities. The parameter filtering logs generated by the log recording unit will be stored in the non-relational database to facilitate subsequent query and analysis.

[0098] In summary, the embodiment of the present application provides a parameter filtering method, which directly adjusts the filtered request parameters after filtering the request parameters by using the parameter filtering rules that match the request parameters. This not only avoids the tediousness and high risk of directly modifying the source code, and reduces the time and labor costs of parameter adjustment, but also improves the response speed and flexibility of parameter adjustment, so that the bank information system can respond to changes in business needs more quickly.

[0099] See also Figure 8, which is a schematic diagram of a parameter filtering device provided in an embodiment of the present application. The parameter filtering device 800 includes: a parameter acquisition module 801, a rule determination module 802 and a parameter filtering module 803;

[0100] The parameter acquisition module 801 is used to acquire the request parameters corresponding to the input parameter request when receiving the input parameter request;

[0101] A rule determination module 802 is used to determine a parameter filtering rule corresponding to the request parameter, wherein the parameter filtering rule includes a preset parameter filtering rule and a custom parameter filtering rule, and the priority of the preset parameter filtering rule is higher than the priority of the custom parameter filtering rule;

[0102] The parameter filtering module 803 is used to filter the request parameters according to the parameter filtering rules.

[0103] In some specific implementations, the unit for filtering the request parameters according to the preset parameter filtering rules is as follows:

[0104] A determination unit, used to determine the ignore rule and the verification rule indicated by the preset parameter filtering rule;

[0105] A removal unit removes the parameters to be ignored indicated by the ignore rule from the request parameters to obtain the filtered request parameters;

[0106] The filtering unit is used to filter the request parameters after screening according to the validation rules.

[0107] In some specific implementations, the preset parameter filtering rule indicates a log recording rule; the parameter filtering device 800 further includes: a log generating module and a log storing module;

[0108] A log generation module, for generating a parameter filtering log according to the parameter filtering result if the log recording rule indicates recording the parameter filtering result of the request parameter;

[0109] The log storage module is used to store the parameter filtering log in a non-relational database storage.

[0110] In some specific implementations, the rule determination module 802 is specifically used to: obtain the interface information of the received input parameter request; and determine the parameter filtering rule corresponding to the request parameter and the interface information.

[0111] In some specific implementations, the preset parameter filtering rules are located in at least one of a distributed memory, a local cache, and a relational database memory.

[0112] In summary, the embodiment of the present application provides a parameter filtering device, which directly adjusts the filtered request parameters after filtering the request parameters by using the parameter filtering rules that match the request parameters. This not only avoids the tediousness and high risk of directly modifying the source code, and reduces the time and labor costs of parameter adjustment, but also improves the response speed and flexibility of parameter adjustment, so that the bank information system can respond to changes in business needs more quickly.

[0113] The embodiment of the present application also provides a corresponding parameter filtering device and a computer-readable medium for implementing the parameter filtering method provided in the embodiment of the present application.

[0114] Among them, the parameter filtering device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute instructions or codes so that the device executes a parameter filtering method of any embodiment of the present application.

[0115] See also Fig. 9 , which is a schematic diagram of a computer-readable medium provided in an embodiment of the present application. The computer-readable medium 900 stores a computer program 911, which implements the above-mentioned Figure 1 The steps of the parameter filtering method.

[0116] It should be noted that in the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0117] It should be noted that the machine-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0118] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0119] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

[0120] Although several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present application. Certain features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.

[0121] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical rules formed by the specific combination of the above technical features, but should also cover other technical rules formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical rule.

Claims

1. A parameter filtering method, characterized in that: The method comprises: When receiving an input parameter request, obtaining request parameters corresponding to the input parameter request; Determine a parameter filtering rule corresponding to the request parameter, wherein the parameter filtering rule includes a preset parameter filtering rule and a custom parameter filtering rule, and the priority of the preset parameter filtering rule is higher than the priority of the custom parameter filtering rule; The request parameters are filtered according to the parameter filtering rule.

2. The method according to claim 1, characterized in that The method of filtering the request parameters according to the preset parameter filtering rules is as follows: Determining the ignore rules and verification rules indicated by the preset parameter filtering rules; Removing the parameters to be ignored indicated by the ignore rule from the request parameters to obtain filtered request parameters; According to the verification rule, the filtered request parameters are filtered.

3. The method according to claim 1, characterized in that The preset parameter filtering rule indicates a log recording rule; after performing the parameter filtering on the request parameter, the method further includes: If the log recording rule indicates recording the parameter filtering result of the request parameter, generating a parameter filtering log according to the parameter filtering result; The parameter filtering log is stored in a non-relational database storage.

4. The method according to claim 1, characterized in that: The determining of the parameter filtering rule corresponding to the request parameter includes: Obtaining information about the interface that receives the input parameter request; Determine a parameter filtering rule corresponding to both the request parameter and the interface information.

5. The method according to claim 1, characterized in that The preset parameter filtering rules are located in at least one of a distributed memory, a local cache, and a relational database memory.

6. A parameter filtering device, characterized in that: The device comprises: a parameter acquisition module, a rule determination module and a parameter filtering module; The parameter acquisition module is used to obtain the request parameters corresponding to the input parameter request when receiving the input parameter request; The rule determination module is used to determine a parameter filtering rule corresponding to the request parameter, wherein the parameter filtering rule includes a preset parameter filtering rule and a custom parameter filtering rule, and the priority of the preset parameter filtering rule is higher than the priority of the custom parameter filtering rule; The parameter filtering module is used to perform parameter filtering on the request parameters according to the parameter filtering rules.

7. The device according to claim 6, characterized in that The unit for filtering the request parameters according to the preset parameter filtering rules is as follows: A determination unit, used to determine the ignore rule and the verification rule indicated by the preset parameter filtering rule; a removing unit, removing the parameters to be ignored indicated by the ignoring rule from the request parameters, to obtain the filtered request parameters; The filtering unit is used to perform parameter filtering on the filtered request parameters according to the verification rules.

8. The device according to claim 6, characterized in that The preset parameter filtering rule indicates a log recording rule; the device further comprises: a log generating module and a log storing module; The log generation module is used to generate a parameter filtering log according to the parameter filtering result if the log recording rule indicates to record the parameter filtering result of the request parameter; The log storage module is used to store the parameter filtering log in a non-relational database storage.

9. A parameter filtering device, characterized in that: The device comprises: a memory and a processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the parameter filtering method as described in any one of claims 1 to 5.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the parameter filtering method according to any one of claims 1 to 5 is implemented.