Service updating method, device and equipment and storage medium thereof

By receiving and parsing business update instructions and using the configuration update components to perform business updates, the problem of modifying a large amount of code in the existing technology of branch processing structure updates requires the improvement of a large number of code, and achieves rapid response and simplified business maintenance.

CN119473347AActive Publication Date: 2025-02-18CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411514096.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-02-18
Estimated Expiration
2044-10-25

AI Technical Summary

Technical Problem

When the branch processing structure updates, the existing technology requires modifying a large amount of code and re-releasing the version, resulting in untimely service responses and affecting business maintenance and management.

Method used

The business update method is adopted, and the business update instructions are received, and the business update is updated using preset configuration update components to avoid directly modifying the business code.

Benefits of technology

It realizes rapid response and adjustment of branch processing logic when business updates, avoids the need to modify a large amount of business code and re-release versions, and simplifies subsequent business maintenance and management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473347A_ABST
    Figure CN119473347A_ABST
Patent Text Reader

Abstract

The embodiment of the invention belongs to the technical field of research and development design, is applied to a business branch processing logic updating scene, and relates to a business updating method, device and equipment and a storage medium thereof. Analyzing the service updating instruction to obtain a target updating item; and according to a preset configuration updating component and the target updating item, performing service updating in response to the service updating instruction. When the business is updated, if branch processing step updating is involved, branch processing adjustment is achieved in a configuration mode, modification of a large number of business codes and rerelease of versions can be avoided, business updating response can be rapidly carried out, and follow-up business maintenance and management are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of R&D and design technology, and is applied to business branch processing logic update scenarios, and in particular to a business update method, device, equipment and storage medium thereof. Background Art

[0002] In conventional development processes, business logic is mostly specified through judgments such as "if...then...else...". This leads to a large number of "if...then...else..." judgment logic codes in scenarios with more complex business logic, which is not conducive to business maintenance.

[0003] Moreover, when the judgment logic needs to be adjusted, it is often necessary to modify a large amount of code and re-release the code version, which takes a long time and causes problems such as untimely business response and is not conducive to business management. Summary of the invention

[0004] The purpose of the embodiments of the present application is to propose a business update method, device, equipment and storage medium thereof to solve the problem that when updating the branch processing structure, it is often necessary to modify a large amount of code and re-release the code version, which is time-consuming, resulting in insufficient business response and inconvenience for business maintenance and management.

[0005] In order to solve the above technical problems, the embodiment of the present application provides a service update method, which adopts the following technical solution:

[0006] A service updating method comprises the following steps:

[0007] Receive a service update instruction issued by a target service update terminal;

[0008] Parsing the service update instruction to obtain target update items;

[0009] According to the preset configured update components and the target update items, the service update is performed in response to the service update instruction.

[0010] Furthermore, before executing the step of receiving the service update instruction issued by the target service update terminal, the method further includes:

[0011] Parse the target business source code to obtain all business logic judgment conditions contained in the target business source code, and the branch execution interfaces corresponding to all business logic judgment conditions;

[0012] Distinguishing and marking all business logic judgment conditions contained in the target business source code;

[0013] According to the branch execution interfaces corresponding to all business logic judgment conditions, the business processing codes involved in all branch execution interfaces are modularized to obtain the execution code blocks corresponding to all branch execution interfaces;

[0014] Combining the distinguishing mark and the branch execution interfaces corresponding to all the business logic judgment conditions, encapsulating the execution code blocks corresponding to all the branch execution interfaces respectively by the branch processing method;

[0015] According to the distinguishing mark, all the business logic judgment conditions, and the branch execution interfaces corresponding to all the business logic judgment conditions, a configuration file with data tuple form fields as configuration items is constructed, wherein each configuration item in the configuration file includes at least one data tuple form field, and a data tuple form field includes at least one target distinguishing mark, a judgment field in the business logic judgment condition corresponding to the target distinguishing mark, and a calling address of the encapsulated branch processing method corresponding to the target distinguishing mark;

[0016] The configuration file is deployed as a reference configuration file into the preset configurable update component.

[0017] Furthermore, the step of combining the distinguishing mark and the branch execution interfaces corresponding to all the business logic judgment conditions, and encapsulating the execution code blocks corresponding to all the branch execution interfaces by the branch processing method specifically includes:

[0018] According to the branch execution interfaces corresponding to all the business logic judgment conditions and the distinguishing marks of all the business logic judgment conditions, the branch execution interfaces corresponding to all the distinguishing marks are identified;

[0019] According to the branch execution interfaces corresponding to all the distinguishing marks, the execution code blocks corresponding to all the branch execution interfaces are encapsulated with branch processing methods, and corresponding distinguishing marks are set for all the encapsulated branch processing methods.

[0020] Further, after executing the step of constructing a configuration file with fields in the form of data tuples as configuration items according to the distinguishing mark, all the business logic judgment conditions, and the branch execution interfaces corresponding to all the business logic judgment conditions, the method further includes:

[0021] According to the preset business execution logic document, determine whether there is a hierarchical execution relationship between any branch execution interfaces;

[0022] If there are branch execution interfaces with a hierarchical execution relationship, the branch execution interfaces with the hierarchical execution relationship are selected;

[0023] Determining configuration items having a hierarchical association relationship according to the branch execution interfaces having a hierarchical execution relationship;

[0024] The hierarchical association relationship between all configuration items is added to the configuration file as additional configuration information.

[0025] Furthermore, the step of parsing the service update instruction to obtain the target update item specifically includes:

[0026] The business update instruction is parsed to obtain the business logic judgment conditions that need to be updated in the target update items, and the branch execution interface call relationship that needs to be updated in the target update items is obtained.

[0027] Further, the step of performing a service update according to the preset configured update component and the target update item in response to the service update instruction includes:

[0028] Identify the business logic judgment conditions that need to be updated in the target update items;

[0029] Finding a first configuration item to be updated from a reference configuration file of the configuration update component according to the business logic judgment condition to be updated;

[0030] Parsing the first configuration item to be updated to obtain a corresponding data tuple form field;

[0031] Parsing the data tuple form fields to identify the judgment fields in the business logic judgment conditions to be updated;

[0032] Identifying a latest judgment field in the target update item for replacing the judgment field;

[0033] The judgment field in the data tuple form field is replaced with the latest judgment field to obtain the configuration item after the first configuration item to be updated is updated.

[0034] Furthermore, the step of performing a service update according to the preset configured update component and the target update item in response to the service update instruction further includes:

[0035] Identify the branch execution interface that needs to be updated in the target update item;

[0036] Finding a second configuration item to be updated from a reference configuration file of the configuration update component according to the branch execution interface to be updated;

[0037] Parsing the second configuration item to be updated to obtain a corresponding data tuple form field;

[0038] Parsing the data tuple form field to identify the calling address of the branch processing method corresponding to the branch execution interface to be updated;

[0039] Identifying a latest call address in the target update event for replacing the call address;

[0040] The calling address in the data tuple form field is replaced with the latest calling address to obtain the configuration item after the second configuration item to be updated is updated.

[0041] In order to solve the above technical problems, the embodiment of the present application also provides a service update device, which adopts the following technical solution:

[0042] A service updating device, comprising:

[0043] A service update instruction receiving module, used to receive a service update instruction issued by a target service update terminal;

[0044] A business update instruction parsing module, used for parsing the business update instruction to obtain a target update item;

[0045] The service update response module is used to perform service updates in response to the service update instruction according to the preset configured update components and the target update items.

[0046] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0047] A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the above-mentioned service update method when executing the computer-readable instructions.

[0048] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0049] A computer-readable storage medium stores computer-readable instructions, which implement the steps of the service update method as described above when executed by a processor.

[0050] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0051] The service update method described in the embodiment of the present application receives a service update instruction issued by a target service update terminal; parses the service update instruction to obtain a target update item; and performs service update in response to the service update instruction according to a preset configured update component and the target update item. When updating a service, if it involves updating a branch processing step, a configured method is used to implement branch processing adjustment, which can avoid modifying a large amount of service code and re-releasing versions, and can also quickly respond to service updates and facilitate subsequent service maintenance and management. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0053] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0054] Figure 2 is a flow chart of an embodiment of a service update method according to the present application;

