CN115080276B - Application program function dynamic switching method and device, storage medium and electronic equipment - Google Patents

Application program function dynamic switching method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115080276B
CN115080276B CN202210854801.9A CN202210854801A CN115080276B CN 115080276 B CN115080276 B CN 115080276B CN 202210854801 A CN202210854801 A CN 202210854801A CN 115080276 B CN115080276 B CN 115080276B
Authority
CN
China
Prior art keywords
request
switch
function
state
dynamic switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210854801.9A
Other languages
Chinese (zh)
Other versions
CN115080276A (en
Inventor
侯战斌
唐小川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jutongda Technology Co ltd
Original Assignee
Beijing Jutongda Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jutongda Technology Co ltd filed Critical Beijing Jutongda Technology Co ltd
Priority to CN202210854801.9A priority Critical patent/CN115080276B/en
Publication of CN115080276A publication Critical patent/CN115080276A/en
Application granted granted Critical
Publication of CN115080276B publication Critical patent/CN115080276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure relates to a method, a device, a storage medium and an electronic device for dynamically switching on and off functions of an application program, which are applied to a server, wherein the method comprises the following steps: in response to receiving a switch creation request, creating a dynamic switch; modifying the state of the dynamic switch according to the configuration modification request under the condition of receiving the configuration modification request corresponding to the dynamic switch; and under the condition of receiving a function access request corresponding to the dynamic switch, returning a state identifier according to the state of the dynamic switch, so that the target terminal determines whether to operate the function of the target application program according to the state identifier. The flexibility of the application program is effectively improved, the workload in the development process is reduced, and the development efficiency is effectively improved.

Description

Application program function dynamic switching method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of information technology, and in particular, to a method and an apparatus for dynamically switching on and off an application function, a storage medium, and an electronic device.
Background
After the application program is developed, part of the functions may not need to be opened for a long time, but part of the functions in the application program need to be disabled or the disabled functions need to be turned on again according to actual needs. In the related art, if the functions in the application program need to be modified, the codes need to be modified again, which is inefficient and wastes human resources.
Disclosure of Invention
In order to solve the problems in the related art, the present disclosure provides a method, an apparatus, a storage medium, and an electronic device for dynamically switching an application function.
In order to achieve the above object, a first aspect of the present disclosure provides an application function dynamic switching method, applied to a server, the method including:
in response to receiving a switch creation request, creating a dynamic switch;
modifying the state of the dynamic switch according to the configuration modification request under the condition of receiving the configuration modification request corresponding to the dynamic switch;
and under the condition of receiving a function access request corresponding to the dynamic switch, returning a state identifier according to the state of the dynamic switch, so that the target terminal determines whether to operate the function of the target application program according to the state identifier.
Optionally, the switch creation request includes an identification parameter, and the identification parameter includes an application identifier and/or a function identifier;
said creating a dynamic switch in response to receiving a switch creation request comprises:
in response to receiving a switch creation request, creating the dynamic switch according to the identification parameters in the switch creation request.
Optionally, the method further comprises:
in response to receiving a first request, determining that the first request is a switch creation request, a configuration modification request or a function access request according to a function parameter of the first request;
and under the condition that the first request is determined to be a configuration modification request or a function access request, determining a dynamic switch corresponding to the first request according to the identification parameter of the first request.
Optionally, the method further comprises:
and under the condition that the dynamic switch corresponding to the first request does not exist, creating a first dynamic switch according to the identification parameter of the first request, wherein the dynamic switch state of the first dynamic switch is set as an enabling state by default.
Optionally, the configuration modification request includes a time parameter and a status parameter;
the modifying the dynamic switch state according to the configuration modification request comprises:
and modifying the state of the dynamic switch according to the state parameter under the condition that the current time is determined to reach the time corresponding to the time parameter.
A second aspect of the present disclosure provides an application function dynamic switching apparatus, the apparatus comprising:
a creation module for creating a dynamic switch in response to receiving a switch creation request;
the modification module is used for modifying the state of the dynamic switch according to the configuration modification request under the condition of receiving the configuration modification request corresponding to the dynamic switch;
and the return module is used for returning the state identifier according to the state of the dynamic switch under the condition of receiving the function access request corresponding to the dynamic switch, so that the target terminal determines whether to operate the function of the target application program according to the state identifier.
Optionally, the switch creation request includes an identification parameter, and the identification parameter includes an application identifier and/or a function identifier;
the creation module is specifically configured to:
in response to receiving a switch creation request, creating the dynamic switch according to the identification parameter in the switch creation request.
Optionally, the apparatus further comprises:
the first determining module is used for responding to the received first request and determining the first request as a switch establishing request, a configuration modifying request or a function accessing request according to the function parameters of the first request;
and a second determining module, configured to determine, according to an identifier parameter of the first request, a dynamic switch corresponding to the first request when the first request is determined to be a configuration modification request or a function access request.
A third aspect of the disclosure provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any one of the first aspects of the disclosure.
A fourth aspect of the present disclosure provides an electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of the first aspect of the present disclosure.
Through the technical scheme, the dynamic switch corresponding to each application program function can be created by receiving the switch creation request, and the state of the dynamic switch can be modified in real time according to the configuration modification request, so that the terminal can send a function access request to the server before using a certain function to determine whether the function is forbidden or not, the function can be forbidden in time when the certain function of the application program is not expected to be opened, and the function can be opened in time when the function is expected to be opened, thereby effectively improving the flexibility of the application program, reducing the workload in the development process and effectively improving the development efficiency.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure, but do not constitute a limitation of the disclosure. In the drawings:
FIG. 1 is a flow diagram illustrating a method for dynamic switching of application functionality in accordance with an exemplary embodiment.
FIG. 2 is an interaction diagram illustrating a method for dynamic switching of application functionality, according to an example embodiment.
FIG. 3 is a block diagram illustrating an application function dynamic switching device in accordance with an exemplary embodiment.
FIG. 4 is a block diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and the embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will appreciate that references to "one or more" are intended to be exemplary and not limiting unless the context clearly indicates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Those skilled in the art should appreciate that after the application program is developed, some of the functions may not need to be opened for a long time, but some of the functions in the application program need to be disabled or the disabled functions need to be turned on again according to actual needs. In the related art, if the functions in the application program need to be modified, the codes need to be modified again, which is inefficient and wastes human resources.
For example, when a program is audited, some functions may not be opened yet, which may result in an audit failure, and therefore, the functions need to be disabled when the audit is submitted.
In order to solve the problems in the related art, the present disclosure provides a method and an apparatus for dynamically switching on and off an application function, a storage medium, and an electronic device.
Fig. 1 is a flowchart illustrating a method for dynamically switching application functions, which may be applied to a server, according to an exemplary embodiment, and as shown in fig. 1, the method includes:
s101, in response to receiving a switch creation request, creating a dynamic switch.
In some examples, the switch creation request may include an identification parameter including an application identification and/or a function identification, and creating the dynamic switch in response to receiving the switch creation request includes: in response to receiving a switch creation request, creating the dynamic switch according to the identification parameters in the switch creation request.
The application identifier may be a package name and/or a bundleID of the application, and the function identifier may be identification information having a unique attribute and set by a developer for each function module, that is, each dynamic switch corresponds to only one application, and in a case that the identification parameter includes the function identifier, each dynamic switch corresponds to only one function in one application.
It will be appreciated that in other examples, the switch creation request may also include other parameter information, such as time parameters, permission parameters, and the like. For example, if the switch creation request includes the permission parameter, a dynamic switch may be created according to the permission parameter, so that a terminal having a corresponding permission can modify the configuration of the dynamic switch, and so on.
Wherein, the dynamic switch can be realized by Java language. By adopting the scheme, the manager can send the switch creating request comprising the identification parameters to the server to further create the unique dynamic switch corresponding to the functions of the target application program, so that other functions in the application program or other application programs can be effectively prevented from being influenced.
S102, modifying the state of the dynamic switch according to the configuration modification request under the condition of receiving the configuration modification request corresponding to the dynamic switch.
The dynamic switch state may include an enabled state and a disabled state.
In some examples, the configuration modification request includes a time parameter and a status parameter; the modifying the dynamic switch state according to the configuration modification request comprises: and modifying the state of the dynamic switch according to the state parameter under the condition that the current time is determined to reach the time corresponding to the time parameter. For example, the dynamic switch state may be modified to the on state at 15 hours 00 of 6 months and 7 days, depending on the time parameter and the state parameter. By adopting the scheme, the enabling or disabling state of the target application program function can be set more flexibly, and the dynamic switch state does not need to be set until a certain time.
S103, under the condition that a function access request corresponding to the dynamic switch is received, returning a state identifier according to the state of the dynamic switch, so that the target terminal determines whether to operate the function of the target application program according to the state identifier.
The function access request may be sent by the terminal to the server before running the code corresponding to the target application function, and after receiving the status identifier returned by the server, determine whether to run the code corresponding to the target application function according to the received status identifier.
For example, if the dynamic switch state is the enabled state, the state identifier may represent the enabled state, and the target terminal may run the target application function after receiving the state identifier. If the dynamic switch state is the disabled state, the state identifier can represent the disabled state, and after receiving the state identifier, the target terminal can determine that the target application program function is not operated.
In addition, the target application function may be accessing a certain database, jumping to a certain page, or packing up a certain UI interaction interface, etc., and the present disclosure does not limit the specific type of the application function. It will be appreciated that the target application function may be determined based on an identification parameter in the function access request.
It is understood that the target terminal is a terminal that sends the function access request corresponding to the dynamic switch, and the terminal may be any electronic device capable of running the application program, such as a mobile phone, a tablet computer, a computer, and the like.
Further, in steps S101 to S103, the switch creation request, the configuration modification request, and the function access request may be sent by different terminals, and the sending of the switch creation request, the configuration modification request, and the function access request to the server by the terminals may be realized by calling an API (Application Programming Interface) provided by the server.
In the embodiment of the disclosure, by receiving a switch creation request, a dynamic switch corresponding to each application function can be created, and the state of the dynamic switch can be modified in real time according to a configuration modification request, so that a terminal can send a function access request to a server before using a certain function to determine whether the function is disabled, and can be timely disabled when the certain function of the application is not expected to be opened, and can be timely opened when the functions are expected to be opened, thereby effectively improving the flexibility of the application, reducing the workload in the development process, and effectively improving the development efficiency.
In some optional embodiments, the method further comprises:
in response to receiving a first request, determining that the first request is a switch creation request, a configuration modification request or a function access request according to a function parameter of the first request;
and under the condition that the first request is determined to be a configuration modification request or a function access request, determining a dynamic switch corresponding to the first request according to the identification parameter of the first request.
The terminal can call the same API interface according to different functional parameters, so that the server executes different steps of the method.
For example, if the function parameter in the received first request is 0, it may be determined that the first request is a switch creation request, and further obtain the identification parameter in the first request to create the dynamic switch. If the function parameter is 1, it may be determined that the first request is a configuration modification request, and determine a dynamic switch corresponding to the first request according to an identification parameter in the first request, and modify a dynamic switch state of the dynamic switch according to a state parameter in the first request. If the function parameter is 2, it may be determined that the first request is a function access request, and a dynamic switch corresponding to the first request is determined based on an identification parameter in the first request, and a state identification is returned according to a dynamic switch state of the dynamic switch.
By adopting the scheme, the server can accurately determine the functions to be realized by different requests according to the functional parameters in the requests after receiving the requests sent by the terminals, so that the same API can be called when different terminals realize different functions, and the development efficiency is further improved.
Further, the method further comprises:
and under the condition that the dynamic switch corresponding to the first request does not exist, creating a first dynamic switch according to the identification parameter of the first request, wherein the dynamic switch state of the first dynamic switch is set as an enabling state by default.
The creating of the first dynamic switch may be to first generate a first switch generation request according to the identification parameter of the first request, so that the server creates the dynamic switch corresponding to the identification parameter according to the switch generation request.
In order to make the technical solutions provided by the present disclosure more comprehensible to those skilled in the art, the present disclosure provides an interactive diagram of an application function dynamic switching method illustrated according to an exemplary embodiment as shown in fig. 2, with reference to fig. 2, the method includes:
s201, the management terminal sends a switch creating request to the server.
S202, the server creates a dynamic switch according to the identification parameters in the switch creating request.
S203, the management terminal sends a configuration modification request to the server.
S204, the server modifies the dynamic switch state of the dynamic switch corresponding to the identification parameter according to the identification parameter, the time parameter and the state parameter in the configuration modification request.
S205, the application terminal sends a function access request to the server.
S206, the server determines the dynamic switch state of the dynamic switch corresponding to the identification parameter according to the identification parameter in the function access request.
And S207, the server sends a state identifier to the application terminal according to the dynamic switching state.
And S208, the application terminal executes the target application program function under the condition that the state identifier represents the target application program function to be started.
It is to be understood that the execution sequence of the steps S201 to S208 is only an exemplary case, and the steps are not necessarily executed in the order of the steps in practical applications. For example, after the execution of step S202 is completed, step S205 to step S208 may be executed. Also, steps S203 to S204 may be performed at any time.
It should be noted that the management terminal and the application terminal may be the same terminal, which is not different in nature and is only convenient for those skilled in the art to understand. Note that the management terminal in step S201 and the management terminal in step S203 may not be the same terminal.
Further, the switch creation request, the configuration modification request, and the function access request may include other parameters, such as a permission parameter, in addition to the above-described parameters. Moreover, the terminal sending the switch creation request, the configuration modification request and the function access request to the server may be implemented by a plurality of different API interfaces provided by the server, or may be implemented by the same API interface. In addition, when the same API interface is used, a caller needs to fill in function parameters, identification parameters, time parameters, state parameters, authority parameters, and the like during calling so as to send different requests to the server. The functional parameters and the identification parameters are filling parameters, and other parameters can be selected and filled according to different functional parameters.
Illustratively, the switch creation request and the configuration modification request both include authority parameters, the authority parameters include user role information, white list information, and the like, and the server may create the dynamic switch according to the identification parameters and the authority parameters in the switch creation request, and after receiving the configuration modification request sent by the terminal, determine whether to modify the dynamic switch according to the configuration modification request according to the user role information of the authority parameters in the configuration modification request. In another example, the function access request may also include a permission parameter, and when the server receives the function access request, it may determine whether user role information of the permission parameter in the function access request is in a white list, and when it is determined to be in the white list, directly execute the target application.
In addition, after the server receives the switch creation request and the configuration modification request and executes the corresponding steps, information is returned to the terminal, for example, the returned information can be used for representing information about whether the switch creation is successful or not and whether the configuration modification is successful or not, so that the terminal can know whether the server completes the corresponding operation or not more clearly according to the returned information, and loss caused by operation failure due to data loss is avoided.
During specific implementation, a manager can create a plurality of dynamic switches in advance for different application program functions, a developer of an application program can add a section of code for calling the API before a function which may need to be disabled, and automatically fill parameters required for calling the API according to information such as the bundleID of the application program, and when the code runs, a terminal can determine whether the function is pointed according to returned information of the API. The method and the system have the advantages that the code is not required to be repeatedly modified by a developer when a certain function needs to be disabled or enabled, and only a corresponding configuration modification request is required to be sent to the server by a manager when the certain function needs to be disabled or enabled.
Based on the same inventive concept, fig. 3 is a block diagram illustrating an application function dynamic switching apparatus according to an exemplary embodiment, and referring to fig. 3, the application function dynamic switching apparatus 30 includes:
a creation module 31 for creating a dynamic switch in response to receiving a switch creation request;
a modification module 32, configured to modify a state of the dynamic switch according to the configuration modification request when receiving the configuration modification request corresponding to the dynamic switch;
and a returning module 33, configured to, in a case that a function access request corresponding to the dynamic switch is received, return a state identifier according to the state of the dynamic switch, so that the target terminal determines whether to run the function of the target application program according to the state identifier.
Optionally, the switch creation request includes an identification parameter, and the identification parameter includes an application identifier and/or a function identifier;
the creating module 31 is specifically configured to:
in response to receiving a switch creation request, creating the dynamic switch according to the identification parameter in the switch creation request.
Optionally, the application function dynamic switching device 30 further includes:
the first determining module is used for responding to the received first request and determining the first request as a switch establishing request, a configuration modifying request or a function accessing request according to the function parameters of the first request;
and a second determining module, configured to determine, according to an identifier parameter of the first request, a dynamic switch corresponding to the first request when the first request is determined to be a configuration modification request or a function access request.
Optionally, the application function dynamic switching device 30 further includes:
and the first creating module is used for creating a first dynamic switch according to the identification parameter of the first request under the condition that the dynamic switch corresponding to the first request does not exist, and the dynamic switch state of the first dynamic switch is set as an enabling state by default.
Optionally, the configuration modification request includes a time parameter and a status parameter;
the modification module 32 is further configured to:
and modifying the state of the dynamic switch according to the state parameter under the condition that the current time is determined to reach the time corresponding to the time parameter.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 4 is a block diagram illustrating an electronic device 400 according to an example embodiment. For example, the electronic device 400 may be provided as a server. Referring to fig. 4, the electronic device 400 comprises a processor 422, which may be one or more in number, and a memory 432 for storing computer programs executable by the processor 422. The computer program stored in memory 432 may include one or more modules that each correspond to a set of instructions. Further, the processor 422 may be configured to execute the computer program to perform the above-described application function dynamic switching method.
Additionally, electronic device 400 may also include a power component 426 and a communication component 450, the power component 426 may be configured to perform power management of the electronic device 400, and the communication component 450 may be configured to enable communication, e.g., wired or wireless communication, of the electronic device 400. The electronic device 400 may also include input/output (I/O) interfaces 458. The electronic device 400 may operate based on an operating system, such as Windows Server, stored in the memory 432 TM ,Mac OS X TM ,Unix TM ,Linux TM And so on.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the above-described application function dynamic switching method is also provided. For example, the non-transitory computer readable storage medium may be the memory 432 including program instructions executable by the processor 422 of the electronic device 400 to perform the application function dynamic switching method described above.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned application function dynamic switching method when executed by the programmable apparatus.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other combinations of features described above or equivalents thereof without departing from the spirit of the disclosure. For example, the above features and the technical features disclosed in the present disclosure (but not limited to) having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims (9)

1. A dynamic switch method for application program functions is applied to a server, and the method comprises the following steps:
in response to receiving a switch creation request, creating a dynamic switch;
modifying the state of the dynamic switch according to the configuration modification request under the condition of receiving the configuration modification request corresponding to the dynamic switch;
under the condition that a function access request corresponding to the dynamic switch is received, returning a state identifier according to the state of the dynamic switch, so that the target terminal determines whether to operate the function of the target application program according to the state identifier; the function access request is sent to the server by the target terminal before the code corresponding to the target application program function is operated, the target terminal determines whether to operate the code corresponding to the target application program function according to the received state identifier after receiving the state identifier returned by the server, and the target application program function is determined based on the identifier parameter in the function access request;
the configuration modification request comprises a time parameter and a state parameter;
said modifying a dynamic switch state according to said configuration modification request comprises:
and modifying the state of the dynamic switch according to the state parameter under the condition that the current time is determined to reach the time corresponding to the time parameter.
2. The method of claim 1, wherein the switch creation request includes an identification parameter, the identification parameter including an application identification and/or a function identification;
said creating a dynamic switch in response to receiving a switch creation request comprises:
in response to receiving a switch creation request, creating the dynamic switch according to the identification parameters in the switch creation request.
3. The method of claim 2, further comprising:
in response to receiving a first request, determining that the first request is a switch creation request, a configuration modification request or a function access request according to a function parameter of the first request;
and under the condition that the first request is determined to be a configuration modification request or a function access request, determining a dynamic switch corresponding to the first request according to the identification parameter of the first request.
4. The method of claim 3, further comprising:
and under the condition that the dynamic switch corresponding to the first request does not exist, creating a first dynamic switch according to the identification parameter of the first request, wherein the dynamic switch state of the first dynamic switch is set as an enabling state by default.
5. An apparatus for dynamic switching of application functions, the apparatus comprising:
a creation module for creating a dynamic switch in response to receiving a switch creation request;
the modification module is used for modifying the state of the dynamic switch according to the configuration modification request under the condition of receiving the configuration modification request corresponding to the dynamic switch;
the return module is used for returning a state identifier according to the state of the dynamic switch under the condition of receiving a function access request corresponding to the dynamic switch, so that the target terminal determines whether to operate a target application program function according to the state identifier; the function access request is sent to a server by the target terminal before a code corresponding to the target application program function is operated, the target terminal determines whether to operate the code corresponding to the target application program function according to the received state identifier after receiving the state identifier returned by the server, and the target application program function is determined based on the identifier parameter in the function access request;
the configuration modification request comprises a time parameter and a state parameter;
the modification module is further to:
and modifying the state of the dynamic switch according to the state parameter under the condition that the current time is determined to reach the time corresponding to the time parameter.
6. The apparatus of claim 5, wherein the switch creation request comprises an identification parameter, the identification parameter comprising an application identification and/or a function identification;
the creation module is specifically configured to:
in response to receiving a switch creation request, creating the dynamic switch according to the identification parameters in the switch creation request.
7. The apparatus of claim 6, further comprising:
the first determining module is used for responding to the received first request and determining the first request as a switch establishing request, a configuration modifying request or a function accessing request according to the function parameters of the first request;
and a second determining module, configured to determine, according to an identifier parameter of the first request, a dynamic switch corresponding to the first request when the first request is determined to be a configuration modification request or a function access request.
8. A non-transitory computer readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
9. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1-4.
CN202210854801.9A 2022-07-20 2022-07-20 Application program function dynamic switching method and device, storage medium and electronic equipment Active CN115080276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210854801.9A CN115080276B (en) 2022-07-20 2022-07-20 Application program function dynamic switching method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210854801.9A CN115080276B (en) 2022-07-20 2022-07-20 Application program function dynamic switching method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN115080276A CN115080276A (en) 2022-09-20
CN115080276B true CN115080276B (en) 2022-12-09

Family

ID=83259486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210854801.9A Active CN115080276B (en) 2022-07-20 2022-07-20 Application program function dynamic switching method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115080276B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326062B (en) * 2015-06-29 2019-01-25 阿里巴巴集团控股有限公司 The operating status control method and device of application program
CN108255536A (en) * 2017-04-27 2018-07-06 平安科技(深圳)有限公司 Application control method and server based on functional switch
CN114127686A (en) * 2020-04-27 2022-03-01 华为技术有限公司 Method, device and terminal for starting application program

Also Published As

Publication number Publication date
CN115080276A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN110289983B (en) Load balancing application creation method and device, computer equipment and storage medium
CN105335187A (en) Application processing method and apparatus
CN111258565B (en) Method, system, server and storage medium for generating applet
CN111399840B (en) Module development method and device
CN106569880B (en) Method and system for dynamically sharing resources between Android applications
CN111221630B (en) Business process processing method, device, equipment, readable storage medium and system
CN106502717B (en) Application program running method and device
CN112769706B (en) Componentized routing method and system
CN108845800B (en) Method, device, equipment and storage medium for realizing component extension function
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN109828830B (en) Method and apparatus for managing containers
KR20110080448A (en) Application developing system and method for developing the same
CN115080276B (en) Application program function dynamic switching method and device, storage medium and electronic equipment
CN116755788A (en) On-line rule modification method, device, equipment and storage medium
CN111538514A (en) Enterprise application updating method and device, storage medium and electronic equipment
CN111240998A (en) Test case processing method and device
CN112527589A (en) Process monitoring method and process monitoring device
CN106951288B (en) Development and application method and device of hot upgrade resource
CN113051088B (en) Program loading method, device, equipment and computer readable medium
CN115374083A (en) Data source switching method and device, electronic equipment and storage medium
CN114860203A (en) Project creation method, project creation device, server and storage medium
CN114610446A (en) Method, device and system for automatically injecting probe
CN115220861A (en) Virtual client management method, apparatus, medium, and device
CN103984541A (en) Method and system for generating application procedure based on terminal source codes
CN110727416B (en) Development framework generation method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant