Method, device, server and storage medium for processing business requests

By receiving and processing rule configuration requests, generating and applying execution code, the problem of inefficient change of service execution trigger rules in the prior art is solved, and the effect of quickly responding to terminal requests is achieved.

CN112181450BActive Publication Date: 2024-12-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910593586.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-03
Publication Date
2024-12-20
Estimated Expiration
2040-06-17

AI Technical Summary

Technical Problem

In the prior art, changing the business execution triggering rules is inefficient, and programmers are required to compile and upload the execution code in the computer to respond to the business request of the terminal.

Method used

A method for processing business requests is provided, by receiving rule configuration requests, obtaining and adding configuration parameters to the pre-stored business rule components, and generating execution code to process the business requests of the terminal based on the execution code.

Benefits of technology

It improves the operation efficiency of changing business execution trigger rules, enables the server to quickly respond to terminal service requests, and reduces the frequency of compiling and uploading codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112181450B_ABST
    Figure CN112181450B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, device, server and storage medium for processing business requests, and relates to the field of Internet technology. The method includes: receiving a rule configuration request; obtaining a target business rule component corresponding to a rule identifier from a plurality of pre-stored business rule components; adding the configuration parameters carried in the rule configuration request to the target business rule component to obtain an execution code corresponding to the target business execution trigger rule; and when receiving a business request of the target business, processing the business request based on the execution code. With the present disclosure, it is only necessary to send the rule identifier of the target business execution trigger rule to the server, and the server can determine the target business rule component based on the rule identifier, and then by adding the configuration parameters to the target business rule component, the execution code corresponding to the target business execution trigger rule can be obtained, thereby improving the operational efficiency of changing the business execution trigger rule.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to a method, device, server and storage medium for processing a service request. Background Art

[0002] The server can execute the service requested by the terminal only if it determines that the terminal meets certain service execution triggering rules. For example, the application development platform can update the application. The updated application can be called a beta application in the early stage. The beta application cannot be officially released on the download platform for all users to download. At this time, the beta application may still have some unknown problems, and a small number of terminals that meet certain rules need to be downloaded first and assisted in improvement.

[0003] When the terminal opens the application, it can trigger the acquisition of terminal related information and send a service request carrying terminal related information to the server. After receiving the service request, the server can verify whether the terminal related information meets the preset service execution triggering rules. If the verification result shows that the terminal related information can meet the preset service execution triggering rules, the server can execute the service requested by the terminal.

[0004] When the business execution trigger rules corresponding to the business need to be changed, the programmer can compile the execution code corresponding to the changed business execution trigger rules in the computer and upload the execution code to the server for execution. In this way, when the server receives the corresponding business request again, it can respond based on the changed business execution trigger rules.

[0005] In the process of implementing the present disclosure, the inventors found that there are at least the following problems:

[0006] In actual applications, it is often necessary to change the business execution trigger rules corresponding to the business to adapt to different needs. Every time the business execution trigger rules are changed, the programmer needs to compile the execution code corresponding to the changed business execution trigger rules in the computer and upload the execution code to the server for execution, so that the server can respond to the business request sent by the terminal based on the changed business execution trigger rules. This operation is extremely inefficient. Summary of the invention

[0007] The present disclosure provides a method, device, server and storage medium for processing a service request, so as to at least solve the problem of low efficiency in changing the service execution trigger rule in the related art. The technical solution of the present disclosure is as follows:

[0008] According to a first aspect of an embodiment of the present disclosure, a method for processing a service request is provided, including:

[0009] Receiving a rule configuration request, wherein the rule configuration request carries a rule identifier and configuration parameters of a target service execution trigger rule corresponding to the target service;

[0010] Acquire a target business rule component corresponding to the rule identifier from among a plurality of pre-stored business rule components, wherein the business rule component includes an initial code corresponding to the business execution trigger rule and not including configuration parameters;

[0011] Adding the configuration parameters carried in the rule configuration request to the target business rule component to obtain the execution code corresponding to the target business execution trigger rule;

[0012] When a service request of the target service is received, the service request is processed based on the execution code.

[0013] Optionally, the rule configuration request carries multiple rule identifiers, the configuration parameters include configuration parameters corresponding to each rule identifier, and the step of obtaining a target business rule component corresponding to the rule identifier from multiple pre-stored business rule components includes:

[0014] Obtaining a target business rule component corresponding to each rule identifier from among a plurality of pre-stored business rule components;

[0015] The step of adding the configuration parameters carried in the rule configuration request to the target business rule component to obtain the execution code corresponding to the target business execution trigger rule includes:

[0016] Add the configuration parameters corresponding to each rule identifier to the corresponding target business rule component;

[0017] The target business rule components after adding the configuration parameters are combined and linked to obtain the execution code corresponding to the target business execution trigger rule.

[0018] Optionally, the target business is an application update query business, and the multiple business rule components include at least one of the following business rule components:

[0019] A client version rule component, which is used to determine whether the version number of the application installed in the terminal belongs to a preset version number set;

[0020] A system version rule component, wherein the system version rule component is used to determine whether the system number of the terminal system is a preset system number;

[0021] A whitelist rule component, wherein the whitelist rule component is used to determine whether the terminal is a terminal in a preset whitelist;

[0022] A geographic location rule component, which is used to determine whether the terminal location belongs to a preset geographic area;

[0023] A terminal brand rule component, which is used to determine whether the brand of the terminal is a preset brand;

[0024] A terminal model rule component, wherein the terminal model rule component is used to determine whether the terminal model is a preset model;

[0025] A grayscale upper limit rule component, wherein the grayscale upper limit rule component is used to determine whether the total number of download links sent by the server exceeds a first preset threshold;

[0026] The sending frequency rule component is used to determine whether the number of download links sent by the server within a preset unit time exceeds a second preset threshold.

[0027] Optionally, the target service corresponds to a plurality of target service execution triggering rules, and when a service request of the target service is received, the step of processing the service request based on the execution code includes:

[0028] Sort the trigger rules for each target business execution and set N to 1;

[0029] Determine the trigger rule for executing the target business ranked at the Nth position;

[0030] If the terminal related information carried in the service request of the target service and the acquired current status information of the server meet the Nth target service execution trigger rule, determine the target service processing mode corresponding to the Nth target service execution trigger rule, and process the service request based on the target service processing mode;