[0055] Figure 3 It is a flowchart of a specific embodiment of constructing a configuration file according to a business source code in the business update method described in this application;

[0056] Figure 4 yes Figure 3 A flowchart of a specific embodiment of step 304 is shown;

[0057] Figure 5 It is a flowchart of a specific embodiment of supplementing the additional configuration information in the configuration file in the service update method described in the present application;

[0058] Figure 6 yes Figure 2 A flowchart of a specific embodiment of step 203 is shown;

[0059] Figure 7 yes Figure 2 A flowchart of another specific embodiment of step 203 is shown;

[0060] Figure 8 is a structural diagram of an embodiment of a service updating device according to the present application;

[0061] Fig. 9 yes Figure 8 A schematic diagram of the structure of a specific embodiment of the service update response module 803 is shown;

[0062] Fig.10 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0063] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0064] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0065] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0066] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a network 102 and a server 103. The terminal device 101 may be a laptop 1011, a tablet computer 1012 or a mobile phone 1013. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables.

[0067] The user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0068] The terminal device 101 can be any electronic device with a display screen and supporting web browsing. In addition to a laptop computer 1011, a tablet computer 1012 or a mobile phone 1013, the terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV), a laptop computer, a desktop computer, etc.

[0069] The server 103 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal device 101 .

[0070] It should be noted that the service update method provided in the embodiment of the present application is generally executed by a server, and accordingly, the service update device is generally arranged in the server.

[0071] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0072] Continue to refer Figure 2 , shows a flow chart of an embodiment of a service update method according to the present application. The service update method comprises the following steps:

[0073] Step 201: receiving a service update instruction issued by a target service update terminal.

[0074] In this embodiment, the target service update end includes a service service end, which generally means that after the service service end has updated the service logic code in a targeted manner, it issues a service update instruction to the server so that the server can complete the service update adjustment as soon as possible.

[0075] In this embodiment, the business logic code update, more specifically, refers to updating the branch processing logic involved in the judgment, generally including the update of the judgment condition and the update of the branch processing interface.

[0076] In this embodiment, the receiving generally refers to the service update processor receiving the service update instruction issued by the target service update terminal. After that, the service update processor performs service update according to the service update instruction and deploys the service update result to the server, thereby completing the service update adjustment.

[0077] Step 202: parse the service update instruction to obtain the target update item.

[0078] In this embodiment, it can be understood that the business update instruction not only includes an update processing instruction, but also carries relevant information that can obtain the target update items, for example: the target update items are organized into a structured form or a structured document, and the storage address information of the structured form or the structured document is received together with the business update instruction, and then the target update items are obtained through parsing; of course, it is not ruled out that the data in the structured form or the structured document is directly a transmission field, and when the business update instruction is received, the transmission field is also directly received, and then the target update items are obtained through parsing.

[0079] Step 203: Perform a service update in response to the service update instruction according to the preset configured update component and the target update item.

[0080] In this embodiment, the business is updated in combination with the preset configured update component, which realizes the business update in a configured manner, avoiding the need to modify a large amount of business logic code when the business update is released. The business update can be achieved only by modifying the configuration file, which not only ensures a quick response after the business update, but also ensures that in the later maintenance, only the configuration file needs to be maintained to achieve business update and maintenance, avoiding the problem of difficult maintenance.

[0081] In this embodiment, by receiving the service update instruction issued by the target service update terminal; parsing the service update instruction to obtain the target update item; responding to the service update instruction according to the preset configured update component and the target update item, the service update is performed. When the service update involves the update of the branch processing step, the branch processing adjustment is implemented in a configured manner, which can avoid modifying a large amount of service code and re-releasing versions, and can also quickly respond to the service update and facilitate subsequent service maintenance and management.

[0082] Continue to refer Figure 3 In some optional implementations, before step 201, a step of constructing a configuration file according to the business source code is also included. Figure 3 It is a flowchart of a specific embodiment of constructing a configuration file according to the business source code in the business update method described in this application, comprising the following steps:

[0083] Step 301, parsing the target business source code, obtaining all business logic judgment conditions contained in the target business source code, and branch execution interfaces corresponding to all business logic judgment conditions;

