[go: up one dir, main page]

CN112732302B - Application configuration update method, device and electronic device - Google Patents

Application configuration update method, device and electronic device Download PDF

Info

Publication number
CN112732302B
CN112732302B CN202110021239.7A CN202110021239A CN112732302B CN 112732302 B CN112732302 B CN 112732302B CN 202110021239 A CN202110021239 A CN 202110021239A CN 112732302 B CN112732302 B CN 112732302B
Authority
CN
China
Prior art keywords
configuration data
target function
update
function item
updated
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
CN202110021239.7A
Other languages
Chinese (zh)
Other versions
CN112732302A (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.)
Douyin Vision Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110021239.7A priority Critical patent/CN112732302B/en
Publication of CN112732302A publication Critical patent/CN112732302A/en
Application granted granted Critical
Publication of CN112732302B publication Critical patent/CN112732302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a configuration updating method and device of an application program and electronic equipment. One embodiment of the method comprises the following steps: in response to receiving a starting instruction for starting a target function item in an application program, determining whether to update first configuration data based on first update time information of the first configuration data corresponding to the target function item stored locally; and in response to determining to update the first configuration data, acquiring the updated first configuration data from the server, and updating the first configuration data according to the updated first configuration data. The service pressure of a service end for providing updated configuration data is reduced, and relatively fewer servers can be used for service, so that the machine resource consumption of the servers is reduced; and the corresponding configuration data is not required to be acquired by depending on a cold start application program, so that the time for realizing the target function is saved.

Description

Configuration updating method and device of application program and electronic equipment
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to a method and a device for updating configuration of an application program and electronic equipment.
Background
After the application program publishes the version, the publisher of the application program may need to update the configuration of the application program according to the actual operating requirements. At this time, the application program of the published version may be configured and updated by acquiring updated configuration information of the application program and then running the application program based on the acquired updated configuration information.
Disclosure of Invention
This disclosure is provided in part to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a method and a device for updating the configuration of an application program and electronic equipment.
In a first aspect, an embodiment of the present disclosure provides a method for updating a configuration of an application program, applied to a client, where the method includes: in response to receiving a starting instruction for starting a target function item in an application program, determining whether to update first configuration data based on first update time information of the first configuration data corresponding to the target function item stored locally; and in response to determining to update the first configuration data, acquiring the updated first configuration data from the server, and updating the first configuration data according to the updated first configuration data.
In a second aspect, an embodiment of the present disclosure provides a method for updating a configuration of an application, applied to a server, where the method includes: receiving a configuration data acquisition request of updated first configuration data corresponding to an acquisition target function item sent by a client; wherein the configuration data acquisition request is sent by the client based on the following steps: in response to receiving a starting instruction for starting a target function item in an application program, determining whether to update first configuration data based on first update time information of the first configuration data corresponding to the target function item stored locally; in response to determining to update the first configuration data, sending a configuration data acquisition request for acquiring the updated first configuration data; and sending the updated first configuration data to the client so that the client updates the first configuration data according to the updated first configuration data.
In a third aspect, an embodiment of the present disclosure provides a configuration updating apparatus for an application program, applied to a client, the apparatus including: the determining module is used for determining whether to update the first configuration data based on the first updating time information of the first configuration data corresponding to the target function item stored locally in response to receiving a starting instruction for starting the target function item in the application program; and the updating module is used for responding to the determination of updating the first configuration data, acquiring the updated first configuration data from the server side and updating the first configuration data according to the updated first configuration data.
In a fourth aspect, an embodiment of the present disclosure provides a device for updating a configuration of an application, which is applied to a server, where the device includes: the receiving module is used for receiving a configuration data acquisition request of the updated first configuration data corresponding to the acquisition target function item, which is sent by the client; wherein the configuration data acquisition request is sent by the client based on the following steps: in response to receiving a starting instruction for starting a target function item in an application program, determining whether to update first configuration data based on first update time information of the first configuration data corresponding to the target function item stored locally; in response to determining to update the first configuration data, sending a configuration data acquisition request for acquiring the updated first configuration data; and the sending module is used for sending the updated first configuration data to the client so that the client updates the first configuration data according to the updated first configuration data.
In a fifth aspect, embodiments of the present disclosure provide an electronic device, including: one or more processors; and a storage device having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to implement the method for updating the configuration of an application program according to the first aspect or the second aspect.
In a sixth aspect, an embodiment of the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for updating the configuration of an application program according to the first or second aspect.
According to the configuration updating method, the configuration updating device and the electronic equipment of the application program, whether the first configuration data are updated is determined based on first updating time information of the first configuration data corresponding to the target function item stored locally in response to receiving a starting instruction for starting the target function item in the application program; and in response to determining to update the first configuration data, acquiring the updated first configuration data from the server, and updating the first configuration data according to the updated first configuration data. The service pressure of a service end for providing updated configuration data is reduced, and relatively fewer servers can be used for service, so that the machine resource consumption of the servers is reduced; and the corresponding configuration data is not required to be acquired by depending on a cold start application program, so that the time for realizing the target function is saved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of one embodiment of a configuration update method for an application according to the present disclosure;
FIG. 2 is a flow diagram of another embodiment of a configuration update method for an application according to the present disclosure;
FIG. 3 is a flow chart of yet another embodiment of a configuration update method for an application according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of one embodiment of a configuration updating apparatus of an application according to the present disclosure;
FIG. 5 is a schematic diagram of another embodiment of a configuration updating apparatus of an application according to the present disclosure;
FIG. 6 is an exemplary system architecture in which a configuration update method of an application program of one embodiment of the present disclosure may be applied;
fig. 7 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
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 have been shown in the accompanying 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 are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present 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. Furthermore, 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 "including" and variations thereof as used herein are intended to be 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. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It should be noted that, without conflict, the embodiments of the present disclosure and features of the embodiments may be combined with each other.
Referring to FIG. 1, a flow chart of one embodiment of a configuration update method for an application according to the present disclosure is shown. The configuration updating method of the application program is applied to the client. As shown in fig. 1, the configuration updating method of the application program may include the following steps 101 to 102.
Step 101, in response to receiving a starting instruction for starting a target function item in an application program, determining whether to update first configuration data based on first update time information of first configuration data corresponding to the target function item stored locally;
And the client side of the application program can be installed on the terminal and used for providing local service for the user. The terminal herein may include, for example, a mobile phone, a tablet computer, an electronic book reader, a notebook computer, etc. The application programs may include, for example, a browsing application program, a chat application program, a game application program, and the like, and each application program corresponds to a respective client.
The application may include a plurality of functional items therein. The user can realize the target function corresponding to the target function item by starting the target function item. For example, the chat application may implement a function of sending text information and a function of sending an expression package, and the corresponding function items may be a text sending function item and an expression package sending function item, respectively. When the user transmits a start instruction for starting the expression package transmission function item, the expression package transmission function item can be regarded as a target function item.
After receiving the start instruction for starting the target function item, first update time information of first configuration data corresponding to the target function item stored locally may be determined.
The first configuration data herein may include data required when the target function is executed, such as data characterizing a screen color, data characterizing a network connection, data characterizing a window size, and the like. Typically the first configuration data may be set by the publisher to enable the target function to function properly to meet the business requirements.
The client may store the corresponding configuration data locally for each functional item. Each configuration data may correspond to one update time information. The update time information here may be time information corresponding to when updated last time from the current time.
After the target function item is determined, first configuration data corresponding to the target function item may be determined, and then update time information corresponding to the first configuration data may be regarded as first update time information. The first update time information may be, for example, 2020, 05, 13:00. At this point, it may be characterized that the first configuration data has locally occurred an update event at 05/2020 day 13:00, after which no further update time information is recorded by the client.
After the first update time information is determined, it may be determined whether to update the first configuration data. For example, it may be determined whether or not the difference in time between the time indicated by the first update time information and the current time is greater than a preset time threshold. If the time difference between the moment indicated by the first updating time information and the current moment is larger than a preset time threshold value, determining that the first configuration data stored locally need to be updated; otherwise, it is determined that the locally stored first configuration data does not need to be updated.
Step 102, in response to determining to update the first configuration data, acquiring updated first configuration data from the server, and updating the first configuration data according to the updated first configuration data.
If the first local configuration data is determined to need to be updated, the method can be regarded as that the target function with the updated target function item cannot be realized after the operation based on the first local configuration data. At this time, the updated first configuration data may be obtained from the server.
In some application scenarios, the updated first configuration data may include the first configuration data that was last updated for the target function item. For example, the updated first configuration data may be current first configuration data obtained by updating the original first configuration data at the time of 13:00 of 05 month of 2020, and since then, no next first configuration data is stored in the server.
After the updated first configuration data is obtained from the server, the local first configuration data may be updated based on the updated first configuration data. That is, the local first configuration data may be replaced with updated first configuration data, so that the target function item can implement the target function that is newly published by the publisher.
In the related art, the configuration update of the application may be performed by downloading configuration data corresponding to each of a plurality of function items corresponding to the next cold start into the client at the time of the cold start of the application. Thus, after the application program is executed based on the downloaded configuration data, the target function corresponding to the updated function item of the current application program can be realized. However, if a plurality of users start the application program at the same time, the task amount of the server providing the configuration data in a unit time is increased, which in turn results in more servers being required for service, and server resources are consumed. And because the updated configuration data corresponding to the plurality of functional items is downloaded during cold start, the cold start time of the application program is prolonged.
In this embodiment, whether to update the first configuration data is determined by first responding to a start instruction for starting a target function item in an application program based on first update time information of first configuration data corresponding to the target function item stored locally; and in response to determining to update the first configuration data, acquiring the updated first configuration data from the server, and updating the first configuration data according to the updated first configuration data. The service pressure of a service end for providing updated configuration data is reduced, and relatively fewer servers can be used for service, so that the machine resource consumption of the servers is reduced; and the corresponding configuration data is not required to be acquired by depending on a cold start application program, so that the time for realizing the target function is saved.
In some alternative implementations, the step 101 may include the following steps:
Step 1011, in response to receiving the start instruction, sending a first obtaining request for obtaining update time information of first configuration data corresponding to the target function item to a server;
After receiving the start instruction to start the target function item, the client of the application program may send a first acquisition request to acquire update time information of the first configuration data from the server. For example, after the user has transmitted a start instruction indicating start of the video browsing function item, the client may transmit a first acquisition request such as "request to acquire update time information corresponding to the video browsing function item" to the server.
Step 1012, determining whether to update the local first configuration data corresponding to the target function item based on the second update time information and the first update time information acquired from the server.
After receiving the first obtaining request, the server may send update time information of the first configuration data corresponding to the target function item to the client. Here, the server may send update time information corresponding to the last updated first configuration data to the client as the second update time information.
After receiving the second update time information, the client may determine whether to update the local first configuration data corresponding to the target function item based on the second update time information and the first update time information. If an update is determined, the local first configuration data may be replaced with updated first configuration data.
The second update time information may be obtained from the server in advance through the above steps 1011 and 1012, and whether to update the local first configuration data may be determined by determining the relationship between the first update time information and the second update time information, so as to reduce the processing pressure of the server.
Referring to FIG. 2, a flow diagram of another embodiment of a configuration update method for an application according to the present disclosure is shown. The configuration updating method of the application program is applied to the client. As shown in fig. 2, the configuration updating method of the application program includes the following steps 201 to 204.
Step 201, in response to receiving the start instruction, sending a first obtaining request for obtaining update time information of first configuration data corresponding to the target function item to a server.
In this embodiment, the above step 201 may be similar to or the same as the above step 1011, and will not be repeated here.
In some optional implementations, the second update time information is included in response information sent by the server.
In some application scenarios, after receiving the first acquisition request, the server may generate corresponding response information. The response information may include second update time information requested to be acquired by the first acquisition request.
In some application scenarios, the response information may further include information data corresponding to the target function item. The information data here may include, for example, article data, video data, and the like, which are required by the client in response to a start request of the user.
In these application scenarios, the second update time information may be set in a response header of the response information. That is, the server may set the second update time information in the response header of the response information. In this way, the second update time information can be separated from the information data and thus not coupled with the function code that implements the target function.
In some alternative implementations, the response information may be generated by the server based on the steps of:
Firstly, searching second updating time information of the first configuration data in pre-stored configuration information according to the identity information of the target function item; the configuration information comprises second update time information of the updated configuration data corresponding to at least one function item and identity information corresponding to the function item;
The server may store in advance the second update time information of the updated configuration data corresponding to the plurality of function items and the identity information corresponding to each function item in an associated manner, so as to form the configuration information. When the identity information of the target function item is received, the second updating time information of the first configuration data associated with the identity information can be searched according to the identity information.
Then, the response information is generated based on the information data and the second update time information found.
After the server side searches the second update time information corresponding to the first configuration data, the second update time information and the information data corresponding to the target function item can be integrated to generate response information, and the response information is sent to the client side. The process of sending the second update time information to the client is not required to be set independently, and the operation process is simplified.
In some application scenarios, two servers may be used to cooperate to provide services to clients. Each server can perform its own job, so that the management is convenient. Specifically, the service of sending the response information can be provided for the client through the first service end. And providing the service for sending the configuration data and the update time information corresponding to the configuration data for the first server and the client through the second server. In this way, the configuration information may be stored by the first service end in advance based on the following steps:
Firstly, when the moment corresponding to the preset time period is reached, second updating time information of updated configuration data corresponding to each function item in the application program is obtained from a second server.
The first service side can acquire the second update time information from the second service side at regular time and store the second update time information. In some application scenarios, when the first service end arrives at a time corresponding to the preset time period, second update time information of each piece of configuration data corresponding to the current time is obtained from the second service end. The preset time period herein may be, for example, but not limited to, 1 second, 10 seconds, etc.
And then, the identity information corresponding to each functional item and the second updating time of the acquired updated configuration data are associated and stored to form configuration information.
After the second update time information of the updated configuration data corresponding to each function item and the identity information of the function item corresponding to the updated configuration data are stored in association in the first service end, when the client sends the first acquisition request, the corresponding second update time information can be sent to the client so that the client can judge whether the local first configuration data need to be updated or not, and when the client determines that the local first configuration data need to be updated, the client can acquire the corresponding updated first configuration data from the second service end. In this way, the storage functions of the first server and the second server are separated, and the first server provides the second update time information of the target function item, so that the client can obtain the updated first configuration data from the second server when judging that the local first configuration data needs to be updated, and the processing pressure of the second server is reduced.
Step 202, determining whether the second update time information is consistent with first update time information corresponding to the local first configuration data;
The server may store the second update time information corresponding to each of the configuration data when updated. And then when a first acquisition request sent by the client is received, setting second update time information corresponding to the target function item in response information and sending the response information to the client. After receiving the response information, the client compares the second update time information with the first update time information of the target function item stored locally to determine whether the first locally stored configuration data is the configuration data of the last update target function item, and then can determine whether to update the first locally stored configuration data. For example, the first update time information is 11:00 on month 22 of 2020, and the second update time information is 12:00 on month 22 of 2020. The second update time information is later than the first update time information, so that it can be determined that the local first configuration data is not the configuration data updated by the publisher last time, and further it can be determined that the local first configuration data is updated; if the first update time information is 12:00 of 22 nd of 2020, it may be determined that the local first configuration data is consistent with the configuration data updated last time by the publisher, and thus the local first configuration data may not need to be updated.
Step 203, if the configuration data is inconsistent, determining to update the first configuration data corresponding to the local target function item.
After determining that the second update time information is inconsistent with the first update time information, update local first configuration data may be determined, and then configuration data of the last update of the publisher (i.e., the updated first configuration data) may be obtained.
Step 204, in response to determining to update the first configuration data, acquiring updated first configuration data from the server, and updating the first configuration data according to the updated first configuration data.
In this embodiment, the step 204 may be the same as or similar to the step 102 in the embodiment shown in fig. 1, and is not repeated here.
Compared with the embodiment shown in fig. 1, the configuration updating method of the application program provided in this embodiment highlights the step of comparing the second update time information with the first update time information, and then determining whether to update the local first configuration data, so that the operation of determining whether to update the local first configuration data is simpler and faster.
In some optional implementations, the method for updating the configuration of the application program in the embodiment shown in fig. 1 and the embodiment shown in fig. 2 may further include: and responding to the first configuration data corresponding to the local target function item, and running the target function item based on the first configuration data.
After determining that the local first configuration data does not need to be updated, the method can be regarded as running the local first configuration data to realize the target function after the target function item is updated. At this time, the updated first configuration data may not be acquired, and the processing pressure of the server providing the updated first configuration data may be reduced.
In some application scenarios, the first configuration data corresponding to the target function item that is not updated locally may be determined in response to determining that the second update time information is consistent with the first update time information corresponding to the first configuration data that is local. And by determining that the second updating time information is consistent with the first updating time information, the first configuration data which does not need to be updated locally can be judged, so that the method is simple, convenient and quick.
In some alternative implementations, the step 102 or the step 204 may include the sub-step 31: triggering a software development kit corresponding to the application program to instruct the software development kit to execute the operation of acquiring the updated first configuration data; wherein the obtaining operation includes: and sending a second acquisition request for acquiring the updated first configuration data to the server to acquire the updated first configuration data.
The software development kit can be regarded as a kit corresponding to a functional module in an application program, wherein the functional module can realize the function of acquiring configuration data. After the client determines that the local first configuration data needs to be updated, a second acquisition request can be sent through the software development kit to acquire the updated first configuration data.
After the server side performs the update operation of the update configuration data, the identity information of the target function item corresponding to the update operation, the updated configuration data and the update time information corresponding to the updated configuration data can be stored in an associated mode. Thus, each configuration data may correspond to a last update time information. The last update time information here may be the same as the second update time information described above.
In some optional implementations, the second acquisition request includes identity information of the target function; the identity information of the target function item comprises the identity of the application program and/or the user identity of the user.
After the server receives the second acquisition request, the server may search updated configuration data corresponding to the identity information of the target function item according to the identity information of the target function item included in the second acquisition request, and send the updated configuration data to the client as updated first configuration data.
In some application scenarios, the identity information of the target function may include an identity of the application and/or a user identity of the user. The application program information of the target function item can be determined through the identity of the application program, and the user information can be determined through the user identity. The server may then determine whether the target function item is configured in the application for the user.
For example, the identity of the application included in the second acquisition request is "6000002993", and the user identity of the user is "198933938". After receiving the second acquisition request, the server may send the corresponding updated configuration data to the client.
Through the above substep 31, the updated first configuration data can be obtained from the server, and the server searches the corresponding updated first configuration data through the identity information of the target function item, which is more accurate and convenient.
In some alternative implementations, the step 102 or the step 204 may further include: receiving the updated first configuration data returned by the server, wherein the updated first configuration data is determined by the server based on the following steps:
step1, serializing the identity information data of the target function item according to a preset sequence;
The predetermined sequence may include, for example, a sequence in which the identification data of the application is first and the user identification data of the user is second. In this way, when the server receives the identity information data of the target function item, the server can sequence the identity identification data of the application program contained in the identity information data of the target function item as the first bit and the contained user identification data as the second bit. For example, if the preset sequence is { "application identity data", "user identity data" }, then when the received identity information data of the target function item is { "application identity": "6000002993", "user identification": after "198933938" }, it can be serialized into { "6000002993", "198933938" }. Thus, even though not described, the server may know that "6000002993" is the identity of the application program and "198933938" is the user identifier according to the preset sequence.
Step 2, searching the serialized identity information data of the target function item in a preset storage area; the identity information data of the plurality of function items which are serialized according to the preset sequence are prestored in the preset storage area;
the server may serialize the identity information data of each function item in advance according to a preset sequence, and store the serialized identity information data of each function item, the configuration data corresponding to the identity information data, and the update time information of the configuration data in a preset storage area in an associated manner. After receiving the identity information data of the target function item, the identity information data can be searched in the preset storage area to obtain first configuration data corresponding to the target function item. The preset storage area here may include, for example, a preset database, a preset network disk, and the like.
Step 3, in response to determining that the serialized identity information data of the target function item exists in the preset storage area, determining updated configuration data corresponding to the identity information data as the updated first configuration data; or in response to determining that the serialized identity information data of the target function item does not exist in the preset storage area, determining preset configuration data as the updated first configuration data.
After determining that the identity information data of the target function item exists in the preset storage area, the updated configuration data associated with the target function item can be returned to the client as updated first configuration data.
If the identity information data of the target function item is not found in the preset storage area, the configuration data can be regarded as not being set for the target function item, and then the preset configuration data which is prepared in advance can be sent to the client as updated first configuration data. After the client receives the preset configuration data, the target function item can be operated based on the preset configuration data, and then the corresponding function can be realized. For example, if the first configuration data of "the button in the display page is red" in the target function item is not configured in the server side, the preset configuration data may be sent to the client side, and the client side may set the button in the display page to blue based on the preset configuration data.
Through the steps 1 to 3, the server can conveniently and orderly arrange and store the identity information data of the function items, and is also beneficial to the searching operation of the target function items.
In some optional implementations, before the step 101 or the step 201, the method for updating the configuration of the application program may further include: and responding to the first cold start instruction of cold starting the application program, and indicating a software development kit corresponding to the application program to acquire initial configuration data respectively corresponding to a plurality of functional items of the application program and update time information corresponding to the initial configuration data.
The initial configuration data may be configuration data corresponding to each function item of the application program obtained from the server when the application program is cold started for the first time.
When the client receives the cold start instruction for the first time, the client can send an acquisition request for acquiring the initial configuration data to the server by using a software development kit. After receiving the acquisition request, the server may send the latest configuration data to the client. After receiving the configuration data, the client may save the configuration data as the initial configuration data.
In some application scenarios, after the initial configuration data stored at the first cold start is stored in the client, when the response information is received, whether the initial configuration data includes the first configuration data may also be queried. And when the initial configuration data is determined not to contain the first configuration data, the client can be regarded as the first configuration data of which the target function item is not downloaded. The software development kit may then be instructed to obtain the first configuration data without performing the step of determining whether to update the first configuration data corresponding to the target function locally based on the second update time information. In these application scenarios, the process of the software development kit obtaining the first configuration data from the server may be the same as or similar to the above-mentioned sub-step 31, which is not described herein.
Referring to FIG. 3, a flow chart of yet another embodiment of a configuration update method for an application according to the present disclosure is shown. The configuration updating method of the application program is applied to the server side. As shown in fig. 3, the configuration updating method of the application program includes the steps of:
step 301, receiving a configuration data acquisition request of updated first configuration data corresponding to an acquisition target function item sent by a client; wherein the configuration data acquisition request is sent by the client based on the following steps: in response to receiving a starting instruction for starting a target function item in an application program, determining whether to update first configuration data based on first update time information of the first configuration data corresponding to the target function item stored locally; in response to determining to update the first configuration data, sending a configuration data acquisition request for acquiring the updated first configuration data;
Step 302, sending the updated first configuration data to the client, so that the client updates the first configuration data according to the updated first configuration data.
In this embodiment, the specific processing and the technical effects of the steps 301 to 302 may refer to the relevant content of the embodiment shown in fig. 1, which is not described herein.
In some alternative implementations, before the step 301, the method for updating the configuration of the application program further includes:
Step A, a first acquisition request which is sent by a client and used for acquiring update time information of first configuration data corresponding to the target function item is received; the first acquisition request is sent by the client in response to receiving a starting instruction for starting a target function item in an application program;
And B, sending second updating time information to the client so that the client can determine whether to update the first configuration data corresponding to the local target function item based on the second updating time information and the first updating time information acquired from the server.
In this embodiment, the above-mentioned step a and step B may be the same as or similar to the step 1011 and step 1012 in the embodiment shown in fig. 1, and are not repeated here.
In some alternative implementations, step 301 may include step 3011: receiving a second acquisition request which is sent by the client and used for acquiring the updated first configuration data; and triggering a software development kit corresponding to the application program by the client to instruct the software development kit to send the second acquisition request.
In this embodiment, the step 3011 may be the same as or similar to the step 31 in the embodiment shown in fig. 1, which is not described here.
Referring to fig. 4, a schematic structural diagram of one embodiment of a configuration updating apparatus for an application according to the present disclosure is shown, and as shown in fig. 4, the configuration updating apparatus for an application may be provided in a terminal, and includes a determining module 401 and an updating module 402. Wherein, the determining module 401 is configured to determine whether to update the first configuration data based on first update time information of first configuration data corresponding to a locally stored target function item in response to receiving a start instruction for starting the target function item in the application; the updating module 402 is configured to obtain updated first configuration data from the server in response to determining to update the first configuration data, and update the first configuration data according to the updated first configuration data.
It should be noted that, the specific processes of the determining module 401 and the updating module 402 of the configuration updating device of the application program and the technical effects brought by the specific processes may refer to the descriptions of steps 101 to 102 in the corresponding embodiment of fig. 1, and are not repeated here.
In some optional implementations of this embodiment, the determining module 401 is further configured to: in response to receiving the starting instruction, a first acquisition request for acquiring update time information of first configuration data corresponding to the target function item is sent to a server; and determining whether to update the first configuration data corresponding to the local target function item based on the second updating time information and the first updating time information acquired from the server.
In some optional implementations of this embodiment, the determining module 401 is further configured to: determining whether the second update time information is consistent with first update time information corresponding to the local first configuration data; and if the target function items are inconsistent, determining to update the first configuration data corresponding to the local target function items.
In some optional implementations of this embodiment, the second update time information is included in response information sent by the server.
In some optional implementations of this embodiment, the configuration updating apparatus of an application program further includes an operation module, where the operation module is configured to: and responding to the first configuration data corresponding to the local target function item, and running the target function item based on the first configuration data.
In some alternative implementations of the present embodiment, the update module 402 is further configured to: triggering a software development kit corresponding to the application program to instruct the software development kit to execute the operation of acquiring the updated first configuration data; wherein the obtaining operation includes: and sending a second acquisition request for acquiring the updated first configuration data to the server to acquire the updated first configuration data.
In some optional implementations of this embodiment, the second acquisition request includes identity information of the target function; the identity information of the target function item comprises the identity of the application program and/or the user identity of the user.
In some alternative implementations of the present embodiment, the update module 402 is further configured to: receiving the updated first configuration data returned by the server, wherein the updated first configuration data is determined by the server based on the following steps: serializing the identity information data of the target function item according to a preset sequence; searching the serialized identity information data of the target function item in a preset storage area; the identity information data of the plurality of function items which are serialized according to the preset sequence are prestored in the preset storage area; in response to determining that the serialized identity information data of the target function item exists in the preset storage area, determining updated configuration data corresponding to the identity information data as the updated first configuration data; or in response to determining that the serialized identity information data of the target function item does not exist in the preset storage area, determining preset configuration data as the updated first configuration data.
In some optional implementations of this embodiment, the configuration updating apparatus of an application program further includes a cold start module, where the cold start module is configured to: before the response to receiving a starting instruction for starting a target function item in an application program and based on first updating time information of first configuration data corresponding to the target function item stored locally, determining whether to update the first configuration data, responding to a cold starting instruction for cold starting the application program for the first time, and indicating a software development kit corresponding to the application program to acquire initial configuration data respectively corresponding to a plurality of function items of the application program and updating time information corresponding to the initial configuration data.
Referring to fig. 5, a schematic structural diagram of one embodiment of a configuration updating apparatus for an application according to the present disclosure is shown, and as shown in fig. 5, the configuration updating apparatus for an application may be disposed in a server, and includes a receiving module 501 and a transmitting module 502. The receiving module 501 is configured to receive a configuration data acquisition request sent by a client to acquire updated first configuration data corresponding to a target function item; wherein the configuration data acquisition request is sent by the client based on the following steps: in response to receiving a starting instruction for starting a target function item in an application program, determining whether to update first configuration data based on first update time information of the first configuration data corresponding to the target function item stored locally; in response to determining to update the first configuration data, sending a configuration data acquisition request for acquiring the updated first configuration data; a sending module 502, configured to send the updated first configuration data to the client, so that the client updates the first configuration data according to the updated first configuration data
It should be noted that, the specific processing of the receiving module 501 and the sending module 502 of the configuration updating device of the application program and the technical effects thereof may refer to the related descriptions of the steps 301 to 302 in the corresponding embodiment of fig. 3, and are not described herein again.
In some optional implementations of this embodiment, the configuration updating apparatus of the application program further includes an update time information sending module 502, where the update time information sending module 502 is configured to: before receiving a configuration data acquisition request of acquiring updated first configuration data corresponding to a target function item, which is sent by a client, receiving a first acquisition request of acquiring update time information of the first configuration data corresponding to the target function item, which is sent by the client; the first acquisition request is sent by the client in response to receiving a starting instruction for starting a target function item in an application program; and sending second update time information to the client so that the client can determine whether to update the first configuration data corresponding to the local target function item based on the second update time information and the first update time information acquired from the server.
In some optional implementations of this embodiment, the receiving module 501 is further configured to: receiving a second acquisition request which is sent by the client and used for acquiring the updated first configuration data; and triggering a software development kit corresponding to the application program by the client to instruct the software development kit to send the second acquisition request.
Referring to fig. 6, an exemplary system architecture is shown in which the configuration update method of an application program of one embodiment of the present disclosure may be applied.
As shown in fig. 6, the system architecture may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 is used as a medium to provide communication links between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others. The terminal devices and servers described above may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with digital data communications (e.g., communication networks) in any form or medium. Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The terminal devices 601, 602, 603 may interact with the server 605 via the network 604 to receive or send messages or the like. Various client applications, such as a video distribution application, a search class application, a news information class application, may be installed on the terminal devices 601, 602, 603.
The terminal devices 601, 602, 603 may be hardware or software. When the terminal devices 601, 602, 603 are hardware, they may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablet computers, electronic book readers, MP3 players (Moving Picture Experts Group Audio Layer III, dynamic video expert compression standard audio plane 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic video expert compression standard audio plane 4) players, laptop and desktop computers, and the like. When the terminal devices 601, 602, 603 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., software or software modules for providing distributed services) or as a single software or software module. The present invention is not particularly limited herein.
The server 605 may be a server that can provide various services, for example, receives information data acquisition requests transmitted from the terminal devices 601, 602, 603, performs analysis processing on the information data acquisition requests, and transmits analysis processing results (for example, information data corresponding to the above-described acquisition requests) to the terminal devices 601, 602, 603.
It should be noted that, the method for updating the configuration of the application program provided by the embodiment of the present disclosure may be executed by a server or may be executed by a terminal device, and accordingly, the device for updating the configuration of the application program may be set in the server or may be set in the terminal device.
It should be understood that the number of terminal devices, networks and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 7, a schematic diagram of an electronic device (e.g., the server or terminal device of fig. 6) suitable for use in implementing embodiments of the present disclosure is shown. The electronic device shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 7, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage means 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
In general, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 7 shows an electronic device having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 709, or installed from storage 708, or installed from ROM 702. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 701.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to receiving a starting instruction for starting a target function item in an application program, determining whether to update first configuration data based on first update time information of the first configuration data corresponding to the target function item stored locally; and in response to determining to update the first configuration data, acquiring the updated first configuration data from the server, and updating the first configuration data according to the updated first configuration data.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the module is not limited to the unit itself in some cases, for example, the determining module 401 may also be described as "in response to receiving a start instruction to start a target function item in an application program, determining whether to update the first configuration data based on first update time information of first configuration data corresponding to the target function item stored locally".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although 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. In 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 limiting the scope of the present 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 example forms of implementing the claims.