[0031] If the terminal related information carried in the service request of the target service or the acquired current status information of the server does not meet the execution trigger rule of the target service ranked at the Nth position, N is increased by 1 and the step of determining the execution trigger rule of the target service ranked at the Nth position is executed.

[0032] Optionally, the target service is an application update query service, and if the terminal related information carried in the service request of the target service and the acquired current status information of the server meet the Nth target service execution trigger rule, then determining the target service processing mode corresponding to the Nth target service execution trigger rule, and the step of processing the service request based on the target service processing mode includes:

[0033] If the terminal-related information carried in the service request of the application update query service and the obtained current status information of the server meet the Nth target service execution trigger rule, then the download link and download prompt information of the target test version of the application corresponding to the Nth target service execution trigger rule are determined, and the download link and download prompt information of the target test version of the application are returned to the terminal that sends the service request.

[0034] Optionally, the step of returning a download link of the target test version of the application and the download prompt information to the terminal that sends the service request includes:

[0035] If the download status of the target test version of the application has been set to an automatic download status, obtaining automatic download flag information, and returning a download link of the target test version of the application, the download prompt information, and the automatic download flag information to the terminal that sent the service request;

[0036] If the download status of the target test version of the application is not set to the automatic download status, the download link of the target test version of the application and the download prompt information are returned to the terminal that sends the service request.

[0037] Optionally, when receiving the service request of the target service, the step of processing the service request based on the execution code includes:

[0038] The execution code corresponding to the target service execution trigger rule is associated with the main thread for processing the service request of the target service, so that when the service request of the target service is received, the service request is processed based on the execution code.

[0039] According to a second aspect of an embodiment of the present disclosure, there is provided a device for processing a service request, including:

[0040] A receiving module is configured to receive a rule configuration request, wherein the rule configuration request carries a rule identifier and configuration parameters of a target service execution trigger rule corresponding to the target service;

[0041] An acquisition module is configured to acquire a target business rule component corresponding to the rule identifier from a plurality of pre-stored business rule components, wherein the business rule component includes an initial code corresponding to a business execution trigger rule and does not include configuration parameters;

[0042] An adding module is configured to add the configuration parameters carried in the rule configuration request to the target business rule component to obtain an execution code corresponding to the target business execution trigger rule;

[0043] The execution module is configured to process the service request based on the execution code when receiving the service request of the target service.

[0044] Optionally, the rule configuration request carries multiple rule identifiers, the configuration parameters include configuration parameters corresponding to each rule identifier, and the acquisition module is configured to:

[0045] Obtaining a target business rule component corresponding to each rule identifier from among a plurality of pre-stored business rule components;

[0046] The step of adding the configuration parameters carried in the rule configuration request to the target business rule component to obtain the execution code corresponding to the target business execution trigger rule includes:

[0047] Add the configuration parameters corresponding to each rule identifier to the corresponding target business rule component;

[0048] The target business rule components after adding the configuration parameters are combined and linked to obtain the execution code corresponding to the target business execution trigger rule.

[0049] Optionally, the target business is an application update query business, and the multiple business rule components include at least one of the following business rule components:

[0050] A client version rule component, which is used to determine whether the version number of the application installed in the terminal belongs to a preset version number set;

[0051] A system version rule component, wherein the system version rule component is used to determine whether the system number of the terminal system is a preset system number;

[0052] A whitelist rule component, wherein the whitelist rule component is used to determine whether the terminal is a terminal in a preset whitelist;

[0053] A geographic location rule component, which is used to determine whether the terminal location belongs to a preset geographic area;

[0054] A terminal brand rule component, which is used to determine whether the brand of the terminal is a preset brand;

[0055] A terminal model rule component, wherein the terminal model rule component is used to determine whether the terminal model is a preset model;

[0056] A grayscale upper limit rule component, wherein the grayscale upper limit rule component is used to determine whether the total number of download links sent by the server exceeds a first preset threshold;

[0057] The sending frequency rule component is used to determine whether the number of download links sent by the server within a preset unit time exceeds a second preset threshold.

[0058] Optionally, the target business corresponds to a plurality of target business execution triggering rules, and the execution module is configured to:

[0059] Sort the trigger rules for each target business execution and set N to 1;

[0060] Determine the trigger rule for executing the target business ranked at the Nth position;

[0061] When the terminal related information carried in the service request of the target service and the acquired current status information of the server meet the Nth target service execution trigger rule, determine the target service processing mode corresponding to the Nth target service execution trigger rule, and process the service request based on the target service processing mode;

[0062] When the terminal related information carried in the service request of the target service or the acquired current status information of the server does not meet the execution trigger rule of the target service at the Nth position, N is increased by 1, and the step of determining the execution trigger rule of the target service ranked at the Nth position is executed.

[0063] Optionally, the target service is an application update query service, and the execution module is configured to:

[0064] When the terminal-related information carried in the service request of the application update query service and the obtained current status information of the server meet the Nth target service execution trigger rule, the download link and download prompt information of the target test version of the application corresponding to the Nth target service execution trigger rule are determined, and the download link and download prompt information of the target test version of the application are returned to the terminal that sends the service request.

[0065] Optionally, the execution module is configured to:

[0066] When the download status of the target test version of the application has been set to an automatic download status, obtaining automatic download flag information, and returning a download link of the target test version of the application, the download prompt information, and the automatic download flag information to the terminal that sent the service request;

[0067] When the download status of the target test version of the application is not set to the automatic download status, the download link of the target test version of the application and the download prompt information are returned to the terminal that sends the service request.

[0068] Optionally, the execution module is configured to:

[0069] The execution code corresponding to the target service execution trigger rule is associated with the main thread for processing the service request of the target service, so that when the service request of the target service is received, the service request is processed based on the execution code.

[0070] According to a third aspect of an embodiment of the present disclosure, a server is provided, including:

[0071] processor;

[0072] a memory for storing instructions executable by the processor;

[0073] The processor is configured to execute the instructions to implement the method for processing a business request as described in the first aspect of an embodiment of the present disclosure.

[0074] According to a fourth aspect provided by an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of a server, the server is enabled to execute the method for processing business requests described in the first aspect of the embodiment of the present disclosure.

[0075] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including:

[0076] Receiving a rule configuration request, wherein the rule configuration request carries a rule identifier and configuration parameters of a target service execution trigger rule corresponding to the target service;

[0077] Acquire a target business rule component corresponding to the rule identifier from among a plurality of pre-stored business rule components, wherein the business rule component includes an initial code corresponding to the business execution trigger rule and not including configuration parameters;