[0084] By parsing the target business source code, all business logic judgment conditions contained in the target business source code and the branch execution interfaces corresponding to all the business logic judgment conditions are obtained, which facilitates the subsequent construction of a configuration file based on all the business logic judgment conditions contained in the target business source code and the branch execution interfaces corresponding to all the business logic judgment conditions.

[0085] Step 302, distinguishing and marking all business logic judgment conditions contained in the target business source code;

[0086] By distinguishing and marking all business logic judgment conditions contained in the target business source code, different configuration items can be identified in the constructed configuration file.

[0087] Step 303: modularize the business processing codes involved in all branch execution interfaces according to the branch execution interfaces corresponding to all business logic judgment conditions, and obtain the execution code blocks corresponding to all branch execution interfaces;

[0088] By modularizing the business processing codes involved in all branch execution interfaces, the execution code blocks corresponding to all branch execution interfaces are obtained, so as to modularize the entire business source code and facilitate subsequent business updates and maintenance management.

[0089] Step 304, combining the distinguishing mark and the branch execution interfaces corresponding to all the business logic judgment conditions, and encapsulating the execution code blocks corresponding to all the branch execution interfaces respectively.

[0090] By encapsulating the branch processing methods for the execution code blocks corresponding to all branch execution interfaces, it is convenient to directly call the corresponding encapsulation method when executing the branch steps, and directly update the corresponding encapsulation method when updating the branch steps, which is convenient for business updates and management maintenance.

[0091] Step 305: construct a configuration file with data tuple form fields as configuration items according to the distinguishing mark, all the business logic judgment conditions, and the branch execution interfaces corresponding to all the business logic judgment conditions, wherein each configuration item in the configuration file includes at least one data tuple form field, and one data tuple form field includes at least one target distinguishing mark, the judgment field in the business logic judgment condition corresponding to the target distinguishing mark, and the calling address of the encapsulated branch processing method corresponding to the target distinguishing mark;

[0092] Specifically, for example, the target business source code includes a branch processing structure, which includes a first judgment condition and a second judgment condition. When the judgment result meets the first judgment condition, the corresponding first branch execution interface is executed, and when the judgment result meets the second judgment condition, the corresponding second branch execution interface is executed. It can be understood that when the first branch execution interface or the second branch execution interface is called, what is executed is essentially the branch processing method encapsulated in the interface. Assume that the distinguishing mark of the first judgment condition is con_A, the distinguishing mark of the second judgment condition is con_B, and the judgment field is "whether the comparison value is greater than 5". If the comparison value is greater than 5, the corresponding first branch execution interface is executed. If the comparison value is not greater than 5, the corresponding second branch execution interface is executed. The calling address of the branch processing method corresponding to the first branch execution interface is address a, and the calling address of the branch processing method corresponding to the second branch execution interface is address b. At this time, two configuration items are constructed according to the branch processing structure, namely ("con_A", "whether the comparison value is greater than 5", "a") and ("con_B", "whether the comparison value is greater than 5", "b").

[0093] By parsing and processing the target business source code, a configuration file with fields in the form of data tuples as configuration items is constructed based on the branch processing structure involved in the business source code, so that when the branch processing structure involved in the business source code is subsequently updated, the corresponding configuration items in the configuration file are directly updated, and the business update is realized by replacing the source code update method with the configuration file update method, avoiding the modification of a large amount of business code, and facilitating business maintenance and management.

[0094] Step 306: deploy the configuration file as a reference configuration file into the preset configurable update component.

[0095] By deploying the configuration file as a reference configuration file into the preset configurable update component, it is possible to directly use the configurable update component to perform service updates when performing subsequent service updates.

[0096] Continue to refer Figure 4 , in some optional implementations, Figure 4 yes Figure 3 The flowchart of a specific embodiment of step 304 shown includes the following steps:

[0097] Step 401, according to the branch execution interfaces corresponding to all the business logic judgment conditions and the distinguishing marks of all the business logic judgment conditions, identifying the branch execution interfaces corresponding to all the distinguishing marks respectively;

[0098] Step 402: encapsulate the execution code blocks corresponding to all branch execution interfaces according to the branch execution interfaces corresponding to all distinguishing marks, and set corresponding distinguishing marks for all encapsulated branch processing methods.