Claims (14)

1.一种应用程序的配置更新方法,其特征在于,应用于客户端,所述方法包括:1. A configuration update method for an application, characterized in that it is applied to a client, and the method comprises: 响应于接收到启动应用程序中目标功能项的启动指令,基于本地存储的所述目标功能项对应的第一配置数据的第一更新时间信息,确定是否更新第一配置数据;In response to receiving a start instruction for starting a target function item in a start application, determining whether to update the first configuration data based on first update time information of the first configuration data corresponding to the target function item stored locally; 响应于确定更新第一配置数据,从服务端获取更新后第一配置数据,并根据所述更新后第一配置数据更新所述第一配置数据;In response to determining to update the first configuration data, obtaining updated first configuration data from the server, and updating the first configuration data according to the updated first configuration data; 其中,第一配置数据包括以下一项或者多项:表征屏幕颜色的数据、表征网络连接的数据、表征窗口大小的数据;The first configuration data includes one or more of the following: data representing screen color, data representing network connection, and data representing window size; 所述响应于接收到启动应用程序中目标功能项的启动指令,基于本地存储的所述目标功能项对应的第一配置数据的第一更新时间信息,确定是否更新第一配置数据,包括:The step of determining whether to update the first configuration data based on first update time information of the first configuration data corresponding to the target function item stored locally in response to receiving a startup instruction for starting the target function item in the application comprises: 响应于接收到所述启动指令,向服务端发送获取所述目标功能项对应的第一配置数据的更新时间信息的第一获取请求;In response to receiving the start instruction, sending a first acquisition request to the server for acquiring update time information of first configuration data corresponding to the target function item; 基于从服务端获取的第二更新时间信息与所述第一更新时间信息,确定是否更新本地的所述目标功能项对应的第一配置数据。Based on the second update time information obtained from the server and the first update time information, it is determined whether to update the first configuration data corresponding to the local target function item. 2.根据权利要求1所述的方法,其特征在于,所述基于从服务端获取的第二更新时间信息与所述第一更新时间信息,确定是否更新本地的所述目标功能项对应的第一配置数据,包括:2. The method according to claim 1, characterized in that the determining whether to update the first configuration data corresponding to the local target function item based on the second update time information and the first update time information obtained from the server comprises: 确定所述第二更新时间信息与本地的所述第一配置数据对应的第一更新时间信息是否一致;Determine whether the second update time information is consistent with the first update time information corresponding to the first local configuration data; 若不一致,则确定更新所述本地的所述目标功能项所对应的第一配置数据。If they are inconsistent, determine to update the first configuration data corresponding to the local target function item. 3.根据权利要求1所述的方法,其特征在于,所述第二更新时间信息包括于由所述服务端发送的响应信息中。3 . The method according to claim 1 , wherein the second update time information is included in the response information sent by the server. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, characterized in that the method further comprises: 响应于确定不更新所述本地的所述目标功能项对应的第一配置数据,基于所述第一配置数据,运行所述目标功能项。In response to determining not to update the local first configuration data corresponding to the target function item, the target function item is run based on the first configuration data. 5.根据权利要求1或2所述的方法,其特征在于,所述响应于确定更新第一配置数据,从服务端获取更新后第一配置数据,包括:5. The method according to claim 1 or 2, characterized in that, in response to determining to update the first configuration data, obtaining the updated first configuration data from the server comprises: 触发所述应用程序对应的软件开发工具包,以指示所述软件开发工具包执行对所述更新后第一配置数据的获取操作;其中,所述获取操作包括:向所述服务端发送获取所述更新后第一配置数据的第二获取请求,以获取所述更新后第一配置数据。Triggering a software development kit corresponding to the application to instruct the software development kit to perform an acquisition operation on the updated first configuration data; wherein the acquisition operation includes: sending a second acquisition request to the server to acquire the updated first configuration data, so as to acquire the updated first configuration data. 6.根据权利要求5所述的方法,其特征在于,所述第二获取请求包括所述目标功能项的身份信息;所述目标功能项的身份信息包括所述应用程序的身份标识和/或用户的用户标识。6. The method according to claim 5 is characterized in that the second acquisition request includes the identity information of the target function item; the identity information of the target function item includes the identity identifier of the application and/or the user identifier of the user. 7.根据权利要求6所述的方法,其特征在于,所述响应于确定更新第一配置数据,从服务端获取更新后第一配置数据,还包括:7. The method according to claim 6, characterized in that, in response to determining to update the first configuration data, obtaining the updated first configuration data from the server, further comprises: 接收所述服务端返回的所述更新后第一配置数据,其中,所述更新后第一配置数据由所述服务端基于如下步骤确定:Receive the updated first configuration data returned by the server, wherein the updated first configuration data is determined by the server based on the following steps: 按照预设顺序序列化所述目标功能项的身份信息数据;Serialize the identity information data of the target function item according to a preset order; 在预设存储区中查找序列化后的所述目标功能项的身份信息数据;所述预设存储区中预先存储有按照所述预设顺序序列化后的多个功能项的身份信息数据;Searching for the serialized identity information data of the target function item in a preset storage area; the preset storage area pre-stores the identity information data of a plurality of function items serialized in the preset order; 响应于确定所述预设存储区中存在序列化后的所述目标功能项的身份信息数据,将所述身份信息数据对应的更新后配置数据确定为所述更新后第一配置数据;或者In response to determining that the serialized identity information data of the target function item exists in the preset storage area, determining the updated configuration data corresponding to the identity information data as the updated first configuration data; or 响应于确定所述预设存储区中不存在序列化后的所述目标功能项的身份信息数据,将预设配置数据确定为所述更新后第一配置数据。In response to determining that the serialized identity information data of the target function item does not exist in the preset storage area, the preset configuration data is determined as the updated first configuration data. 8.根据权利要求1所述的方法,其特征在于,在所述响应于接收到启动应用程序中目标功能项的启动指令,基于本地存储的所述目标功能项对应的第一配置数据的第一更新时间信息,确定是否更新第一配置数据之前,所述方法还包括:8. The method according to claim 1, characterized in that before determining whether to update the first configuration data in response to receiving a startup instruction for starting a target function item in an application program, based on first update time information of first configuration data corresponding to the target function item stored locally, the method further comprises: 响应于首次接收到冷启动所述应用程序的冷启动指令,指示所述应用程序对应的软件开发工具包获取所述应用程序的多个功能项分别对应的初始配置数据及该初始配置数据对应的更新时间信息。In response to receiving a cold start instruction for cold starting the application for the first time, instructing a software development kit corresponding to the application to obtain initial configuration data corresponding to a plurality of function items of the application and update time information corresponding to the initial configuration data. 9.一种应用程序的配置更新方法,其特征在于,应用于服务端,所述方法包括:9. A configuration update method for an application, characterized in that it is applied to a server, and the method comprises: 接收客户端发送的获取目标功能项对应的更新后第一配置数据的配置数据获取请求;其中,所述配置数据获取请求由所述客户端基于如下步骤发送:响应于接收到启动应用程序中目标功能项的启动指令,基于本地存储的所述目标功能项对应的第一配置数据的第一更新时间信息,确定是否更新第一配置数据;响应于确定更新第一配置数据,发送获取更新后第一配置数据的配置数据获取请求;Receive a configuration data acquisition request for acquiring updated first configuration data corresponding to a target function item sent by a client; wherein the configuration data acquisition request is sent by the client based on the following steps: in response to receiving a startup instruction for starting a target function item in an application, determining whether to update the first configuration data based on first update time information of the first configuration data corresponding to the target function item stored locally; in response to determining to update the first configuration data, sending a configuration data acquisition request for acquiring the updated first configuration data; 向所述客户端发送所述更新后第一配置数据,以使所述客户端根据所述更新后第一配置数据更新所述第一配置数据;在所述接收客户端发送的获取目标功能项对应的更新后第一配置数据的配置数据获取请求之前,所述方法还包括:sending the updated first configuration data to the client so that the client updates the first configuration data according to the updated first configuration data; before receiving the configuration data acquisition request sent by the client for acquiring the updated first configuration data corresponding to the target function item, the method further includes: 接收客户端发送的获取所述目标功能项对应的第一配置数据的更新时间信息的第一获取请求;所述第一获取请求由所述客户端响应于接收到启动应用程序中目标功能项的启动指令发送;Receiving a first acquisition request sent by a client to acquire update time information of first configuration data corresponding to the target function item; the first acquisition request is sent by the client in response to receiving a start instruction of the target function item in the start application; 向所述客户端发送第二更新时间信息,以使所述客户端基于从服务端获取的第二更新时间信息与所述第一更新时间信息,确定是否更新本地的所述目标功能项对应的第一配置数据;Sending second update time information to the client, so that the client determines whether to update the first configuration data corresponding to the local target function item based on the second update time information obtained from the server and the first update time information; 其中,第一配置数据包括以下一项或者多项:表征屏幕颜色的数据、表征网络连接的数据、表征窗口大小的数据。The first configuration data includes one or more of the following: data representing screen color, data representing network connection, and data representing window size. 10.根据权利要求9所述的方法,其特征在于,所述接收客户端发送的获取目标功能项对应的更新后第一配置数据的配置数据获取请求,包括:10. The method according to claim 9, wherein the step of receiving a configuration data acquisition request sent by a client to acquire updated first configuration data corresponding to a target function item comprises: 接收客户端发送的获取所述更新后第一配置数据的第二获取请求;所述第二获取请求由所述客户端触发所述应用程序对应的软件开发工具包,以指示所述软件开发工具包进行发送。A second acquisition request for acquiring the updated first configuration data is received from a client; the second acquisition request is triggered by the client to trigger a software development kit corresponding to the application to instruct the software development kit to send. 11.一种应用程序的配置更新装置,其特征在于,应用于客户端,所述装置包括:11. A configuration update device for an application, characterized in that it is applied to a client, and the device comprises: 确定模块,用于响应于接收到启动应用程序中目标功能项的启动指令,基于本地存储的所述目标功能项对应的第一配置数据的第一更新时间信息,确定是否更新第一配置数据;A determination module, configured to determine whether to update the first configuration data based on first update time information of the first configuration data corresponding to the target function item stored locally in response to receiving a startup instruction for starting the target function item in the application; 更新模块,用于响应于确定更新第一配置数据,从服务端获取更新后第一配置数据,并根据所述更新后第一配置数据更新所述第一配置数据;an updating module, configured to, in response to determining to update the first configuration data, obtain the updated first configuration data from the server, and update the first configuration data according to the updated first configuration data; 其中,第一配置数据包括以下一项或者多项:表征屏幕颜色的数据、表征网络连接的数据、表征窗口大小的数据;The first configuration data includes one or more of the following: data representing screen color, data representing network connection, and data representing window size; 所述响应于接收到启动应用程序中目标功能项的启动指令,基于本地存储的所述目标功能项对应的第一配置数据的第一更新时间信息,确定是否更新第一配置数据,包括:The step of determining whether to update the first configuration data based on first update time information of the first configuration data corresponding to the target function item stored locally in response to receiving a startup instruction for starting the target function item in the application comprises: 响应于接收到所述启动指令,向服务端发送获取所述目标功能项对应的第一配置数据的更新时间信息的第一获取请求;In response to receiving the start instruction, sending a first acquisition request to the server for acquiring update time information of first configuration data corresponding to the target function item; 基于从服务端获取的第二更新时间信息与所述第一更新时间信息,确定是否更新本地的所述目标功能项对应的第一配置数据。Based on the second update time information obtained from the server and the first update time information, it is determined whether to update the first configuration data corresponding to the local target function item. 12.一种应用程序的配置更新装置,其特征在于,应用于服务端,所述装置包括:12. A configuration update device for an application, characterized in that it is applied to a server, and the device comprises: 接收模块,用于接收客户端发送的获取目标功能项对应的更新后第一配置数据的配置数据获取请求;其中,所述配置数据获取请求由所述客户端基于如下步骤发送:响应于接收到启动应用程序中目标功能项的启动指令,基于本地存储的所述目标功能项对应的第一配置数据的第一更新时间信息,确定是否更新第一配置数据;响应于确定更新第一配置数据,发送获取更新后第一配置数据的配置数据获取请求;A receiving module, configured to receive a configuration data acquisition request sent by a client to acquire updated first configuration data corresponding to a target function item; wherein the configuration data acquisition request is sent by the client based on the following steps: in response to receiving a startup instruction for starting a target function item in an application, determining whether to update the first configuration data based on first update time information of the first configuration data corresponding to the target function item stored locally; in response to determining to update the first configuration data, sending a configuration data acquisition request to acquire the updated first configuration data; 发送模块,用于向所述客户端发送所述更新后第一配置数据,以使所述客户端根据所述更新后第一配置数据更新所述第一配置数据;在所述接收客户端发送的获取目标功能项对应的更新后第一配置数据的配置数据获取请求之前,还包括:A sending module, configured to send the updated first configuration data to the client, so that the client updates the first configuration data according to the updated first configuration data; before receiving the configuration data acquisition request sent by the client for acquiring the updated first configuration data corresponding to the target function item, further comprising: 接收客户端发送的获取所述目标功能项对应的第一配置数据的更新时间信息的第一获取请求;所述第一获取请求由所述客户端响应于接收到启动应用程序中目标功能项的启动指令发送;Receiving a first acquisition request sent by a client to acquire update time information of first configuration data corresponding to the target function item; the first acquisition request is sent by the client in response to receiving a start instruction of the target function item in the start application; 向所述客户端发送第二更新时间信息,以使所述客户端基于从服务端获取的第二更新时间信息与所述第一更新时间信息,确定是否更新本地的所述目标功能项对应的第一配置数据;Sending second update time information to the client, so that the client determines whether to update the first configuration data corresponding to the local target function item based on the second update time information obtained from the server and the first update time information; 其中,第一配置数据包括以下一项或者多项:表征屏幕颜色的数据、表征网络连接的数据、表征窗口大小的数据。The first configuration data includes one or more of the following: data representing screen color, data representing network connection, and data representing window size. 13.一种电子设备,其特征在于,包括:13. An electronic device, comprising: 一个或多个处理器;one or more processors; 存储装置,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现权利要求1-8或者权利要求9-10中任一所述的方法。A storage device having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of claims 1-8 or claims 9-10. 14.一种计算机可读介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-8或者权利要求9-10中任一所述的方法。14. A computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 8 or claims 9 to 10 is implemented.
CN202110021239.7A 2021-01-07 2021-01-07 Application configuration update method, device and electronic device Active CN112732302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110021239.7A CN112732302B (en) 2021-01-07 2021-01-07 Application configuration update method, device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110021239.7A CN112732302B (en) 2021-01-07 2021-01-07 Application configuration update method, device and electronic device

Publications (2)

Publication Number Publication Date
CN112732302A CN112732302A (en) 2021-04-30
CN112732302B true CN112732302B (en) 2024-11-22

Family

ID=75589709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110021239.7A Active CN112732302B (en) 2021-01-07 2021-01-07 Application configuration update method, device and electronic device

Country Status (1)

Country Link
CN (1) CN112732302B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115729583A (en) * 2021-08-31 2023-03-03 广东艾檬电子科技有限公司 Method and system for realizing timely updating of client configuration
CN115134239A (en) * 2022-08-31 2022-09-30 广州市千钧网络科技有限公司 Client configuration method, system, electronic equipment and storage medium
CN115695534A (en) * 2022-09-27 2023-02-03 海尔优家智能科技(北京)有限公司 Target application operating method and device, storage medium and electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062601A (en) * 2018-08-15 2018-12-21 张家港康得新光电材料有限公司 MES system client-side program update method, device, equipment and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050236B (en) * 2014-05-23 2018-05-18 小米科技有限责任公司 Web site contents update reminding method, server and client side
CN109697075A (en) * 2017-10-20 2019-04-30 北京京东尚科信息技术有限公司 File updating method, system and device
CN108710496A (en) * 2018-05-17 2018-10-26 腾讯科技(深圳)有限公司 Configuration update method, device, equipment and the storage medium of application program
CN109101381A (en) * 2018-08-02 2018-12-28 Oppo(重庆)智能科技有限公司 Configuration file update method, system, electronic equipment and storage medium
CN110457335A (en) * 2019-08-09 2019-11-15 重庆紫光华山智安科技有限公司 A kind of identity generation method, device and computer readable storage medium
CN111639319B (en) * 2020-06-02 2023-04-25 抖音视界有限公司 User resource authorization method, device and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062601A (en) * 2018-08-15 2018-12-21 张家港康得新光电材料有限公司 MES system client-side program update method, device, equipment and medium

