A method and device for configuring data for an application

By detecting a copy of the application's index file on the user device, determining the target configuration index information, and sending a configuration request to the network device, the problem of extended application startup time and increased server burden on smart mobile devices is solved, reducing server pressure and improving performance. Effects on application startup speed.

CN112241473BActive Publication Date: 2025-01-17SHANG HAI CHEN LIAN KE JI YOU XIAN GONG SI
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010929409.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-07
Publication Date
2025-01-17
Estimated Expiration
2040-09-07

AI Technical Summary

Technical Problem

With the popularity of smart mobile devices, the types and configuration functions of applications have increased, resulting in the extension of application startup time and increasing the burden on application servers.

Method used

Use the user device to detect whether there is a local copy of the application's index file. If it exists, use the configuration index information in the index file copy as the target configuration index information; otherwise, obtain the application's index file and use its initial configuration index information as the target configuration index. information and sends configuration requests to network devices.

Benefits of technology

This effectively prevents the user device from deleting the deleted configuration index information when the application has deleted configuration index information, thereby reducing server pressure and improving application startup speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112241473B_ABST
    Figure CN112241473B_ABST
Patent Text Reader

Abstract

The purpose of this application is to provide a method and device for configuring data for an application, the method comprising: in response to a user's startup operation on an application, detecting whether there is a copy of the index file of the application locally on the user device; if so, determining the copy of the configuration index information in the copy of the index file as the target configuration index information; otherwise, obtaining the index file of the application, determining the target configuration index information from the initial configuration index information in the index file; sending a configuration request to a corresponding network device, wherein the configuration request includes the target configuration index information. This reduces the pressure on the server and also increases the speed of application startup.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a technology for configuring data for an application. Background Art

[0002] Applications mainly refer to software installed on smart mobile devices (such as smartphones, tablets, etc.) to improve the deficiencies and personalization of the original system. They are the main means for smart mobile devices to improve their functions and provide users with a richer experience.

[0003] With the popularity of smart mobile devices, there are more and more types of applications. In addition, the configuration functions of each application are also increasing. On the one hand, the increasing number of application configuration functions can improve the functions of the application and enhance the user experience; on the other hand, it also increases the startup time of the application and increases the burden on the application server. Summary of the invention

[0004] An object of the present application is to provide a method and device for configuring data for an application.

[0005] According to one aspect of the present application, a method for configuring data for an application is provided, which is applied to a user equipment end, and the method includes:

[0006] In response to a user's start-up operation on an application, detecting whether a copy of the index file of the application exists locally on the user device;

[0007] If it exists, determining the copy of the configuration index information in the copy of the index file as the target configuration index information; otherwise, obtaining the index file of the application, and determining the target configuration index information from the initial configuration index information in the index file;

[0008] A configuration request is sent to a corresponding network device, wherein the configuration request includes the target configuration index information.

[0009] According to another aspect of the present application, a method for configuring data for an application is provided, which is applied to a network device, and the method includes:

[0010] Receiving a configuration request for an application sent by a user device, wherein the configuration request includes target configuration index information, wherein the configuration request is sent by the user device in response to a user's start-up operation of the application by detecting whether a copy of the index file of the application exists locally on the user device;

[0011] Acquire target configuration data and target version information of the target configuration data according to the target configuration index information;

[0012] Sending configuration result information to the user equipment, wherein the configuration result information includes the target configuration data and the target version information.

[0013] According to one aspect of the present application, a user equipment for configuring data for an application is provided, the device comprising:

[0014] A module, configured to detect whether a copy of the index file of the application exists locally on the user device in response to a user starting operation of the application;

[0015] Module one or two, used for determining the configuration index information copy in the index file copy as the target configuration index information if it exists; otherwise, obtaining the index file of the application, and determining the target configuration index information with the initial configuration index information in the index file;

[0016] A third module is used to send a configuration request to a corresponding network device, wherein the configuration request includes the target configuration index information.

[0017] According to another aspect of the present application, a network device for configuring data for an application is provided, the device comprising:

[0018] Module 21, configured to receive a configuration request for an application sent by a user device, wherein the configuration request includes target configuration index information, wherein the configuration request is sent by the user device in response to a user's start-up operation of the application by detecting whether a copy of the index file of the application exists locally on the user device;

[0019] Module 22, used to obtain target configuration data and target version information of the target configuration data according to the target configuration index information;

[0020] Module 23 is used to send configuration result information to the user equipment, wherein the configuration result information includes the target configuration data and the target version information.

[0021] According to another aspect of the present application, a method for configuring data for an application is provided, the method comprising:

[0022] In response to a user's start-up operation of an application, the user equipment detects whether there is a copy of the index file of the application locally on the user equipment; if so, determines the copy of the configuration index information in the copy of the index file as the target configuration index information; otherwise, obtains the index file of the application, determines the target configuration index information with the initial configuration index information in the index file; sends a configuration request to the corresponding network device, wherein the configuration request includes the target configuration index information;

[0023] The network device receives the configuration request, obtains target configuration data and target version information of the target configuration data according to the target configuration index information; sends configuration result information to the user equipment, wherein the configuration result information includes the target configuration data and the target version information;

[0024] The user equipment receives the configuration result information.

[0025] According to one aspect of the present application, a device for configuring data for an application is provided, wherein the device includes:

[0026] Processor; and

[0027] A memory arranged to store computer executable instructions which, when executed, cause the processor to perform the operations of any of the methods described above.

[0028] According to one aspect of the present application, a computer-readable medium storing instructions is provided, wherein when the instructions are executed, the system performs the operation of any of the methods described above.

[0029] Compared with the prior art, the present application responds to the user's startup operation on the application, and detects whether there is a local index file copy through the user device. If it exists, the configuration index information copy in the index file copy is determined as the target configuration index information. Otherwise, the index file of the application is obtained, the initial configuration index information in the index file is used to determine the target configuration index information, and the target configuration index information is sent to the corresponding network device. The present application records the changes (for example, addition or deletion) of the configuration index information of the application through the index file copy. In other words, the configuration index information copy in the index file copy is based on the addition or deletion of the configuration index information of the application by the network device, and the corresponding configuration index information copy is added or deleted in time. When the user device has a local index file copy, the configuration index information copy in the index file copy is determined as the target configuration index information, and a configuration request is sent to the network device, which can avoid the user device from deleting the deleted configuration index information accordingly when the application has deleted configuration index information. This can reduce the pressure on the server and also improve the speed of application startup. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0031] Figure 1 A system topology diagram for configuring data for an application according to an embodiment of the present application is shown;

[0032] Figure 2 A flowchart of a system method for configuring data for an application according to an embodiment of the present application is shown;

[0033] Figure 3 A flow chart of a method for configuring data for an application according to another embodiment of the present application is shown;

[0034] Figure 4 A flow chart of a method for configuring data for an application according to yet another embodiment of the present application is shown;

[0035] Figure 5 A flow chart of a method for configuring data for an application according to an embodiment of the present application is shown;

[0036] Figure 6 A device structure diagram of a user device for configuring data for an application according to an embodiment of the present application is shown;

[0037] Figure 7 A device structure diagram of a network device for configuring data for an application according to an embodiment of the present application is shown;

[0038] Figure 8 An exemplary system is shown that can be used to implement the various embodiments described in this application.

[0039] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION

[0040] The present application is described in further detail below in conjunction with the accompanying drawings.

[0041] In a typical configuration of the present application, the terminal, the device of the service network and the trusted party all include one or more processors (eg, a central processing unit (CPU)), an input / output interface, a network interface and a memory.

[0042] Memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash memory. Memory is an example of a computer-readable medium.

[0043] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, Phase-Change Memory (PCM), Programmable Random Access Memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of random access memory (RAM), Read-Only Memory (ROM), Electrically-Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0044] The devices referred to in this application include but are not limited to terminals, network devices, or devices formed by integrating terminals and network devices through a network. The terminal includes but is not limited to any mobile electronic product that can interact with a user (for example, interact with a user through a touchpad), such as a smart phone, a tablet computer, etc. The mobile electronic product can use any operating system, such as an Android operating system, an iOS operating system, etc. Among them, the network device includes an electronic device that can automatically perform numerical calculations and information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a programmable logic device (PLD), a field programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc. The network device includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud composed of multiple servers; here, the cloud is composed of a large number of computers or network servers based on cloud computing (Cloud Computing), wherein cloud computing is a type of distributed computing, a virtual supercomputer composed of a group of loosely coupled computer sets. The network includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, VPN network, wireless self-organizing network (Ad Hoc network), etc. Preferably, the device may also be a program running on the terminal, network device, or a device formed by integrating the terminal and network device, network device, touch terminal, or network device and touch terminal through a network.

[0045] Of course, those skilled in the art should understand that the above-mentioned devices are only examples, and other existing or future devices that are applicable to the present application should also be included in the scope of protection of the present application and are included here by reference.

[0046] In the description of the present application, “plurality” means two or more, unless otherwise clearly and specifically defined.

[0047] Here, the "configuration index information", "configuration index information copy", "initial configuration index information" and "target configuration index information" described in this application are used to pull corresponding configuration data. Among them, the "target configuration index information" is used to pull the corresponding target configuration data from the corresponding network device.

[0048] Figure 1A system topology diagram for configuring data for an application according to an embodiment of the present application is shown. The system includes a user device and a network device, wherein the user device and the network device communicate with each other via a wired or wireless method. The user device includes but is not limited to a mobile phone, a tablet computer, a computer, etc.

[0049] Figure 2 A flowchart of a system method for configuring data for an application according to an embodiment of the present application is shown. The method includes:

[0050] In response to a user's start-up operation of an application, the user equipment detects whether there is a copy of the index file of the application locally on the user equipment; if so, determines the copy of the configuration index information in the copy of the index file as the target configuration index information; otherwise, obtains the index file of the application, determines the target configuration index information with the initial configuration index information in the index file; sends a configuration request to the corresponding network device, wherein the configuration request includes the target configuration index information;

[0051] The network device receives the configuration request, obtains target configuration data and target version information of the target configuration data according to the target configuration index information; sends configuration result information to the user equipment, wherein the configuration result information includes the target configuration data and the target version information;

[0052] The user equipment receives the configuration result information.

[0053] Figure 3 A flow chart of a method for configuring data for an application according to an embodiment of the present application is shown. The method includes step S11, step S12 and step S13.

[0054] Specifically, in step S11, the user device detects whether there is a local copy of the index file of the application in response to the user's startup operation on the application. In some embodiments, the index file copy includes but is not limited to one or more copies of configuration index information. For example, the user device monitors the user's startup operation on the application, and when the user device detects the startup operation on the application, the user device detects whether there is a local copy of the index file of the application. In some embodiments, there is a mapping relationship between the index file copy and the application. For example, the user device queries and detects whether there is a local copy of the index file of the application on the user device based on the application identification information of the application.

[0055] In step S12, if it exists, the copy of the configuration index information in the copy of the index file is determined as the target configuration index information; otherwise, the index file of the application is obtained, and the initial configuration index information in the index file is determined as the target configuration index information. In some embodiments, the index file includes one or more initial configuration index information. For example, when the user device downloads and installs the application, it obtains one or more initial configuration index information of the application from the corresponding network device, and establishes the index file locally, and records the one or more initial configuration index information in the index file. In some embodiments, if the copy of the index file exists locally on the user device, the copy of the configuration index information in the copy of the index file is determined as the target configuration index information; if the copy of the index file does not exist locally on the user device, the index file of the application is obtained, and the initial configuration index information in the index file is determined as the target configuration index information. In some embodiments, the index file of the application is unchanged. For example, when the application is downloaded and installed, the index file is established, and the initial configuration index information of the application is recorded in the index file. In some embodiments, the index file copy changes dynamically. For example, the index file copy is dynamically updated based on the configuration result information returned by the network device. For the establishment and update of the index file copy, please refer to the specific embodiments below.

[0056] In step S13, the user equipment sends a configuration request to the corresponding network equipment, wherein the configuration request includes the target configuration index information. In some embodiments, after the user equipment determines the target configuration index information based on the index file or the index file copy of the application, it sends a configuration request to the network equipment to request the network equipment to return the corresponding configuration result information (for example, the configuration result information includes the target configuration data for the user equipment to start the application).

[0057] For example, an application V is installed in a user device. While downloading and installing the application V, the user device caches the initial configuration index information (for example, key1, key2, key3) used to pull the configuration data of the application V, and creates an index file V of the application V, and records the key1, key2, key3 in the index file V. Subsequently, the user device monitors the user's startup operation on the application V. When the startup operation is detected, the user device detects whether there is a local index file copy V of the application V. If so, the user device determines the configuration index information copy in the index file copy as the target configuration index information; if not, the index file V of the application is obtained, and the initial configuration index information (for example, key1, key2, key3) in the index file V is used to determine the target configuration index information. A configuration request is sent to the corresponding network device, wherein the configuration request includes the target configuration index information. In this embodiment, each time an application is started, the user device determines the target configuration index information according to the local actual situation (for example, according to the index file copy or the index file), and sends the target configuration index information to the network device. In some embodiments, the index file copy is dynamically updated based on the addition or deletion of the application's configuration index information, thereby avoiding the user device requesting the network device to query and return unnecessary configuration data, thereby reducing the pressure on the network device and improving the startup speed of the application.