[0078] Adding the configuration parameters carried in the rule configuration request to the target business rule component to obtain the execution code corresponding to the target business execution trigger rule;

[0079] When a service request of the target service is received, the service request is processed based on the execution code.

[0080] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0081] Through the method provided by the embodiment of the present disclosure, the business rule components corresponding to different business rules can be stored in the server in advance, and when in use, the target business rule components can be obtained according to demand. The target business rule component is a standardized initial code corresponding to the target business execution trigger rule. By passing the personalized configuration parameters into the target business rule component, the target business rule component can implement different rule control logics. In this way, it is only necessary to send the rule identifier of the target business execution trigger rule to the server, and the server can determine the target business rule component based on the rule identifier, and then by adding configuration parameters to the target business rule component, the execution code corresponding to the target business execution trigger rule can be obtained, and finally the server can respond to the business request sent by the terminal based on the target business execution trigger rule, thereby improving the operational efficiency of changing the business execution trigger rule.

[0082] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0084] Figure 1 is a schematic diagram of a system structure for processing a service request according to an exemplary embodiment;

[0085] Figure 2 is a flow chart of a method for processing a service request according to an exemplary embodiment;

[0086] Figure 3 is a schematic diagram of the structure of a business rule filtering chain according to an exemplary embodiment;

[0087] Figure 4 is a flow chart of a method for processing a service request according to an exemplary embodiment;

[0088] Figure 5 is a flow chart of a method for processing a service request according to an exemplary embodiment;

[0089] Figure 6 is a structural block diagram of a device for processing a service request according to an exemplary embodiment;

[0090] Figure 7 The figure is a schematic diagram showing the structure of a server according to an exemplary embodiment. DETAILED DESCRIPTION

[0091] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0092] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0093] The present disclosure provides a method for processing a service request, which can be implemented by a server and in cooperation with a computer. Figure 1 As shown, when the business execution triggering rule needs to be changed, the programmer can open the target web (World Wide Web) page in the browser of the computer and change the business execution triggering rule by performing relevant operations in the target web page. When the programmer sets the changed business execution triggering rule in the computer, the computer can send a rule configuration request to the server. After receiving the rule configuration request, the server can perform some corresponding settings locally on the server to finally change the business execution triggering rule. The specific implementation method can refer to the content described in the following embodiments.

[0094] Figure 2 is a flow chart of a method for processing a service request according to an exemplary embodiment. Figure 2 As shown, the method for processing a business request is used in a server and includes the following steps.

[0095] In step S210, the server receives a rule configuration request.

[0096] Among them, the rule configuration request carries the rule identifier and configuration parameters of the target business execution trigger rule corresponding to the target business. The target business execution trigger rule is used to trigger the execution of the target business when the target business execution trigger rule is met. When the target business execution trigger rule is not met, the target business is not executed. The target business can be a grayscale update service, a hot update service and other services. The grayscale update service can also include Android (Android is a free and open source operating system based on Linux) grayscale update service and iOS (iOS is a mobile operating system developed by a device company) grayscale update service. The hot update service can also be called an incremental update service. When updating, you only need to download and install the code of the updated part, and it can be used when it is opened again.

[0097] In implementation, when it is necessary to change the service execution triggering rules, the programmer can open the target web page in the browser of the computer, and the target web page will display an input box for the application identifier that needs to be changed and an input box for the target service identifier corresponding to the application that needs to be changed. The programmer can enter the application identifier that needs to be changed, for example, the name of the AAA application can be entered. The programmer can also enter the target service identifier corresponding to the application that needs to be changed. For example, the changeable services corresponding to the AAA application include grayscale update services, hot update services, and other services. The programmer can select the target service corresponding to the application that needs to be changed from the drop-down menu in the input box.

[0098] Then, the programmer can view the alternative target business execution trigger rules in the target web page. For example, the programmer selects the target business corresponding to the application to be changed as the grayscale update business of the AAA application. For this business, the trigger execution grayscale update rules that can be set include client version rules, system version rules, whitelist rules, geographic location rules, channel rules (also known as mobile phone brand rules), mobile phone model rules, grayscale upper limit rules (when the number of terminals that have successfully performed grayscale updates reaches a certain number, stop performing grayscale updates for other terminals), automatic grayscale rules (when the automatic grayscale rules are set, the terminals that perform grayscale updates cannot only check whether there is an updated version of the application, but also download and install the updated version of the application), distribution frequency rules (within a unit time, when the number of terminals that have successfully performed grayscale updates reaches a certain number, stop performing grayscale updates for other terminals), ab experiment rules (some parameters in the same version of the application are different, let different users use the applications corresponding to different parameters, and investigate which parameters correspond to the application with better user experience) and other rules. The computer may display the above-mentioned multiple rules in a drop-down menu of a target business execution trigger rule input box on a target web page for the programmer to select, and the programmer may select the target business execution trigger rule according to actual needs.

[0099] Afterwards, the programmer can enter the configuration parameters of the target business execution trigger rule in the configuration parameter input box of the target business execution trigger rule on the target web page. For example, the target business execution trigger rule selected by the programmer is "Only preset brand mobile phones can perform grayscale updates", and the corresponding configuration parameter to be entered is "X brand", so that only X brand mobile phones can perform grayscale updates. If the input configuration parameter is "Y brand", then only Y brand mobile phones can perform grayscale updates. In the application, the programmer can configure how many terminals to grayscale update this time according to actual needs, which range of old version clients to grayscale update, which brands of mobile phones to grayscale update, the corresponding download CDN (Content Delivery Network) links for different brands of mobile phones, which mobile phone models to grayscale update, whether to add ab experiments, etc.

[0100] After the programmer inputs the above information in the target web page of the computer, the computer can obtain the application identifier that needs to be changed, the target business identifier of the application that needs to be changed, the rule identifier of the target business execution trigger rule, and the configuration parameters of the target business execution trigger rule, and carry these information in the rule configuration request and send it to the server. The server can receive the rule configuration request sent by the computer, and obtain the application identifier that needs to be changed, the target business identifier of the application that needs to be changed, the rule identifier of the target business execution trigger rule, and the configuration parameters of the target business execution trigger rule in the rule configuration request, and perform the change processing of the target business execution trigger rule based on the obtained information.

[0101] In the server, a business rule system for performing change processing of target business execution trigger rules for different applications and different businesses can be set up, and the change processing of target business execution trigger rules is implemented based on the business rule system.

