Method, device and system for carrying out software intelligent processing based on function switch

By judging the compilation conditions on the development side and adding functional switches to the main branch, the problem of difficulty in ensuring the stability of the main branch in software development is solved, and rapid iterative function development and multi-team parallel development is realized, reducing branch management complexity and release risks .

CN119025151APending Publication Date: 2024-11-26SHENZHEN GREEN CONNECTION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410904414.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In existing software development, it is difficult to ensure the stability of the main branch when the function development on the branch is submitted to the main branch. How to ensure the stability of the main branch while implementing rapid function development is a technical challenge.

Method used

By determining whether the current compilation conditions meet the predetermined compilation conditions on the development side, add function switches to the local switch of the main branch according to the type of the target function, and control the function switch to keep it in the preset state for development operations to avoid the main branch It can be developed independently on branch to achieve rapid iterative function development, and at the same time support multi-team parallel development.

Benefits of technology

It realizes rapid iterative development of functions while ensuring the stability of the main branch, reducing the complexity of branch management, improving the flexibility and controllability of function release, and reducing the release risk.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025151A_ABST
    Figure CN119025151A_ABST
Patent Text Reader

Abstract

The invention discloses a function switch-based software intelligent processing method, device and system, and the method comprises the steps: judging a current compiling condition of a development end, and automatically adding a corresponding function switch for a target function in local switches of a main branch according to the type of the target function to be developed when the compiling condition is met, so as to improve the development efficiency. And controlling the function switch corresponding to the target function to maintain the development operation on the target function in the first preset state, so that the target function does not need to be developed by another branch independent of the main branch for the target function, the stability of the main branch can be ensured while rapid iterative function development can be realized, multi-team parallel development is supported, and the development efficiency is improved. The complexity of branch management is reduced, the flexibility and controllability of target function release can be improved, and the release risk of the target function can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software development, and in particular to a method, device and system for performing software intelligent processing based on function switches. Background Art

[0002] In order to meet user needs and market changes, it is often necessary to develop functions for software products. Existing software development usually requires the participation of multiple people. In order to ensure that different developers can contribute to the same code base at the same time, Git provides branches to support parallel development. Specifically, according to different functions, multiple tasks are divided, and each task has a functional branch independent of the main branch, and the task is developed on the corresponding functional branch. When one or more tasks are developed, they are tested and accepted. When the test acceptance is successful, the functional branch corresponding to the task is merged into the main branch for release and online.

[0003] However, practice has found that the existing method of developing functions on branches and then submitting them to the main branch for release is difficult to ensure the stability of the main branch. Therefore, how to provide a new function development method that can achieve rapid function development while ensuring the stability of the main branch is an urgent problem to be solved. Summary of the invention

[0004] The present invention provides a method, device and system for performing software intelligent processing based on function switches, which can ensure the stability of the main branch while performing rapid function development.

[0005] A first aspect of an embodiment of the present invention discloses a method for performing intelligent software processing based on a function switch, the method being applied to a software processing system, the software processing system comprising a development end, the development end being provided with a main branch, the main branch being used for developing at least one target function to be developed, and for any of the target functions, the method comprising:

[0006] Determining whether the current compilation condition of the development end meets the predetermined compilation condition;

[0007] When it is determined that the compilation condition is met, determining the type of the target function, and adding a corresponding function switch for the target function in the local switch of the main branch according to the type of the target function;

[0008] The function switch corresponding to the target function is controlled to maintain a first preset state, and a development operation is performed on the target function when the function switch corresponding to the target function is maintained in the first preset state.

[0009] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the performing the development operation on the target function while the function switch corresponding to the target function remains in the first preset state includes:

[0010] When the function switch corresponding to the target function remains in the first preset state, obtaining the demand parameter corresponding to the target function;

[0011] Determine the development configuration parameters and the corresponding menu function page corresponding to the target function according to the requirement parameters corresponding to the target function;

[0012] According to the development configuration parameters, the menu function page is configured, and an association relationship between the menu function page configured with the development configuration parameters and the target function is established;

[0013] According to the association relationship corresponding to the target function, a corresponding touch component is set for the menu function page configured with the development configuration parameters, and the touch component is used for relevant personnel to touch to display or hide the menu function page;

[0014] After the corresponding touch component is set for the target function, a business logic execution operation is performed on the target function according to the first preset state and the type of the target function, and the business logic operation is performed on the target function to obtain the developed target function.

[0015] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the determining whether the current compilation condition of the development end meets the predetermined compilation condition includes:

[0016] Determining a switch value of a compile-time switch corresponding to the target function;

[0017] Determining whether the switch value of the compile-time switch is used to indicate that the compile environment of the development end is in a preset compile environment, wherein the preset compile environment includes a debugging environment or an internal environment;

[0018] When it is determined that the switch value of the compile-time switch is used to indicate that the compiling environment of the development end is in the preset compiling environment, it is determined that the current compiling condition of the development end satisfies the predetermined compiling condition.

[0019] As an optional implementation manner, in the first aspect of the embodiment of the present invention, controlling the function switch corresponding to the target function to maintain a first preset state includes:

[0020] Outputting a state management interface of the function switch corresponding to the target function to the developer, wherein the state management interface is used for the developer to view the state of the target function switch and perform operations matching the state of the target function switch;

[0021] Responding to a target instruction input by a developer on the state management interface;

[0022] According to the target instruction, the state value of the function switch corresponding to the target function is set to a value used to indicate that the function switch corresponding to the target function switch is in a first preset state.

[0023] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:

[0024] After the target function is developed, a test operation is performed on the developed target function on the main branch to obtain a test result of the target function;

[0025] When the test result of the target function indicates that the test of the target function has passed, determining whether the target function needs to be released;

[0026] When it is determined that release is required, the function switch corresponding to the target function is deleted from the main branch and / or the state of the function switch corresponding to the target function is set to a second preset state, and a release operation is performed on the target function, and the second preset state is the opposite state of the first preset state.

[0027] As an optional implementation manner, in the first aspect of the embodiment of the present invention, performing a test operation on the developed target function on the main branch to obtain a test result of the target function includes:

[0028] Responding to a packaging instruction input by a developer for indicating packaging of the target function that has been developed, and performing a packaging operation on the target function that has been developed on the main branch according to the packaging instruction, obtaining a test package corresponding to the target function, and sending the test package to the test end, so that the test end performs the following operations;