[0058] In some embodiments, step S11 includes step S111 (not shown) and step S112.

[0059] In step S111, the user device detects whether a configuration file of the application exists locally on the user device in response to the user's startup operation on the application, wherein the configuration file includes configuration data of the application. In some embodiments, the configuration file includes configuration data of the application, and the configuration data is used to start the application. In some embodiments, the user device detects whether a configuration file of the application exists locally on the user device in response to the user's startup operation on the application.

[0060] In step S112, if it exists, the user device starts the application by reading the configuration data; otherwise, it detects whether there is a copy of the index file of the application locally on the user device. In some embodiments, if the configuration file exists locally on the user device, the user device can directly read the configuration data in the configuration file to start the application; if the configuration file does not exist locally on the user device, the user device detects whether there is a copy of the index file of the application locally. In this embodiment, in order to further reduce the pressure on network devices and increase the startup speed of applications, when the configuration file of the application exists locally on the user device, the user device can directly start the application based on the configuration file.

[0061] In some embodiments, the step S112 includes: if it exists, sending a version query request about the configuration file to the network device, wherein the version query request includes the version information of the configuration data in the configuration file; receiving the version query result information about the configuration file returned by the network device; if the version query result information includes version update information, detecting whether there is a copy of the index file of the application locally in the user device; otherwise, starting the application by reading the configuration data in the configuration file. In some embodiments, in order to ensure that the version of the configuration file local to the user device is the latest, when the user device detects that the configuration file exists locally, it sends a version query request about the configuration file to the corresponding network device to request the network device to query whether the configuration data in the configuration file stored locally by the user device has been updated. In some embodiments, if the version query result information returned by the network device includes version update information, the user device detects whether there is a copy of the index file of the application locally; if the version query result information returned by the network device includes no version update information, the user device can directly read the configuration data in the configuration file to start the application. In this embodiment, in order to avoid using an expired version of configuration data to start the application, when the user device detects that a configuration file of the application exists locally, it first sends a version query request to the network device. When the version query result returned by the network device includes no version update information, the application is started by reading the configuration data in the local configuration file.

[0062] In some embodiments, the method further includes step S14 (not shown), in which the user device receives the configuration result information returned by the network device based on the configuration request, wherein the configuration result information includes the target configuration data and the target version information of the target configuration data. In some embodiments, the network device obtains the target configuration data and the target version information of the target configuration data based on the target configuration index information in the configuration request sent by the user device, and sends the target configuration data and the target version information of the target configuration data to the user device. In some embodiments, the user device starts the application by reading the target configuration data.

[0063] In some embodiments, the user device will establish or update the index file copy based on the configuration result information. For example, if the index file copy does not exist in the user device, the user device will determine whether it is necessary to establish the index file copy based on the configuration result information, and if necessary, the user device will establish the index file copy; for another example, if the index file copy already exists in the user device, the user device will determine whether it is necessary to update the index file copy based on the configuration result information, and if necessary, the user device will update the index file copy in a timely manner. In this embodiment, the index file copy is in a dynamically changing state (for example, established or dynamically updated) based on the configuration result information returned by the network device.

[0064] In some embodiments, the configuration result information also includes the target configuration index information that has been deleted, wherein the target configuration index information that has been deleted includes deletion mark information; the method further includes step S15 (not shown), in which the user equipment establishes or updates the index file copy according to the target configuration index information that has been deleted. For example, the configuration result information returned by the network device includes the target configuration index information that has been deleted, and the user equipment establishes or updates the index file copy based on the target configuration index information that has been deleted. In some embodiments, the deletion mark information includes but is not limited to identification information such as "-1". For example, the network device inquires that a key (for example, key4) in the target configuration index information sent by the user device has been deleted, and the configuration result information sent by the network device to the user device also includes the target configuration index information that has been deleted, wherein the target configuration index information that has been deleted includes deletion mark information, for example, "key4-1". The user equipment establishes or updates the index file copy according to the deleted target configuration index information.

[0065] In some embodiments, the step S15 includes: if the index file copy of the application does not exist locally on the user device, create an index file copy of the application, wherein the index file copy includes all initial configuration index information in the index file, and the initial configuration index information is used as a configuration index information copy in the index file copy; search for a corresponding configuration index information copy according to the deleted target configuration index information; and delete the configuration index information copy from the index file copy. For example, when the configuration result information received by the user device also includes the deleted target configuration index information, and the index file copy does not exist locally on the user device, the user device creates the index file copy. In some embodiments, the user device creates an index file of the application when downloading and installing the application, and records the initial configuration index information used to pull the configuration data of the initial version of the application in the index file. When the user device initially creates the index file copy, all the initial configuration index information in the index file is recorded in the created index file copy as a configuration index information copy. Further, the user device searches for a corresponding configuration index information copy according to the deleted target configuration index information; and deletes the configuration index information copy from the index file copy. For example, the index file includes initial configuration index information key1, key2, key3. There is no index file copy in the user device, and the user device sends the key1, key2, key3 as target configuration index information to the network device. The configuration result information sent by the network device received by the user device includes "key3-1", and the user device establishes an index file copy based on the configuration result information. For example, the user device establishes an index file copy and records the key1, key2, key3 as configuration index information copies in the index file copy. The user device searches for the corresponding configuration index information copy key3 based on "key3-1" in the configuration result information it received, and deletes key3 from the index file copy.

[0066] In some embodiments, step S15 includes: if the user device already has a local index file copy of the application, updating the index file copy of the application, wherein the index file copy includes a configuration index information copy; searching for a corresponding configuration index information copy according to the deleted target configuration index information; deleting the configuration index information copy from the index file copy. For example, when the configuration result information received by the user device also includes the deleted target configuration index information, and the user device already has a local index file copy, the user device updates the index file copy. The user device searches for a corresponding configuration index information copy according to the deleted target configuration index information; and deletes the configuration index information copy from the index file copy. For example, the index file copy includes configuration index information copies key1, key2, and key3. The configuration result information received by the user device from the network device includes "key3-1", and the user device updates the index file copy based on the configuration result information. For example, the user device searches for a corresponding configuration index information copy key3 based on "key3-1" in the configuration result information it receives, and deletes key3 from the index file copy.

[0067] In some embodiments, the configuration result information also includes newly added configuration index information; the method further includes step S16 (not shown), in which the user equipment creates or updates the index file copy according to the newly added configuration index information. For example, the configuration result information returned by the network device includes the newly added configuration index information, and the user equipment creates or updates the index file copy based on the newly added configuration index information.

[0068] In some embodiments, the step S16 includes: if the index file copy of the application does not exist locally on the user device, creating an index file copy of the application, wherein the index file copy includes all initial configuration index information in the index file, wherein the initial configuration index information is used as a configuration index information copy in the index file copy; adding the newly added configuration index information to the index file copy as a new configuration index information copy. For example, when the configuration result information received by the user device also includes the newly added configuration index information, and the index file copy does not exist locally on the user device, the user device creates the index file copy. In some embodiments, the user device creates the index file of the application when downloading and installing the application, and records the initial configuration index information used to pull the configuration data of the initial version of the application in the index file. When the user device initially creates the index file copy, all the initial configuration index information in the index file is recorded in the created index file copy as a configuration index information copy. Further, the user device adds the newly added configuration index information in the configuration result information to the index file copy as a new configuration index information copy. For example, the index file includes initial configuration index information key1, key2, key3. There is no index file copy in the user device, and the user device sends key1, key2, key3 as target configuration index information to the network device. When the user device receives the configuration result information sent by the network device including newly added configuration index information, such as "key4", the user device adds the newly added configuration index information to the index file copy as a new configuration index information copy. For example, the index file copy established by the user device includes configuration index information copies key1, key2, key3, key4.

[0069] In some embodiments, step S16 includes: if the user device has a local copy of the index file of the application, updating the copy of the index file of the application; adding the newly added configuration index information to the copy of the index file as a new copy of the configuration index information. For example, when the configuration result information received by the user device also includes the newly added configuration index information, and the copy of the index file already exists locally in the user device, the user device updates the copy of the index file. For example, the copy of the index file includes copies of configuration index information key1, key2, and key3. The user device receives the configuration result information sent by the network device, which includes the newly added configuration index information "key4", and the user device updates the copy of the index file based on the configuration result information. For example, the user device adds the key4 to the copy of the index file to update the copy of the index file, for example, the updated copy of the index file includes copies of configuration index information key1, key2, key3, and key4.

[0070] Figure 4 A flow chart of a method for configuring data for an application according to another embodiment of the present application is shown. The method includes step S21, step S22, and step S23.

[0071] Specifically, in step S21, the network device receives a configuration request about an application sent by a user device, wherein the configuration request includes target configuration index information, wherein the configuration request is sent by the user device in response to a user's startup operation on the application by detecting whether a copy of the index file of the application exists locally on the user device. In some embodiments, the index file copy includes but is not limited to one or more copies of configuration index information. For example, the user device monitors the user's startup operation on the application, and when the user device detects the startup operation on the application, the user device detects whether a copy of the index file of the application exists locally. In some embodiments, there is a mapping relationship between the index file copy and the application, for example, the user device queries and detects whether a copy of the index file of the application exists locally on the user device based on the application identification information of the application. If the index file copy exists locally on the user device, the user device sends the configuration request to the network device. In some embodiments, the target configuration index information is used to pull corresponding target configuration data.

[0072] In step S22, the network device obtains the target configuration data and the target version information of the target configuration data according to the target configuration index information. In some embodiments, the network device obtains the corresponding target configuration data and the target version information (e.g., 1.0, 2.0...) of the target configuration data according to the target configuration index information. For example, the network device pulls the target configuration data of the target configuration index information from the application database of the application according to the target configuration index information, and obtains the target version information of the target configuration data.

[0073] In step S23, the network device sends configuration result information to the user device, wherein the configuration result information includes the target configuration data and the target version information. In some embodiments, the network device sends the target configuration data and the target version information of the target configuration data as configuration result information to the user device. In some embodiments, the target configuration data is used by the user device to start the application.

[0074] In some embodiments, the method further includes step S24 (not shown), in which the network device receives a version query request for the configuration file of the application sent by the user device, wherein the version query request includes the version information of the configuration file; obtains the latest version information of the application, and detects whether the configuration file of the application has been updated by comparing the latest version information with the version information in the version query request; returns version query result information about the configuration file to the user device, wherein the version query result information includes version update information or no version update information. In some embodiments, the network device also receives a version query request for the configuration file cached locally sent by the user device, wherein the version query request includes the version information of the configuration file, the network device queries and obtains the latest version information of the application, and detects whether the version information of the configuration file cached locally by the user device is the latest version by comparing the latest version information with the version information received by the user device. Further, the network device returns the version query result information to the user device. For example, if the version information of the configuration file is the same as the latest version information, the version query result information returned by the network device to the user device includes no version update information; for another example, if the version information of the configuration file is different from the latest version information, the version query result information returned by the network device to the user device includes version update information.

[0075] In some embodiments, the configuration request includes one or more target configuration index information; the step S22 includes step S221 (not shown), step S222 and step S223. In step S221, the network device obtains all the latest configuration index information of the application. In step S222, the network device detects whether the number of the one or more target configuration index information has changed by comparing the one or more target configuration index information with the latest configuration index information. In step S223, the network device obtains the target configuration data and the target version information of the target configuration data according to the detection result. In some embodiments, the configuration request sent by the user device includes one or more target configuration index information (for example, key1, key2, key3), and after receiving the configuration request, the network device obtains all the latest configuration index information of the application (for example, the network device obtains all the latest configuration index information of the application from the application database of the application). Further, the network device detects whether the number of the one or more target configuration index information has changed (for example, deleted or added) by comparing the one or more target configuration index information with the latest configuration index information. Furthermore, the network device obtains target configuration data and target version information of the target configuration data according to a result of the comparison test.

[0076] In some embodiments, the detection result includes: there is a target configuration index information that has been deleted in the one or more target configuration index information, and the step S223 includes: the network device removes the deleted target configuration index information from the one or more target configuration index information; the network device obtains the target configuration data and the target version information of the target configuration data according to the one or more target configuration index information after removal. For example, the result of the comparison detection of the network device includes that there is a target configuration index information that has been deleted in the one or more target configuration index information. For example, the latest configuration index information obtained by the network device includes key1 and key2; and the target configuration index information sent by the user device includes key1, key2, and key3, then it can be determined that there is a target configuration index information (for example, key3) that has been deleted in the one or more target configuration index information. Further, the network device removes the deleted target configuration index information from the one or more target configuration index information, and pulls the target configuration data according to the removed target configuration index information, and obtains the target version information of the target configuration data. For example, the network device only pulls the configuration data of key1 and key2 as the target configuration data.

[0077] In some embodiments, the step S223 further includes: the network device generates deletion mark information of the deleted target configuration index information; the step S23 includes: the network device sends configuration result information to the user device, wherein the configuration result information includes the target configuration data, the target version information and the deleted target configuration index information, and the deleted target configuration index information includes deletion mark information. In some embodiments, when the target configuration index information sent by the user device contains the deleted target configuration index information, the network device promptly "notifies" the user device so that the user device can establish or update a configuration index file copy locally. For example, the network device detects that key3 has been deleted by comparison, and the network device performs deletion mark information on key3 (for example, "-1" deletion mark information). Further, the configuration result information sent by the network device to the user device includes the target configuration data, the target version information and the deleted target configuration index information pulled after removing key3, and the deleted target configuration index information includes deletion mark information (for example, "key3-1").