[0102] In the server, a database table may be provided, including a business table and a rule table. The business table is used to store information corresponding to the target business, and the rule table is used to store the target business execution triggering rules associated with the target business.

[0103] In step S220, the server obtains a target business rule component corresponding to the rule identifier from a plurality of pre-stored business rule components.

[0104] The business rule component includes the initial code corresponding to the business execution trigger rule and does not include configuration parameters.

[0105] In implementation, the business rule component can be the initial code corresponding to the business execution trigger rule (it can also be called the class corresponding to the business execution trigger rule). The initial code is a standardized code, which can be applied to any scenario and any environment, but the initial code lacks configuration parameters. After the configuration parameters are passed into the initial code, that is, after the object corresponding to the class is generated, some logical functions can be implemented by calling the object. For example, the logic described by the business rule component is "only preset brand mobile phones can perform grayscale updates", but it lacks specific brands of mobile phones that can perform grayscale updates. Business rule components with various functions can be pre-written, stored, and when needed, specific configuration parameters can be passed into the business rule components to complete personalized settings and call them.

[0106] Optionally, when the target service is an application update query service, the multiple service rule components provided by the embodiment of the present disclosure may include but are not limited to the following service rule components:

[0107] The client version rule component (corresponding to the client version rule, the preset version number set can be a set of all versions from a low version to a high version), and the client version rule component is used to determine whether the version number of the application installed in the terminal belongs to the preset version number set.

[0108] The system version rule component (corresponding to the system version rule) is used to determine whether the system number of the terminal system is a preset system number.

[0109] The whitelist rule component (corresponding to the whitelist rule) is used to determine whether the terminal is a terminal in the preset whitelist.

[0110] The geographic location rule component (corresponding to the geographic location rule) is used to determine whether the terminal location belongs to a preset geographic area.

[0111] The terminal brand rule component (corresponding to the channel rule) is used to determine whether the brand of the terminal is a preset brand.

[0112] The terminal model rule component (corresponding to the terminal model rule) is used to determine whether the terminal model is a preset model.

[0113] A grayscale upper limit rule component (corresponding to a grayscale upper limit rule), the grayscale upper limit rule component is used to determine whether the total number of download links sent by the server exceeds a first preset threshold.

[0114] The sending frequency rule component (corresponding to the sending frequency rule) is used to determine whether the number of download links sent by the server within a preset unit time exceeds a second preset threshold.

[0115] New business rule components can be expanded according to actual needs, and the new business rule components correspond to new rules. For example, a business rule component can be added to automatically allow terminals that meet the rules to download and install an updated version of the application. Before installation, only a pop-up window will be displayed to remind the user that the application will be updated, but no cancel update button will be set. A business rule component for conducting ab experiments can also be added. When the terminal meets the first rule, the download link of the first updated version of the application is sent to the terminal. When the terminal meets the second rule, the download link of the second updated version of the application is sent to the terminal. In this way, different terminals will install different updated versions of the application, and there are small differences between different updated versions of the application. By collecting user experience, it can help application developers determine which updated version of the application to finally release.

[0116] In step S230, the server adds the configuration parameters carried in the rule configuration request to the target business rule component, and obtains the execution code corresponding to the target business execution trigger rule.

[0117] In implementation, configuration parameters can be stored in a JSON (JavaScript Object Notation) file, and the target business rule component can be described by a separate JSON file. The configuration parameters stored in the JSON file can be passed into the target business rule component to obtain the execution code corresponding to the target business execution trigger rule. At this time, the execution code is executable and can implement certain specific logical functions.

[0118] Optionally, the business rule component and the action execution statement can be encapsulated to obtain a business rule filter. In the rule filter, not only can it be determined whether a certain rule is met, but also after the certain rule is met, a preset logical action (implementing an action operation) or specific information can be output.

[0119] For example, the business rule filter corresponding to the channel rule can not only determine whether the brand of the terminal is a preset brand (wherein the preset brand can be two brands including "Brand X" and "Brand Y"), but also output "Download Link A" when the brand of the terminal is "Brand X", and output "Download Link B" when the brand of the terminal is "Brand Y" (terminals of different brands need to download updated versions of applications from different channels).

[0120] Optionally, the rule identifier may be one or more. When the rule configuration request carries multiple rule identifiers, the configuration parameters include configuration parameters corresponding to each rule identifier. Different rules may be combined, and when all the combined rules are met, the target service is triggered to be executed, otherwise the target service is not executed. For example, "Only X-brand mobile phones can perform Android grayscale updates" and "Only mobile phones with installed application versions between 1.3.5 and 1.3.7 can perform Android grayscale updates" are combined to become "Only X-brand mobile phones with installed application versions between 1.3.5 and 1.3.7 can perform Android grayscale updates". Among them, the operating system of X-brand mobile phones is the Android operating system. In this way, when the terminal sends a service request and meets the rule "Only X-brand mobile phones with installed application versions between 1.3.5 and 1.3.7 can perform Android grayscale updates", the target service can be triggered to be executed, otherwise the target service is not executed.

[0121] If the programmer sets multiple rule identifiers, the rule configuration request carries multiple rule identifiers, and the rule configuration request carries configuration parameters corresponding to each rule identifier. After receiving the rule configuration request, the server can obtain the target business rule component corresponding to each rule identifier from the multiple pre-stored business rule components. The configuration parameters corresponding to each rule identifier are added to the corresponding target business rule component. The target business rule components with the added configuration parameters are combined and linked to obtain the execution code corresponding to the target business execution trigger rule.

[0122] If the business rule components have been encapsulated as business rule filters, the business rule filters corresponding to each business rule component are independent. If you need to combine business rule components, you can combine and link the business rule filters to get a business rule filter chain. You can write the next business rule filter to jump to in the previous business rule filter, so that you can achieve the combination and link of each business rule filter. Therefore, the business rule filter chain can link all the rules that need to be combined to achieve the logical "and" semantics, that is, only when all rules are met can the business rule filter chain be passed.

[0123] The structure of the business rule filter chain can be seen Figure 3As shown, it includes the front business rule filter subchain, business rule filter A, and the back business rule filter subchain. Only when the front business rule filter subchains are all passed, can the business rule filter A be reached. If the business rule filter A is also passed, it can be determined whether the back business rule filter subchain is passed. If the back business rule filter subchains are all passed, the pass information can be returned in reverse order from the last business rule filter. It can be defined in the business rule filter A that when the pass information is received, the target business is executed. For example, for grayscale updates, when the pass information is received, the download link of the updated version of the application is obtained, and the download link of the updated version of the application is sent to the terminal. In this way, when all the rules are met, the satisfied event can be processed in the business rule filter A, without returning the pass information to the first business rule filter to process the satisfied event, that is, as long as the rules are met, the action operation is implemented, and there is no need to separate the judgment of whether the rules are met and the logical actions executed after the rules are met.

