Business processing method and device and electronic equipment
By obtaining request information in electronic devices, determining the target version and policy tree, and obtaining data sources corresponding to decision conditions, the problem of electronic devices lacking necessary information when processing complex policy trees is solved, and more efficient and accurate business processing and operation execution is achieved.
Patent Information
- Application Number
- CN202311460430.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2025-05-06
AI Technical Summary
In the prior art, electronic devices may lack the necessary information when processing complex policy tree decision conditions, resulting in the inability to accurately determine whether the information meets all decision conditions of the policy tree, and thus cannot accurately perform related operations.
By obtaining the request information requesting the business function of the application, determining the target version of the business function matching the request information, obtaining multiple policy trees of the target version, and determining the data source corresponding to each decision condition. Electronic devices can obtain decision information from the data sources corresponding to decision conditions, improve the efficiency of business processing, and accurately determine the business configuration related to the request information.
Improve the efficiency of business processing and operation accuracy, ensure that electronic devices can accurately perform relevant operations and meet the decision-making conditions of the strategy tree.
Smart Images

Figure CN119938158A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer and network communication technology, and in particular, to a service processing method, device, and electronic device. Background Art
[0002] The policy tree can be used for logical judgment, and the electronic device can perform corresponding operations based on the logical judgment results of the policy tree. For example, the operation related to the policy tree is: shooting a 1080P video. If the device information obtained by the electronic device meets all the decision conditions of the policy tree, the electronic device can shoot a 1080P video based on the application.
[0003] At present, electronic devices can obtain information such as the identifier associated with the user and the identifier associated with the device, and then determine whether the information meets all the decision conditions of the policy tree. However, when the decision conditions of the policy tree are more complex, the information obtained by the electronic device is relatively simple, and the necessary information for the policy tree to make logical judgments is missing. The electronic device cannot determine whether the obtained information meets all the decision conditions of the policy tree, resulting in the electronic device being unable to accurately perform related operations. Summary of the invention
[0004] The embodiments of the present disclosure provide a service processing method, device, and electronic device, which are used to solve one or more technical problems in the prior art.
[0005] In a first aspect, the present disclosure provides a service processing method, the service processing method comprising:
[0006] Get request information for using the business function of the application;
[0007] Determine a target version of the business function that matches the request information, the business function includes multiple versions, and the target version includes multiple business configurations corresponding to the business function;
[0008] Acquire multiple policy trees of the target version, each policy tree including multiple decision conditions, and the multiple policy trees correspond one-to-one to the multiple business configurations;
[0009] Determining a data source corresponding to each decision condition, wherein the data source includes decision information associated with the decision condition;
[0010] Based on the request information, multiple data sources and multiple policy trees, a service configuration corresponding to the request information is determined.
[0011] In a second aspect, the present disclosure provides a service processing device, the service processing device comprising a first acquisition module, a first determination module, a second acquisition module, a second determination module and a third determination module, wherein:
[0012] The first acquisition module is used to obtain request information for requesting to use the business function of the application program;
[0013] The first determination module is used to determine a target version of the business function that matches the request information, the business function includes multiple versions, and the target version includes multiple business configurations corresponding to the business function;
[0014] The second acquisition module is used to acquire multiple policy trees of the target version, each policy tree includes multiple decision conditions, and the multiple policy trees correspond to the multiple business configurations one by one;
[0015] The second determination module is used to determine a data source corresponding to each decision condition, wherein the data source includes decision information associated with the decision condition;
[0016] The third determination module is used to determine the service configuration corresponding to the request information based on the request information, multiple data sources and multiple policy trees.
[0017] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
[0018] The memory stores computer-executable instructions;
[0019] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the business processing method described in the first aspect and various possible designs of the first aspect.
[0020] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the business processing method described in the first aspect and various possible designs of the first aspect is implemented.
[0021] The present embodiment provides a business processing method, device and electronic device, wherein the electronic device can obtain request information for requesting to use a business function of an application, and determine a target version of the business function that matches the request information, wherein the business function includes multiple versions, and the target version includes multiple business configurations corresponding to the business function, and the electronic device can obtain multiple policy trees of the target version, wherein each policy tree includes multiple decision conditions, and the multiple policy trees correspond to multiple business configurations one by one, and the electronic device can determine the data source corresponding to each decision condition, and determine the business configuration corresponding to the request information based on the request information, the multiple data sources and the multiple policy trees. In the above method, since the electronic device can only obtain decision information from the data source corresponding to the decision condition, the efficiency of business processing is improved, and the data source corresponding to the decision condition can include decision information associated with the decision condition, therefore, the electronic device can obtain all information for logical judgment of the policy tree, and the electronic device can accurately determine the business configuration related to the request information, thereby improving the accuracy of the operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0023] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure;
[0024] Figure 2 A flowchart of a business processing method provided by an embodiment of the present disclosure;
[0025] Figure 3 A schematic diagram of a process for obtaining request information provided by an embodiment of the present disclosure;
[0026] Figure 4 A schematic diagram of a strategy tree provided in an embodiment of the present disclosure;
[0027] Figure 5 A schematic diagram of the relationship between a decision condition and a data source provided in an embodiment of the present disclosure;
[0028] Figure 6 A schematic diagram of a method for determining a target version provided by an embodiment of the present disclosure;
[0029] Figure 7 A schematic diagram of a process for determining a candidate version provided by an embodiment of the present disclosure;
[0030] Figure 8 A process diagram of a business processing method provided by an embodiment of the present disclosure;
[0031] Fig. 9 A schematic diagram of the structure of a service processing device provided by an embodiment of the present disclosure; and
[0032] Fig.10 A schematic diagram of the structure of a terminal device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0034] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0035] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0036] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0037] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0038] To facilitate understanding, the concepts involved in the embodiments of the present disclosure are explained below.
[0039] Electronic device: is a device with wireless transceiver function. Electronic devices can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted. The electronic device can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, a vehicle-mounted electronic device, a wireless terminal in self-driving, a wireless electronic device in remote medical care, a wireless electronic device in smart grid, a wireless electronic device in transportation safety, a wireless electronic device in smart city, a wireless electronic device in smart home, a wearable electronic device, etc. The electronic device involved in the embodiments of the present disclosure can also be called a terminal, a user equipment (UE), an access electronic device, a vehicle-mounted terminal, an industrial control terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a remote electronic device, a mobile device, a UE electronic device, a wireless communication device, a UE agent or a UE device, etc. The electronic device can also be fixed or mobile.
[0040] Next, combine Figure 1 , the application scenarios of the embodiments of the present disclosure are described.
[0041] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure. Figure 1 , including a terminal device. Among them, the display page of the terminal device can be a display page of a video playback application. The display page may include the video being played, home controls, and shooting controls. When the user clicks the shooting control, the terminal device can determine that the user can shoot a 1080P (video clarity) video and display the shooting page. Among them, the shooting page may include shooting controls (circular controls), special effects controls, album controls, and shooting modes (the selected shooting mode is video). When the user clicks the shooting control, the terminal device can shoot a 1080P video based on the application.
[0042] It should be noted that Figure 1 The application scenarios of the embodiments of the present disclosure are merely illustrative and are not intended to limit the application scenarios of the embodiments of the present disclosure.
[0043] In the related art, an application may include multiple business functions, each business function may include multiple policy trees, and each policy tree corresponds to a group business configuration of the business function. For example, a video application may include a video shooting function (business function), and the electronic device may shoot standard definition, high definition, and ultra-high definition (three groups of business configurations) videos based on the video shooting function.
[0044] At present, electronic devices can obtain an identifier associated with a user or an identifier associated with a device. When the identifier associated with a user or an identifier associated with a device meets all decision conditions of a policy tree, the electronic device can determine the business configuration corresponding to the policy tree as the configuration of this business function, and then perform related operations based on the business configuration. However, as the functions of the application program increase, the complexity of the decision conditions of the policy tree is high. The identifier associated with a user or an identifier associated with a device obtained by the electronic device lacks the necessary information for the policy tree to make a logical judgment, so that the electronic device cannot judge whether the obtained information meets the decision conditions of the policy tree. For example, when a video application shoots ultra-clear video, it needs to make a decision based on the storage space of the device. However, the electronic device does not obtain the above information. Therefore, the policy tree cannot make a logical judgment (the storage space of the device has met the requirements of the decision conditions, but because the information is not obtained, the policy tree cannot make a logical judgment). Finally, the result that the information obtained by the electronic device does not meet the policy tree will be output. The electronic device cannot perform related operations based on the business configuration of the policy tree, resulting in the electronic device being unable to accurately perform related operations.
[0045] In order to solve the technical problems in the related art, the embodiment of the present disclosure provides a business processing method, the electronic device can obtain the request information for requesting to use the business function of the application, determine the target version of the business function matching the request information, obtain multiple policy trees of the target version, and determine the data source corresponding to each decision condition, wherein the multiple policy trees correspond one to one to the multiple business configurations of the target version, the electronic device can obtain multiple target decision information required for logical judgment of multiple policy trees in multiple data sources based on the request information, and obtain the priority relationship between the multiple policy trees, verify the multiple target decision information based on the priority relationship and the multiple decision conditions in each policy tree, and determine the target policy tree, wherein the target policy tree is a policy tree that has passed the verification, and the electronic device can determine the business configuration corresponding to the target policy tree as the business configuration corresponding to the request information. In the above method, since the electronic device can obtain the decision information in the data source corresponding to the decision condition without retrieving other data sources, the efficiency of business processing can be improved, and since the data source corresponding to the decision condition can include the decision information associated with the decision condition, the electronic device can obtain all the information required for logical judgment of the policy tree based on the data source, and the electronic device can accurately determine the business configuration related to the request information, thereby improving the accuracy of the operation.
[0046] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0047] Figure 2 A flowchart of a business processing method provided by an embodiment of the present disclosure. Figure 2 , the method may include:
[0048] S201: Obtain request information for using a business function of an application.
[0049] The execution subject of the embodiments of the present disclosure may be an electronic device, or a business processing device provided in the electronic device. Among them, the business processing device may be implemented based on software, or the business processing device may be implemented based on a combination of software and hardware, which is not limited in the embodiments of the present disclosure. Optionally, the electronic device may be any device with end-to-end computing capabilities. For example, the electronic device may be a computer, a mobile device, a server, or other device, which is not limited in the embodiments of the present disclosure.
[0050] It should be noted that the service processing device in the embodiment of the present disclosure may be a pluggable device, which can facilitate the expansion of the data source and improve the efficiency of determining the service configuration.
[0051] Optionally, the application may be an application with business functions, wherein the business functions may include video shooting function, video playback function, audio playback function, voice interaction function, etc., which are not limited in the embodiments of the present disclosure. For example, the application may be a video playback application, an audio playback application, a live broadcast application, etc., which are not limited in the embodiments of the present disclosure.
[0052] Optionally, the request information may be used to request the use of a service function of an application. For example, the request information may be used to request the use of a video capture function in a video application, or the request information may be used to request the use of an audio trimming function in an audio application, etc. The function of the request information may be determined based on a specific application scenario, and the embodiments of the present disclosure do not limit this.
[0053] Optionally, the request information may be flow information used for decision making. For example, the request information may be data exchange information between the client and the server, and the server may control the client to make a decision on related operations based on the data exchange information.
[0054] Optionally, the request information may include user information and device information. For example, the request information may include an identifier associated with the user and an identifier associated with the device, wherein the identifier associated with the user may indicate a unique user, and the identifier associated with the device may indicate a unique type of device.
[0055] Optionally, the electronic device may obtain request information for requesting to use the business function of the application based on the user's operation. For example, the terminal device may run the client of the application, and the client may provide the user with a user interaction interface, which includes controls associated with multiple business functions. When the user clicks on the relevant control, the electronic device may obtain the request information. For example, the client may include a video recording control. When the user clicks on the video recording control, the server may obtain request information for requesting to use the video recording function, and the request information may include an identifier associated with the user and an identifier associated with the device.
[0056] It should be noted that when the terminal device obtains the request information, the application can provide a corresponding operation entry, and the user can choose to authorize the application to obtain the request information based on the operation entry, or choose to deny the application from obtaining the request information.
[0057] It should be noted that the electronic device may also obtain the request information for requesting to use the service function of the application program based on any feasible implementation method, and the embodiments of the present disclosure are not limited to this.
[0058] Next, combine Figure 3 , explaining the process of an electronic device obtaining requested information.
[0059] Figure 3 A schematic diagram of a process for obtaining request information provided by an embodiment of the present disclosure. Figure 3 , including: a terminal device and a server. The display page of the terminal device is a video playback page of a video application, and the display page includes the video being played, a homepage control, and a shooting control. When a user clicks the shooting control, the terminal device can send a request message to the server, and the request message is used to request the use of a video shooting function of the video application. The request message may include an identifier associated with a user who logs in to the client of the video application and an identifier associated with the terminal device.
[0060] S202: Determine a target version of the business function that matches the request information.
[0061] The business function includes multiple versions. For example, the multiple versions may include at least one of the following: an online version, a gray version, and a test version.
[0062] The online version may be the version currently used by the business function. For example, the online version may be the version officially launched by the business function, and the online version may be the version used by most users when using the function.
[0063] The gray version can be a version of the business function that is about to be launched. For example, before a new version of a business function is launched, a gray version corresponding to the new version can be launched first. Only some users can use the gray version. In this way, problems in the new version of the business function can be discovered in time, and then repaired in time, improving the stability and reliability of the business function.
[0064] The test version may be a version for testing business functions. For example, a test version is usually designed for developers or testers to perform function verification, problem debugging or other special needs in an independent environment. It will not affect the access traffic of online users. For example, before developing a new version of a business function, a test version can be developed first, and then the business function can be tested based on the test version. Only some users can use the test version, so that the version of the business function can be updated based on user feedback, thereby improving the use effect of the business function and improving the user experience.
[0065] Among them, the target version can be a version that matches the request information. For example, the target version can be one of the online version, grayscale version and test version of the business function, and the target version can also be other versions of the business function, which is not limited in the embodiments of the present disclosure. For example, based on the characteristics of each version, the electronic device can determine the target version of the business function by obtaining the request information. For example, if the identifier associated with the user indicates that the user is a non-test user, the electronic device can determine the target version based on the online version; if the identifier associated with the user indicates that the user is a grayscale user, the electronic device can determine the target version based on the grayscale version; if the identifier associated with the user indicates that the device is a device to be tested, the electronic device can determine the target version based on the test version.
[0066] It should be noted that when the electronic device obtains the request information, it can also determine the target version that matches the request information based on any feasible implementation method, and the embodiments of the present disclosure are not limited to this.
[0067] Optionally, the target version includes multiple business configurations corresponding to the business function. For example, the business configuration may be a configuration for when the terminal device uses the business function. For example, if the business function is a video shooting function, the multiple business configurations corresponding to the business function may be: shooting standard definition video, shooting high definition video, and shooting ultra-high definition video. For example, for the target version of the video shooting function, when the terminal device uses this version, it can shoot standard definition video, high definition video, or ultra-high definition video, which is specifically determined by the business configuration of the video shooting function determined by the electronic device.
[0068] S203: Obtain multiple policy trees of the target version.
[0069] Among them, the policy tree can perform logical judgment based on the request information, and each policy tree can include multiple decision conditions. For example, the decision condition can be a judgment logic, and multiple judgment logics can be logically assembled using "and" and "or" to obtain a policy tree. For example, the decision condition can be: the storage space of the device is greater than or equal to 256G, the decision condition can also be: the running memory of the device is greater than or equal to 4G, etc. It should be noted that the decision condition can be determined based on the needs of the business function, and the embodiments of the present disclosure are not limited to this.
[0070] Among them, multiple policy trees correspond to multiple business configurations one by one. For example, multiple policy trees of the target version correspond to multiple business configurations included in the target version. For example, the target version may include policy tree 1, policy tree 2, policy tree 3, business configuration A, business configuration B, and business configuration C, wherein policy tree 1 may correspond to business configuration A, policy tree 2 may correspond to business configuration B, and policy tree 3 may correspond to business configuration C.
[0071] It should be noted that when developers develop versions of business functions, multiple strategy trees may be designed for each version, which is not limited in the embodiments of the present disclosure.
[0072] It should be noted that the correspondence between the policy tree and the service configuration may be a preset relationship, and the correspondence may be determined based on the requirements of the service function or based on any other feasible implementation manner, which is not limited in the embodiments of the present disclosure.
[0073] Next, combine Figure 4 , explain the strategy tree.
[0074] Figure 4 A schematic diagram of a strategy tree provided by an embodiment of the present disclosure. Figure 4 , including a policy tree. The policy tree includes three decision conditions. The first decision condition is: the device's running memory is greater than or equal to 8G, the second decision condition is: the device's camera pixel is greater than or equal to 48 million pixels, and the third decision condition is that the device's storage space is greater than or equal to 256G. Figure 4 In the illustrated embodiment, if any one of the decision conditions is not satisfied, the logical judgment result of the strategy tree is not satisfied (ie, verification fails); if all the decision conditions are satisfied, the logical judgment result of the strategy tree is satisfied (ie, verification succeeds).
[0075] It should be noted that Figure 4 The illustrated embodiment is only an example of a strategy tree, not a limitation of the strategy tree. Multiple decision conditions in a strategy tree may also be in an "or" relationship, which is not limited in the present embodiment.
[0076] S204: Determine the data source corresponding to each decision condition.
[0077] Among them, the data source includes decision information associated with the decision condition. Optionally, the decision information is used as information for the strategy tree to perform logical judgment. For example, the strategy tree may include multiple decision conditions, each decision condition has associated decision information, and the strategy tree can perform logical judgment on the decision information based on the decision conditions. For example, if the decision condition is: the storage space of the device is greater than or equal to 256G, then the decision information related to the decision condition can be the size of the storage space of the device; if the decision condition is: the running memory of the device is greater than or equal to 8G, then the decision information related to the decision condition can be the size of the running memory of the device.
[0078] Optionally, the electronic device may include multiple data sources, wherein the data types of the multiple data sources are different. For example, data source 1 may include user information, and data source 2 may include device information, etc., which is not limited in the embodiments of the present disclosure.
[0079] It should be noted that the electronic device can generate multiple data sources based on any feasible implementation method (for example, based on the type of information stored in the data source, multiple data sources are generated, the data type in each data source is the same, and the data types between different data sources are different), and the embodiments of the present disclosure are not limited to this.
[0080] Optionally, the electronic device can determine the data source corresponding to each decision condition based on the following feasible implementation method: for any decision condition, determine the condition type associated with the decision condition, obtain a preset relationship, and determine the data source corresponding to the decision condition based on the condition type and preset relationship associated with the decision condition.
[0081] The condition type may be the type of information required for the decision condition to perform logical judgment. For example, if the decision condition is: the storage space of the device is greater than or equal to 256G, the decision condition requires device information for logical judgment, so the condition type of the decision condition may be the device type; if the decision condition is: the device temperature is less than or equal to 30 degrees, the decision condition requires device information for logical judgment, so the condition type of the decision condition may be the environment type.
[0082] It should be noted that the electronic device can pre-set the condition type associated with each decision condition, or determine the condition type of the decision condition based on the keywords in the decision condition (for example, if the decision condition includes "device", the condition type is the device type), and the embodiments of the present disclosure are not limited to this.
[0083] The preset relationship includes at least one condition type and a data source corresponding to each condition type. For example, the preset relationship may be as shown in Table 1:
[0084] Table 1
[0085] Condition Type Data Source Type 1 Data Source 1 Type 2 Data Source 2 Type 3 Data Source 3 …… ……
[0086] It should be noted that Table 1 is only an example to illustrate the preset relationship, and is not a limitation on the preset relationship.
[0087] For example, if the condition type associated with the decision condition is type 1, the data source corresponding to the decision condition is data source 1; if the condition type associated with the decision condition is type 2, the data source corresponding to the decision condition is data source 2; if the condition type associated with the decision condition is type 3, the data source corresponding to the decision condition is data source 3.
[0088] Optionally, the data sources of multiple decision conditions can be the same. For example, the condition types of multiple decision conditions of the policy tree can be the same, so the data sources corresponding to the multiple decision conditions can also be the same. For example, if decision condition 1 is: the storage space of the device is greater than or equal to 256G, and decision condition 2 is: the running memory of the device is greater than or equal to 4G, then the condition types of decision condition 1 and decision condition 2 are both device types, so the data sources corresponding to decision condition 1 and decision condition 2 are both data sources for storing device information.
[0089] It should be noted that the electronic device may also pre-set the data source corresponding to each decision condition, and the electronic device may also determine the data source corresponding to the decision condition based on any other feasible implementation method, which is not limited in the embodiments of the present disclosure.
[0090] Next, combine Figure 5 , the relationship between multiple decision conditions of the strategy tree and the data source is explained.
[0091] Figure 5 A schematic diagram of the relationship between a decision condition and a data source provided in an embodiment of the present disclosure. Figure 5 , including: a strategy tree and a data source set. Among them, the strategy tree includes 3 decision conditions, the first decision condition is: the network bandwidth of the device is greater than or equal to 1000kb / s, the second decision condition is: the running memory of the device is greater than or equal to 4G, and the third decision condition is that the device storage space is greater than or equal to 256G. The data source set can include user data source, device data source, ..., network performance data source.
[0092] See also Figure 5 ,Since the first decision condition is related to network performance, and the second and third decision conditions are related to device hardware, the electronic device ( Figure 5 (not shown) can determine that the first decision condition corresponds to the network performance data source, and the second decision condition and the third decision condition correspond to the device data source. In this way, when the electronic device obtains more information based on the request information, it can obtain information from the relevant data source, thereby improving the efficiency and accuracy of data acquisition.
[0093] S205: Determine a service configuration corresponding to the request information based on the request information, multiple data sources, and multiple policy trees.
[0094] Among them, the electronic device can determine the business configuration corresponding to the request information based on the following feasible implementation method: based on the request information, obtain multiple target decision information required for logical judgment of multiple strategy trees from multiple data sources, and determine the business configuration corresponding to the request information based on the multiple target decision information and multiple strategy trees.
[0095] The target decision information may be information required for the strategy tree to make logical judgments. For example, if one of the decision conditions in the strategy tree is: the running memory of the device is greater than or equal to 4G, then the target decision information may be: the running memory of the device; if one of the decision conditions in the strategy tree is: the storage space of the device is greater than or equal to 256G, then the target decision information may be: the storage space of the device.
[0096] Optionally, for any strategy tree, the electronic device can obtain the target decision information required for the strategy tree to perform logical judgment based on the request information from multiple data sources corresponding to multiple decision conditions of the strategy tree. For example, the request information may include an identifier associated with the device. If the decision condition of the strategy tree is: the network bandwidth of the device is greater than or equal to 1000kb / s, the electronic device can obtain the network bandwidth of the device based on the identifier associated with the device from the network performance data source associated with the decision condition, and then perform logical judgment. If the decision condition of the strategy tree is: the storage space of the device is greater than or equal to 256G, the electronic device can obtain the storage space of the device based on the identifier associated with the device from the device data source associated with the decision condition, and then perform logical judgment. In this way, the electronic device can accurately obtain the target decision information required for multiple strategy trees to perform logical judgment. The accuracy of the target decision information is high, which can improve the accuracy of the service configuration.
[0097] It should be noted that the multiple target decision information obtained by the electronic device may include all the information required for the strategy trees to perform logical judgments, which is not limited in the embodiments of the present disclosure.
[0098] It should be noted that the electronic device can also obtain target decision information from multiple data sources based on any other feasible implementation method (for example, determine the parameter type required for the decision condition, based on the identifier associated with the user or the identifier associated with the device in the request information, combined with the parameter information, to obtain the target decision information in the data source corresponding to the decision condition), and the embodiments of the present disclosure are not limited to this.
[0099] Among them, the electronic device determines the business configuration corresponding to the request information based on multiple target decision information and multiple policy trees, which can be specifically: obtaining the priority relationship between multiple policy trees, verifying the multiple target decision information based on the priority relationship and multiple decision conditions in each policy tree, determining the target policy tree, and determining the business configuration corresponding to the target policy tree as the business configuration corresponding to the request information.
[0100] Among them, the priority relationship can indicate the order in which multiple policy trees verify the target decision information. For example, if the priority of policy tree 1 is higher than that of policy tree 2, and the priority of policy tree 2 is higher than that of policy tree 3, the electronic device can first verify the target decision information based on policy tree 1. If the verification fails, the target decision information is verified based on policy tree 2. If the verification fails, the target decision information is verified based on policy tree 3. In this way, the flexibility of verifying the target policy information can be improved, and the flexibility of determining the service configuration can be improved.
[0101] It should be noted that the priority relationship between the multiple strategy trees may be a pre-set relationship, or the priority relationship between the multiple strategy trees may be determined based on any feasible implementation method, and the embodiments of the present disclosure are not limited to this.
[0102] The target policy tree may be a verified policy tree. For example, the target policy tree may be the first verified policy tree. For example, in actual application, since there is a priority relationship between multiple policy trees, the electronic device may verify the target decision information in sequence according to the priority relationship, and determine the first verified policy tree as the target policy tree.
[0103] Optionally, the electronic device verifies multiple target decision information based on the priority relationship and multiple decision conditions in each strategy tree to determine the target strategy tree. Specifically, for the i-th strategy tree, if the multiple target decision information meets the multiple decision conditions of the i-th strategy tree, the i-th strategy tree is determined as the target strategy tree; if the multiple target decision information does not meet the multiple decision conditions of the i-th strategy tree, the target decision information is verified based on the multiple decision conditions of the i+1-th strategy tree until the verification result is verification passed, and the target strategy tree is obtained.
[0104] Here, i is 1, 2, ..., N-1 in sequence, and N is the number of strategy trees. It should be noted that the electronic device can determine the number of strategy trees based on any feasible implementation method, and the embodiments of the present disclosure are not limited to this.
[0105] For example, Figure 4 In the embodiment shown, if the target decision information is: the device's running memory is 8G, the device's camera has 100 million pixels, and the device's storage space is 512G, then the electronic device can verify the first decision condition based on the device's running memory being 8G (verification passed), verify the second decision condition based on the device's camera having 100 million pixels (verification passed), and verify the third decision condition based on the device's storage space being 512G (verification passed).
[0106] It should be noted that the electronic device can determine whether multiple target decision information meets multiple decision conditions of the strategy tree (ie, the strategy tree verifies the target decision information) based on any feasible implementation method, and the embodiments of the present disclosure are not limited to this.
[0107] For example, the target version includes policy tree 1, policy tree 2 and policy tree 3, wherein policy tree 1 has a higher priority than policy tree 2, and policy tree 2 has a higher priority than policy tree 3. After the electronic device obtains multiple target decision information, it can verify the target decision information based on policy tree 1. If policy tree 1 verifies the target decision information successfully, the electronic device can determine policy tree 1 as the target policy tree. If policy tree 1 fails to verify the target decision information, the electronic device can verify the target decision information based on policy tree 2. If policy tree 2 verifies the target decision information successfully, the electronic device can determine policy tree 2 as the target policy tree. If policy tree 2 fails to verify the target decision information, the electronic device can verify the target decision information based on policy tree 3. If policy tree 3 verifies the target decision information successfully, the electronic device can determine policy tree 3 as the target policy tree. If policy tree 3 fails to verify the target decision information, the electronic device determines that the user cannot use the service function (in actual application, the requirements for multiple decision conditions in policy tree 3 are relatively low, so that most user-related information or device-related information can satisfy the policy tree). In this way, the electronic device can accurately determine the target policy tree, and further accurately determine the service configuration corresponding to the request information.
[0108] It should be noted that before the electronic device verifies the target decision information based on multiple decision conditions in the policy tree, the electronic device can shield the dynamic decision conditions in the policy tree, and then verify the target decision information based on the static decision conditions. For example, in the actual application process, some decision conditions in the policy tree will involve dynamically changing information such as temperature and humidity. These decision conditions can be dynamic nodes. When verifying the target decision information based on the decision tree, the electronic device does not need to consider the verification results of the dynamic nodes. For example, decision condition 1 of the policy tree is: the device storage space is greater than or equal to 256G, decision condition 2 is: the running memory of the device is greater than or equal to 4G, and decision condition 3 is: the temperature is less than 30 degrees. When the electronic device verifies the target decision information based on the decision tree, it can verify the target decision information based on the static nodes (decision conditions 1 and decision conditions 2), and does not need to verify the target decision information based on the dynamic nodes (decision condition 3). In this way, the accuracy of the verification of the target decision information by the policy tree can be improved, and the accuracy of the business configuration can be improved.
[0109] Among them, after the electronic device determines the target policy tree, it can determine the service configuration corresponding to the target policy tree as the service configuration corresponding to the request information. For example, policy tree 1 corresponds to service configuration 1, and policy tree 2 corresponds to service configuration 2. If the electronic device determines that the target policy tree is policy tree 1, the electronic device can determine that the service configuration corresponding to the request information is service configuration 1. If the electronic device determines that the target policy tree is policy tree 2, the electronic device can determine that the service configuration corresponding to the request information is service configuration 2. For example, the service function can be a video shooting function, the service configuration corresponding to policy tree 1 can be shooting 1080P video, and the service configuration corresponding to policy tree 2 can be shooting 720P video. If the target policy tree is policy tree 1, the electronic device can determine that the service configuration corresponding to the request information is shooting 1080P video, that is, the video format of this video shooting can be 1080P. If the target policy tree is policy tree 2, the electronic device can determine that the service configuration corresponding to the request information is shooting 720P video, that is, the video format of this video shooting can be 720P.
[0110] Optionally, when the electronic device determines the service configuration corresponding to the request information, the embodiment of the present disclosure also includes a method for determining the service configuration, the method comprising: determining whether the identifier associated with the device is a preset identifier, if the identifier associated with the device is a preset identifier, then determining that the service configuration corresponding to the request information is the service configuration corresponding to the preset identifier.
[0111] For example, in the actual application process, developers will specify some devices to test specific business configurations. Therefore, when the electronic device determines that the identifier associated with the device in the request information is a preset specific test identifier, the pre-set business configuration can be directly assigned to the device. For example, the target version includes policy tree 1, policy tree 2, and policy tree 3, each policy tree has a corresponding business configuration, and the target decision information related to the identifier associated with the device obtained by the electronic device satisfies policy tree 1. However, since the identifier is a preset specific test ID, and the identifier corresponds to the business configuration of policy tree 3, the electronic device does not determine the business configuration corresponding to policy tree 1 as the business configuration of the device using this business function, but determines the business configuration corresponding to policy tree 3 as the business configuration of the device using this business function.
[0112] It should be noted that the preset device identifier can be a device identifier for targeted testing (for example, using the device to test a fixed service configuration) or a device identifier for observation and adjustment (for example, when shooting video, the service configuration of the device is 720P. If the device has a better effect of shooting 720P video, the effect of the device shooting 1080P video can be observed, that is, when shooting video, the device identifier is bound to the 1080P service configuration). The electronic device can also set a preset device ID based on any other feasible implementation method, which is not limited to the embodiments of the present disclosure.
[0113] The disclosed embodiment provides a business processing method, whereby an electronic device can obtain request information for requesting to use a business function of an application, determine a target version of the business function matching the request information, obtain multiple policy trees of the target version, and determine a data source corresponding to each decision condition, wherein the multiple policy trees correspond one-to-one to multiple business configurations of the target version. The electronic device can obtain multiple target decision information required for logical judgment of multiple policy trees from multiple data sources based on the request information, and obtain a priority relationship between the multiple policy trees. For the i-th policy tree, if the multiple target decision information satisfies the multiple decision conditions of the i-th policy tree, the i-th policy tree is determined as the target policy tree. If the multiple target decision information does not satisfy the multiple decision conditions of the i-th policy tree, the target decision information is verified based on the multiple decision conditions of the i+1-th policy tree until the verification result is that the verification is passed, and the target policy tree is obtained. The electronic device can determine the business configuration corresponding to the target policy tree as the business configuration corresponding to the request information. In the above method, since the electronic device can obtain decision information only from the data source corresponding to the decision condition without searching other data sources, the efficiency of business processing can be improved. Moreover, since the data source corresponding to the decision condition can include all decision information associated with the decision condition, the electronic device can obtain all the information required for logical judgment of the strategy tree based on the data source. The electronic device can accurately determine the business configuration related to the request information, thereby improving the accuracy of the operation.
[0114] exist Figure 2 Based on the embodiment shown below, combined with Figure 6 , further illustrating the method for determining the target version of the business function matching the request information in the above business processing method.
[0115] Figure 6 A schematic diagram of a method for determining a target version provided by an embodiment of the present disclosure. Figure 6 The method flow includes:
[0116] S601. Calculate the percentage of the amount of cutting associated with the business function.
[0117] Optionally, the percentage of the cut-off can be used to indicate the number of users using the gray version. For example, when the gray version is released, the electronic device can cut some users to the gray version and keep the rest of the users in the online version. In this way, when an error occurs in the gray version, the electronic device can cut the users in the gray version back to the online version, thereby improving the reliability and security of the version.
[0118] For example, if the percentage of cutting is 10%, the electronic device can select 10% of the users who use the application to experience the grayscale version. If the percentage of cutting is 20%, the electronic device can select 20% of the users who use the application to experience the grayscale version. In this way, all users can be gradually cut to the grayscale version, and then the new version can be launched.
[0119] It should be noted that the percentage of the amount of cutting associated with the business function can be any set percentage, and the embodiments of the present disclosure are not limited to this.
[0120] It should be noted that after the electronic device determines the percentage of the cut-off amount, it can add the ID of any user to the cut-off users, or it can select the cut-off users based on any feasible implementation method (for example, selecting based on the hash value calculated based on the identifier associated with the user). The present disclosed embodiment does not limit this.
[0121] S602: Determine a candidate version from multiple versions based on the percentage of the cut amount, an identifier associated with the user, and an identifier associated with the device.
[0122] The multiple versions include at least one of the following: an online version, a gray version, and a test version. For example, after the electronic device determines the percentage of the cut amount, it can determine a candidate version from the above three versions based on the percentage of the cut amount, the identifier associated with the user, and the identifier associated with the device.
[0123] Optionally, the electronic device determines a candidate version from multiple versions, and there are three situations as follows:
[0124] Case 1: The identifier associated with the user is an identifier indicating a percentage of the cut amount.
[0125] If the identifier associated with the user is an identifier indicating the percentage of the cut amount, the candidate version is determined to be a grayscale version. For example, if the percentage of the cut amount is 10%, and the identifier associated with the user is within the identifier range of 10%, it means that the user can be a test user of the grayscale version, and the electronic device can determine that the candidate version is a grayscale version.
[0126] Case 2: The identifier associated with the device is a preset test identifier.
[0127] If the identifier associated with the device is a preset test identifier, the candidate version is determined to be a test version. For example, when testing a test version, the electronic device can pre-define the models of some test devices (such as mobile phone models, computer models, etc.). If the identifier associated with the device is a preset test identifier, it means that the device can be a test device for the test version, and the electronic device can determine that the candidate version is a test version.
[0128] Case 3: The identifier associated with the user is not within the identifier range indicated by the percentage of the cut amount, and the identifier associated with the device is not within the preset test identifier range.
[0129] If the identifier associated with the user is not within the identifier range indicated by the percentage of the cut amount, and the identifier associated with the device is not within the preset test identifier range, the candidate version is determined to be an online version. For example, if the percentage of the cut amount is 10%, if the identifier associated with the device indicates that the user is a user of the other 90%, and the device used by the user is not a test device, it means that the user is a user who normally uses business functions, so the electronic device can determine that the candidate version is an online version.
[0130] Next, combine Figure 7 , describes the process of determining candidate versions.
[0131] Figure 7 A schematic diagram of a process for determining a candidate version provided by an embodiment of the present disclosure. Figure 7 , including: grayscale users and test devices. Among them, the grayscale users may include user 1, user 2, ..., user n, and the test devices may include device 1, device 2, ..., device n. Electronic device ( Figure 7 (not shown) 3 request information can be obtained, wherein request information 1 includes user 1 and device A, request information 2 includes user A and device 1, and request information 3 includes user A and device B.
[0132] See also Figure 7 , since request information 1 includes user 1, and user 1 is a grayscale user, the electronic device can determine that the version matched by request information 1 is a grayscale version. Since request information 2 includes device 1, and device 1 is a test device, the electronic device can determine that the version matched by request information 2 is a test version. Since user A in request information 3 is not a grayscale user and device B is not a test device, the electronic device can determine that the version matched by request information 3 is an online version. In this way, the electronic device can determine the version matched by each user or device, thereby improving the accuracy of service configuration.
[0133] S603: Determine the target version based on the candidate versions.
[0134] The electronic device determines the target version based on the candidate version, which may be specifically: determining whether the candidate version has an associated experimental group, if so, determining the experimental version as the target version, if not, determining the candidate version as the target version.
[0135] The experimental group includes experimental versions, and the experiments in the experimental group are related to the business functions. For example, the business function is the video shooting function, and the candidate version determined by the electronic device is the online version, wherein the online version has experiments A and B, and each experiment has an experimental version. If experiment A is related to the video shooting function, and experiment B is not related to the video shooting function, the electronic device can determine experiment A as the experimental group of the candidate version. If both experiments A and B are not related to the video shooting function, the electronic device can determine that there is no associated experimental group for the online version.
[0136] Optionally, if there is an experimental group associated with the candidate version, the electronic device can determine the experimental version in the experimental group as the target version. For example, after the electronic device determines that the candidate version is an online version, if there is an experimental group associated with the online version, it means that the experimental group is an optimization experiment for the online version of the business function. Therefore, the electronic device can determine the experimental version in the experimental group as the target version, and then accurately test the experimental version in the experimental group. In this way, it can avoid directly modifying the policy tree in the online version, avoid affecting the stability of the online version, and then improve the stability and reliability of the online version.
[0137] It should be noted that the electronic device can determine whether there is an experimental group for the candidate version based on any feasible implementation method, and the embodiments of the present disclosure are not limited to this.
[0138] The disclosed embodiment provides a method for determining a target version, calculating the percentage of the amount of cutting associated with a business function, and if the identifier associated with the user is an identifier indicating the percentage of the amount of cutting, the candidate version is determined to be a gray version, if the identifier associated with the device is a preset test identifier, the candidate version is determined to be a test version, if the identifier associated with the user is not within the identifier range indicated by the percentage of the amount of cutting, and the identifier associated with the device is not within the preset test identifier range, the candidate version is determined to be an online version, and it is determined whether the candidate version has an associated experimental group, if so, the experimental version is determined as the target version, if not, the candidate version is determined as the target version. In the above method, the electronic device can accurately determine the candidate version that matches the user or device in multiple versions based on the identifier associated with the user and / or the identifier associated with the device, thereby improving the accuracy of the business configuration, and because the electronic device can avoid directly modifying the policy tree in the candidate version, it can avoid affecting the stability of the candidate version when modifying the policy, and can improve the stability and reliability of the online version.
[0139] Based on any of the above embodiments, Figure 8 , the process of the above business processing method is explained.
[0140] Figure 8 A process diagram of a business processing method provided by an embodiment of the present disclosure. Figure 8 , including: a terminal device, a server, a grayscale user and a test device. A terminal device and a server. Among them, the display page of the terminal device is a video playback page of a video application, and the display page includes the video being played, the home page control and the shooting control. When the user clicks the shooting control, the terminal device can send a request message to the server, and the request message may include an identifier associated with the user who logs in to the client of the video application: user 1, and an identifier associated with the terminal device: device A.
[0141] See also Figure 8 , the grayscale users may include user 1, user 2, ..., user n, and the test devices may include device 1, device 2, ..., device n. The server may determine the candidate version based on the request information. Among them, since the request information obtained by the server includes user 1 and device A, and user 1 is a grayscale user, the server may determine that the candidate version is the grayscale version of the video shooting function. When there is an experimental group for the grayscale version, the server may determine that the target version is the experimental version in the experimental group.
[0142] See also Figure 8, the experimental version includes policy trees 1, ..., policy tree n. Among them, policy tree 1 includes decision conditions a, decision conditions b and decision conditions c. Decision condition a in policy tree 1 is: the pixel of the device's camera is greater than 48 million pixels, decision condition b is: the device's running memory is greater than or equal to 8G, and decision condition c is: the device's storage space is greater than or equal to 256G. The service configuration corresponding to policy tree 1 is 1080P.
[0143] See also Figure 8 , policy tree n includes decision conditions A, B and C. Among them, decision condition A in policy tree n is: the pixel of the device's camera is greater than 8 million pixels, decision condition B is: the device's running memory is greater than or equal to 4G, decision condition C is: the device storage space is greater than or equal to 126G, and the service configuration corresponding to policy tree n is 720P. Among them, policy tree 1 has the highest priority, and policy tree n has the lowest priority.
[0144] See also Figure 8 , the data source may include a user data source, a device data source, ..., a network data source, etc. The server may obtain target decision information from the device data source (the data source corresponding to the decision condition) based on device A and the decision condition, wherein the target decision information may include: the pixel of the camera of device A is 100 million pixels, the running memory of device A is 8 GB, and the storage space of device A is 512 GB.
[0145] See also Figure 8 , the server can verify the target decision information based on strategy tree 1. When strategy tree 1 is verified, the server can determine strategy tree 1 as the target strategy tree, and determine the business configuration corresponding to strategy tree 1 as the business configuration of the request information. Therefore, the terminal device can shoot 1080P video. In this way, since the electronic device can quickly obtain decision information from the data source corresponding to the decision condition, the efficiency of business processing can be improved. Moreover, since the data source corresponding to the decision condition can include all decision information associated with the decision condition, the electronic device can obtain all the information required for logical judgment of the strategy tree based on the data source. The electronic device can accurately determine the business configuration related to the request information, thereby improving the accuracy of the operation.
[0146] Fig. 9 This is a schematic diagram of the structure of a service processing device provided by an embodiment of the present disclosure. Fig. 9 The service processing device 901 includes a first acquisition module 901, a first determination module 902, a second acquisition module 903, a second determination module 904 and a third determination module 905, wherein:
[0147] The first acquisition module 901 is used to obtain request information for requesting to use the business function of the application;
[0148] The first determination module 902 is used to determine a target version of the business function that matches the request information, the business function includes multiple versions, and the target version includes multiple business configurations corresponding to the business function;
[0149] The second acquisition module 903 is used to acquire multiple policy trees of the target version, each policy tree includes multiple decision conditions, and the multiple policy trees correspond to the multiple business configurations one by one;
[0150] The second determination module 904 is used to determine a data source corresponding to each decision condition, wherein the data source includes decision information associated with the decision condition;
[0151] The third determination module 905 is used to determine the service configuration corresponding to the request information based on the request information, multiple data sources and multiple policy trees.
[0152] According to one or more embodiments of the present disclosure, the third determination module 905 is specifically configured to:
[0153] Based on the request information, obtaining multiple target decision information required for multiple strategy trees to perform logical judgment from the multiple data sources;
[0154] Based on the multiple target decision information and the multiple strategy trees, a service configuration corresponding to the request information is determined.
[0155] According to one or more embodiments of the present disclosure, the third determination module 905 is specifically configured to:
[0156] Obtaining a priority relationship between the multiple strategy trees;
[0157] Based on the priority relationship and multiple decision conditions in each strategy tree, multiple target decision information is verified to determine a target strategy tree, wherein the target strategy tree is a strategy tree that has passed the verification;
[0158] The service configuration corresponding to the target policy tree is determined as the service configuration corresponding to the request information.
[0159] According to one or more embodiments of the present disclosure, the third determination module 905 is specifically configured to:
[0160] For the i-th strategy tree;
[0161] If the multiple target decision information satisfies multiple decision conditions of the i-th strategy tree, the i-th strategy tree is determined as the target strategy tree;
[0162] If the multiple target decision information does not meet the multiple decision conditions of the i-th strategy tree, then based on the multiple decision conditions of the i+1-th strategy tree, the target decision information is verified until the verification result is that the verification is passed, and the target strategy tree is obtained;
[0163] Herein, the i is 1, 2, ..., N-1 in sequence, and N is the number of the strategy trees.
[0164] According to one or more embodiments of the present disclosure, the first determining module 902 is specifically configured to:
[0165] Calculating the percentage of the amount of cutting associated with the business function;
[0166] Determine a candidate version from the multiple versions based on the percentage of the cut amount, the identifier associated with the user, and the identifier associated with the device, the multiple versions comprising at least one of the following: an online version, a gray version, and a test version;
[0167] Based on the candidate version, the target version is determined.
[0168] According to one or more embodiments of the present disclosure, the first determining module 902 is specifically configured to:
[0169] If the identifier associated with the user is an identifier indicating the percentage of the cut amount, determining that the candidate version is the grayscale version;
[0170] If the identifier associated with the device is a preset test identifier, determining that the candidate version is the test version;
[0171] If the identifier associated with the user is not within the identifier range indicated by the percentage of the cut amount, and the identifier associated with the device is not within the preset test identifier range, the candidate version is determined to be the online version.
[0172] According to one or more embodiments of the present disclosure, the first determining module 902 is specifically configured to:
[0173] Determine whether the candidate version has an associated experimental group, the experimental group includes an experimental version, and the experiment of the experimental group is related to the business function;
[0174] If yes, the experimental version is determined as the target version;
[0175] If not, the candidate version is determined as the target version.
[0176] According to one or more embodiments of the present disclosure, the second determining module 904 is specifically configured to:
[0177] For any one of the decision conditions;
[0178] Determining a condition type associated with the decision condition;
[0179] Acquire a preset relationship, wherein the preset relationship includes at least one condition type and a data source corresponding to each condition type;
[0180] Based on the condition type associated with the decision condition and the preset relationship, a data source corresponding to the decision condition is determined.
[0181] The service processing device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0182] Fig.10 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Fig.10 , which shows a schematic diagram of the structure of an electronic device 1000 suitable for implementing the embodiment of the present disclosure. The electronic device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0183] like Fig.10 As shown, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 to a random access memory (RAM) 1003. Various programs and data required for the operation of the electronic device 1000 are also stored in the RAM 1003. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0184] Typically, the following devices may be connected to the I / O interface 1005: input devices 1006 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1008 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.10 The electronic device 1000 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0185] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 1009, or installed from a storage device 1008, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0186] It should be noted that the computer-readable medium disclosed above 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 disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, 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.
[0187] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0188] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0189] An embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, various methods that may be involved in the above embodiments are implemented.
[0190] An embodiment of the present disclosure provides a computer program product, including a computer program, which implements various methods that may be involved in the above embodiments when executed by a processor.
[0191] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0192] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0193] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0194] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0195] In the context of the present disclosure, 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. It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative and non-restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more". The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information. It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the type, scope of use, and usage scenarios of the personal information involved in the present disclosure should be informed to the user in an appropriate manner in accordance with relevant laws and regulations and the user's authorization should be obtained.
[0196] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server or storage medium that performs the operation of the technical solution of the present disclosure based on the prompt message. As an optional but non-limiting implementation method, in response to receiving an active request from a user, the method of sending a prompt message to the user can be, for example, a pop-up window, and the prompt message can be presented in text in the pop-up window. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0197] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0198] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of the relevant laws and regulations. The data may include information, parameters and messages, such as flow switching indication information.
[0199] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions 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 the present disclosure (but not limited to) by each other.
[0200] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some 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 mode.
[0201] 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.
Claims
1. A business processing method, characterized in that: include: Get request information for using the business function of the application; Determine a target version of the business function that matches the request information, the business function includes multiple versions, and the target version includes multiple business configurations corresponding to the business function; Acquire multiple policy trees of the target version, each policy tree including multiple decision conditions, and the multiple policy trees correspond one-to-one to the multiple business configurations; Determining a data source corresponding to each decision condition, wherein the data source includes decision information associated with the decision condition; Based on the request information, multiple data sources and multiple policy trees, a service configuration corresponding to the request information is determined.
2. The method according to claim 1, characterized in that The determining, based on the request information, multiple data sources, and multiple strategy trees, a service configuration corresponding to the request information includes: Based on the request information, obtaining multiple target decision information required for multiple strategy trees to perform logical judgment from the multiple data sources; Based on the multiple target decision information and the multiple strategy trees, a service configuration corresponding to the request information is determined.
3. The method according to claim 2, characterized in that The determining, based on the multiple target decision information and the multiple strategy trees, the service configuration corresponding to the request information includes: Obtaining a priority relationship between the multiple strategy trees; Based on the priority relationship and multiple decision conditions in each strategy tree, multiple target decision information is verified to determine a target strategy tree, wherein the target strategy tree is a strategy tree that has passed the verification; The service configuration corresponding to the target policy tree is determined as the service configuration corresponding to the request information.
4. The method according to claim 3, characterized in that The step of verifying multiple target decision information based on the priority relationship and multiple decision conditions in each strategy tree to determine a target strategy tree includes: For the i-th strategy tree; If the multiple target decision information satisfies multiple decision conditions of the i-th strategy tree, the i-th strategy tree is determined as the target strategy tree; If the multiple target decision information does not meet the multiple decision conditions of the i-th strategy tree, then based on the multiple decision conditions of the i+1-th strategy tree, the target decision information is verified until the verification result is that the verification is passed, and the target strategy tree is obtained; Herein, the i is 1, 2, ..., N-1 in sequence, and N is the number of the strategy trees.
5. The method according to any one of claims 1 to 4, characterized in that: The request information includes an identifier associated with a user and an identifier associated with a device; and determining a target version of the business function that matches the request information includes: Calculating the percentage of the amount of cutting associated with the business function; Determine a candidate version from the multiple versions based on the percentage of the cut amount, the identifier associated with the user, and the identifier associated with the device, the multiple versions comprising at least one of the following: an online version, a gray version, and a test version; Based on the candidate version, the target version is determined.
6. The method according to claim 5, characterized in that The determining of a candidate version from the multiple versions based on the percentage of the cut amount, the identifier associated with the user, and the identifier associated with the device includes: If the identifier associated with the user is an identifier indicating the percentage of the cut amount, determining that the candidate version is the grayscale version; If the identifier associated with the device is a preset test identifier, determining that the candidate version is the test version; If the identifier associated with the user is not within the identifier range indicated by the percentage of the cut amount, and the identifier associated with the device is not within the preset test identifier range, the candidate version is determined to be the online version.
7. The method according to claim 5, characterized in that The determining the target version based on the candidate version includes: Determine whether the candidate version has an associated experimental group, the experimental group includes an experimental version, and the experiment of the experimental group is related to the business function; If yes, the experimental version is determined as the target version; If not, the candidate version is determined as the target version.
8. The method according to any one of claims 1 to 4, characterized in that: The step of determining the data source corresponding to each decision condition includes: For any one of the decision conditions; Determining a condition type associated with the decision condition; Acquire a preset relationship, wherein the preset relationship includes at least one condition type and a data source corresponding to each condition type; Based on the condition type associated with the decision condition and the preset relationship, a data source corresponding to the decision condition is determined.
9. A service processing device, characterized in that: It includes a first acquisition module, a first determination module, a second acquisition module, a second determination module and a third determination module, wherein: The first acquisition module is used to obtain request information for requesting to use the business function of the application program; The first determination module is used to determine a target version of the business function that matches the request information, the business function includes multiple versions, and the target version includes multiple business configurations corresponding to the business function; The second acquisition module is used to acquire multiple policy trees of the target version, each policy tree includes multiple decision conditions, and the multiple policy trees correspond to the multiple business configurations one by one; The second determination module is used to determine a data source corresponding to each decision condition, wherein the data source includes decision information associated with the decision condition; The third determination module is used to determine the service configuration corresponding to the request information based on the request information, multiple data sources and multiple policy trees.
10. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the business processing method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the business processing method according to any one of claims 1 to 8 is implemented.