[0078] In some embodiments, the detection result includes: the application has newly added configuration index information, and the step S22 includes: the network device adds the newly added configuration index information to the one or more target configuration index information; the network device obtains the target configuration data and the target version information of the target configuration data according to the one or more target configuration index information after adding. In some embodiments, the result of the comparison detection of the network device is that the application has newly added configuration index information. For example, the latest configuration index information obtained by the network device includes key1, key2, key3; and the target configuration index information sent by the user device includes key1, key2, key3, key4. It can be determined that the application has newly added key4. The network device adds the newly added configuration index information to the one or more target configuration index information, and pulls the target configuration data according to the added target configuration index information, and obtains the target version information of the target configuration data. For example, the network device pulls the configuration data of key1, key2, key3, and key4 as the target configuration data.

[0079] In some embodiments, the step S23 includes: the network device sends configuration result information to the user device, wherein the configuration result information includes the target configuration data, the target version information, and the newly added configuration index information. In some embodiments, when the target configuration index information sent by the user device contains newly added configuration index information, the network device promptly "notifies" the user device so that the user device can locally establish or update a copy of the configuration index file. For example, the network device detects that the configuration index information key4 is newly added by comparison, and the configuration result information sent by the network device to the user device includes not only the target configuration data and the target version information, but also the newly added configuration index information (for example, "key4").

[0080] Figure 5 A flow chart of a method for configuring data for an application according to an embodiment of the present application is shown. Figure 5 When starting an APP (for example, the application), first determine whether there is a configuration data file (for the convenience of explanation, tentatively referred to as a data file, for example, the "configuration file") in the hardware storage device (for example, the local user device). If it exists, read the data file into the system memory for use by the APP. At the same time, obtain the version of the data file, and go to the server (for example, the network device) to request whether the version has been updated. If it is the latest, end the process. If the data file is not the latest, determine whether there is a copy of the configuration index file in the hardware storage device (for example, the copy of the index file, for the convenience of explanation, tentatively referred to as a keyCopy file). If the keyCopy file exists, read the configuration key of the keyCopy file (for example, the copy of the configuration index information), and request the server to send the full amount of configuration data based on the configuration key, and save it as a data file. At the same time, save the version number of the data file for next use. At the same time, determine whether there are expired configuration keys based on the data sent down. If there are expired keys, delete them from the keyCopy file. This can greatly save the client's reading time, optimize the startup speed, and reduce the server's query for invalid keys, thereby reducing the query pressure on the server and the amount of data sent down.

[0081] If keyCopy does not exist, read the original configuration file (for example, the configuration index file, tentatively referred to as the key file here), and request the server to send the full amount of configuration data based on the configuration key (for example, the initial configuration index information), and save it as a data file, and save the version number of the data file for next use. At the same time, determine whether there is an expired configuration key based on the data sent, and if there is an expired key, generate a new keyCopy file for next use. This can greatly save the client's reading time and optimize the startup speed, and can also reduce the server's query for invalid keys, reduce the query pressure on the server, and reduce the amount of data sent. In this embodiment, a layered caching mechanism is used, which can greatly reduce the pressure on the client and server, and can readjust the number of configuration keys based on the data sent by the server, which is equivalent to a two-way interactive configuration.

[0082] Figure 6 A device structure diagram of a user device for configuring data for an application according to an embodiment of the present application is shown, and the device includes a first module, a second module, and a third module.

[0083] Specifically, a module is used to detect whether a copy of the index file of the application exists locally on the user device in response to a user's startup operation on the application. In some embodiments, the copy of the index file includes but is not limited to one or more copies of configuration index information. For example, the user device monitors the user's startup operation on the application, and when the user device detects the startup operation on the application, the user device detects whether a copy of the index file of the application exists locally. In some embodiments, there is a mapping relationship between the copy of the index file and the application. For example, the user device queries and detects whether a copy of the index file of the application exists locally on the user device based on the application identification information of the application.

[0084] Module one or two is used to determine the copy of the configuration index information in the copy of the index file as the target configuration index information if it exists; otherwise, obtain the index file of the application and determine the target configuration index information with the initial configuration index information in the index file. In some embodiments, the index file includes one or more initial configuration index information. For example, when the user device downloads and installs the application, it obtains one or more initial configuration index information of the application from the corresponding network device, establishes the index file locally, and records the one or more initial configuration index information in the index file. In some embodiments, if the copy of the index file exists locally on the user device, the copy of the configuration index information in the copy of the index file is determined as the target configuration index information; if the copy of the index file does not exist locally on the user device, the index file of the application is obtained, and the initial configuration index information in the index file is determined as the target configuration index information. In some embodiments, the index file of the application is unchanged. For example, when the application is downloaded and installed, the index file is established, and the initial configuration index information of the application is recorded in the index file. In some embodiments, the index file copy changes dynamically. For example, the index file copy is dynamically updated based on the configuration result information returned by the network device. For the establishment and update of the index file copy, please refer to the specific embodiments below.

[0085] A module 3 is used to send a configuration request to a corresponding network device, wherein the configuration request includes the target configuration index information. In some embodiments, after the user device determines the target configuration index information based on the index file or the index file copy of the application, it sends a configuration request to the network device to request the network device to return the corresponding configuration result information (for example, the configuration result information includes the target configuration data for the user device to start the application).

[0086] For example, an application V is installed in a user device. While downloading and installing the application V, the user device caches the initial configuration index information (for example, key1, key2, key3) used to pull the configuration data of the application V, and creates an index file V of the application V, and records the key1, key2, key3 in the index file V. Subsequently, the user device monitors the user's startup operation on the application V. When the startup operation is detected, the user device detects whether there is a local index file copy V of the application V. If so, the user device determines the configuration index information copy in the index file copy as the target configuration index information; if not, the index file V of the application is obtained, and the initial configuration index information (for example, key1, key2, key3) in the index file V is used to determine the target configuration index information. A configuration request is sent to the corresponding network device, wherein the configuration request includes the target configuration index information. In this embodiment, each time an application is started, the user device determines the target configuration index information according to the local actual situation (for example, according to the index file copy or the index file), and sends the target configuration index information to the network device. In some embodiments, the index file copy is dynamically updated based on the addition or deletion of the application's configuration index information, thereby avoiding the user device requesting the network device to query and return unnecessary configuration data, thereby reducing the pressure on the network device and improving the startup speed of the application.