[0124] In step S240 , when receiving a service request of the target service, the server processes the service request based on the execution code.

[0125] In implementation, after obtaining the execution code corresponding to the target business execution trigger rule, the execution code corresponding to the target business execution trigger rule can be made effective. When the server receives the business request of the target business, the business request can be processed based on the effective execution code.

[0126] The business rule system can listen for events that trigger the implementation of new tasks, which contain a chain of business rule filters. Figure 4 As shown, step S240 may include: in step S441, when an event that triggers the effectiveness of a new task is monitored, the information corresponding to the target business and the target business execution trigger rule associated with the target business can be read from the database table. In step S442, the new task can be parsed. In step S443, the target business execution trigger rule associated with the target business can be parsed, the corresponding business rule filter can be generated, and all rule filters can be linked into a business rule filter chain. In step S444, the business rule filter chain can be associated with the new task, and the task can be added to the multi-task control module. A multi-task control module can be set in the server, and each task corresponds to a business rule filter chain. When any business rule filter chain is met, the corresponding business can be triggered to execute, realizing the semantics of the logical "or". The server can support multiple business requirements, and all developers or testers can configure the target business execution trigger rule at any time according to their own needs, realizing the rapid iteration and verification of the application.

[0127] For example, for the grayscale update service, developers can set up grayscale updates for multiple updated versions of applications at the same time. When the terminal meets the first rule, the download link of the first updated version of the application is sent to the terminal, and when the terminal meets the second rule, the download link of the second updated version of the application is sent to the terminal. In this way, different terminals will install different updated versions of applications, and there are small differences between different updated versions of applications, which can be used to test which updated version of the application has a higher user experience. When the terminal opens the application, it can trigger the sending of an application update query request. After receiving the application update query request, the server can determine the target business rule filter chain that the terminal can pass, and execute the business corresponding to the target business rule filter chain.

[0128] Optionally, the steps of parsing the target business execution trigger rules associated with the target business and associating the business rule filter chain to the new task may include: associating the execution code corresponding to the target business execution trigger rules to the main thread used to process the business request of the target business, so that when the business request of the target business is received, the business request is processed based on the execution code.

[0129] There are multiple main threads in the server that process business requests of different businesses, and each main thread can correspond to one business. When the server receives a business request for one business, it can determine the target business type corresponding to the business request, and process the business request in the main thread corresponding to the target business type. If it is necessary to access the rules that trigger the execution of the target business, after obtaining the execution code corresponding to the target business execution trigger rule, the execution code corresponding to the target business execution trigger rule can be associated with the main thread used to process the business request of the target business. In this way, when the server receives the business request of the target business and enters the corresponding main thread to process the business request, it can call the execution code corresponding to the target business execution trigger rule, and then implement the logic of executing the target business when the target business execution trigger rule is met.

[0130] like Figure 5As shown, step S240 may include: in step S541, receiving a business request. In step S542, obtaining all tasks associated with the target business through the business control module. In step S543, traversing all task-associated business rule filter chains, in each business rule filter chain, based on the terminal-related information and the current status information of the server, determining in order whether the business rule filter chain can be satisfied, until the first business rule filter chain that can be satisfied is determined or it is determined that all business rule filter chains cannot be satisfied. In step S544, when the first business rule filter chain that can be satisfied is determined, the target business can be executed. If the target business is an application update query business, the download link of the target test version of the application and the download prompt information can be obtained, and the download link of the target test version of the application and the download prompt information are returned to the terminal.

[0131] Optionally, a service management module may be provided in the server. Since different applications and different services need to access the service rule system, the service management module may be used to configure, update, and issue rules for different applications and different services. For example, a service execution trigger rule for a first service of a first application may be set, and a service execution trigger rule for a second service of a second application may also be set. Service execution trigger rules for different services of different applications may be set according to actual needs, and the service execution trigger rules for different services of different applications may be connected to the service rule system, and the service rule system may manage them uniformly.

[0132] When a target service corresponds to multiple target service execution trigger rules, if a service request of the target service is received, the server may perform the following steps:

[0133] (1) Sort the trigger rules for each target business execution and set N to 1.

[0134] (2) Determine the trigger rule for executing the target business ranked at the Nth position.

[0135] (3) If the terminal-related information carried in the service request of the target service and the acquired current status information of the server meet the target service execution trigger rule at the Nth position, the target service processing method corresponding to the target service execution trigger rule at the Nth position is determined, and the service request is processed based on the target service processing method.

[0136] (4) If the terminal-related information carried in the service request of the target service or the current status information of the server obtained does not satisfy the execution trigger rule of the target service at the Nth position, N is increased by 1, and the process goes to step (2) and continues to execute from step (2).

[0137] The terminal-related information may include the version number of the application installed in the terminal, the system number of the terminal system, the terminal identification, the terminal location, the terminal brand, the terminal model, etc. The current status information of the server may include the total number of download links sent by the server, the number of download links sent by the server within a preset unit time, etc. It may be determined whether the target service execution trigger rule is met based on the terminal-related information or the obtained current status information of the server.

[0138] When a target service corresponds to multiple target service execution trigger rules, if a service request of the target service is received, the server can use the target service processing method corresponding to the target service execution trigger rule that is first determined to be satisfied as the service processing method for processing the service request. It should be noted that in step (1), the target service execution trigger rules can be randomly sorted, or the previous sorting can be adjusted each time to ensure that several similar sortings are different.

[0139] When the target business is an application update query business and one target business corresponds to multiple target business execution trigger rules, the above step (4) may include: if the terminal-related information carried in the business request of the application update query business and the acquired current status information of the server meet the Nth target business execution trigger rule, then determine the download link and download prompt information of the target test version of the application corresponding to the Nth target business execution trigger rule, and return the download link and download prompt information of the target test version of the application to the terminal that sends the business request.