[0099] Specifically, by identifying the branch execution interfaces corresponding to all the distinguishing marks, the execution code blocks corresponding to all the branch execution interfaces are encapsulated with branch processing methods, and corresponding distinguishing marks are set for all the encapsulated branch processing methods, so as to facilitate the construction of the correspondence between the distinguishing marks, the judgment fields and the calling addresses of the branch processing methods, that is, to facilitate the construction of the data tuple form fields, which is more reliable and scientific.

[0100] Continue to refer Figure 5 In some optional implementations, after step 305, a step of supplementing the configuration information in the configuration file is also included. Figure 5 It is a flowchart of a specific embodiment of supplementing the additional configuration information in the configuration file in the service update method described in the present application, comprising the following steps:

[0101] Step 501, judging whether there is a hierarchical execution relationship between any branch execution interfaces according to a preset business execution logic document;

[0102] Specifically, it is to determine whether there are multi-level branches. If there is no hierarchical execution relationship between the branch execution interfaces, directly execute step 306. Of course, since the business execution logic is generally more complicated, there are multi-level branches in most cases. Therefore, the direct execution of step 306 is rare and will not be explained in detail here.

[0103] Step 502: If there are branch execution interfaces that have a hierarchical execution relationship, then the branch execution interfaces that have a hierarchical execution relationship are screened out;

[0104] Step 503, determining configuration items with a hierarchical association relationship according to the branch execution interface with a hierarchical execution relationship;

[0105] Step 504: Add the hierarchical associations between all configuration items as additional configuration information to the configuration file.

[0106] Through the preset business execution logic document, it is determined whether there is a hierarchical execution relationship between any branch execution interfaces. According to the branch execution interfaces with hierarchical execution relationships, the configuration items with hierarchical association relationships are determined, and the hierarchical association relationships between all configuration items are supplemented to the configuration file as additional configuration information to ensure that the configuration file is fully integrated with the business logic, so that when the business is updated again, if it involves updating the branch processing steps, it can be adjusted accordingly in combination with the additional configuration information, and the branch processing adjustment can be implemented according to the configuration file, avoiding the modification of a large amount of business code, and facilitating business maintenance and management.

[0107] In this embodiment, the step of parsing the business update instruction to obtain the target update item specifically includes: parsing the business update instruction, obtaining the business logic judgment conditions that need to be updated in the target update item, and obtaining the branch execution interface call relationship that needs to be updated in the target update item.

[0108] Specifically, it should be understood that the target update items may include only the update of a certain business logic judgment condition, or only the update of a certain branch execution interface call relationship, or the update of the logic judgment condition and the branch execution interface call relationship in a configuration item at the same time, or the update of a batch of business logic judgment conditions and the update of multiple branch execution interface call relationships at the same time, which is determined by the actual business update requirements.

[0109] Continue to refer Figure 6 , in some optional implementations, Figure 6 yes Figure 2 The flowchart of a specific embodiment of step 203 shown includes the following steps:

[0110] Step 601, identifying the business logic judgment conditions that need to be updated in the target update item;

[0111] Step 602, searching for a first configuration item to be updated from a reference configuration file of the configuration update component according to the business logic judgment condition to be updated;

[0112] Step 603, parsing the first configuration item to be updated to obtain a corresponding data tuple form field;

[0113] Step 604, parsing the data tuple form fields to identify the judgment fields in the business logic judgment condition to be updated;

[0114] Step 605, identifying the latest judgment field in the target update item for replacing the judgment field;

[0115] Step 606: Replace the judgment field in the data tuple form field with the latest judgment field to obtain the configuration item after the first configuration item to be updated is updated.

[0116] When it is identified through the target update items that the judgment field needs to be updated, the above steps 601 to 606 are used to implement the corresponding configuration item update, so that in the future business execution, the business is directly executed according to the configuration item update result, avoiding the modification of a large amount of business code, and facilitating subsequent business maintenance and management.

[0117] Continue to refer Figure 7 , in some optional implementations, Figure 7 yes Figure 2 The flowchart of another specific embodiment of step 203 shown includes the following steps:

[0118] Step 701, identifying the branch execution interface to be updated in the target update item;

[0119] Step 702, searching for a second configuration item to be updated from a reference configuration file of the configured update component according to the branch execution interface to be updated;

[0120] Step 703, parsing the second configuration item to be updated to obtain a corresponding data tuple form field;

[0121] Step 704, parsing the data tuple form field to identify the calling address of the branch processing method corresponding to the branch execution interface to be updated;

[0122] Step 705, identifying the latest call address in the target update item for replacing the call address;

[0123] Step 706: Replace the calling address in the data tuple form field with the latest calling address to obtain the configuration item after the second configuration item to be updated is updated.

[0124] Similarly, when it is identified through the target update items that the branch execution interface needs to be updated, the above steps 701 to 706 are used to implement the corresponding configuration item updates, so that in the future business execution, the business execution is directly based on the configuration item update results, avoiding the modification of a large amount of business code, and facilitating subsequent business maintenance and management.

[0125] In this embodiment, the first configuration item to be updated and the second configuration item to be updated specifically refer to updating different fields in the data tuple form field. Specifically, the first configuration item to be updated refers to updating the judgment field in the configuration item in the reference configuration file, and the second configuration item to be updated refers to updating the calling address of the branch processing method in the configuration item in the reference configuration file.

[0126] The present application receives a business update instruction issued by a target business update terminal; parses the business update instruction to obtain a target update item; and responds to the business update instruction according to a preset configured update component and the target update item to perform a business update. When updating a business, if a branch processing step is updated, a branch processing adjustment is implemented in a configured manner, which can avoid modifying a large amount of business code and re-releasing versions, and can also quickly respond to business updates and facilitate subsequent business maintenance and management.

[0127] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0128] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0129] In the embodiment of the present application, a business update instruction issued by a target business update terminal is received; the business update instruction is parsed to obtain a target update item; and the business update is performed in response to the business update instruction according to a preset configured update component and the target update item. When updating a business, if a branch processing step is updated, a branch processing adjustment is implemented in a configured manner, which can avoid modifying a large amount of business code and re-releasing versions, and can also quickly respond to business updates and facilitate subsequent business maintenance and management.

[0130] Further references Figure 8 , as a response to the above Figure 2 In order to realize the method shown in the figure, the present application provides an embodiment of a service updating device, and the embodiment of the device is Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0131] like Figure 8 As shown, the service update device 800 described in this embodiment includes: a service update instruction receiving module 801, a service update instruction parsing module 802 and a service update response module 803. Among them:

[0132] The service update instruction receiving module 801 is used to receive the service update instruction issued by the target service update terminal;

[0133] A business update instruction parsing module 802 is used to parse the business update instruction to obtain a target update item;

[0134] The service update response module 803 is used to perform service update in response to the service update instruction according to the preset configured update components and the target update items.

[0135] Continue to refer Fig. 9 , Fig. 9 yes Figure 8 The structure diagram of a specific embodiment of the service update response module 803 is shown, and the service update response module 803 includes a first response submodule 901 and a second response submodule 902. Among them:

[0136] The first response submodule 901 is used to identify the business logic judgment condition to be updated in the target update item; it is also used to find the first configuration item to be updated from the reference configuration file of the configured update component according to the business logic judgment condition to be updated; it is also used to parse the first configuration item to be updated to obtain the corresponding data tuple form field; it is also used to parse the data tuple form field to identify the judgment field in the business logic judgment condition to be updated; it is also used to identify the latest judgment field used to replace the judgment field in the target update item; it is also used to replace the judgment field in the data tuple form field with the latest judgment field to obtain the configuration item after the first configuration item to be updated is updated;

[0137] The second response submodule 902 is used to identify the branch execution interface to be updated in the target update item; it is also used to find the second configuration item to be updated from the reference configuration file of the configured update component according to the branch execution interface to be updated; it is also used to parse the second configuration item to be updated to obtain the corresponding data tuple form field; it is also used to parse the data tuple form field to identify the call address of the branch processing method corresponding to the branch execution interface to be updated; it is also used to identify the latest call address used to replace the call address in the target update item; it is also used to replace the call address in the data tuple form field with the latest call address to obtain the configuration item after the second configuration item to be updated is updated.