[0029] The test end responds to a first touch instruction triggered by a tester on a function switch corresponding to the target function, and outputs a touch component corresponding to the target function according to the first touch instruction, and receives an operation triggered by the tester on the touch component, to obtain a test result of the developed target function;

[0030] or,

[0031] Responding on the main branch to a second touch instruction input by the tester for the function switch corresponding to the target function that has been developed, and outputting a touch component corresponding to the target function according to the second touch instruction, and receiving an operation triggered by the tester for the touch component, to obtain a test result of the target function that has been developed;

[0032] When the test result of the target function is used to indicate that a menu function page corresponding to the target function is popped up, the test result of the target function is used to indicate that the test of the target function has passed.

[0033] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:

[0034] When it is determined that the compilation condition is not met, according to the type of the target function, the switch value of the compile-time switch is changed so that the changed switch value of the compile-time switch is used to indicate that the compilation environment of the development end is in the preset compilation environment, and trigger the execution of the operation of determining the type of the target function, and according to the type of the target function, adding a corresponding function switch for the target function in the local switch of the main branch;

[0035] Alternatively, a target prompt that does not meet the compilation conditions is output to the developer, and a switch value change instruction input by the developer for the target prompt is received, and according to the switch value, the switch value of the compile-time switch is changed so that the changed switch value of the compile-time switch is used to indicate that the compilation environment of the development end is in the preset compilation environment, and triggers the execution of the operation of determining the type of the target function, and according to the type of the target function, adding a corresponding function switch for the target function in the local switch of the main branch.

[0036] A second aspect of an embodiment of the present invention discloses a device for performing intelligent software processing based on a function switch, the device being applied to a software processing system, the software processing system comprising a development end, the development end being provided with a main branch, the main branch being used for developing at least one target function to be developed, and for any of the target functions, the device comprising:

[0037] A judgment module, used to judge whether the current compilation condition of the development end meets the predetermined compilation condition;

[0038] an adding module, configured to determine the type of the target function when the compilation condition is determined, and add a corresponding function switch for the target function in the local switch of the main branch according to the type of the target function;

[0039] A control module, used for controlling the function switch corresponding to the target function to maintain a first preset state;

[0040] A development module is used to perform a development operation on the target function when the function switch corresponding to the target function remains in the first preset state.

[0041] As an optional implementation, in the second aspect of the embodiment of the present invention, the specific manner in which the development module performs the development operation on the target function when the function switch corresponding to the target function remains in the first preset state includes:

[0042] When the function switch corresponding to the target function remains in the first preset state, obtaining the demand parameter corresponding to the target function;

[0043] Determine the development configuration parameters and the corresponding menu function page corresponding to the target function according to the requirement parameters corresponding to the target function;

[0044] According to the development configuration parameters, the menu function page is configured, and an association relationship between the menu function page configured with the development configuration parameters and the target function is established;

[0045] According to the association relationship corresponding to the target function, a corresponding touch component is set for the menu function page configured with the development configuration parameters, and the touch component is used for relevant personnel to touch to display or hide the menu function page;

[0046] After the corresponding touch component is set for the target function, a business logic execution operation is performed on the target function according to the first preset state and the type of the target function, and the business logic operation is performed on the target function to obtain the developed target function.

[0047] As an optional implementation, in the second aspect of the embodiment of the present invention, the specific manner in which the judgment module judges whether the current compilation condition of the development end meets the predetermined compilation condition includes:

[0048] Determining a switch value of a compile-time switch corresponding to the target function;

[0049] Determining whether the switch value of the compile-time switch is used to indicate that the compile environment of the development end is in a preset compile environment, wherein the preset compile environment includes a debugging environment or an internal environment;

[0050] When it is determined that the switch value of the compile-time switch is used to indicate that the compiling environment of the development end is in the preset compiling environment, it is determined that the current compiling condition of the development end satisfies the predetermined compiling condition.

[0051] As an optional implementation, in the second aspect of the embodiment of the present invention, the specific manner in which the control module controls the function switch corresponding to the target function to maintain the first preset state includes:

[0052] Outputting a state management interface of the function switch corresponding to the target function to the developer, wherein the state management interface is used for the developer to view the state of the target function switch and perform operations matching the state of the target function switch;

[0053] Responding to a target instruction input by a developer on the state management interface;

[0054] According to the target instruction, the state value of the function switch corresponding to the target function is set to a value used to indicate that the function switch corresponding to the target function switch is in a first preset state.

[0055] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the device further includes:

[0056] A test module is used to perform a test operation on the developed target function on the main branch after the target function is developed, so as to obtain a test result of the target function;

[0057] The judging module is used to judge whether the target function needs to be released when the test result of the target function indicates that the test of the target function has passed;

[0058] A release module is used to delete the function switch corresponding to the target function from the main branch and / or set the state of the function switch corresponding to the target function to a second preset state when it is determined that release is required, and perform a release operation on the target function, wherein the second preset state is the opposite of the first preset state.

[0059] As an optional implementation, in the second aspect of the embodiment of the present invention, the test module performs a test operation on the developed target function on the main branch, and a specific method for obtaining the test result of the target function includes:

[0060] Responding to a packaging instruction input by a developer for indicating packaging of the target function that has been developed, and performing a packaging operation on the target function that has been developed on the main branch according to the packaging instruction, obtaining a test package corresponding to the target function, and sending the test package to the test end, so that the test end performs the following operations;

[0061] The test end responds to a first touch instruction triggered by a tester on a function switch corresponding to the target function, and outputs a touch component corresponding to the target function according to the first touch instruction, and receives an operation triggered by the tester on the touch component, to obtain a test result of the developed target function;

[0062] or,

[0063] Responding on the main branch to a second touch instruction input by the tester for the function switch corresponding to the target function that has been developed, and outputting a touch component corresponding to the target function according to the second touch instruction, and receiving an operation triggered by the tester for the touch component, to obtain a test result of the target function that has been developed;

[0064] When the test result of the target function is used to indicate that a menu function page corresponding to the target function is popped up, the test result of the target function is used to indicate that the test of the target function has passed.

[0065] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the device further includes:

[0066] A change module is used to change the switch value of the compile-time switch according to the type of the target function when it is determined that the compilation condition is not met, so that the changed switch value of the compile-time switch is used to indicate that the compilation environment of the development end is in the preset compilation environment, or output a target prompt that the compilation condition is not met to the developer, and receive a switch value change instruction input by the developer for the target prompt, and change the switch value of the compile-time switch according to the switch value so that the changed switch value of the compile-time switch is used to indicate that the compilation environment of the development end is in the preset compilation environment, and trigger the adding module to perform the operation of determining the type of the target function, and adding a corresponding function switch for the target function in the local switch of the main branch according to the type of the target function.

[0067] The third aspect of the present invention discloses another device for performing software intelligent processing based on a function switch, the device is applied to a software processing system, the software processing system includes a development end, the development end is provided with a main branch, the main branch is used for developing at least one target function to be developed, for any of the target functions, the device includes:

[0068] A storage device storing executable program code;

[0069] a processor coupled to the storage device;

[0070] The processor calls the executable program code stored in the storage device to execute the method for performing software intelligent processing based on function switches disclosed in the first aspect of the present invention.

[0071] The fourth aspect of the present invention discloses a computer storage medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the method for performing software intelligent processing based on function switches disclosed in the first aspect of the present invention.

[0072] The fifth aspect of the present invention discloses a software processing system, which includes a development end and a test end, wherein the development end is communicatively connected to the test end, the development end is provided with a main branch, and the main branch is used for developing at least one target function. For any of the target functions, the development end is used to execute the method for intelligent software processing based on function switches disclosed in the first aspect of the present invention, and the test end is used to perform test operations on the target function that has been developed on the main branch.

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

[0074] In an embodiment of the present invention, by judging the current compilation conditions of the development end, when the compilation conditions are met, the corresponding function switch is automatically added to the local switch of the main branch for the target function according to the type of the target function to be developed, and the function switch corresponding to the target function is controlled to remain in the first preset state to perform development operations on the target function. There is no need to start a branch independent of the main branch to develop the target function for the target function. Rapid iterative development of functions can be achieved while ensuring the stability of the main branch, and parallel development of multiple teams is supported, which reduces the complexity of branch management, is conducive to improving the flexibility and controllability of the release of the target function, and is conducive to reducing the release risk of the target function. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0076] Figure 1 It is a flowchart of a method for performing software intelligent processing based on a function switch disclosed in an embodiment of the present invention;

[0077] Figure 2 It is a flowchart of another method for performing software intelligent processing based on a function switch disclosed in an embodiment of the present invention;

[0078] Figure 3 It is a structural schematic diagram of a device for performing software intelligent processing based on a function switch disclosed in an embodiment of the present invention;

[0079] Figure 4 It is a structural schematic diagram of another device for performing software intelligent processing based on function switches disclosed in an embodiment of the present invention;

[0080] Figure 5 It is a structural schematic diagram of another device for performing software intelligent processing based on a function switch disclosed in an embodiment of the present invention;

[0081] Figure 6 It is a structural diagram of another software processing system disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0083] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or equipment.

[0084] 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 invention. The appearance of the phrase in various places 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.

[0085] The present invention discloses a method, device and system for intelligent software processing based on function switches, which judges the current compilation conditions of the development end. When the compilation conditions are met, the corresponding function switch is automatically added to the local switch of the main branch according to the type of the target function to be developed, and the function switch corresponding to the target function is controlled to remain in the first preset state to perform development operations on the target function. There is no need to develop the target function in a branch branch independent of the main branch, which can achieve rapid iterative development of functions while ensuring the stability of the main branch, and supports parallel development of multiple teams, reducing the complexity of branch management, which is conducive to improving the flexibility and controllability of the release of the target function, thereby helping to reduce the release risk of the target function. The following are detailed descriptions.

[0086] Embodiment 1

[0087] See also Figure 1 , Figure 1 1 is a flow chart of a method for performing software intelligent processing based on a function switch disclosed in an embodiment of the present invention. Figure 1 The described method can be applied to any system capable of implementing software development, and the system includes a development end, the development end is provided with a main branch, and the main branch is used to develop at least one target function to be developed; further, the system can also include a test end, the test end is connected to the development end in communication, and is used to test the target function developed by the development end. It should be noted that the test can also be performed directly on the development end. Among them, for any target function to be developed, such as Figure 1 As shown, the method for performing software intelligent processing based on the function switch may include the following operations:

[0088] 101. Determine whether the current compilation condition of the development end satisfies the pre-determined compilation condition.

[0089] 102. When it is determined that the compilation condition is met, the type of the target function is determined, and according to the type of the target function, a corresponding function switch is added for the target function in the local switch of the main branch.

[0090] In the embodiment of the present invention, the type of the target function optionally includes but is not limited to one of version compatibility, user management, data management, business logic processing, and interface display, etc. Different target function types correspond to different function switches.

[0091] 103. Control a function switch corresponding to the target function to maintain a first preset state, and perform a development operation on the target function when the function switch corresponding to the target function maintains the first preset state.

[0092] In the embodiment of the present invention, all target functions are developed simultaneously or non-simultaneously on the main branch, and the developer corresponding to one target function can be one or more, and one developer can participate in the development of one target function or multiple target functions for development. Optionally, the first preset states corresponding to different target functions can be the same or different, but in any case, the first preset state includes a closed state or an open state, which is two opposite states to the second preset state described below.

[0093] It can be seen that the implementation Figure 1 The described method for intelligent software processing based on function switches judges the current compilation conditions of the development end. When the compilation conditions are met, the method automatically adds a corresponding function switch for the target function in the local switch of the main branch according to the type of the target function to be developed, and controls the function switch corresponding to the target function to remain in the first preset state to perform development operations on the target function. There is no need to start a branch independent of the main branch to develop the target function for the target function. It can achieve rapid iterative development of functions while ensuring the stability of the main branch, and supports parallel development of multiple teams, reducing the complexity of branch management, which is conducive to improving the flexibility and controllability of the release of the target function, thereby helping to reduce the release risk of the target function.

[0094] In the embodiment of the present invention, optionally, performing a development operation on the target function while the function switch corresponding to the target function remains in the first preset state includes:

[0095] When the function switch corresponding to the target function is maintained in the first preset state, obtaining the demand parameter corresponding to the target function;

[0096] According to the requirement parameters corresponding to the target function, determine the development configuration parameters and the corresponding menu function page corresponding to the target function;

[0097] According to the development configuration parameters, the menu function page is configured, and the association relationship between the menu function page configured with the development configuration parameters and the target function is established;