[0140] For example, the terminal sends an application update query request for application A to the server, and the server stores two different test versions of applications for grayscale update corresponding to application A. The two different test versions of applications for grayscale update are respectively the P test version application and the Q test version application, and the corresponding target business execution trigger rules are V rule and W rule. The V rule and the W rule can be sorted, for example, the first is the W rule and the second is the V rule. It can be judged whether the terminal related information sent by the terminal and the local server current status information obtained by the server meet the W rule. If the W rule is satisfied, the download link of the Q test version application is sent to the terminal. Otherwise, it is judged whether the terminal related information sent by the terminal and the local server current status information obtained by the server meet the V rule. If the V rule is satisfied, the download link of the P test version application is sent to the terminal. At the same time, the download prompt information can also be determined and sent to the terminal, so that the terminal can prompt the user that the target test version application has been detected and whether to download the target test version application.

[0141] Optionally, the step of returning the download link of the target test version of the application and the download prompt information to the terminal that sends the service request may include: if the download status of the target test version of the application has been set to an automatic download status, obtaining automatic download flag information, and returning the download link of the target test version of the application, the download prompt information, and the automatic download flag information to the terminal that sends the service request; if the download status of the target test version of the application has not been set to an automatic download status, returning the download link of the target test version of the application and the download prompt information to the terminal that sends the service request.

[0142] If the download status of the target test version of the application has been set to the automatic download status, this can be achieved by configuring an automatic grayscale business rule filter. There is no judgment logic in the business rule filter, but there is action execution logic, such as obtaining automatic download flag information. When passing through the business rule filter chain and returning the pass information, when the pass information is transmitted back to the automatic grayscale business rule controller, the automatic grayscale business rule controller can obtain the automatic download flag information. Finally, the business rule filter chain can output the automatic download flag information, and the server can send the download link, download prompt information, and automatic download flag information of the target test version of the application to the terminal.

[0143] When the terminal receives the automatic download flag information, the terminal prompts the user that the target test version of the application has been detected, but will not ask the user whether to download the target test version of the application. After the pop-up window prompting the user pops up for a preset length of time, the target test version of the application is automatically downloaded and installed.

[0144] Through the method provided by the embodiment of the present disclosure, the business rule components corresponding to different business rules can be stored in the server in advance, and when in use, the target business rule components can be obtained according to demand. The target business rule component is a standardized initial code corresponding to the target business execution trigger rule. By passing the personalized configuration parameters into the target business rule component, the target business rule component can implement different rule control logics. In this way, it is only necessary to send the rule identifier of the target business execution trigger rule to the server, and the server can determine the target business rule component based on the rule identifier, and then by adding configuration parameters to the target business rule component, the execution code corresponding to the target business execution trigger rule can be obtained, and finally the server can respond to the business request sent by the terminal based on the target business execution trigger rule, thereby improving the operational efficiency of changing the business execution trigger rule.

[0145] Figure 6 This is a block diagram of a device for processing a service request according to an exemplary embodiment. The device may include:

[0146] The receiving module 610 is configured to receive a rule configuration request, wherein the rule configuration request carries a rule identifier and configuration parameters of a target service execution trigger rule corresponding to the target service;

[0147] The acquisition module 620 is configured to acquire a target business rule component corresponding to the rule identifier from a plurality of pre-stored business rule components, wherein the business rule component includes an initial code corresponding to the business execution trigger rule and does not include configuration parameters;

[0148] The adding module 630 is configured to add the configuration parameters carried in the rule configuration request to the target business rule component to obtain the execution code corresponding to the target business execution trigger rule;

[0149] The execution module 640 is configured to process the service request based on the execution code when receiving the service request of the target service.

[0150] Optionally, the rule configuration request carries multiple rule identifiers, the configuration parameters include configuration parameters corresponding to each rule identifier, and the acquisition module 620 is configured to:

[0151] Obtaining a target business rule component corresponding to each rule identifier from among a plurality of pre-stored business rule components;

[0152] The step of adding the configuration parameters carried in the rule configuration request to the target business rule component to obtain the execution code corresponding to the target business execution trigger rule includes:

[0153] Add the configuration parameters corresponding to each rule identifier to the corresponding target business rule component;

[0154] The target business rule components after adding the configuration parameters are combined and linked to obtain the execution code corresponding to the target business execution trigger rule.

[0155] Optionally, the target business is an application update query business, and the multiple business rule components include at least one of the following business rule components:

[0156] A client version rule component, which is used to determine whether the version number of the application installed in the terminal belongs to a preset version number set;

[0157] A system version rule component, wherein the system version rule component is used to determine whether the system number of the terminal system is a preset system number;

[0158] A whitelist rule component, wherein the whitelist rule component is used to determine whether the terminal is a terminal in a preset whitelist;

[0159] A geographic location rule component, which is used to determine whether the terminal location belongs to a preset geographic area;

[0160] A terminal brand rule component, which is used to determine whether the brand of the terminal is a preset brand;

[0161] A terminal model rule component, wherein the terminal model rule component is used to determine whether the terminal model is a preset model;

[0162] A grayscale upper limit rule component, wherein the grayscale upper limit rule component is used to determine whether the total number of download links sent by the server exceeds a first preset threshold;

[0163] The sending frequency rule component is used to determine whether the number of download links sent by the server within a preset unit time exceeds a second preset threshold.

[0164] Optionally, the target service corresponds to a plurality of target service execution triggering rules, and the execution module 640 is configured to:

[0165] Sort the trigger rules for each target business execution and set N to 1;

[0166] Determine the trigger rule for executing the target business ranked at the Nth position;

[0167] When the terminal related information carried in the service request of the target service and the acquired current status information of the server meet the Nth target service execution trigger rule, determine the target service processing mode corresponding to the Nth target service execution trigger rule, and process the service request based on the target service processing mode;

[0168] When the terminal related information carried in the service request of the target service or the acquired current status information of the server does not meet the execution trigger rule of the target service at the Nth position, N is increased by 1, and the step of determining the execution trigger rule of the target service ranked at the Nth position is executed.

[0169] Optionally, the target service is an application update query service, and the execution module 640 is configured to:

[0170] When the terminal-related information carried in the service request of the application update query service and the obtained current status information of the server meet the Nth target service execution trigger rule, the download link and download prompt information of the target test version of the application corresponding to the Nth target service execution trigger rule are determined, and the download link and download prompt information of the target test version of the application are returned to the terminal that sends the service request.

[0171] Optionally, the execution module 640 is configured to:

[0172] When the download status of the target test version of the application has been set to an automatic download status, obtaining automatic download flag information, and returning a download link of the target test version of the application, the download prompt information, and the automatic download flag information to the terminal that sent the service request;