[0138] The present application receives a business update instruction issued by a target business update terminal; parses the business update instruction to obtain a target update item; and responds to the business update instruction according to a preset configured update component and the target update item to perform a business update. When updating a business, if a branch processing step is updated, a branch processing adjustment is implemented in a configured manner, which can avoid modifying a large amount of business code and re-releasing versions, and can also quickly respond to business updates and facilitate subsequent business maintenance and management.

[0139] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0140] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0141] To solve the above technical problems, the present application also provides a computer device. Fig.10 , Fig.10 This is a basic structural block diagram of the computer device in this embodiment.

[0142] The computer device 10 includes a memory 10a, a processor 10b, and a network interface 10c which are interconnected and communicated via a system bus. It should be noted that: Fig.10Only a computer device 10 having a component memory 10a, a processor 10b, and a network interface 10c is shown, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital processor (DSP), an embedded device, etc.

[0143] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0144] The memory 10a includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10a can be an internal storage unit of the computer device 10, such as a hard disk or memory of the computer device 10. In other embodiments, the memory 10a can also be an external storage device of the computer device 10, such as a plug-in hard disk equipped on the computer device 10, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10a can also include both the internal storage unit of the computer device 10 and its external storage device. In this embodiment, the memory 10a is generally used to store the operating system and various application software installed on the computer device 10, such as a computer-readable instruction of a service update method, etc. In addition, the memory 10a can also be used to temporarily store various types of data that have been output or are to be output.

[0145] The processor 10b may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 10b is generally used to control the overall operation of the computer device 10. In this embodiment, the processor 10b is used to run the computer-readable instructions stored in the memory 10a or process data, such as computer-readable instructions for running the service update method.

[0146] The network interface 10c may include a wireless network interface or a wired network interface. The network interface 10c is generally used to establish a communication connection between the computer device 10 and other electronic devices.

[0147] The computer device proposed in this embodiment belongs to the field of research and development design technology, and is applied to business branch processing logic update scenarios. This application receives a business update instruction issued by a target business update terminal; parses the business update instruction to obtain a target update item; and performs a business update in response to the business update instruction according to a preset configured update component and the target update item. When updating a business, if it involves updating branch processing steps, a configured method is used to implement branch processing adjustments, which can avoid modifying a large amount of business code and re-releasing versions, and can also quickly respond to business updates and facilitate subsequent business maintenance and management.

[0148] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by a processor to enable the processor to perform the steps of the above-mentioned service update method.

[0149] The computer-readable storage medium proposed in this embodiment belongs to the field of research and development design technology, and is applied to business branch processing logic update scenarios. This application receives a business update instruction issued by a target business update terminal; parses the business update instruction to obtain a target update item; and performs a business update in response to the business update instruction according to a preset configured update component and the target update item. When updating a business, if it involves updating branch processing steps, a configured method is used to implement branch processing adjustments, which can avoid modifying a large amount of business code and re-releasing versions, and can also quickly respond to business updates and facilitate subsequent business maintenance and management.

[0150] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0151] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A service update method, characterized in that: The steps include: Receive a service update instruction issued by a target service update terminal; Parsing the service update instruction to obtain target update items; According to the preset configured update components and the target update items, the service update is performed in response to the service update instruction.

2. The service updating method according to claim 1, characterized in that: Before executing the step of receiving the service update instruction issued by the target service update terminal, the method further includes: Parse the target business source code to obtain all business logic judgment conditions contained in the target business source code, and the branch execution interfaces corresponding to all business logic judgment conditions; Distinguishing and marking all business logic judgment conditions contained in the target business source code; According to the branch execution interfaces corresponding to all business logic judgment conditions, the business processing codes involved in all branch execution interfaces are modularized to obtain the execution code blocks corresponding to all branch execution interfaces; Combining the distinguishing mark and the branch execution interfaces corresponding to all the business logic judgment conditions, encapsulating the execution code blocks corresponding to all the branch execution interfaces respectively by the branch processing method; According to the distinguishing mark, all the business logic judgment conditions, and the branch execution interfaces corresponding to all the business logic judgment conditions, a configuration file with data tuple form fields as configuration items is constructed, wherein each configuration item in the configuration file includes at least one data tuple form field, and a data tuple form field includes at least one target distinguishing mark, a judgment field in the business logic judgment condition corresponding to the target distinguishing mark, and a calling address of the encapsulated branch processing method corresponding to the target distinguishing mark; The configuration file is deployed as a reference configuration file into the preset configurable update component.

3. The service updating method according to claim 2, characterized in that: The step of combining the distinguishing mark and the branch execution interfaces corresponding to all the business logic judgment conditions, and encapsulating the execution code blocks corresponding to all the branch execution interfaces by the branch processing method specifically includes: According to the branch execution interfaces corresponding to all the business logic judgment conditions and the distinguishing marks of all the business logic judgment conditions, the branch execution interfaces corresponding to all the distinguishing marks are identified; According to the branch execution interfaces corresponding to all the distinguishing marks, the execution code blocks corresponding to all the branch execution interfaces are encapsulated with branch processing methods, and corresponding distinguishing marks are set for all the encapsulated branch processing methods.

4. The service updating method according to claim 2, characterized in that: After executing the step of constructing a configuration file with data tuple form fields as configuration items according to the distinguishing mark, all the business logic judgment conditions, and the branch execution interfaces corresponding to all the business logic judgment conditions, the method further includes: According to the preset business execution logic document, determine whether there is a hierarchical execution relationship between any branch execution interfaces; If there are branch execution interfaces with a hierarchical execution relationship, the branch execution interfaces with the hierarchical execution relationship are selected; Determining configuration items having a hierarchical association relationship according to the branch execution interfaces having a hierarchical execution relationship; The hierarchical association relationship between all configuration items is added to the configuration file as additional configuration information.

5. The service updating method according to claim 2, characterized in that: The step of parsing the service update instruction to obtain the target update item specifically includes: The business update instruction is parsed to obtain the business logic judgment conditions that need to be updated in the target update items, and the branch execution interface call relationship that needs to be updated in the target update items is obtained.

6. The service updating method according to claim 5, characterized in that: The step of performing a service update according to the preset configured update component and the target update item in response to the service update instruction includes: Identify the business logic judgment conditions that need to be updated in the target update items; Finding a first configuration item to be updated from a reference configuration file of the configuration update component according to the business logic judgment condition to be updated; Parsing the first configuration item to be updated to obtain a corresponding data tuple form field; Parsing the data tuple form fields to identify the judgment fields in the business logic judgment conditions to be updated; Identifying a latest judgment field in the target update item for replacing the judgment field; The judgment field in the data tuple form field is replaced with the latest judgment field to obtain the configuration item after the first configuration item to be updated is updated.

7. The service updating method according to claim 5, characterized in that: The step of performing a service update according to the preset configured update component and the target update item in response to the service update instruction further includes: Identify the branch execution interface that needs to be updated in the target update item; Finding a second configuration item to be updated from a reference configuration file of the configuration update component according to the branch execution interface to be updated; Parsing the second configuration item to be updated to obtain a corresponding data tuple form field; Parsing the data tuple form field to identify the calling address of the branch processing method corresponding to the branch execution interface to be updated; Identifying a latest call address in the target update event for replacing the call address; The calling address in the data tuple form field is replaced with the latest calling address to obtain the configuration item after the second configuration item to be updated is updated.

8. A service updating device, characterized in that: include: A service update instruction receiving module, used to receive a service update instruction issued by a target service update terminal; A business update instruction parsing module, used for parsing the business update instruction to obtain a target update item; The service update response module is used to perform service updates in response to the service update instruction according to the preset configured update components and the target update items.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the service updating method according to any one of claims 1 to 7 when executing the computer-readable instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the service updating method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Client application service logic updating method and device and equipment

    CN104598266A

  • Configuration data updating method and device, server and storage medium

    CN115202719A

  • Database modification method, system and equipment based on business change and storage medium

    CN116775608A

  • Dynamic interface generation method, device and equipment and storage medium thereof

    CN117348851A

  • Service logic implementation method and device based on configuration file

    CN118760442A