Also Published As

Publication number Publication date
CN112732302A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN111258670B (en) Method and device for managing component data, electronic equipment and storage medium
CN112732302B (en) Application configuration update method, device and electronic device
CN110516159B (en) Information recommendation method and device, electronic equipment and storage medium
CN111259287B (en) Page content display method and device, electronic equipment and storage medium
CN111246228B (en) Method, device, medium and electronic equipment for updating gift resources of live broadcast room
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN111163324A (en) Information processing method and device and electronic equipment
CN110865846B (en) Application management method, device, terminal, system and storage medium
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium
CN115484246A (en) Page loading method and device, storage medium and electronic equipment
CN111949833B (en) Index construction method, data processing method, device, electronic equipment and medium
CN111262907B (en) Service instance access method, apparatus and electronic device
CN110704760B (en) Data processing method and apparatus
CN111694629A (en) Information display method and device and electronic equipment
CN111596992B (en) Navigation bar display method, device and electronic device
CN112507676B (en) Method and device for generating energy report, electronic equipment and computer readable medium
CN110633324B (en) Method, apparatus, electronic device and computer readable medium for synchronizing data
CN111782549B (en) Test method, device and electronic equipment
CN112732457B (en) Image transmission method, image transmission device, electronic equipment and computer readable medium
CN112311842A (en) Method and device for information interaction
CN113518314B (en) Quick connection method for low-power-consumption Bluetooth and low-power-consumption Bluetooth communication system
CN112799822B (en) Program starting method, device, equipment and medium
CN112422648B (en) Data synchronization method and system
CN117155998A (en) Message pushing method, system, medium and electronic equipment
CN111444457B (en) Data release method and device, storage medium and electronic equipment

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
CP03 Change of name, title or address

Address after: Room 2, room 3, building No. 3, courtyard 30, Shixing Avenue, Shijingshan District, Beijing, Beijing

Patentee after: Douyin Vision Co.,Ltd.

Country or region after: China

Address before: Room 2, room 3, building No. 3, courtyard 30, Shixing Avenue, Shijingshan District, Beijing, Beijing

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address