[0173] When the download status of the target test version of the application is not set to the automatic download status, the download link of the target test version of the application and the download prompt information are returned to the terminal that sends the service request.

[0174] Optionally, the execution module 640 is configured to:

[0175] The execution code corresponding to the target service execution trigger rule is associated with the main thread for processing the service request of the target service, so that when the service request of the target service is received, the service request is processed based on the execution code.

[0176] Through the device provided by the embodiment of the present disclosure, the business rule components corresponding to different business rules can be stored in the server in advance, and when in use, the target business rule components can be obtained according to demand. The target business rule component is a standardized initial code corresponding to the target business execution trigger rule. By passing the personalized configuration parameters into the target business rule component, the target business rule component can implement different rule control logics. In this way, it is only necessary to send the rule identifier of the target business execution trigger rule to the server, and the server can determine the target business rule component based on the rule identifier, and then by adding configuration parameters to the target business rule component, the execution code corresponding to the target business execution trigger rule can be obtained, and finally the server can respond to the business request sent by the terminal based on the target business execution trigger rule, thereby improving the operational efficiency of changing the business execution trigger rule.

[0177] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0178] Figure 7 The schematic diagram of the structure of a server 1900 provided by an exemplary embodiment of the present disclosure is shown. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 1910 and one or more memories 1920. The memory 1920 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 1910 to implement the method for processing a service request described in the above embodiment.

[0179] In an exemplary embodiment, a non-temporary computer-readable storage medium including instructions is also provided, such as a memory 1920 including instructions, the instructions can be executed by a processor 1910 of a server 1900 to complete the method for processing a business request, the method comprising: receiving a rule configuration request, wherein the rule configuration request carries a rule identifier and configuration parameters of a target business execution trigger rule corresponding to a target business; obtaining a target business rule component corresponding to the rule identifier from a plurality of pre-stored business rule components, wherein the business rule component includes an initial code corresponding to the business execution trigger rule that does not contain configuration parameters; adding the configuration parameters carried in the rule configuration request to the target business rule component to obtain an execution code corresponding to the target business execution trigger rule; and when receiving a business request of the target business, processing the business request based on the execution code. For example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0180] In an exemplary embodiment, an application is also provided, including one or more instructions, which can be executed by the processor 1910 of the server 1900 to complete the above-mentioned method for processing a business request, the method comprising: receiving a rule configuration request, wherein the rule configuration request carries a rule identifier and configuration parameters of a target business execution trigger rule corresponding to a target business; obtaining a target business rule component corresponding to the rule identifier from a plurality of pre-stored business rule components, wherein the business rule component includes an initial code corresponding to the business execution trigger rule that does not contain configuration parameters; adding the configuration parameters carried in the rule configuration request to the target business rule component to obtain an execution code corresponding to the target business execution trigger rule; and when receiving a business request of the target business, processing the business request based on the execution code. Optionally, the above-mentioned instructions can also be executed by the processor 1910 of the server 1900 to complete other steps involved in the above-mentioned exemplary embodiment.

[0181] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0182] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for processing a service request, characterized in that: Applied to a server, the server is provided with a service management module, the service management module is used to configure, update and issue rules for different applications and different services, including: Receiving a rule configuration request sent by a computer, wherein the rule configuration request carries an application identifier to be changed, a target service identifier corresponding to the application, multiple rule identifiers of a target service execution trigger rule corresponding to the target service, and configuration parameters corresponding to each rule identifier; Obtaining a target business rule component corresponding to each rule identifier from a plurality of pre-stored business rule components, wherein the business rule component includes an initial code corresponding to the business execution trigger rule and not including configuration parameters; Add the configuration parameters corresponding to each rule identifier to the corresponding target business rule component to obtain the execution code corresponding to the target business execution trigger rule; Associating the execution code corresponding to the target service execution trigger rule with the main thread for processing the service request of the target service; the server has multiple main threads for processing service requests of different services, each main thread corresponding to one service; and, The execution code and the action execution statement are encapsulated to form a business rule filter, and the business rule filter is used to determine whether the business execution trigger rule is met, and when the business execution trigger rule is met, the preset logical action is executed or information is output; by writing the next business rule filter to be jumped into the previous business rule filter, the combination link of each business rule filter is realized to obtain a business rule filter chain; When receiving a service request of the target service sent by the terminal, determining the target service category corresponding to the service request; in the main thread corresponding to the target service category, obtaining all tasks associated with the target service through the service control module; traversing the service rule filter chains associated with all the tasks, and in each traversed service rule filter chain, determining in order whether the service rule filter chain can be satisfied based on the terminal related information and the current status information of the server, until determining the first service rule filter chain that can be satisfied or determining that all service rule filter chains cannot be satisfied; when determining the first service rule filter chain that can be satisfied, executing the target service; Among them, when processing the business request, for a business rule filter chain, only when the previous business rule filters are passed can the next business rule filter be reached. When the last business rule filter is also passed, the last business rule filter returns the pass information to the previous business rule filter in reverse order, so that the designated business rule filter executes the target business according to the received pass information. The designated business rule filter is defined to execute the target business when the pass information is received.

2. The method for processing a service request according to claim 1, characterized in that: The target business is an application update query business, and the multiple business rule components include at least one of the following business rule components: A client version rule component, which is used to determine whether the version number of the application installed in the terminal belongs to a preset version number set; A system version rule component, wherein the system version rule component is used to determine whether the system number of the terminal system is a preset system number; A whitelist rule component, wherein the whitelist rule component is used to determine whether the terminal is a terminal in a preset whitelist; A geographic location rule component, which is used to determine whether the terminal location belongs to a preset geographic area; A terminal brand rule component, which is used to determine whether the brand of the terminal is a preset brand; A terminal model rule component, wherein the terminal model rule component is used to determine whether the terminal model is a preset model; A grayscale upper limit rule component, wherein the grayscale upper limit rule component is used to determine whether the total number of download links sent by the server exceeds a first preset threshold; The sending frequency rule component is used to determine whether the number of download links sent by the server within a preset unit time exceeds a second preset threshold.