[0098] According to the association relationship corresponding to the target function, a corresponding touch component is set for the menu function page configured with the development configuration parameters, and the touch component is used for relevant personnel to touch to display or hide the menu function page;

[0099] After the corresponding touch component is set for the target function, the business logic execution operation is performed on the target function according to the first preset state and the type of the target function to obtain the developed target function.

[0100] In the embodiment of the present invention, optionally, during actual development, the type of the function switch corresponding to the target function can be defined as the first enumeration type. Further optionally, different target functions may have different requirement parameters, development configuration parameters, and menu function interfaces. For example, for version compatibility, the corresponding requirement parameters may include one or more of version number, data structure, file format, API interface, and update log.

[0101] In the embodiment of the present invention, optionally, for different target functions, when the touch component is triggered, the corresponding menu function interface may be displayed (popped up) or hidden.

[0102] In an embodiment of the present invention, executing the business logic operation on the target function is specifically to determine whether the function switch corresponding to the target function (such as: the compatibility switch corresponding to version compatibility) is in a first preset state. If it is in the first preset state, the target function is started, that is, jumping to the target function; if it is in the second preset state, it is consistent with the logic of the online version, that is, the original function is still used (such as: the compatibility switch corresponding to version compatibility is in the on state, which means that the original version is still used).

[0103] It can be seen that the embodiment of the present invention can also perform demand parameter analysis, and then perform development configuration parameter and menu function page analysis when the required development function is in the corresponding development state, so as to configure the menu function interface based on the development configuration parameters, and finally establish an association relationship between the configured menu function interface and the corresponding function, and set the corresponding touch component, while realizing rapid and accurate function development, further ensuring the stability of the main branch, and establishing a corresponding association relationship, which is conducive to quickly finding the corresponding function or menu function interface, so as to facilitate efficient and accurate testing of the function.

[0104] In the embodiment of the present invention, optionally, determining whether the current compilation condition of the development end meets the predetermined compilation condition includes:

[0105] determining a switch value of a compile-time switch corresponding to a target function;

[0106] Determine whether the switch value of the compile-time switch is used to indicate that the compilation environment of the development end is in a preset compilation environment, where the preset compilation environment includes a debug environment (debug environment) or an internal environment (internal environment);

[0107] When it is determined that the switch value of the compile-time switch is used to indicate that the compiling environment of the development end is in the preset compiling environment, it is determined that the current compiling condition of the development end satisfies the predetermined compiling condition.

[0108] In the embodiment of the present invention, optionally, when actually developing, the type of the compile-time switch can be defined as the second enumeration type. Further, different switch values ​​correspond to different compilation environments, such as 1 and 2 both represent non-release environments and represent debugging and internal environments respectively, and 0 represents release environment. Among them, the target function can only be developed and tested in a non-release environment.

[0109] In an embodiment of the present invention, optionally, the switch value of the compile-time switch corresponding to the target function can be directly determined, or the switch value of the compile-time switch corresponding to the target function can be obtained by receiving an operation triggered by a developer for the target function (such as a shake API interface).

[0110] It can be seen that this optional embodiment can realize the rapid and accurate determination of the compilation environment of the development end by analyzing the switch value of the compile-time switch, thereby facilitating the improvement of the execution efficiency and accuracy of subsequent development operations of the function. In the embodiment of the present invention, optionally, the function switch corresponding to the control target function is kept in the first preset state, including:

[0111] Outputting a state management interface of a function switch corresponding to the target function to the developer, where the state management interface is used for the developer to view the state of the target function switch and perform operations matching the state of the target function switch;

[0112] Respond to the target instructions entered by the developer on the state management interface;

[0113] According to the target instruction, the state value of the function switch corresponding to the target function is set to a value used to indicate that the function switch corresponding to the target function switch is in a first preset state.

[0114] In an embodiment of the present invention, optionally, different target functions correspond to different status management interfaces. For example, for version compatibility, an enumeration case isVersionCompatibilityEnabled (version compatibility switch) is separately defined in the UGInternalToggle local switch, and the DataStore (status management interface) of the version compatibility switch is output to the developer, so that the developer can enter the corresponding code instructions in the status management interface and set the status value of the version compatibility switch according to the code instructions, such as the fase value, so that even if the main branch is packaged as a debug package or a release package, the version compatibility function is not displayed.

[0115] It can be seen that this optional embodiment outputs the state management interface of the function switch of the required development function to the developer to obtain the instructions input by the developer, thereby achieving accurate management of the function switch state, which is beneficial to improving the accuracy of function development.

[0116] Embodiment 2

[0117] See also Figure 2 , Figure 2 1 is a flow chart of another method for performing software intelligent processing based on function switches disclosed in an embodiment of the present invention. Figure 2 The automatic printing control method described can be applied to any system capable of realizing software development, and the system includes a development end, the development end is provided with a main branch, and the main branch is used for developing at least one target function to be developed; further, the system can also include a test end, the test end is connected to the development end in communication, and is used to test the target function developed by the development end. It should be noted that the test can also be performed directly on the development end. Among them, for any target function to be developed, such as Figure 2 As shown, the method for performing software intelligent processing based on the function switch may include the following operations:

[0118] 201. Determine whether the current compilation condition of the development end satisfies the pre-determined compilation condition.

[0119] 202. When it is determined that the compilation condition is met, the type of the target function is determined, and according to the type of the target function, a corresponding function switch is added for the target function in the local switch of the main branch.

[0120] 203. Control a function switch corresponding to the target function to maintain a first preset state, and perform a development operation on the target function when the function switch corresponding to the target function maintains the first preset state.

[0121] 204. After the development of the target function is completed, a test operation is performed on the developed target function on the main branch to obtain a test result of the target function.

[0122] 205. When the test result of the target function is used to indicate that the target function test has passed, determine whether the target function needs to be released.

[0123] 206. When it is determined that release is required, the function switch corresponding to the target function is deleted from the main branch and / or the state of the function switch corresponding to the target function is set to a second preset state, and a release operation is performed on the target function, where the second preset state is opposite to the first preset state.

[0124] In the embodiment of the present invention, optionally, when the target function is tested, a corresponding test pass prompt can be generated and sent (such as by email or text message) to relevant personnel (such as product managers, project managers) for the relevant personnel to confirm whether it needs to be released. When a release instruction triggered by a relevant personnel (such as a product manager, project manager) is detected, and / or when it is detected that the current moment is in a predetermined target function distribution time range, and / or when it is detected that the importance of the target function is greater than or equal to the preset importance, and / or when it is detected that the target function carries a corresponding release identifier, it is determined that it needs to be released. Wherein, in the case of determining to release the target function by detecting the release instruction, the relevant personnel send an online notification to the development end through their corresponding terminal (such as email), so that the development end directly deletes the function switch corresponding to the target function from the main branch and / or sets the state of the function switch corresponding to the target function to the second preset state, or outputs the online notification to the developer, so that the corresponding developer inputs the corresponding instruction to the development end, so that the development end deletes the function switch corresponding to the target function from the main branch and / or sets the state of the function switch corresponding to the target function to the second preset state according to the received instruction.

[0125] In the embodiment of the present invention, further, after determining that the target function needs to be released, the development configuration parameters corresponding to the menu function page corresponding to the target function are deleted, wherein the deletion operation is the same as the deletion operation of the function switch corresponding to the target function, and can be directly deleted by the development end, or deleted according to the deletion instruction after receiving the deletion instruction from the developer. Further, after deleting the corresponding function switch or setting the state of the function switch corresponding to the target function to the second preset state and deleting the development configuration parameters, the corresponding target function is repackaged and retested, and if the test still passes, the release operation is executed.

[0126] In the embodiment of the present invention, optionally, the software processing system may further include a publishing end, and the target function may be published on the publishing end or on the development end.

[0127] In the embodiment of the present invention, for the description of steps 201 to 203, please refer to other detailed descriptions of steps 101 to 103 in the first embodiment, and the embodiment of the present invention will not be repeated here.

[0128] It can be seen that the implementation Figure 2The method for intelligent software processing based on function switches described herein judges the current compilation conditions of the development end. When the compilation conditions are met, the corresponding function switch is automatically added to the local switch of the main branch according to the type of the target function to be developed, and the function switch corresponding to the target function is controlled to remain in the first preset state to perform development operations on the target function. There is no need to develop the target function in a branch branch independent of the main branch. It can achieve rapid iterative development of functions while ensuring the stability of the main branch, and supports parallel development of multiple teams, which reduces the complexity of branch management and is conducive to improving the flexibility and controllability of the release of the target function, thereby helping to reduce the release risk of the target function. In addition, after the function development is completed, the function is still tested on the main branch, which further ensures the stability of the main branch, and before the release, the function release conditions are first judged. If they are met, they are released, which can improve the controllability, flexibility and accuracy of the function release; and by providing multiple ways to judge the function release conditions, the judgment efficiency of the conditions can be improved, thereby helping to improve the efficiency of the function release operation.

[0129] In the embodiment of the present invention, optionally, performing a test operation on the developed target function on the main branch to obtain a test result of the target function includes:

[0130] Responding to a packaging instruction input by a developer to indicate packaging of the developed target function, and performing a packaging operation on the developed target function on the main branch according to the packaging instruction, obtaining a test package corresponding to the target function, and sending the test package to the test end, so that the test end performs the following operations;

[0131] The test end responds to the first touch instruction triggered by the tester on the function switch corresponding to the target function, and outputs the touch component corresponding to the target function according to the first touch instruction, and receives the operation triggered by the tester on the touch component, so as to obtain the test result of the developed target function;

[0132] or,

[0133] Responding to the second touch control instruction input by the tester for the function switch corresponding to the developed target function on the main branch, outputting the touch control component corresponding to the target function according to the second touch control instruction, and receiving the operation triggered by the tester for the touch control component to obtain the test result of the developed target function;

[0134] When the test result of the target function is used to indicate that a menu function page corresponding to the target function is popped up, the test result of the target function is used to indicate that the test of the target function has passed.

[0135] In the embodiment of the present invention, optionally, for target function testing at the test end, after the test end receives the corresponding test package, it compiles and runs it locally to obtain a corresponding test environment, such as a debug environment or an internal environment, and performs function testing.

[0136] It should be noted that the touch component may be a touch button due to different target functions of different types, in which case the output mode may be an interface display output, or may be a carrier of the function (such as a mobile phone), in which case the output mode may be a voice output, which is not limited in the embodiments of the present invention. For example, for version compatibility, the corresponding touch component may be a mobile phone, and when a touch command triggered by a tester for a version compatibility switch is detected, a voice prompt is output to the tester to shake the phone, and a pop-up menu function page is used as the version compatibility test result.

[0137] In the embodiment of the present invention, the tester selects the corresponding function switch to test the target function according to the type of the target function he is responsible for. Different target functions correspond to different testers, or each tester can test one target function or multiple target functions.

[0138] It can be seen that the embodiment of the present invention can also perform functional testing on the development end or the test end, but no matter which testing method is used, it is performed on the main branch, which can enrich the functional testing method, improve the functional testing efficiency and ensure the stability of the main branch.

[0139] In an optional embodiment, the method may further include the following steps:

[0140] When it is determined that the compilation condition is not met, the switch value of the compile-time switch is changed according to the type of the target function so that the changed switch value of the compile-time switch is used to indicate that the compilation environment of the development end is in the preset compilation environment, and the above-mentioned determination of the type of the target function is triggered, and according to the type of the target function, the operation of adding a corresponding function switch for the target function in the local switch of the main branch is added;

[0141] Alternatively, a target prompt that does not meet the compilation conditions is output to the developer, and a switch value change instruction input by the developer for the target prompt is received, and according to the switch value, the switch value of the compile-time switch is changed so that the changed switch value of the compile-time switch is used to indicate that the compilation environment of the development end is in a preset compilation environment, and triggers the execution of the above-mentioned determination of the type of target function, and according to the type of the target function, adds a corresponding function switch for the target function in the local switch of the main branch.

[0142] It can be seen that when this optional embodiment determines that the compilation environment of the development end does not meet the function development, it directly changes the switch value of the compile-time switch according to the type of function, or changes the switch value of the compile-time switch by receiving the switch value change instruction input by the developer. This can enrich the way of changing the switch value of the compile-time switch and improve the change efficiency, which is beneficial to improving the subsequent development, testing and release efficiency of the function.

[0143] Embodiment 3