[0087] In some embodiments, the one-to-one module includes a one-to-one module (not shown) and a one-to-two module.

[0088] A module 111 is used to detect whether a configuration file of the application exists locally on the user device in response to the user's start-up operation on the application, wherein the configuration file includes configuration data of the application. A module 112 is used to, if it exists, the user device starts the application by reading the configuration data; otherwise, detect whether a copy of the index file of the application exists locally on the user device.

[0089] Here, the specific implementations corresponding to the module 111 and the module 112 are the same as or similar to the specific implementations of step S111 and step S112, and are therefore not described in detail and are included herein by reference.

[0090] In some embodiments, the module 112 is used to send a version query request about the configuration file to the network device, if any, wherein the version query request includes version information of the configuration data in the configuration file; receive version query result information about the configuration file returned by the network device; if the version query result information includes version update information, detect whether there is a copy of the index file of the application locally on the user device; otherwise, start the application by reading the configuration data in the configuration file.

[0091] Here, the specific implementation corresponding to the 112 modules is the same as or similar to the specific implementation of step S112, and thus will not be described in detail but is included herein by reference.

[0092] In some embodiments, the device also includes a module 14 (not shown), which is used to receive configuration result information returned by the network device based on the configuration request, wherein the configuration result information includes the target configuration data and target version information of the target configuration data.

[0093] Here, the specific implementation corresponding to the one-fourth module is the same as or similar to the specific implementation of step S14, and thus will not be described in detail and is included herein by reference.

[0094] In some embodiments, the configuration result information also includes deleted target configuration index information, wherein the deleted target configuration index information includes deletion mark information; the device also includes a module 15 (not shown), and the module 15 is used to establish or update the index file copy based on the deleted target configuration index information.

[0095] Here, the specific implementation corresponding to the one-five modules is the same as or similar to the specific implementation of step S15, and is therefore not repeated here and is included here by reference.

[0096] In some embodiments, the one-five module is used to: if the index file copy of the application does not exist locally on the user device, create an index file copy of the application, wherein the index file copy includes all initial configuration index information in the index file, and the initial configuration index information is used as a configuration index information copy in the index file copy; search for the corresponding configuration index information copy according to the deleted target configuration index information; and delete the configuration index information copy from the index file copy.

[0097] Here, the specific implementation corresponding to the one-five modules is the same as or similar to the specific implementation of step S15, and is therefore not repeated here and is included here by reference.

[0098] In some embodiments, the one-five module is used to: if an index file copy of the application already exists locally on the user device, update the index file copy of the application, wherein the index file copy includes a configuration index information copy; search for a corresponding configuration index information copy based on the deleted target configuration index information; and delete the configuration index information copy from the index file copy.

[0099] Here, the specific implementation corresponding to the one-five modules is the same as or similar to the specific implementation of step S15, and is therefore not repeated here and is included here by reference.

[0100] In some embodiments, the configuration result information also includes newly added configuration index information; the device also includes a module (not shown), and the module is used to create or update the index file copy according to the newly added configuration index information.

[0101] Here, the specific implementation corresponding to the one-six modules is the same as or similar to the specific implementation of step S16, and thus will not be described in detail and is included herein by reference.

[0102] In some embodiments, the one-six modules are used to: if an index file copy of the application does not exist locally on the user device, create an index file copy of the application, wherein the index file copy includes all initial configuration index information in the index file, wherein the initial configuration index information is used as a configuration index information copy in the index file copy; and add the newly added configuration index information to the index file copy as a new configuration index information copy.

[0103] Here, the specific implementation corresponding to the one-six modules is the same as or similar to the specific implementation of step S16, and thus will not be described in detail and is included herein by reference.

[0104] In some embodiments, the one-six modules are used to: if an index file copy of the application exists locally on the user device, update the index file copy of the application; add the newly added configuration index information to the index file copy as a new configuration index information copy.

[0105] Here, the specific implementation corresponding to the one-six modules is the same as or similar to the specific implementation of step S16, and thus will not be described in detail and is included herein by reference.

[0106] Figure 7 A device structure diagram of a network device for configuring data for an application according to another embodiment of the present application is shown, wherein the device includes a 21 module, a 22 module, and a 23 module.

[0107] Specifically, module 21 is used to receive a configuration request about an application sent by a user device, wherein the configuration request includes target configuration index information, wherein the configuration request is sent by the user device in response to a user's startup operation on the application by detecting whether a copy of the index file of the application exists locally on the user device. In some embodiments, the index file copy includes but is not limited to one or more copies of configuration index information. For example, the user device monitors the user's startup operation on the application, and when the user device detects the startup operation on the application, the user device detects whether a copy of the index file of the application exists locally. In some embodiments, there is a mapping relationship between the index file copy and the application, for example, the user device queries and detects whether a copy of the index file of the application exists locally on the user device based on the application identification information of the application. If the index file copy exists locally on the user device, the user device sends the configuration request to the network device. In some embodiments, the target configuration index information is used to pull the corresponding target configuration data.

[0108] Module 22 is used to obtain target configuration data and target version information of the target configuration data according to the target configuration index information. In some embodiments, the network device obtains the corresponding target configuration data and target version information (e.g., 1.0, 2.0...) of the target configuration data according to the target configuration index information. For example, the network device pulls the target configuration data of the target configuration index information from the application database of the application according to the target configuration index information, and obtains the target version information of the target configuration data.

[0109] Module 23 is used to send configuration result information to the user equipment, wherein the configuration result information includes the target configuration data and the target version information. In some embodiments, the network device sends the target configuration data and the target version information of the target configuration data as configuration result information to the user equipment. In some embodiments, the target configuration data is used by the user equipment to start the application.

[0110] In some embodiments, the device also includes a 24 module (not shown), which is used to receive a version query request for a configuration file of the application sent by the user device, wherein the version query request includes version information of the configuration file; obtain the latest version information of the application, and detect whether the configuration file of the application has been updated by comparing the latest version information with the version information in the version query request; and return version query result information about the configuration file to the user device, wherein the version query result information includes version update information or no version update information.

[0111] Here, the specific implementation corresponding to the 24 module is the same as or similar to the specific implementation of step S24, and is therefore not repeated here and is included here by reference.

[0112] In some embodiments, the configuration request includes one or more target configuration index information; the 22 module includes a 221 module (not shown), a 222 module, and a 223 module. The 221 module is used to obtain all the latest configuration index information of the application. The 222 module is used to detect whether there is a change in the number of the one or more target configuration index information by comparing the one or more target configuration index information with the latest configuration index information. The 223 module is used to obtain the target configuration data and the target version information of the target configuration data according to the detection result.

[0113] Here, the specific implementations corresponding to the 221 module, the 222 module and the 223 module are the same as or similar to the specific implementations of step S221, step S222 and step S223, and are therefore not repeated here and are included herein by reference.

[0114] In some embodiments, the detection result includes: there is deleted target configuration index information in the one or more target configuration index information, and the 223 module is used to remove the deleted target configuration index information from the one or more target configuration index information; the network device obtains the target configuration data and the target version information of the target configuration data based on the one or more target configuration index information after removal.

[0115] Here, the specific implementation corresponding to the 223 module is the same as or similar to the specific implementation of step S223, and is therefore not repeated here and is included here by reference.

[0116] In some embodiments, the 223 module is also used to: generate deletion mark information for the deleted target configuration index information; the 23 module is used to send configuration result information to the user device, wherein the configuration result information includes the target configuration data, the target version information and the deleted target configuration index information, and the deleted target configuration index information includes deletion mark information.

[0117] Here, the specific implementations of the 223 module and the 23 module corresponding to the specific implementations of the step S223 and the step S23 are the same or similar, and thus will not be described in detail and are included herein by reference.

[0118] In some embodiments, the detection results include: there is newly added configuration index information for the application, and the module 22 is used to add the newly added configuration index information to the one or more target configuration index information; the network device obtains the target configuration data and the target version information of the target configuration data based on the one or more target configuration index information after adding.

[0119] Here, the specific implementation corresponding to the 22 module is the same as or similar to the specific implementation of step S22, and thus will not be described in detail and is included herein by reference.

[0120] In some embodiments, the second and third modules are used to send configuration result information to the user equipment, wherein the configuration result information includes the target configuration data, the target version information and the newly added configuration index information.

[0121] Here, the specific implementation methods corresponding to the second and third modules are the same as or similar to the specific implementation method of step S23, and thus will not be described in detail and are included herein by reference.

[0122] In addition to the methods and devices described in the above embodiments, the present application also provides a computer-readable storage medium, which stores computer code. When the computer code is executed, the method described in any of the preceding items is executed.

[0123] The present application also provides a computer program product. When the computer program product is executed by a computer device, the method described in any of the preceding items is executed.

[0124] The present application also provides a computer device, the computer device comprising:

[0125] one or more processors;

[0126] a memory for storing one or more computer programs;

[0127] When the one or more computer programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any of the preceding items.

[0128] Figure 8 An exemplary system that can be used to implement various embodiments described in this application is shown;

[0129] like Figure 8In some embodiments shown, the system 300 can be used as any of the devices in the various embodiments described. In some embodiments, the system 300 may include one or more computer-readable media (e.g., system memory or NVM / storage device 320) with instructions and one or more processors (e.g., (one or more) processors 305) coupled to the one or more computer-readable media and configured to execute instructions to implement modules to perform the actions described in this application.

[0130] For one embodiment, system control module 310 may include any suitable interface controller to provide any suitable interface to at least one of processor(s) 305 and / or any suitable device or component in communication with system control module 310 .

[0131] The system control module 310 may include a memory controller module 330 to provide an interface to the system memory 315. The memory controller module 330 may be a hardware module, a software module, and / or a firmware module.

[0132] The system memory 315 may be used, for example, to load and store data and / or instructions for the system 300. For one embodiment, the system memory 315 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the system memory 315 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).

[0133] For one embodiment, system control module 310 may include one or more input / output (I / O) controllers to provide interfaces to NVM / storage device 320 and communication interface(s) 325 .

[0134] For example, NVM / storage device 320 may be used to store data and / or instructions. NVM / storage device 320 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).

[0135] NVM / storage device 320 may include storage resources that are physically part of the device on which system 300 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 320 may be accessed over a network via communication interface(s) 325.

[0136] Communication interface(s) 325 may provide an interface for system 300 to communicate over one or more networks and / or with any other suitable devices. System 300 may wirelessly communicate with one or more components of a wireless network in accordance with any of one or more wireless network standards and / or protocols.

[0137] For one embodiment, at least one of the processor(s) 305 may be packaged together with the logic of one or more controllers of the system control module 310 (e.g., the memory controller module 330). For one embodiment, at least one of the processor(s) 305 may be packaged together with the logic of one or more controllers of the system control module 310 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with the logic of one or more controllers of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with the logic of one or more controllers of the system control module 310 to form a system on chip (SoC).

[0138] In various embodiments, the system 300 may be, but is not limited to: a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the system 300 may have more or fewer components and / or a different architecture. For example, in some embodiments, the system 300 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application specific integrated circuit (ASIC), and a speaker.

[0139] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.

[0140] In addition, a part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present application through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes but is not limited to source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0141] Communication media include media by which communication signals containing, for example, computer readable instructions, data structures, program modules, or other data are transmitted from one system to another. Communication media may include guided transmission media such as cables and wires (e.g., fiber optic, coaxial, etc.) and wireless (unguided transmission) media that can propagate energy waves, such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied as a modulated data signal in, for example, a wireless medium such as a carrier wave or similar mechanism such as embodied as part of spread spectrum technology. The term "modulated data signal" refers to a signal whose one or more characteristics are changed or set in such a manner as to encode information in the signal. Modulation may be analog, digital, or a hybrid modulation technique.

[0142] By way of example and not limitation, computer-readable storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. For example, computer-readable storage media include, but are not limited to, volatile memory, such as random access memory (RAM, DRAM, SRAM); and non-volatile memory, such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic / ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, magnetic tapes, CDs, DVDs); or other media now known or later developed that can store computer-readable information / data for use by a computer system.

[0143] Here, according to an embodiment of the present application, a device is included, which includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, the device is triggered to run the methods and / or technical solutions based on the aforementioned multiple embodiments of the present application.

[0144] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

Claims

1. A method for configuring data for an application, applied to a user device, wherein: The method includes: In response to a user's start-up operation of an application, detecting whether a configuration file of the application exists locally on the user device, wherein the configuration file includes configuration data of the application, and the configuration data is used to start the application; if so, starting the application by reading the configuration data; otherwise, detecting whether a copy of the index file of the application exists locally on the user device; If it exists, determining the copy of the configuration index information in the copy of the index file as the target configuration index information; otherwise, obtaining the index file of the application, and determining the target configuration index information from the initial configuration index information in the index file; Sending a configuration request to a corresponding network device, wherein the configuration request includes the target configuration index information; Receive configuration result information returned by the network device based on the configuration request, wherein the configuration result information includes target configuration data and target version information of the target configuration data, the user device starts the application by reading the target configuration data, and the user device establishes or updates the index file copy based on the configuration result information.

