CN109597660B - Application configuration or service updating method and device, storage medium and terminal equipment - Google Patents

Application configuration or service updating method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN109597660B
CN109597660B CN201811232402.9A CN201811232402A CN109597660B CN 109597660 B CN109597660 B CN 109597660B CN 201811232402 A CN201811232402 A CN 201811232402A CN 109597660 B CN109597660 B CN 109597660B
Authority
CN
China
Prior art keywords
application
parameters
configuration
application program
environmental parameter
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
CN201811232402.9A
Other languages
Chinese (zh)
Other versions
CN109597660A (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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201811232402.9A priority Critical patent/CN109597660B/en
Publication of CN109597660A publication Critical patent/CN109597660A/en
Application granted granted Critical
Publication of CN109597660B publication Critical patent/CN109597660B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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/542Event management; Broadcasting; Multicasting; Notifications

Abstract

The invention relates to the field of Internet, in particular to an application configuration or application service updating method, an application configuration or application service updating device, a storage medium and terminal equipment, wherein the method comprises the following steps: adding client dependencies connecting the configuration center in the application program; determining application parameters or application services corresponding to the configuration parameters according to the dependence of the client on receiving the change broadcast of the configuration parameters issued by the configuration center; and updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters. The invention can change the application parameters or application services of the application program rapidly and in real time.

Description

Application configuration or service updating method and device, storage medium and terminal equipment
Technical Field
The present invention relates to the field of the internet, and in particular, to an application configuration or service update method, an apparatus, a storage medium, and a terminal device.
Background
With the development of internet technology, the number of users of application programs is increased, the functions of the application programs are also increased, different versions exist in the development, testing and release processes of the application programs, the functions of the application programs in different environments are not all the same, when the functions or services of the application programs in different environments are required to be configured, the application programs in different environments need to be configured one by one, the management of the configuration of the application programs is difficult, the maintenance is also difficult, and how to efficiently configure the parameters or services required by the application programs is a problem to be solved in the industry at present.
Disclosure of Invention
In order to solve the technical problems, in particular to the problems that the prior art can not flexibly and efficiently configure the application parameters and the application services of the application program, the following technical scheme is specially provided:
in a first aspect, the present invention provides an application configuration or application service update method, including:
adding client dependencies connecting the configuration center in the application program;
determining application parameters or application services corresponding to the configuration parameters according to the dependence of the client on receiving the change broadcast of the configuration parameters issued by the configuration center;
and updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters.
Further, the adding the client dependency of the connection configuration center in the application program includes:
sending the environment parameters of the application program to a configuration center, and connecting the configuration center and adding the client dependence of the environment parameters;
the method for receiving the change broadcast of the configuration parameters issued by the configuration center according to the client side comprises the following steps:
and receiving a change broadcast of the configuration parameters issued by the configuration center according to the client dependence and the environment parameters.
Further, the environment parameters comprise development environment parameters, development joint debugging environment parameters, test environment parameters, gray scale environment parameters and production environment parameters; after the application parameters or the application services of the application program are updated according to the change broadcast of the configuration parameters, the method further comprises the following steps:
and judging whether the application parameters or the application services are updated successfully, and if the application parameters or the application services are updated unsuccessfully, requesting configuration parameters corresponding to other environment parameters except the environment parameters sent when the client-side dependence is added from a configuration center.
Further, the requesting, from the configuration center, configuration parameters corresponding to other environmental parameters except the environmental parameters sent when the client depends, includes:
acquiring an environmental parameter meeting preset conditions from a plurality of environmental parameters of the application program as the environmental parameter to be transmitted;
and requesting the configuration center for the configuration parameters corresponding to the environmental parameters to be sent.
Further, after determining the application parameter or the application service corresponding to the configuration parameter, the method further includes:
judging whether the configuration parameters are the same as the current configuration parameters, if not, executing the step of updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters.
Further, after updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters, the method further includes:
and sending report information of successful update of the application parameters or the application services to the configuration center.
Further, after updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters, the method further includes:
the client dependency of the application and the configuration center is deleted.
In a second aspect, the present invention provides an application configuration or application service updating apparatus, comprising:
and the connection module is as follows: client dependencies for adding connection configuration centers in an application;
and a receiving module: the method comprises the steps that according to the fact that a client depends on receiving a change broadcast of a configuration parameter issued by a configuration center, an application parameter or an application service corresponding to the configuration parameter is determined;
and an updating module: and updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters.
In a third aspect, the present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described application configuration or application service update method.
In a fourth aspect, the present invention also provides a terminal device comprising one or more processors, a memory, one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to perform the above-described application configuration or application service update method.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a flexible updating method for configuration and service of an application program, which comprises the steps of adding a client-side dependence connected with a configuration center in the application program, establishing a connection channel between the application program and the configuration center, then when a service person modifies configuration parameters of the application program from a visual interface of the configuration center, determining application parameters or application services corresponding to the configuration parameters according to the client-side dependence when receiving change broadcasting of the configuration parameters issued by the configuration center, and then updating the application parameters or the application services of the application program according to the configuration parameters, so that the application parameters of the application program can be modified, a switch for opening or closing a service function can be opened or closed, a white list in the application program can be updated, the application parameters or the application services of the application program can be modified quickly and in real time, and the configuration efficiency of the application program can be improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flowchart illustrating an exemplary embodiment of a method for application configuration or application service update according to the present invention;
FIG. 2 is a flowchart illustrating an application configuration or application service update method according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of an application configuration or application service update apparatus according to the present invention;
fig. 4 is a schematic structural diagram of an embodiment of a terminal device according to the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, but do not preclude the presence or addition of one or more other features, integers, steps, operations.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
It will be appreciated by those skilled in the art that references to "application," "application program," "computer program," and similar concepts herein are intended to refer to computer software, organically constructed from a series of computer instructions and related data resources, suitable for electronic execution, as the same concepts are known to those skilled in the art. Unless specifically specified, such naming is not limited by the type, level of programming language, nor by the operating system or platform on which it operates. Of course, such concepts are not limited by any form of terminal.
The embodiment of the invention provides an application configuration or application service updating method, as shown in fig. 1, comprising the following steps:
s10: client dependencies connecting the configuration centers are added to the application.
The application program needs to update the function switch or the internal data from time to time, in this embodiment, the function switch and the internal data of the application program are uniformly managed by a configuration center based on spring boot development, a developer adds a client dependency of connecting the configuration center in the application program, that is, the application program accesses an API interface of the configuration center, a connection channel between the application program and the configuration center is established, and a subsequent application program can acquire required configuration parameters from the configuration center.
S20: and determining application parameters or application services corresponding to the configuration parameters according to the dependence of the client on receiving the change broadcast of the configuration parameters issued by the configuration center.
When a service person modifies the configuration parameters of an application program from a visual interface of a configuration center, for example, a switch of a part of service functions of the application program is turned on or off, application data of the application program is modified, a white list of the application program is updated, and the like, the configuration center sends a change broadcast of the configuration parameters to the application program through a client-side dependence of the application program and the configuration center through a connection channel established by the client-side dependence, and the application program receives the change broadcast of the configuration parameters issued by the configuration center according to the client-side dependence and then continues the change broadcast of the configuration parameters to determine application parameters or application services corresponding to the configuration parameters.
S30: and updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters.
After the configuration parameters and the application parameters or the application services corresponding to the configuration parameters are obtained, the application parameters or the application services of the application program are updated according to the configuration parameters, for example, the application services corresponding to the configuration parameters are the red-robbed packet activities of the application program, the change broadcast is that the function switch of the red-robbed packet activities is turned on, and the application program can turn on the function switch of the red-robbed packet activities in the application program according to the change broadcast of the configuration parameters, so that the application parameters or the application services are updated rapidly.
The embodiment provides a flexible updating method for configuration and service of an application program, which comprises the steps of adding a client-side dependence connected with a configuration center in the application program, establishing a connection channel between the application program and the configuration center, then when a service person modifies configuration parameters of the application program from a visual interface of the configuration center, determining application parameters or application services corresponding to the configuration parameters according to the client-side dependence when receiving change broadcasting of the configuration parameters issued by the configuration center, and then updating the application parameters or the application services of the application program according to the configuration parameters, so that the application parameters of the application program can be modified, a switch for opening or closing a service function can be opened or closed, a white list in the application program can be updated, the application parameters or the application services of the application program can be modified quickly in real time, and the configuration efficiency of the application program can be improved.
An embodiment of the present invention, adding a client dependency of a connection configuration center in an application program, includes:
sending the environment parameters of the application program to a configuration center, and connecting the configuration center and adding the client dependence of the environment parameters;
the method for receiving the change broadcast of the configuration parameters issued by the configuration center according to the client side comprises the following steps:
and receiving a change broadcast of the configuration parameters issued by the configuration center according to the client dependence and the environment parameters.
Because the user quantity of the application program is relatively large, the environments of the application programs on different terminals are different, for example, the application programs can be in a development environment, and the application programs in the environment have environment parameters during development; the application program can be in a test environment, and the application program in the environment is mainly used for testing whether the function of the application program is normal or not, and has environment parameters in the test environment; the application may also be in a greyscale environment where the application can receive the updated functions/parameters of the application earlier, with the environment parameters in the greyscale environment; similarly, the application may be in a general environment, with production environment parameters in the general environment. In this embodiment, when a client dependency connected to a configuration center is added in an application program, an environmental parameter of the application program is sent to the configuration center, and then the client dependency of the environmental parameter is added, so that a connection with an environmental parameter identifier is established with the configuration center; after the configuration center sets the configuration parameters of the application program according to different environments, the application program receives the change broadcast of the configuration parameters issued by the configuration center according to the client dependence and the environment parameters, and only receives the configuration parameters corresponding to the environment parameters under different environments, so that the configuration efficiency of the application program under different environments is improved.
In one embodiment of the invention, the environment parameters comprise development environment parameters, development joint debugging environment parameters, test environment parameters, gray scale environment parameters and production environment parameters; after the application parameters or the application services of the application program are updated according to the change broadcast of the configuration parameters, the method further comprises the following steps:
and judging whether the application parameters or the application services are updated successfully, and if the application parameters or the application services are updated unsuccessfully, requesting configuration parameters corresponding to other environment parameters except the environment parameters sent when the client-side dependence is added from a configuration center.
In this embodiment, the environmental parameters of the application program include development environmental parameters, development joint debugging environmental parameters, test environmental parameters, gray environmental parameters, and production environmental parameters, and due to different environmental parameters, service personnel may have an error configuration for the environmental parameters, at this time, when the application program updates the application parameters or application services of the application program according to the change broadcast of the configuration parameters, it is determined whether the application parameters or application services are updated successfully, if the update is unsuccessful, the configuration parameters corresponding to other environmental parameters are requested from the configuration center, so that the problem that the application program cannot work normally due to unsuccessful update of the application parameters or application services of the application program is avoided.
In one embodiment of the present invention, the requesting, from the configuration center, configuration parameters corresponding to other environmental parameters except the environmental parameters sent when the client depends, includes:
acquiring an environmental parameter meeting preset conditions from a plurality of environmental parameters of the application program as the environmental parameter to be transmitted;
and requesting the configuration center for the configuration parameters corresponding to the environmental parameters to be sent.
On the basis of the above embodiment, when the application program updates the application program or the application service is not more functional, a plurality of environmental parameters of the application program are obtained, then one environmental parameter meeting the preset condition is selected as the environmental parameter to be transmitted, the environmental parameter to be transmitted is determined in the following manner, the current environmental parameter of the application program is obtained, then the environmental parameter of the application program is obtained, when the environmental parameter of the last time is different from the current environmental parameter, the environmental parameter of the last time is determined to be the environmental parameter to be transmitted, and if the environmental parameter of the last time is the same as the current environmental parameter, the environmental parameter of the last time is obtained again and is compared until the environmental parameter of the last time is different from the current environmental parameter, the environmental parameter to be transmitted is determined, and then the configuration parameter corresponding to the environmental parameter to be transmitted is requested to the configuration center.
In an embodiment of the present invention, after determining the application parameter or the application service corresponding to the configuration parameter, the method further includes:
judging whether the configuration parameters are the same as the current configuration parameters, if not, executing the step of updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters.
In this embodiment, in order to avoid waste of terminal resources, after receiving a configuration parameter issued by a configuration center and determining a corresponding application parameter or application service according to the configuration parameter, it is determined whether the configuration parameter is the same as a current configuration parameter, if so, it is indicated that an application program does not need to update the application parameter or the application service currently, and if not, a modification broadcast may be generated by misoperation, and if not, a subsequent step is executed, and the application parameter or the application service of the application program is updated according to the modification broadcast of the configuration parameter, thereby saving resources of the terminal.
In one embodiment of the present invention, after updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters, the method further includes:
and sending report information of successful update of the application parameters or the application services to the configuration center.
After application program updating application parameters or application service is successful, sending report information of successful application parameters or application service updating to a configuration center, after the configuration center receives the report information of each application program, counting the report information to obtain the update success rate of the application parameters or the application service of the application program, and counting the update success rate of the application parameters or the application service of the application program under different application environments.
In one embodiment of the present invention, as shown in fig. 2, after updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters, the method further includes:
s40: the client dependency of the application and the configuration center is deleted.
In order to reduce the number of application programs connected with the configuration center, reduce the service pressure of the configuration center, avoid the configuration center from repeatedly sending configuration parameters to the same application program, in this embodiment, after the application program implements the update of the application parameters or the application service, delete the client dependency of the application program and the configuration center, delete the client dependency of the configuration center unilaterally from the application program, no longer receive the change broadcast of the configuration center about the configuration parameters in a preset time, for example, delete the client dependency of the configuration center unilaterally from the application program, and set up the change broadcast of the configuration parameters issued by the configuration center within 7 days, re-establish the client dependency of the configuration center from the application program, and receive the change broadcast of the configuration parameters issued by the configuration center after 7 days.
As shown in fig. 3, in another embodiment, the present invention provides an application configuration or application service updating apparatus, including:
connection module 10: client dependencies for adding connection configuration centers in an application;
the receiving module 20: the method comprises the steps that according to the fact that a client depends on receiving a change broadcast of a configuration parameter issued by a configuration center, an application parameter or an application service corresponding to the configuration parameter is determined;
update module 30: and updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters.
In one embodiment of the present invention, the connection module 10 performs client dependency adding a connection configuration center in an application program, including:
sending the environment parameters of the application program to a configuration center, and connecting the configuration center and adding the client dependence of the environment parameters;
the receiving module 20 executes the modification broadcast according to the configuration parameters issued by the client depending on the receiving configuration center, including:
and receiving a change broadcast of the configuration parameters issued by the configuration center according to the client dependence and the environment parameters.
In one embodiment of the invention, the environment parameters comprise development environment parameters, development joint debugging environment parameters, test environment parameters, gray scale environment parameters and production environment parameters; the update module 30 further includes performing:
and judging whether the application parameters or the application services are updated successfully, and if the application parameters or the application services are updated unsuccessfully, requesting configuration parameters corresponding to other environment parameters except the environment parameters sent when the client-side dependence is added from a configuration center.
In one embodiment of the present invention, the updating module 30 executes a request for configuration parameters corresponding to other environmental parameters except the environmental parameters sent when the client is added to the configuration center, including:
acquiring an environmental parameter meeting preset conditions from a plurality of environmental parameters of the application program as the environmental parameter to be transmitted;
and requesting the configuration center for the configuration parameters corresponding to the environmental parameters to be sent.
In one embodiment of the present invention, the update module 30 further includes performing:
and sending report information of successful update of the application parameters or the application services to the configuration center.
In one embodiment of the present invention, the update module 30 further includes performing:
the client dependency of the application and the configuration center is deleted.
In another embodiment, the present invention provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the application configuration or application service update method described in the above embodiment. The computer readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS Memory, random access memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., computer, cell phone), and may be read-only memory, magnetic or optical disk, etc.
The computer readable storage medium provided by the embodiment of the invention can realize the addition of client dependence of a connection configuration center in an application program; determining application parameters or application services corresponding to the configuration parameters according to the dependence of the client on receiving the change broadcast of the configuration parameters issued by the configuration center; and updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters. By providing a flexible updating method for configuration and service of an application program, a connection channel between the application program and the configuration center is established by adding a client dependency connected with the configuration center in the application program, then when a service person modifies the configuration parameters of the application program from a visual interface of the configuration center, the application parameters or application service corresponding to the configuration parameters are determined according to the client dependency receiving the change broadcast of the configuration parameters issued by the configuration center, then the application parameters or application service of the application program is updated according to the configuration parameters, the application parameters of the application program can be quickly modified, a switch for opening or closing a service function can be opened or closed, a white list in the application program is updated, the application parameters or the application service of the application program can be quickly and real-timely changed, and the configuration efficiency of the application program is improved.
The computer readable storage medium provided in the embodiments of the present invention may implement the embodiments of the application configuration or application service update method, and specific function implementation is described in the method embodiments and is not repeated herein.
In addition, in another embodiment, the present invention further provides a terminal device, as shown in fig. 4, where the terminal device includes a processor 403, a memory 405, an input unit 407, and a display unit 409. Those skilled in the art will appreciate that the structural elements shown in fig. 4 do not constitute a limitation of all terminal devices, and may include more or fewer components than shown, or may combine certain components. The memory 405 may be used to store a computer program 401 and functional modules, and the processor 403 runs the computer program 401 stored in the memory 405, so as to execute various functional applications of the device and data processing. The memory 405 may be or include both internal memory and external memory. The internal memory may include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, floppy disk, ZIP disk, U-disk, tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The memory 405 disclosed herein is by way of example only and not by way of limitation.
The input unit 407 is configured to receive input of a signal and receive input of a user, and the input unit 407 may include a touch panel and other input devices, where the touch panel may collect touch operations (such as operations of a user using any suitable object or accessory such as a finger, a stylus, etc. on or near the touch panel) thereon or nearby by the user, and drive the corresponding connection device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, mouse, joystick, etc. The display unit 409 may be used to display information input by a user or information provided to the user as well as various menus of the computer device. The display unit 409 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 403 is a control center of the computer device, connects various parts of the entire computer using various interfaces and lines, performs various functions and processes data by running or executing software programs and/or modules stored in the memory 403, and invoking data stored in the memory.
In one embodiment, the terminal device comprises one or more processors 403, and one or more memories 405, one or more computer programs 401, wherein the one or more computer programs 401 are stored in the memories 405 and configured to be executed by the one or more processors 403, the one or more computer programs 401 being configured to perform the application configuration and service update methods described in the above embodiments. The one or more processors 403 shown in fig. 4 are capable of performing and implementing the functions of the connection module 10, the reception module 20, and the update module 30 shown in fig. 3.
The terminal equipment provided by the embodiment of the invention can realize the addition of the client dependence of the connection configuration center in the application program; determining application parameters or application services corresponding to the configuration parameters according to the dependence of the client on receiving the change broadcast of the configuration parameters issued by the configuration center; and updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters. By providing a flexible updating method for configuration and service of an application program, a connection channel between the application program and the configuration center is established by adding a client dependency connected with the configuration center in the application program, then when a service person modifies the configuration parameters of the application program from a visual interface of the configuration center, the application parameters or application service corresponding to the configuration parameters are determined according to the client dependency receiving the change broadcast of the configuration parameters issued by the configuration center, then the application parameters or application service of the application program is updated according to the configuration parameters, the application parameters of the application program can be quickly modified, a switch for opening or closing a service function can be opened or closed, a white list in the application program is updated, the application parameters or the application service of the application program can be quickly and real-timely changed, and the configuration efficiency of the application program is improved.
The server provided by the embodiment of the present invention can implement the embodiment of the application configuration or application service update method provided above, and specific function implementation is described in the method embodiment, and is not repeated herein.
The foregoing is only a partial embodiment of the present invention, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.

Claims (9)

1. An application configuration or application service update method, comprising:
sending environment parameters of an application program to a configuration center, and adding client-side dependence of the environment parameters in the application program, wherein the client-side dependence is used for connecting with the configuration center;
receiving a change broadcast of a configuration parameter issued by the configuration center according to the client dependence and the environment parameter, and determining an application parameter or an application service corresponding to the configuration parameter;
updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters; when the application program is updated or the application service is unsuccessful, acquiring a plurality of environmental parameters of the application program, and then selecting one environmental parameter meeting preset conditions as an environmental parameter to be transmitted, wherein the environmental parameter to be transmitted is determined by the following modes: acquiring the current environmental parameter of the application program, acquiring the last environmental parameter of the application program, determining the last environmental parameter as the environmental parameter to be transmitted when the last environmental parameter is different from the current environmental parameter, and acquiring the last environmental parameter again and comparing the last environmental parameter again if the last environmental parameter is the same as the current environmental parameter until the last environmental parameter is different from the current environmental parameter, and determining the environmental parameter as the environmental parameter to be transmitted;
and deleting the client dependency of the application program and the configuration center, and establishing the client dependency of the application program and the configuration center again after a preset time.
2. The method of claim 1, wherein the environmental parameters include development environmental parameters, development joint debugging environmental parameters, test environmental parameters, gray scale environmental parameters, production environmental parameters; after the application parameters or the application services of the application program are updated according to the change broadcast of the configuration parameters, the method further comprises the following steps:
and judging whether the application parameters or the application services are updated successfully, and if the application parameters or the application services are updated unsuccessfully, requesting configuration parameters corresponding to other environment parameters except the environment parameters sent when the client-side dependence is added from a configuration center.
3. The method according to claim 2, wherein the requesting the configuration parameters corresponding to the other environmental parameters from the configuration center except the environmental parameters transmitted when the client is added includes:
acquiring an environmental parameter meeting preset conditions from a plurality of environmental parameters of the application program as the environmental parameter to be transmitted;
and requesting the configuration center for the configuration parameters corresponding to the environmental parameters to be sent.
4. The method of claim 1, wherein after determining the application parameter or the application service corresponding to the configuration parameter, further comprises:
judging whether the configuration parameters are the same as the current configuration parameters, if not, executing the step of updating the application parameters or the application services of the application program according to the change broadcast of the configuration parameters.
5. The method of claim 1, wherein after updating the application parameters or application services of the application program according to the change broadcast of the configuration parameters, further comprising:
and sending report information of successful update of the application parameters or the application services to the configuration center.
6. The method of claim 1, wherein after updating the application parameters or application services of the application program according to the change broadcast of the configuration parameters, further comprising:
the client dependency of the application and the configuration center is deleted.
7. An application configuration or application service updating apparatus, comprising:
and the connection module is as follows: client dependencies for adding connection configuration centers in an application;
and a receiving module: the method comprises the steps that according to the fact that a client depends on receiving a change broadcast of a configuration parameter issued by a configuration center, an application parameter or an application service corresponding to the configuration parameter is determined;
and an updating module: updating application parameters or application services of the application program according to the change broadcast of the configuration parameters, and deleting the client-side dependence of the application program and the configuration center; when the application program is updated or the application service is unsuccessful, acquiring a plurality of environmental parameters of the application program, and then selecting one environmental parameter meeting preset conditions as an environmental parameter to be transmitted, wherein the environmental parameter to be transmitted is determined by the following modes: acquiring the current environmental parameter of the application program, acquiring the last environmental parameter of the application program, determining the last environmental parameter as the environmental parameter to be transmitted when the last environmental parameter is different from the current environmental parameter, and acquiring the last environmental parameter again and comparing the last environmental parameter again if the last environmental parameter is the same as the current environmental parameter until the last environmental parameter is different from the current environmental parameter, and determining the environmental parameter as the environmental parameter to be transmitted; and deleting the client dependency of the application program and the configuration center, and establishing the client dependency of the application program and the configuration center again after a preset time.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the application configuration or application service update method of any of claims 1 to 6.
9. A terminal, comprising:
one or more processors;
a memory;
one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more computer programs configured to perform the application configuration or application service update method according to any of claims 1 to 6.
CN201811232402.9A 2018-10-22 2018-10-22 Application configuration or service updating method and device, storage medium and terminal equipment Active CN109597660B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811232402.9A CN109597660B (en) 2018-10-22 2018-10-22 Application configuration or service updating method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811232402.9A CN109597660B (en) 2018-10-22 2018-10-22 Application configuration or service updating method and device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN109597660A CN109597660A (en) 2019-04-09
CN109597660B true CN109597660B (en) 2023-08-22

Family

ID=65957926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811232402.9A Active CN109597660B (en) 2018-10-22 2018-10-22 Application configuration or service updating method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN109597660B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110673893B (en) * 2019-09-24 2023-06-09 携程计算机技术(上海)有限公司 Application program configuration method, system, electronic device and storage medium
CN115942255A (en) * 2021-09-15 2023-04-07 华为技术有限公司 Channel configuration method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049476A (en) * 2015-05-26 2015-11-11 腾讯科技(深圳)有限公司 Starting method and terminal for audio equipment
CN106878053A (en) * 2016-12-22 2017-06-20 努比亚技术有限公司 A kind of config update devices and methods therefor based on ZOOKEEPER
CN107506213A (en) * 2017-08-30 2017-12-22 深圳市小牛在线互联网信息咨询有限公司 Dynamic Configuration, device, storage medium and computer equipment
CN108563457A (en) * 2018-04-11 2018-09-21 上海东软载波微电子有限公司 Remote control type mobile terminal and its method for updating program, readable storage medium storing program for executing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7526800B2 (en) * 2003-02-28 2009-04-28 Novell, Inc. Administration of protection of data accessible by a mobile device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049476A (en) * 2015-05-26 2015-11-11 腾讯科技(深圳)有限公司 Starting method and terminal for audio equipment
CN106878053A (en) * 2016-12-22 2017-06-20 努比亚技术有限公司 A kind of config update devices and methods therefor based on ZOOKEEPER
CN107506213A (en) * 2017-08-30 2017-12-22 深圳市小牛在线互联网信息咨询有限公司 Dynamic Configuration, device, storage medium and computer equipment
CN108563457A (en) * 2018-04-11 2018-09-21 上海东软载波微电子有限公司 Remote control type mobile terminal and its method for updating program, readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN109597660A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN107979508B (en) Micro-service test method and device
CN104063239B (en) Application program update method and server, the client of mobile terminal
US7415706B1 (en) Dynamic handling of multiple software component versions for device management
US9690562B2 (en) Detecting computing processes requiring reinitialization after a software package update
US20070143379A1 (en) Metadata driven deployment of applications
US20080005747A1 (en) System and method for object state management
RU2339076C2 (en) Execution of non-verified programs in radio communication device
CN109308241B (en) Method and device for monitoring starting process of application program, terminal equipment and storage medium
US9195450B2 (en) Program execution service windows
US20050124332A1 (en) Mobile device programming system and method
US10397281B2 (en) Method, system and server for self-healing of electronic apparatus
CN104978172A (en) Integrated management and control method, system and equipment of SDN (Software Defined Networking) applications
CN109597660B (en) Application configuration or service updating method and device, storage medium and terminal equipment
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
CN110737548B (en) Data request method and server
CN107016262A (en) Application program right management method and client
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
CN115129574A (en) Code testing method and device
CN111416857A (en) Client crash processing method, device, system, equipment and storage medium
CN105653341A (en) Method, device and system for upgrading network invoice client
CN111367963B (en) Method, device, equipment and computer storage medium for determining source channel
CN109032641A (en) Application version update method and device
CN111176959B (en) Early warning method, system and storage medium of cross-domain application server
CN103458121A (en) System and method capable of realizing Android version compatibility and third-party function compatibility
CN111552537B (en) Theme switching method and device, computer equipment and storage medium

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