[0144] See also Figure 3 , Figure 3 1 is a schematic diagram of a device for performing software intelligent processing based on a function switch disclosed in an embodiment of the present invention. Figure 3 The described device can be applied to any system capable of realizing software development, and the system includes a development end, the development end is provided with a main branch, and the main branch is used for developing at least one target function to be developed; further, the system can also include a test end, the test end is connected to the development end in communication, and is used to test the target function developed by the development end. It should be noted that the test can also be performed directly on the development end. Among them, for any target function to be developed, such as Figure 3 As shown, the device for performing software intelligent processing based on the function switch may include:

[0145] The judging module 301 is used to judge whether the current compiling condition of the development end satisfies the pre-determined compiling condition;

[0146] An adding module 302 is used to determine the type of the target function when it is determined that the compilation condition is met, and add a corresponding function switch for the target function in the local switch of the main branch according to the type of the target function;

[0147] A control module 303, used to control the function switch corresponding to the target function to maintain a first preset state;

[0148] The development module 304 is used to perform a development operation on the target function when the function switch corresponding to the target function remains in a first preset state.

[0149] It can be seen that the implementation Figure 3The described device for intelligent software processing based on function switches judges the current compilation conditions of the development end. When the compilation conditions are met, it automatically adds a corresponding function switch for the target function in the local switch of the main branch according to the type of the target function to be developed, and controls the function switch corresponding to the target function to remain in the first preset state to perform development operations on the target function. There is no need to start a branch independent of the main branch to develop the target function. It can achieve rapid iterative development of functions while ensuring the stability of the main branch, and supports parallel development of multiple teams, reducing the complexity of branch management, which is conducive to improving the flexibility and controllability of the release of the target function, thereby helping to reduce the release risk of the target function.

[0150] In the embodiment of the present invention, optionally, the specific manner in which the development module 304 performs the development operation on the target function when the function switch corresponding to the target function remains in the first preset state includes:

[0151] When the function switch corresponding to the target function is maintained in the first preset state, obtaining the demand parameter corresponding to the target function;

[0152] According to the requirement parameters corresponding to the target function, determine the development configuration parameters and the corresponding menu function page corresponding to the target function;

[0153] According to the development configuration parameters, the menu function page is configured, and the association relationship between the menu function page configured with the development configuration parameters and the target function is established;

[0154] According to the association relationship corresponding to the target function, a corresponding touch component is set for the menu function page configured with the development configuration parameters, and the touch component is used for relevant personnel to touch to display or hide the menu function page;

[0155] After the corresponding touch component is set for the target function, the business logic execution operation is performed on the target function according to the first preset state and the type of the target function to obtain the developed target function.

[0156] It can be seen that the implementation Figure 3 The described device can also perform demand parameter analysis, development configuration parameter and menu function page analysis when the required development function is in the corresponding development state, thereby configuring the menu function interface based on the development configuration parameters, and finally establishing an association relationship between the configured menu function interface and the corresponding function, and setting the corresponding touch component. While realizing rapid and accurate function development, the stability of the main branch is further guaranteed. By establishing a corresponding association relationship, it is beneficial to quickly find the corresponding function or menu function interface, so as to facilitate efficient and accurate testing of the function.

[0157] In the embodiment of the present invention, optionally, the specific manner in which the judgment module 301 judges whether the current compilation condition of the development end meets the predetermined compilation condition includes:

[0158] determining a switch value of a compile-time switch corresponding to a target function;

[0159] Determine whether the switch value of the compile-time switch is used to indicate that the compilation environment of the development end is in a preset compilation environment, where the preset compilation environment includes a debug environment (debug environment) or an internal environment (internal environment);

[0160] When it is determined that the switch value of the compile-time switch is used to indicate that the compiling environment of the development end is in the preset compiling environment, it is determined that the current compiling condition of the development end satisfies the predetermined compiling condition.

[0161] It can be seen that the implementation Figure 3 The described device can also analyze the switch value of the switch at compile time, so as to realize the rapid and accurate determination of the compilation environment of the development end, thereby facilitating the improvement of the execution efficiency and accuracy of the subsequent development operation of the function.

[0162] In the embodiment of the present invention, optionally, the specific manner in which the control module 303 controls the function switch corresponding to the target function to maintain the first preset state includes:

[0163] Outputting a state management interface of a function switch corresponding to the target function to the developer, where the state management interface is used for the developer to view the state of the target function switch and perform operations matching the state of the target function switch;

[0164] Respond to the target instructions entered by the developer on the state management interface;

[0165] According to the target instruction, the state value of the function switch corresponding to the target function is set to a value used to indicate that the function switch corresponding to the target function switch is in a first preset state.

[0166] It can be seen that the implementation Figure 3 The described device can also output the state management interface of the function switch of the required development function to the developer to obtain the instructions input by the developer, thereby achieving accurate management of the function switch state, which is beneficial to improving the accuracy of function development.

[0167] In an alternative embodiment, Figure 4 is a schematic diagram of the structure of another device for performing software intelligent processing based on a function switch disclosed in an embodiment of the present invention, such as Figure 4 As shown, the device also includes:

[0168] The test module 305 is used to perform a test operation on the developed target function on the main branch after the target function is developed, and obtain a test result of the target function;

[0169] A judgment module 301 is used to judge whether the target function needs to be released when the test result of the target function indicates that the target function test has passed;

[0170] The release module 306 is used to delete the function switch corresponding to the target function from the main branch and / or set the state of the function switch corresponding to the target function to a second preset state when it is determined that release is required, and perform a release operation on the target function, and the second preset state is the opposite state to the first preset state.

[0171] In an embodiment of the present invention, optionally, the release module 306 is also used to generate a corresponding test pass prompt after the target function test is passed, and send it (such as by email or text message) to relevant personnel (such as product managers, project managers) for the relevant personnel to confirm whether it needs to be released. When a release instruction triggered by a relevant personnel (such as a product manager, project manager) is detected, and / or when it is detected that the current moment is in a predetermined target function distribution time range, and / or when it is detected that the importance of the target function is greater than or equal to the preset importance, and / or when it is detected that the target function carries a corresponding release identifier, it is determined that it needs to be released. Among them, in the case of determining the release of the target function by detecting the release instruction, the relevant personnel send the online notification to the development end through their corresponding terminals (such as email), so that the release module 306 of the development end will directly delete the function switch corresponding to the target function from the main branch and / or set the state of the function switch corresponding to the target function to the second preset state, or, output the online notification to the developer, so that the corresponding developer inputs the corresponding instruction to the development end, so that the development end will delete the function switch corresponding to the target function from the main branch and / or set the state of the function switch corresponding to the target function to the second preset state according to the received instruction.

[0172] In the embodiment of the present invention, further, the publishing module 306 is also used to delete the development configuration parameters corresponding to the menu function page corresponding to the target function after determining that the target function needs to be published, wherein the deletion operation is the same as the deletion operation of the function switch corresponding to the target function, and can be deleted directly by the development end, or after receiving the deletion instruction from the developer, the deletion is performed according to the deletion instruction. Further, the publishing module 306 is also used to repackage the corresponding target function and retest it after deleting the corresponding function switch or setting the state of the function switch corresponding to the target function to the second preset state and deleting the development configuration parameters, and if the test still passes, the publishing operation is executed.

[0173] It can be seen that the implementation Figure 4 The described device can test the function on the main branch after the function development is completed, further ensuring the stability of the main branch, and before releasing, first judge the function release conditions, if met, then release, which can improve the controllability, flexibility and accuracy of function release; and by providing multiple ways to judge the function release conditions, the judgment efficiency of the conditions can be improved, which is conducive to improving the efficiency of function release operations.

[0174] In this optional embodiment, the testing module 305 performs a test operation on the developed target function on the main branch, and a specific method of obtaining the test result of the target function includes:

[0175] Responding to a packaging instruction input by a developer to indicate packaging of the developed target function, and performing a packaging operation on the developed target function on the main branch according to the packaging instruction, obtaining a test package corresponding to the target function, and sending the test package to the test end, so that the test end performs the following operations;

[0176] The test end responds to the first touch instruction triggered by the tester on the function switch corresponding to the target function, and outputs the touch component corresponding to the target function according to the first touch instruction, and receives the operation triggered by the tester on the touch component, so as to obtain the test result of the developed target function;

[0177] or,

[0178] Responding to the second touch control instruction input by the tester for the function switch corresponding to the developed target function on the main branch, outputting the touch control component corresponding to the target function according to the second touch control instruction, and receiving the operation triggered by the tester for the touch control component to obtain the test result of the developed target function;

[0179] When the test result of the target function is used to indicate that a menu function page corresponding to the target function is popped up, the test result of the target function is used to indicate that the test of the target function has passed.

[0180] It can be seen that the implementation Figure 4 The described device can also perform functional testing on the development end or the test end, but no matter which testing method is used, it is performed on the main branch, which can enrich the functional testing method, improve the functional testing efficiency and ensure the stability of the main branch.

[0181] In yet another optional embodiment, Figure 4 As shown, the device may also include:

[0182] The changing module 307 is used to change the switch value of the compile-time switch according to the type of the target function when it is determined that the compilation condition is not met, so that the changed switch value of the compile-time switch is used to indicate that the compilation environment of the development end is in the preset compilation environment, and trigger the adding module 303 to perform the above-mentioned determination of the type of the target function, and according to the type of the target function, add the corresponding function switch for the target function in the local switch of the main branch;

[0183] Alternatively, a target prompt that does not meet the compilation conditions is output to the developer, and a switch value change instruction input by the developer for the target prompt is received, and according to the switch value, the switch value of the compile-time switch is changed so that the changed switch value of the compile-time switch is used to indicate that the compilation environment of the development end is in a preset compilation environment, and the adding module 303 is triggered to perform the above-mentioned determination of the type of the target function, and according to the type of the target function, the corresponding function switch operation is added for the target function in the local switch of the main branch.

[0184] It can be seen that the implementation Figure 4 The described device can also directly change the switch value of the compile-time switch according to the type of function when it is determined that the compilation environment of the development end does not meet the function development, or change the switch value of the compile-time switch by receiving the switch value change instruction input by the developer. It can enrich the way of changing the switch value of the compile-time switch and improve the change efficiency, which is conducive to improving the subsequent development, testing and release efficiency of the function.

[0185] Embodiment 4

[0186] See also Figure 5 , Figure 5 It is another device for performing intelligent software processing based on function switches disclosed in an embodiment of the present invention. The device can be applied to any system capable of realizing software development, and the system includes a development end, which is provided with a main branch, and the main branch is used for developing at least one target function to be developed; further, the system can also include a test end, which is connected to the development end in communication and is used to test the target function developed by the development end. It should be noted that the test can also be performed directly on the development end. For any target function to be developed, such as Figure 5 As shown, the device for performing software intelligent processing based on the function switch may include:

[0187] A storage device 401 storing executable program codes;

[0188] A processor 402 coupled to the storage 401;

[0189] Furthermore, it may also include an input interface 403 and an output interface 404 coupled to the processor 402;

[0190] The processor 402 calls the executable program code stored in the storage 401 to execute the steps of the method for performing software intelligent processing based on the function switch described in the first or second embodiment.

[0191] Embodiment 5

[0192] An embodiment of the present invention discloses a computer storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps of the method for performing software intelligent processing based on a function switch described in the first or second embodiment.

[0193] Embodiment 6

[0194] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps in the method for performing software intelligent processing based on function switches described in Embodiment 1 or Embodiment 2.

[0195] Embodiment 7

[0196] like Figure 6 As shown, Figure 6 A software processing system disclosed in an embodiment of the present invention may include a development end and a test end, wherein the development end is communicatively connected with the test end, wherein the development end is provided with a main branch, and the main branch is used for developing at least one target function. For any target function, the development end may include: Figure 3-4 The corresponding device for performing software intelligent processing based on function switches is used to execute the steps in the method for performing software intelligent processing based on function switches described in Example 1 or Example 2, and the test end is used to perform test operations on the target function that has been developed on the main branch; further, the software processing system may also include a publishing end, wherein the development end, the test end, and the publishing end are communicatively connected. At this time, the development end is used to execute the target function development-related steps in the method for performing software intelligent processing based on function switches described in Example 1 or Example 2, the test end is used to perform test operations on the target function that has been developed on the main branch, and the development end is used to publish the target function that has passed the test.

[0197] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0198] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, a magnetic disk storage, a magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0199] Finally, it should be noted that the method, device and system for performing software intelligent processing based on function switches disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for intelligent software processing based on function switches, It is characterized in that The method is applied to a software processing system, the software processing system includes a development end, the development end is provided with a main branch, the main branch is used for developing at least one target function that needs to be developed, and for any of the target functions, the method includes: Determining whether the current compilation condition of the development end meets the predetermined compilation condition; When it is determined that the compilation condition is met, determining the type of the target function, and adding a corresponding function switch for the target function in the local switch of the main branch according to the type of the target function; The function switch corresponding to the target function is controlled to maintain a first preset state, and a development operation is performed on the target function when the function switch corresponding to the target function is maintained in the first preset state.

2. The method for performing software intelligent processing based on function switches according to claim 1, It is characterized in that The performing a development operation on the target function while the function switch corresponding to the target function remains in the first preset state includes: When the function switch corresponding to the target function remains in the first preset state, obtaining the demand parameter corresponding to the target function; Determine the development configuration parameters and the corresponding menu function page corresponding to the target function according to the requirement parameters corresponding to the target function; According to the development configuration parameters, the menu function page is configured, and an association relationship between the menu function page configured with the development configuration parameters and the target function is established; According to the association relationship corresponding to the target function, a corresponding touch component is set for the menu function page configured with the development configuration parameters, and the touch component is used for relevant personnel to touch to display or hide the menu function page; After the corresponding touch component is set for the target function, a business logic execution operation is performed on the target function according to the first preset state and the type of the target function to obtain the developed target function.

3. The method for performing software intelligent processing based on function switches according to claim 1 or 2, It is characterized in that The determining whether the current compilation condition of the development end meets the predetermined compilation condition includes: Determining a switch value of a compile-time switch corresponding to the target function; Determining whether the switch value of the compile-time switch is used to indicate that the compile environment of the development end is in a preset compile environment, wherein the preset compile environment includes a debugging environment or an internal environment; When it is determined that the switch value of the compile-time switch is used to indicate that the compiling environment of the development end is in the preset compiling environment, it is determined that the current compiling condition of the development end satisfies the predetermined compiling condition.

4. The method for performing software intelligent processing based on function switches according to claim 1 or 2, It is characterized in that The controlling the function switch corresponding to the target function to maintain a first preset state includes: Outputting a state management interface of the function switch corresponding to the target function to the developer, wherein the state management interface is used for the developer to view the state of the target function switch and perform operations matching the state of the target function switch; Responding to a target instruction input by a developer on the state management interface; According to the target instruction, the state value of the function switch corresponding to the target function is set to a value used to indicate that the function switch corresponding to the target function switch is in a first preset state.

5. The method for performing software intelligent processing based on function switches according to claim 1 or 2, It is characterized in that The method further comprises: After the target function is developed, a test operation is performed on the developed target function on the main branch to obtain a test result of the target function; When the test result of the target function indicates that the test of the target function has passed, determining whether the target function needs to be released; When it is determined that release is required, the function switch corresponding to the target function is deleted from the main branch and / or the state of the function switch corresponding to the target function is set to a second preset state, and a release operation is performed on the target function, and the second preset state is the opposite state of the first preset state.

6. The method for performing software intelligent processing based on function switches according to claim 5, It is characterized in that The performing a test operation on the developed target function on the main branch to obtain a test result of the target function includes: Responding to a packaging instruction input by a developer for indicating packaging of the target function that has been developed, and performing a packaging operation on the target function that has been developed on the main branch according to the packaging instruction, obtaining a test package corresponding to the target function, and sending the test package to the test end, so that the test end performs the following operations; The test end responds to a first touch instruction triggered by a tester on a function switch corresponding to the target function, and outputs a touch component corresponding to the target function according to the first touch instruction, and receives an operation triggered by the tester on the touch component, to obtain a test result of the developed target function; or, Responding on the main branch to a second touch instruction input by the tester for the function switch corresponding to the target function that has been developed, and outputting a touch component corresponding to the target function according to the second touch instruction, and receiving an operation triggered by the tester for the touch component, to obtain a test result of the target function that has been developed; When the test result of the target function is used to indicate that a menu function page corresponding to the target function is popped up, the test result of the target function is used to indicate that the test of the target function has passed.

7. The method for performing software intelligent processing based on function switches according to claim 3, It is characterized in that The method further comprises: When it is determined that the compilation condition is not met, according to the type of the target function, the switch value of the compile-time switch is changed so that the changed switch value of the compile-time switch is used to indicate that the compilation environment of the development end is in the preset compilation environment, and trigger the execution of the operation of determining the type of the target function, and according to the type of the target function, adding a corresponding function switch for the target function in the local switch of the main branch; Alternatively, a target prompt that does not meet the compilation conditions is output to the developer, and a switch value change instruction input by the developer for the target prompt is received, and according to the switch value, the switch value of the compile-time switch is changed so that the changed switch value of the compile-time switch is used to indicate that the compilation environment of the development end is in the preset compilation environment, and triggers the execution of the operation of determining the type of the target function, and according to the type of the target function, adding a corresponding function switch for the target function in the local switch of the main branch.

8. A device for performing software intelligent processing based on function switches, It is characterized in that The device is applied to a software processing system, the software processing system includes a development end, the development end is provided with a main branch, the main branch is used for developing at least one target function that needs to be developed, and for any of the target functions, the device includes: A judgment module, used to judge whether the current compilation condition of the development end meets the predetermined compilation condition; an adding module, configured to determine the type of the target function when the compilation condition is determined, and add a corresponding function switch for the target function in the local switch of the main branch according to the type of the target function; A control module, used for controlling the function switch corresponding to the target function to maintain a first preset state; A development module is used to perform a development operation on the target function when the function switch corresponding to the target function remains in the first preset state.

9. A device for performing software intelligent processing based on function switches, It is characterized in that The device is applied to a software processing system, the software processing system includes a development end, the development end is provided with a main branch, the main branch is used for developing at least one target function that needs to be developed, and for any of the target functions, the device includes: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method for performing software intelligent processing based on a function switch according to any one of claims 1 to 7.

10. A computer storage medium, It is characterized in that The computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the method for performing software intelligent processing based on function switches as described in any one of claims 1 to 7.

11. A software processing system, It is characterized in that The software processing system includes a development end and a test end, the development end is communicatively connected with the test end, the development end is provided with a main branch, the main branch is used for developing at least one target function, for any of the target functions, the development end is used to execute the method for intelligent software processing based on function switches as described in any one of claims 1 to 7, and the test end is used to perform test operations on the target function that has been developed on the main branch.