2. The method according to claim 1, wherein: If the application exists, start the application by reading the configuration data; Otherwise, detecting whether a copy of the index file of the application exists locally on the user equipment includes: If so, sending a version query request about the configuration file to the network device, wherein the version query request includes version information of the configuration data in the configuration file; Receiving version query result information about the configuration file returned by the network device; If the version query result information includes version update information, it is detected whether there is a copy of the index file of the application locally on the user device; otherwise, the application is started by reading the configuration data in the configuration file.

3. The method according to claim 1, wherein: The configuration result information also includes deleted target configuration index information, wherein the deleted target configuration index information includes deletion mark information; The method further comprises: The index file copy is created or updated according to the deleted target configuration index information.

4. The method according to claim 3, wherein: The step of establishing or updating the index file copy according to the deleted target configuration index information includes: If the user equipment does not have a local copy of the index file of the application, create a copy of the index file of the application, wherein the copy of the index file includes all the initial configuration index information in the index file, and the initial configuration index information is used as a copy of the configuration index information in the copy of the index file; Searching for a corresponding configuration index information copy according to the deleted target configuration index information; The configuration index information copy is deleted from the index file copy.

5. The method according to claim 4, wherein: The step of establishing or updating the index file copy according to the deleted target configuration index information includes: If a copy of the index file of the application already exists locally on the user equipment, updating the copy of the index file of the application, wherein the copy of the index file includes a copy of the configuration index information; Searching for a corresponding configuration index information copy according to the deleted target configuration index information; The configuration index information copy is deleted from the index file copy.

6. The method according to claim 1, wherein: The configuration result information also includes newly added configuration index information; The method further comprises: The index file copy is created or updated according to the newly added configuration index information.

7. The method according to claim 6, wherein: The step of establishing or updating the index file copy according to the newly added configuration index information includes: If the user equipment does not have a local copy of the index file of the application, create a copy of the index file of the application, wherein the copy of the index file includes all the initial configuration index information in the index file, wherein the initial configuration index information is used as a copy of the configuration index information in the copy of the index file; The newly added configuration index information is added to the index file copy as a new configuration index information copy.

8. The method according to claim 6, wherein: The step of establishing or updating the index file copy according to the newly added configuration index information includes: If a copy of the index file of the application exists locally on the user device, updating the copy of the index file of the application; The newly added configuration index information is added to the index file copy as a new configuration index information copy.

9. A method for configuring data for an application, applied to a network device, wherein: The method includes: Receiving a configuration request for an application sent by a user device, wherein the configuration request includes target configuration index information, wherein the configuration request is a request by the user device to detect whether a configuration file of the application exists locally on the user device in response to a user's start-up operation of the application, wherein the configuration file includes configuration data of the application, and the configuration data is used to start the application; if it exists, starting the application by reading the configuration data; otherwise, sending the request by detecting whether a copy of the index file of the application exists locally on the user device; Acquire target configuration data and target version information of the target configuration data according to the target configuration index information; Sending configuration result information to the user equipment, wherein the configuration result information includes the target configuration data and the target version information, so that the user equipment starts the application by reading the target configuration data, and the user equipment establishes or updates the index file copy based on the configuration result information.

10. The method according to claim 9, wherein: The method further comprises: receiving a version query request for a configuration file of the application sent by the user equipment, wherein the version query request includes version information of the configuration file; Obtain the latest version information of the application, and detect whether the configuration file of the application is updated by comparing the latest version information with the version information in the version query request; Returning version query result information about the configuration file to the user equipment, wherein the version query result information includes version update information or no version update information.

11. The method according to claim 9, wherein: The configuration request includes one or more target configuration index information; The acquiring target configuration data and target version information of the target configuration data according to the target configuration index information includes: Obtain all the latest configuration index information of the application; By comparing the one or more target configuration index information with the latest configuration index information, detecting whether the quantity of the one or more target configuration index information changes; The target configuration data and the target version information of the target configuration data are acquired according to the detection result.

12. The method according to claim 11, wherein: The detection result includes: there is deleted target configuration index information in the one or more target configuration index information, and the acquiring target configuration data and target version information of the target configuration data according to the detection result includes: Remove the deleted target configuration index information from the one or more target configuration index information; The target configuration data and the target version information of the target configuration data are obtained according to the one or more target configuration index information after being eliminated.

13. The method according to claim 12, wherein: removing the deleted target configuration index information from the one or more target configuration index information; Acquiring the target configuration data and the target version information of the target configuration data according to the one or more target configuration index information after being eliminated, further comprising: Generate deletion mark information of the deleted target configuration index information; The sending of configuration result information to the user equipment, wherein the configuration result information includes the target configuration data and the target version information, includes: Sending configuration result information to the user equipment, wherein the configuration result information includes the target configuration data, the target version information and the deleted target configuration index information, and the deleted target configuration index information includes deletion mark information.

14. The method according to claim 9, wherein: The detection result includes: the application has newly added configuration index information, and the acquiring of target configuration data according to the target configuration index information and the target version information of the target configuration data includes: Adding the newly added configuration index information to the one or more target configuration index information; The target configuration data and the target version information of the target configuration data are acquired according to the one or more target configuration index information added.

15. The method according to claim 14, wherein: The sending of configuration result information to the user equipment, wherein the configuration result information includes the target configuration data and the target version information, includes: Sending configuration result information to the user equipment, wherein the configuration result information includes the target configuration data, the target version information, and the newly added configuration index information.

16. A method for configuring data for an application, wherein: The method comprises: In response to a user's start-up operation of an application, the user equipment detects whether a configuration file of the application exists locally on the user equipment, wherein the configuration file includes configuration data of the application, and the configuration data is used to start the application; if so, the application is started by reading the configuration data; otherwise, it is detected whether a copy of the index file of the application exists locally on the user equipment; if so, a copy of the configuration index information in the copy of the index file is determined as target configuration index information; otherwise, the index file of the application is obtained, and the target configuration index information is determined by the initial configuration index information in the index file; a configuration request is sent to a corresponding network device, wherein the configuration request includes the target configuration index information; The network device receives the configuration request, obtains target configuration data and target version information of the target configuration data according to the target configuration index information; sends configuration result information to the user equipment, wherein the configuration result information includes the target configuration data and the target version information; The user equipment receives the configuration result information, wherein the user equipment starts the application by reading the target configuration data, and the user equipment creates or updates the index file copy based on the configuration result information.

17. A device for configuring data for an application, wherein: The equipment includes: Processor; and A memory arranged to store computer executable instructions which, when executed, cause the processor to perform the operations of the method as claimed in any one of claims 1 to 15.

18. A computer readable medium storing instructions which, when executed, cause a system to perform the operations of the method of any one of claims 1 to 15.

Citation Information

Patent Citations

  • File loading method and device, computing equipment and storage medium

    CN109901874A