3. The method for processing a service request according to claim 1, characterized in that: The target business corresponds to a plurality of target business execution triggering rules, and the method further includes: Sort the trigger rules for each target business execution and set N to 1; Determine the trigger rule for executing the target business ranked at the Nth position; If the terminal related information carried in the service request of the target service and the acquired current status information of the server meet the Nth target service execution trigger rule, determine the target service processing mode corresponding to the Nth target service execution trigger rule, and process the service request based on the target service processing mode; If the terminal related information carried in the service request of the target service or the acquired current status information of the server does not meet the execution trigger rule of the target service ranked at the Nth position, N is increased by 1 and the step of determining the execution trigger rule of the target service ranked at the Nth position is executed.

4. The method for processing a service request according to claim 3, characterized in that: The target service is an application update query service. If the terminal related information carried in the service request of the target service and the acquired current status information of the server meet the Nth target service execution trigger rule, then determining the target service processing mode corresponding to the Nth target service execution trigger rule, and processing the service request based on the target service processing mode includes: If the terminal-related information carried in the service request of the application update query service and the obtained current status information of the server meet the Nth target service execution trigger rule, then the download link and download prompt information of the target test version of the application corresponding to the Nth target service execution trigger rule are determined, and the download link and download prompt information of the target test version of the application are returned to the terminal that sends the service request.

5. The method for processing a service request according to claim 4, characterized in that: The step of returning the download link of the target test version of the application and the download prompt information to the terminal that sent the service request includes: If the download status of the target test version of the application has been set to an automatic download status, obtaining automatic download flag information, and returning a download link of the target test version of the application, the download prompt information, and the automatic download flag information to the terminal that sent the service request; If the download status of the target test version of the application is not set to the automatic download status, the download link of the target test version of the application and the download prompt information are returned to the terminal that sends the service request.

6. A device for processing a service request, characterized in that: The device is a partial structure or a whole structure of a server, and a service management module is provided in the server, and the service management module is used to configure, update and issue rules for different applications and different services, including: A receiving module is configured to receive a rule configuration request sent by a computer, wherein the rule configuration request carries an application identifier to be changed, a target service identifier corresponding to the application, multiple rule identifiers of a target service execution trigger rule corresponding to the target service, and configuration parameters corresponding to each rule identifier; An acquisition module is configured to acquire a target business rule component corresponding to each rule identifier from a plurality of pre-stored business rule components, wherein the business rule component includes an initial code corresponding to a business execution trigger rule and does not include configuration parameters; An adding module is configured to add the configuration parameters corresponding to each rule identifier to the corresponding target business rule component, respectively, to obtain the execution code corresponding to the target business execution trigger rule; an execution module configured to associate the execution code corresponding to the target service execution trigger rule with a main thread for processing a service request of the target service; the server has multiple main threads for processing service requests of different services, each main thread corresponding to one service; and, A module for executing the following steps: encapsulating the execution code and the action execution statement to form a business rule filter, wherein the business rule filter is used to determine whether the business execution trigger rule is satisfied, and if the business execution trigger rule is satisfied, execute a preset logical action or output information; by writing the next business rule filter to be jumped into the previous business rule filter, a combination link of each business rule filter is realized to obtain a business rule filter chain; The execution module is further configured to, when receiving a service request of the target service sent by the terminal, determine the target service category corresponding to the service request; in the main thread corresponding to the target service category, obtain all tasks associated with the target service through the service control module; traverse the service rule filter chains associated with all the tasks, and in each traversed service rule filter chain, determine in order whether the service rule filter chain can be satisfied based on the terminal related information and the current status information of the server, until the first service rule filter chain that can be satisfied is determined or it is determined that all service rule filter chains cannot be satisfied; when the first service rule filter chain that can be satisfied is determined, execute the target service; Among them, when processing the business request, for a business rule filter chain, only when the previous business rule filters are passed can the next business rule filter be reached. When the last business rule filter is also passed, the last business rule filter returns the pass information to the previous business rule filter in reverse order, so that the designated business rule filter executes the target business according to the received pass information. The designated business rule filter is defined to execute the target business when the pass information is received.

7. The device according to claim 6, characterized in that The target business is an application update query business, and the multiple business rule components include at least one of the following business rule components: A client version rule component, which is used to determine whether the version number of the application installed in the terminal belongs to a preset version number set; A system version rule component, wherein the system version rule component is used to determine whether the system number of the terminal system is a preset system number; A whitelist rule component, wherein the whitelist rule component is used to determine whether the terminal is a terminal in a preset whitelist; A geographic location rule component, which is used to determine whether the terminal location belongs to a preset geographic area; A terminal brand rule component, which is used to determine whether the brand of the terminal is a preset brand; A terminal model rule component, wherein the terminal model rule component is used to determine whether the terminal model is a preset model; A grayscale upper limit rule component, wherein the grayscale upper limit rule component is used to determine whether the total number of download links sent by the server exceeds a first preset threshold; The sending frequency rule component is used to determine whether the number of download links sent by the server within a preset unit time exceeds a second preset threshold.

8. The device according to claim 6, characterized in that The target business corresponds to a plurality of target business execution triggering rules, and the execution module is configured as follows: Sort the trigger rules for each target business execution and set N to 1; Determine the trigger rule for executing the target business ranked at the Nth position; When the terminal related information carried in the service request of the target service and the acquired current status information of the server meet the Nth target service execution trigger rule, determine the target service processing mode corresponding to the Nth target service execution trigger rule, and process the service request based on the target service processing mode; When the terminal related information carried in the service request of the target service or the acquired current status information of the server does not meet the execution trigger rule of the target service at the Nth position, N is increased by 1, and the step of determining the execution trigger rule of the target service ranked at the Nth position is executed.

9. The device according to claim 8, characterized in that The target service is an application update query service, and the execution module is configured to: When the terminal-related information carried in the service request of the application update query service and the obtained current status information of the server meet the Nth target service execution trigger rule, the download link and download prompt information of the target test version of the application corresponding to the Nth target service execution trigger rule are determined, and the download link and download prompt information of the target test version of the application are returned to the terminal that sends the service request.

10. The device according to claim 9, characterized in that The execution module is configured as follows: When the download state of the target test version of the application has been set to an automatic download state, obtaining automatic download flag information, and returning a download link of the target test version of the application, the download prompt information, and the automatic download flag information to the terminal that sent the service request; When the download status of the target test version of the application is not set to the automatic download status, the download link of the target test version of the application and the download prompt information are returned to the terminal that sends the service request.

11. A server, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method for processing a service request according to any one of claims 1 to 5.

12. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute the method for processing a service request according to any one of claims 1 to 5.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for processing a service request according to any one of claims 1 to 5 is implemented.