Business processing method and equipment
Through the business side actively obtaining and processing data when triggering target rules and directly executing business logic, the problem of cumbersome interaction between the rule center and the business side in e-commerce business processing is solved, and efficiency and access friendliness are improved.
Patent Information
- Application Number
- CN202110096911.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-25
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2041-01-25
AI Technical Summary
During the e-commerce business processing process, the interaction process between the rule center and the business end is cumbersome, resulting in low business processing efficiency. Some business end interfaces do not comply with the rules center interface specifications, and cannot upload data or receive processing results normally, affecting business processing .
When triggering the target rule, the business side actively obtains the pending data and performs data processing, directly executes the business logic, avoids sending the data processing results back to the business side, and simplifies the interaction process between the rule center and the business side. Through preset plug-ins and interface specifications, different interface specifications are adapted to achieve data acquisition and business processing.
It reduces the cumbersomeness of business processing, improves business processing efficiency, enhances the access friendliness of the business side, and can realize business processing even if the interface does not comply with the specifications, simplifies the interaction between the rule center and the business side.
Smart Images

Figure CN112767036B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular, to a service processing method and device. Background Art
[0002] With the development of e-commerce, more and more businesses are being carried out based on e-commerce, and more and more business rules are covered, such as activity rules, reward and punishment rules, platform governance rules, etc.
[0003] At present, when the business end, that is, the requesting party, performs business processing, sends the corresponding business processing request to the rule center, obtains the relevant data to be processed, and then uploads the data to be processed to the rule center. The rule center receives the business processing request and the data to be processed sent by the business end, determines the target rule according to the business processing request, and then performs corresponding data processing on the data to be processed according to the target rule to obtain the data processing result, and returns the data processing result to the business end. The business end receives the data processing result and uses the data processing result to execute specific business logic to realize business processing.
[0004] However, when performing business processing, the business end needs to send a business processing request and the data to be processed to the rule center. The rule center processes the data to be processed according to the business processing request. After obtaining the data processing result, it needs to return the data processing result to the business end. The business end receives the data processing result and then performs business processing based on the data processing result. This makes the interaction process between the rule center and the business end cumbersome, which leads to a cumbersome business processing process and low business processing efficiency. Summary of the invention
[0005] The embodiments of the present disclosure provide a service processing method and device to improve the efficiency of service processing.
[0006] In a first aspect, an embodiment of the present disclosure provides a service processing method, including:
[0007] When a target rule is triggered, the to-be-processed data corresponding to the target rule is obtained according to a preset data acquisition method;
[0008] Performing data processing on the data to be processed according to the target rule to obtain a data processing result;
[0009] According to the preset data processing method, corresponding business processing is performed on the data processing result.
[0010] In a second aspect, an embodiment of the present disclosure provides a service processing device, including:
[0011] A data acquisition module, used to acquire the to-be-processed data corresponding to the target rule according to a preset data acquisition method when the target rule is triggered;
[0012] A processing module, used for performing data processing on the data to be processed according to the target rule to obtain a data processing result;
[0013] The processing module is also used to perform corresponding business processing on the data processing result according to a preset data processing method.
[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: at least one processor and a memory.
[0015] The memory stores computer executable instructions.
[0016] The at least one 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.
[0017] 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.
[0018] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the business processing method described in the first aspect and various possible designs of the first aspect.
[0019] The disclosed embodiment provides a business processing method and device, which includes, when triggering a target rule, obtaining the to-be-processed data corresponding to the target rule according to a preset data acquisition method; performing data processing on the to-be-processed data according to the target rule to obtain a data processing result; and performing corresponding business processing on the data processing result according to a preset data processing method. The disclosed embodiment triggers the target rule when determining that the first device, i.e., the business end, needs to perform business processing, and actively obtains the required to-be-processed data from the business end, and then performs corresponding data processing on the to-be-processed data according to the target rule to obtain a data processing result. After obtaining the data processing result, specific business logic is directly executed on the data processing result to realize business processing, without sending the data processing result to the business end, so that the business end performs business processing according to the data processing result, simplifying the interaction process between the rule center and the business end, thereby reducing the tediousness of business processing and improving the efficiency of business processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] 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.
[0021] Figure 1 A schematic diagram of a scenario of a business processing method provided by an embodiment of the present disclosure;
[0022] Figure 2 Schematic diagram of the process of the business processing method provided in the embodiment of the present disclosure Figure 1 ;
[0023] Figure 3 Schematic diagram of the process of the business processing method provided in the embodiment of the present disclosure Figure 2 ;
[0024] Figure 4 A schematic diagram of an online store provided by an embodiment of the present disclosure;
[0025] Figure 5 A structural block diagram of a service processing device provided in an embodiment of the present disclosure;
[0026] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] 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.
[0028] At present, when the business end performs business processing, it sends the corresponding business processing request to the rule center so that the rule center can obtain the target business rules. Then the business end collects relevant business data and uploads the business data to the rule center. The rule center receives the business data sent by the business end, and performs corresponding data processing on the business data according to the target business rules to obtain the data processing results, and returns the data processing results to the business end. The business end receives the data processing results and uses the data processing results to execute specific business logic to realize business processing. However, when performing business processing, the interaction process between the rule center and the business end is cumbersome, resulting in cumbersome business processing process and low business processing efficiency. At the same time, when uploading business data, the business end needs to use the interface configured based on the relevant interface specifications corresponding to the rule center to upload the business data to the rule center, and when the business end receives the data processing results, it also needs to use the interface configured based on the relevant interface specifications corresponding to the rule center to receive the data processing results in order to perform business processing based on the data processing results. This method is not friendly to some business end access, that is, when the interface of the business end is not configured according to the interface specifications corresponding to the rule center, the business end cannot upload business data and / or receive data processing results, and thus cannot implement business processing.
[0029] Therefore, in response to the above problems, the technical concept of the present invention is that after the target business rule is triggered at a fixed time, if the data acquisition interface of the business end is configured according to the interface specification corresponding to the rule center, the rule center directly calls the data acquisition interface to obtain the required business data from the business end. If the data acquisition interface of the business end is not configured according to the interface specification corresponding to the rule center, the first preset plug-in configured according to the interface specification corresponding to the rule center is called locally to communicate with the data acquisition interface through the first preset plug-in, thereby obtaining business data. After the rule center processes the acquired business data according to the target business rule to obtain the data processing result, it needs to execute specific business logic, that is, to perform business processing. When the business processing interface of the business end is configured according to the interface specification corresponding to the rule center, the rule center directly calls the interface to perform business processing on the data processing result. When the business processing interface of the business end is not configured according to the interface specification corresponding to the rule center, indicating that the rule center cannot directly call the business processing interface to perform business processing, the second preset plug-in configured according to the interface specification corresponding to the rule center is called locally to call the business processing through the second preset plug-in. There is no need to send the data processing result to the business end so that the business end can perform business processing, and the business rules can be triggered periodically, without triggering the business rules after receiving the relevant request, which simplifies the interaction process between the rule center and the business end, thereby reducing the cumbersomeness of business processing and improving the efficiency of business processing. At the same time, the business data corresponding to different business ends can be obtained through the first preset plug-in, and the business processing interfaces of different business ends can be called through the second preset plug-in to perform business processing, thereby improving the access friendliness of the business end. Even if the relevant interface of the business end is not configured according to the relevant specifications, the business processing can still be realized.
[0030] See also Figure 1 , Figure 1 Figure 1 is a schematic diagram of a business processing method. Figure 1 As shown, when the electronic device 101 determines that the first device 102 needs to perform business processing, it triggers the target rule and obtains the relevant data to be processed collected by the first device 102 for business processing using the target rule and the business processing.
[0031] The electronic device 101 may be a server, a desktop computer, a laptop computer, or other device capable of processing data. Specifically, it may be a rule center, that is, a rule engine in the rule center.
[0032] The first device 102 may be a server, a desktop computer, a laptop computer, a mobile terminal, or other device that needs to process a service. Specifically, it may be a service end, that is, a requester of a service rule.
[0033] refer to Figure 2 , Figure 2 Schematic diagram of the process of the business processing method provided in the embodiment of the present disclosure Figure 1 The method of this embodiment can be applied in electronic devices, such as Figure 2 As shown, the business processing method includes:
[0034] S201. When a target rule is triggered, the to-be-processed data corresponding to the target rule is obtained according to a preset data acquisition method.
[0035] In the embodiment of the present disclosure, when a certain business rule, i.e., a target rule, needs to be triggered, indicating that the business end, i.e., the first device, needs to process a certain business, then based on a preset data acquisition method, the to-be-processed data corresponding to the target rule is obtained from the business end, i.e., the data required to execute the target rule is obtained. For example, the to-be-processed data is the access data corresponding to the website, and the access data includes the number of visitors corresponding to each time period. For another example, the to-be-processed data is the number of fans of an e-commerce store, such as Figure 3 As shown, the number of fans of Store A is 1,000.
[0036] Optionally, the target rule is composed of at least one preset basic rule element. The preset basic rule element is the smallest execution unit of the minimum rule, which is equivalent to a method, function or interface. When configuring a business rule, you can select the required preset basic rule element from the preset basic rule elements, and then combine the required preset basic rule elements to obtain the business rule.
[0037] Further, optionally, when selecting the required preset basic rule elements from the preset basic rule elements, the selection can be made manually by relevant personnel, or the electronic device can automatically obtain at least one keyword corresponding to the business rule to be configured, and for each keyword in the at least one keyword, a preset basic rule element whose element keyword is the same as the keyword is selected from the preset basic rule elements. The rules are configured using all the selected preset basic rule elements. For example, the rule to be configured is to count the number of visitors and the number of people who purchase goods within a specified time period, and the keywords corresponding to the rule are visitor statistics and purchaser statistics. The preset basic rule element whose element keyword is visitor statistics is obtained, and the preset basic rule element whose element keyword is purchaser statistics is obtained, so as to combine the two obtained preset basic rule elements to obtain the business rule.
[0038] S202: Process the data to be processed according to the target rule to obtain a data processing result.
[0039] In the embodiment of the present disclosure, after obtaining the data to be processed corresponding to the target rule, data processing is performed on the data to be processed based on the target rule, that is, the operation corresponding to the target rule is executed on the data to be processed. When the target rule is executed, that is, all operations corresponding to the target rule are executed, the corresponding data processing result is obtained for specific business processing using the data processing result.
[0040] S203: Perform corresponding business processing on the data processing result according to the preset data processing method.
[0041] In the embodiment of the present disclosure, after obtaining the data processing result based on the target rule and the data to be processed, it indicates that the data processing result needs to be used to execute specific business logic. Then, based on the preset data processing method, the data processing result is subjected to corresponding business processing, that is, the specific business logic is executed to realize business processing. There is no need to send the data processing result to the first device so that the first device can reuse the data processing result for business processing, thereby simplifying the steps of business processing and reducing the complexity of business processing.
[0042] Taking a specific application scenario as an example, the first device, that is, the business end needs to determine the best time to place an advertisement on website A. The target rule is to obtain the access data corresponding to website A. The access data includes the number of visitors corresponding to each time period, and the time period with the largest number of visitors is determined according to the number of visitors corresponding to each time period, and it is determined as the best time to place an advertisement. Correspondingly, the data to be processed that needs to be obtained is the access data corresponding to website A. For example, from 9:00 to 10:10, the number of visitors corresponding to website A is 1,000. The data processing result is the best time to place an advertisement. After obtaining the data processing result, that is, when the specific business logic needs to be executed, the electronic device places the corresponding advertisement on website A when the best time to place an advertisement is reached.
[0043] In the embodiments of the present disclosure, different business rules can be obtained by combining preset basic rule elements, so that the preset basic rule elements are reused, thereby improving the reuse rate of the code.
[0044] From the above description, it can be seen that when it is determined that the first device, that is, the business end, needs to perform business processing, the target rule is triggered, and the required data to be processed is actively obtained from the business end, and then the data to be processed is processed accordingly according to the target rule to obtain the data processing result. After obtaining the data processing result, the specific business logic is directly executed on the data processing result to realize the business processing. There is no need to send the data processing result to the business end so that the business end can perform business processing based on the data processing result. The interaction process between the rule center and the business end is simplified, thereby reducing the cumbersomeness of business processing and improving the efficiency of business processing.
[0045] refer to Figure 4 , Figure 4 Schematic diagram of the business processing method provided in the embodiment of the present disclosure Figure 2 .exist Figure 2 Based on the embodiment, when obtaining the data to be processed of the first device, the first preset plug-in or the first preset interface can be directly called to obtain it. The following will describe this process in detail in conjunction with a specific embodiment, such as Figure 4 As shown, the method includes:
[0046] S401: When a target rule is triggered, a first preset plug-in on an electronic device or a first preset interface on a first device is called to obtain to-be-processed data corresponding to the target rule from the first device.
[0047] In the embodiment of the present disclosure, since it is necessary to utilize the data to be processed on the first device, that is, the business data, when executing the target rule, when determining to trigger the business rule, the electronic device calls the first preset plug-in on itself or remotely calls the first preset interface on the first device to obtain the data to be processed on the first device.
[0048] In the disclosed embodiment, optionally, the first preset plug-in is generated based on the first preset standard, and is a UI plug-in installed on the electronic device. The first preset plug-in is used to encapsulate the data acquired by calling the data acquisition interface on the first device according to the preset data format to obtain the corresponding data to be processed, that is, the first preset plug-in can call the data acquisition interface on the business end that does not meet the first preset standard corresponding to the electronic device, thereby using the data acquisition interface to acquire the data to be processed on the business end, thereby acquiring the data to be processed.
[0049] Specifically, when the electronic device acquires the data to be processed corresponding to the first device, when the data acquisition interface on the first device is not configured according to the first preset standard, the electronic device cannot directly communicate with the data acquisition interface to utilize the data collected by the data acquisition interface. The electronic device then implements communication with the data acquisition interface through the first preset plug-in, that is, when utilizing the first preset plug-in to acquire the data to be processed, the electronic device calls the first preset plug-in, and in the process of calling the first preset plug-in, the first preset plug-in remotely calls the relevant data acquisition interface on the first device to acquire the initial data to be processed collected by the data acquisition interface. Since the data acquisition interface does not meet the first preset standard, the electronic device cannot directly utilize the initial data to be processed. The first preset plug-in encapsulates the initial data to be processed so that the encapsulated initial data to be processed meets the preset data format. The encapsulated initial data to be processed is the data to be processed required by the electronic device. The electronic device can directly perform corresponding operations on the encapsulated data to be processed according to the target rule.
[0050] In the embodiment of the present disclosure, optionally, the first preset interface is generated based on a first preset standard, and is used to encapsulate the collected data according to a preset data format to obtain corresponding data to be processed, that is, the first preset interface is configured according to the first preset standard corresponding to the electronic device, and it can communicate directly with the electronic device, that is, the electronic device can directly obtain the data to be processed corresponding to the first device by calling the first preset interface.
[0051] Specifically, when the electronic device obtains the data to be processed corresponding to the first device, when the data acquisition interface on the first device is configured according to the first preset standard, the electronic device can directly communicate with the data acquisition interface to utilize the data collected by the data acquisition interface, that is, the electronic device calls the first preset interface on the first device, and the first preset interface collects relevant data to be processed, and encapsulates the collected data to be processed so that the encapsulated data to be processed meets the preset data format, and the encapsulated data to be processed is the data to be processed required by the electronic device, and then the data to be processed is sent to the electronic device so that the electronic device can perform corresponding operations on the data to be processed according to the target rules.
[0052] It can be understood that the first preset standard is an interface specification related to the data transmission to be processed. When the relevant data acquisition interface on the first device meets the first preset standard, the electronic device can directly communicate with the data acquisition interface to directly obtain the data to be processed through the data acquisition interface. When the data acquisition interface on the first device does not meet the first preset standard, the electronic device cannot directly communicate with the data acquisition interface to directly obtain the data to be processed through the data acquisition interface. Therefore, the first device needs to communicate with the data acquisition interface through the first preset plug-in that meets the first preset standard, so as to achieve the acquisition of the data to be processed.
[0053] In addition, the first preset plug-in is a section of code configured based on the first preset standard, which can also be compatible with other interface specifications, so that it can communicate with an interface that is not configured according to the first preset standard to obtain data to be processed.
[0054] In the disclosed embodiment, when the first device, that is, the service end, has been configured with a data acquisition interface that meets the first preset standard, that is, the first preset interface, the electronic device directly remotely calls the interface to directly obtain the data to be processed using the interface, thereby realizing rapid acquisition of the data to be processed. When the first preset interface is not configured on the service end, the electronic device can use the first preset plug-in to call the data acquisition interface on the service end that does not meet the first preset standard to obtain the data to be processed, thereby avoiding the relevant developers from reconfiguring a new data acquisition interface on the service end according to the first preset standard, that is, configuring the first preset interface on the service end, thereby reducing the workload of the developers. At the same time, by calling the first preset plug-in, the data acquisition interface of different service ends can be called to obtain the data to be processed, so that the data acquisition code is reused.
[0055] In any embodiment, optionally, when the target rule is triggered, it can be triggered periodically or according to a call request sent by the first device.
[0056] Optionally, when the target rule is triggered periodically, the target rule may be triggered at preset intervals to achieve automatic triggering of the target rule. For example, the number of visitors to the website may be counted every three hours.
[0057] Further, optionally, the preset time may be set by a relevant user. Specifically, the electronic device receives rule setting information sent by the first device, the rule setting information including a periodic trigger rule identifier and its corresponding preset time, and then performs settings according to the rule setting information, so as to trigger a target rule corresponding to the periodic trigger rule identifier at every preset time, thereby realizing the timed triggering of the target rule.
[0058] Optionally, when triggered according to a call request, a call request sent by the first device is obtained, wherein the call request includes identification information, a target rule is determined according to the identification information, and the target rule is triggered.
[0059] Specifically, when the first device is executing a certain business, for example, when it needs to determine the best time to place an advertisement on website A, it sends a corresponding call request to the electronic device, so that the electronic device can use the call request to determine the rules to be executed and trigger the rules.
[0060] Optionally, when using the call request to determine the rule to be executed, that is, the target rule, the rule corresponding to the rule identifier in the call request is obtained, the rule corresponding to the rule identifier is searched, and the rule is used as the target rule to determine the target rule.
[0061] Further, optionally, the identification information also includes a device identification. Accordingly, when determining the target rule corresponding to the first device, the target rule can also be determined after the identity of the first device is determined, thereby ensuring the effectiveness and security of business processing. The specific process is: the first device is authenticated according to the device identification to obtain a verification result. If the verification result is successful, the business rule corresponding to the rule identification is obtained.
[0062] Specifically, when the device identifier of the first device is used to authenticate the identity of the first device, it is determined whether there is an identifier identical to the device identifier in the specified position. If there is an identifier identical to the device identifier, it indicates that the first device can use the electronic device for business processing, and the identity authentication of the first device is determined to be successful, that is, the verification result is identity authentication. If there is no identifier identical to the device identifier, it indicates that the first device does not have the authority to use the electronic device for business processing, and the first device is illegal, and the identity authentication of the first device is determined to have failed, that is, the verification result is determined to be verification failure.
[0063] When the verification result is determined to be successful, the first device can use the relevant rules in the electronic device to process data, and the electronic device obtains the target rule corresponding to the rule identifier to use the target rule to process data. When the verification result is determined to be a failed verification, the first device does not have the authority to use the relevant rules in the electronic device, and the electronic device does not need to obtain the target rule, thereby ensuring the effectiveness and security of business processing.
[0064] Optionally, the designated location may be a designated database, hard disk, or other storage location, which is not limited herein.
[0065] S402: Process the data to be processed according to the target rule to obtain a data processing result.
[0066] S403: Perform corresponding business processing on the data processing result according to the preset data processing method.
[0067] In the embodiments of the present disclosure, after obtaining the data processing results, it is necessary to perform specific business logic based on the data processing results. In order to reduce the complexity of business processing, the electronic device can directly perform relevant business logic based on the data processing results, that is, call the second preset plug-in on the electronic device or the second preset interface on the first device to perform corresponding business processing on the data processing results.
[0068] Optionally, the second preset plug-in is generated according to the second preset standard and is installed on the electronic device. The second preset plug-in is used to perform corresponding business processing on the data processing result by calling the business processing interface on the first device, that is, the second preset plug-in can call the business processing interface on the business end that does not meet the second preset standard corresponding to the electronic device, thereby using the business processing interface to execute specific business logic on the data processing result to implement business callback processing.
[0069] Specifically, after the electronic device obtains the data processing result, when the business processing interface on the first device is not generated according to the second preset standard, the electronic device cannot directly communicate with the business processing interface to perform business processing, then the electronic device realizes communication with the business processing interface through the second preset plug-in, that is, when it is determined that business processing is required, the electronic device calls the second preset plug-in, and in the process of calling the second preset plug-in, the second preset plug-in remotely calls the relevant business processing interface on the first device to execute specific business logic on the data processing result based on the business processing interface to realize business processing. For example, the data processing result is the best time for advertising placement corresponding to website A, and the business logic to be executed is: when the best time for advertising placement is reached, the corresponding advertisement is placed on website A.
[0070] Optionally, the second preset interface is generated according to the second preset standard, and is used to perform corresponding business processing on the data processing results, that is, the second preset interface is configured according to the second preset standard corresponding to the electronic device, and it can communicate directly with the electronic device, that is, the electronic device can directly call the second preset interface to use the second preset interface to perform business processing on the data processing results.
[0071] Specifically, when the electronic device performs business processing based on the data processing results, when the interface related to the business processing on the first device is configured according to the second preset standard, the electronic device can directly communicate with the interface to use the interface to perform business processing, that is, the electronic device calls the second preset interface on the first device to use the second preset interface to execute the corresponding business logic based on the data processing results to realize business processing.
[0072] It can be understood that the second preset standard is an interface specification related to business processing. When the relevant business processing interface on the first device meets the second preset standard, the electronic device can directly communicate with the business processing interface to directly process the business through the business processing interface. When the business processing interface on the first device does not meet the second preset standard, the electronic device cannot directly communicate with the business processing interface to directly process the business through the business processing interface. Therefore, the first device needs to communicate with the business processing interface through the second preset plug-in that meets the second preset standard to achieve business processing.
[0073] In addition, the second preset plug-in is a section of code configured based on the second preset standard, which can also be compatible with other interface specifications, so that it can communicate with an interface that is not configured according to the second preset standard to perform business processing.
[0074] The second preset standard may be an interface specification that is the same as the first preset standard, or may be an interface specification that is different from the first preset standard, and may be configured according to actual needs.
[0075] In the disclosed embodiment, when the business end is already configured with a business processing interface that meets the second preset standard, i.e., the second preset interface, the electronic device, i.e., the rule center, directly remotely calls the interface to use the interface for business processing. When the second preset interface is not configured on the business end, it indicates that the rule center cannot directly call the business processing interface on the business end that does not meet the second preset standard to perform business processing. The electronic device can use the second preset plug-in to call the business processing interface on the business end that does not meet the second preset standard to perform business processing, thereby avoiding the relevant developers from reconfiguring a new business processing interface on the business end according to the second preset standard, i.e., configuring the second preset interface, thereby reducing the workload of the developers. At the same time, by calling the second preset plug-in, the business processing interfaces of different business ends can be called to perform business processing, so that the code for business callback is reused, thereby improving the reuse rate of the code.
[0076] Corresponding to the service processing method in the above embodiment, Figure 5 This is a structural block diagram of a service processing device provided in an embodiment of the present disclosure, and the service processing device is applied to an electronic device. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 5 , the device includes: a data acquisition module 501 and a processing module 502.
[0077] The data acquisition module 501 is used to acquire the to-be-processed data corresponding to the target rule according to a preset data acquisition method when the target rule is triggered.
[0078] The processing module 502 is used to process the data to be processed according to the target rule to obtain a data processing result.
[0079] The processing module 502 is further used to perform corresponding business processing on the data processing result according to a preset data processing method.
[0080] In one embodiment of the present disclosure, the data acquisition module 501 is used to:
[0081] A first preset plug-in on the electronic device or a first preset interface on the first device is called to obtain the to-be-processed data corresponding to the target rule from the first device.
[0082] In one embodiment of the present disclosure, the first preset plug-in is generated based on a first preset standard, and is used to encapsulate data obtained by calling a data interface on the first device according to a preset data format to obtain corresponding data to be processed.
[0083] In one embodiment of the present disclosure, the first preset interface is generated based on the first preset standard, and is used to encapsulate the collected data according to a preset data format to obtain corresponding data to be processed.
[0084] In one embodiment of the present disclosure, the processing module 502 is further configured to:
[0085] The second preset plug-in on the electronic device or the second preset interface on the first device is called to perform corresponding business processing on the data processing result.
[0086] In one embodiment of the present disclosure, the second preset plug-in is generated according to the second preset standard, and is used to perform corresponding business processing on the data processing result by calling the business processing interface on the first device.
[0087] In one embodiment of the present disclosure, the second preset interface is generated according to the second preset standard, and is used to perform corresponding business processing on the data processing result.
[0088] In one embodiment of the present disclosure, the target rule is composed of at least one preset basic rule element.
[0089] In one embodiment of the present disclosure, the data acquisition module 501 is further used to:
[0090] Trigger the target rule at preset intervals.
[0091] In one embodiment of the present disclosure, the data acquisition module 501 is further used to:
[0092] A service invocation request sent by the first device is obtained, where the service invocation request includes identification information.
[0093] Determine the target rule based on the identification information and trigger the target rule.
[0094] In one embodiment of the present disclosure, the identification information includes a rule identification, and the data acquisition module 501 is further used to:
[0095] Get the rule corresponding to the rule identifier and use it as the target rule.
[0096] In one embodiment of the present disclosure, the identification information also includes a device identification, and the data acquisition module 501 is further used to:
[0097] Authentication is performed on the first device according to the device identification to obtain a verification result.
[0098] If the verification result is successful, the rule corresponding to the rule identifier is obtained.
[0099] The 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.
[0100] refer to Figure 6 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure, and the electronic device 600 may be a terminal device or a server. The terminal 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. Figure 6 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.
[0101] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 606 to a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0102] Typically, the following devices may be connected to the I / O interface 605: input devices 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 606 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 606. The communication devices 606 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 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.
[0103] 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 includes a 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 606, or installed from a storage device 606, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0104] 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.
[0105] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0106] 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.
[0107] 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).
[0108] The embodiments of the present disclosure also provide a computer program product, including a computer program, which is used to implement the business processing method provided by the embodiments of the present disclosure when executed.
[0109] 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.
[0110] 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".
[0111] 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.
[0112] 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.
[0113] In a first aspect, according to one or more embodiments of the present disclosure, a service processing method is provided, including:
[0114] When a target rule is triggered, the to-be-processed data corresponding to the target rule is obtained according to a preset data acquisition method;
[0115] Performing data processing on the data to be processed according to the target rule to obtain a data processing result;
[0116] According to the preset data processing method, corresponding business processing is performed on the data processing result.
[0117] According to one or more embodiments of the present disclosure, the method is applied to an electronic device, and the step of acquiring the to-be-processed data corresponding to the target rule according to a preset data acquisition method includes:
[0118] A first preset plug-in on the electronic device or a first preset interface on the first device is called to obtain the to-be-processed data corresponding to the target rule from the first device.
[0119] According to one or more embodiments of the present disclosure, the first preset plug-in is generated based on a first preset standard, and is used to encapsulate the data acquired by calling the data acquisition interface on the first device according to a preset data format to obtain corresponding data to be processed.
[0120] According to one or more embodiments of the present disclosure, the first preset interface is generated based on a first preset standard, and is used to encapsulate the collected data according to a preset data format to obtain corresponding data to be processed.
[0121] According to one or more embodiments of the present disclosure, performing corresponding business processing on the data processing result according to a preset data processing method includes:
[0122] A second preset plug-in on the electronic device or a second preset interface on the first device is called to perform corresponding business processing on the data processing result.
[0123] According to one or more embodiments of the present disclosure, the second preset plug-in is generated according to a second preset standard, and is used to perform corresponding business processing on the data processing result by calling a business processing interface on the first device.
[0124] According to one or more embodiments of the present disclosure, the second preset interface is generated according to a second preset standard, and is used to perform corresponding business processing on the data processing result.
[0125] According to one or more embodiments of the present disclosure, the target rule is composed of at least one preset basic rule element.
[0126] According to one or more embodiments of the present disclosure, the trigger target rule includes:
[0127] The target rule is triggered at preset time intervals.
[0128] According to one or more embodiments of the present disclosure, the trigger target rule includes:
[0129] Acquire a service call request sent by the first device, wherein the service call request includes identification information;
[0130] The target rule is determined according to the identification information, and the target rule is triggered.
[0131] According to one or more embodiments of the present disclosure, the identification information includes a rule identification, and determining a target rule according to the identification information includes:
[0132] The rule corresponding to the rule identifier is obtained, and is used as the target rule.
[0133] According to one or more embodiments of the present disclosure, the identification information further includes a device identification, and the acquiring of the business rule corresponding to the rule identification includes:
[0134] Performing identity authentication on the first device according to the device identifier to obtain a verification result;
[0135] If the verification result is successful, the rule corresponding to the rule identifier is obtained.
[0136] In a second aspect, according to one or more embodiments of the present disclosure, a service processing device is provided, including:
[0137] Wherein, the data acquisition module is used to acquire the to-be-processed data corresponding to the target rule according to a preset data acquisition method when the target rule is triggered;
[0138] A processing module, used for performing data processing on the data to be processed according to the target rule to obtain a data processing result;
[0139] The processing module is also used to perform corresponding business processing on the data processing result according to a preset data processing method.
[0140] According to one or more embodiments of the present disclosure, the service processing device is applied to an electronic device, and the data acquisition module is used to:
[0141] A first preset plug-in on the electronic device or a first preset interface on the first device is called to obtain the to-be-processed data corresponding to the target rule from the first device.
[0142] According to one or more embodiments of the present disclosure, the first preset plug-in is generated based on a first preset standard, and is used to encapsulate the data obtained by calling the data interface on the first device according to a preset data format to obtain corresponding data to be processed.
[0143] According to one or more embodiments of the present disclosure, the first preset interface is generated based on the first preset standard, and is used to encapsulate the collected data according to a preset data format to obtain corresponding data to be processed.
[0144] According to one or more embodiments of the present disclosure, the processing module is further configured to:
[0145] A second preset plug-in on the electronic device or a second preset interface on the first device is called to perform corresponding business processing on the data processing result.
[0146] According to one or more embodiments of the present disclosure, the second preset plug-in is generated according to a second preset standard, and is used to perform corresponding business processing on the data processing result by calling a business processing interface on the first device.
[0147] According to one or more embodiments of the present disclosure, the second preset interface is generated according to a second preset standard, and is used to perform corresponding business processing on the data processing result.
[0148] According to one or more embodiments of the present disclosure, the target rule is composed of at least one preset basic rule element.
[0149] According to one or more embodiments of the present disclosure, the data acquisition module is further used to:
[0150] The target rule is triggered at preset time intervals.
[0151] According to one or more embodiments of the present disclosure, the data acquisition module is further used to:
[0152] Acquire a service call request sent by the first device, wherein the service call request includes identification information;
[0153] The target rule is determined according to the identification information, and the target rule is triggered.
[0154] According to one or more embodiments of the present disclosure, the identification information includes a rule identification, and the data acquisition module is further used to:
[0155] The rule corresponding to the rule identifier is obtained, and is used as the target rule.
[0156] According to one or more embodiments of the present disclosure, the identification information further includes a device identification, and the data acquisition module is further configured to:
[0157] Performing identity authentication on the first device according to the device identifier to obtain a verification result;
[0158] If the verification result is successful, the rule corresponding to the rule identifier is obtained.
[0159] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;
[0160] The memory stores computer-executable instructions;
[0161] The at least one 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.
[0162] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. 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.
[0163] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed, is used to implement the business processing method described in the first aspect and various possible designs of the first aspect.
[0164] 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 to form a technical solution.
[0165] 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.
[0166] 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: Applied to the second device, the method includes: When triggering a target rule, when a first preset interface that meets a first preset standard is configured on a first device, the first preset interface on the first device is remotely called to actively obtain the to-be-processed data corresponding to the target rule from the first device; the target rule is obtained by selecting a desired preset basic rule element from at least one preset basic rule element; the target rule includes obtaining access data corresponding to a website, and the access data includes the number of visitors corresponding to each time period; the to-be-processed data includes the number of visitors; Processing the data to be processed according to the target rule to obtain a data processing result; the data processing result includes the best time to place an advertisement; According to a preset data processing method, corresponding business processing is performed on the data processing result; the corresponding business processing on the data processing result includes: when the best time to place the advertisement is reached, placing the corresponding advertisement on the website.
2. The method according to claim 1, characterized in that Also includes: When the data acquisition interface on the first device is not configured according to the first preset standard, the first preset plug-in on the second device is called, and in the process of calling the first preset plug-in, the first preset plug-in remotely calls the data acquisition interface on the first device, and actively obtains the data to be processed corresponding to the target rule from the first device.
3. The method according to claim 2, characterized in that The first preset plug-in is generated based on a first preset standard, and is used to encapsulate the data acquired by calling the data acquisition interface on the first device according to a preset data format to obtain corresponding data to be processed.
4. The method according to claim 2, characterized in that: The first preset interface is generated based on a first preset standard, and is used to encapsulate the collected data according to a preset data format to obtain corresponding data to be processed.
5. The method according to claim 2, characterized in that: The performing corresponding business processing on the data processing result according to the preset data processing mode includes: When a second preset interface that meets a second preset standard has been configured on the first device, remotely calling the second preset interface on the first device to perform corresponding business processing on the data processing result; When the second preset interface that meets the second preset standard is not configured on the first device, the second preset plug-in on the second device is used to remotely call the business processing interface on the first device that does not meet the second preset standard, and perform corresponding business processing on the data processing result.
6. The method according to claim 5, characterized in that The second preset plug-in is generated according to a second preset standard, and is used to perform corresponding business processing on the data processing result by calling the business processing interface on the first device.
7. The method according to any one of claims 1 to 6, characterized in that: The trigger target rule includes: The target rule is triggered at preset time intervals.
8. The method according to any one of claims 1 to 6, characterized in that: The trigger target rule includes: Acquire a service call request sent by the first device, wherein the service call request includes identification information; The target rule is determined according to the identification information, and the target rule is triggered.
9. A second device for performing business processing, characterized in that: include: A data acquisition module is used to remotely call the first preset interface on the first device when a target rule is triggered, and actively acquire the to-be-processed data corresponding to the target rule from the first device when a first preset interface that meets the first preset standard is configured on the first device; The target rule is configured by selecting a desired preset basic rule element from at least one preset basic rule element; the target rule includes obtaining access data corresponding to the website, the access data includes the number of visitors corresponding to each time period; the data to be processed includes the number of visitors; A processing module, used to process the data to be processed according to the target rule to obtain a data processing result; the data processing result includes the best time to place an advertisement; The processing module is also used to perform corresponding business processing on the data processing results according to a preset data processing method; the corresponding business processing on the data processing results includes: placing corresponding advertisements on the website when the best time to place advertisements is reached.
10. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one 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.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the business processing method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Business data processing system and business data processing method
CN103036911A
Network live broadcast content display method and device
CN106303557A
Business data processing method and device, computer equipment and storage medium
CN110633306A
Service processing method and device
CN111104556A
Data processing method and device, electronic equipment and readable medium
CN111581291A
