Application execution method and device, computer system and readable storage medium
By obtaining and comparing configuration information, determining and loading the service sub-data to be loaded, the problem of slow application running speed and reduced user experience caused by the large amount of code data in cross-end technology is solved, and the application running speed and user experience is achieved.
Patent Information
- Application Number
- CN202311184325.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-14
- Publication Date
- 2025-03-14
AI Technical Summary
Since the cross-end technology code package is built into the client, the code data is large and the control is difficult, resulting in slow operation of the application and reduced user experience.
By obtaining the current configuration information, comparing and historical configuration information, determining the service sub-data to be loaded, and loading the data according to the loading time, updating the historical data, ensuring that the matching target page is displayed in the application.
It effectively overcomes the problems of slow application running speed and reduced user experience caused by large code data, and improves the application running speed and user experience.
Smart Images

Figure CN119621164A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of computer technology and Internet technology, and more specifically, to an application execution method, device, computer system, readable storage medium, and computer program product. Background Art
[0002] Nowadays, in the process of developing client applications, the use of native systems to develop full-service scenarios is becoming less and less common, and cross-end technology is becoming increasingly mature. Cross-end technology allows a set of code to run between the client and the server.
[0003] In the process of implementing the concept of the present disclosure, the inventors found that there are at least the following problems in the related technology: since the code package of the cross-end technology is built into the client, the amount of data in the code package is increasing, and the code management is difficult, which makes the application run slowly and reduces the user experience. Summary of the invention
[0004] In view of this, the present disclosure provides an application execution method, device, computer system, readable storage medium, and computer program product.
[0005] One aspect of the present disclosure provides an application execution method, comprising:
[0006] In response to a startup instruction for starting an application, current configuration information is obtained, wherein the current configuration information includes respective configuration information of a plurality of business sub-data at the current moment, and each business sub-data is data for loading a page of the application. The current configuration information is compared with the stored historical configuration information, and the business sub-data to be loaded is determined from the plurality of business sub-data. Based on the current configuration information, a loading time of the business sub-data to be loaded is determined. According to the loading time, the business sub-data to be loaded is loaded to obtain target business sub-data. And a target page matching the target business sub-data is displayed in the application.
[0007] According to an embodiment of the present disclosure, loading the service sub-data to be loaded according to the loading timing to obtain the target service sub-data includes:
[0008] The business sub-data to be loaded is loaded according to the loading timing. When the business identifier of the business sub-data to be loaded is matched from the predetermined storage space, the historical business sub-data is updated with the business sub-data to be loaded to obtain the target business sub-data, wherein the business identifier of the historical business sub-data is the same as that of the business sub-data to be loaded. And when the business identifier of the business sub-data to be loaded is not matched from the predetermined storage space, the target business sub-data is obtained based on the business sub-data to be loaded.
[0009] According to an embodiment of the present disclosure, loading the to-be-loaded business sub-data according to the loading timing includes:
[0010] In response to the current moment satisfying the loading opportunity, the address information of the business sub-data to be loaded is determined from the current configuration information. Based on the address information, the initial business sub-data to be loaded is obtained. The initial business sub-data to be loaded is verified to obtain a verification result. And when the verification result indicates that the verification is successful, the initial business sub-data to be loaded is parsed to obtain the business sub-data to be loaded.
[0011] According to an embodiment of the present disclosure, initial service sub-data to be loaded is obtained based on the address information, including:
[0012] When it is determined that the number of downloads is greater than a predetermined retry threshold, the domain name information in the address information is replaced to obtain updated address information, and initial service sub-data to be loaded is obtained based on the updated address information.
[0013] According to an embodiment of the present disclosure, the above method further includes:
[0014] If it is determined that the target business sub-data is not successfully obtained, the predetermined business sub-data is loaded based on the predetermined address information, and an application page matching the predetermined business sub-data is displayed in the application.
[0015] According to an embodiment of the present disclosure, current configuration information is compared with stored historical configuration information, and business sub-data to be loaded is determined from a plurality of business sub-data, including:
[0016] For each business sub-data, the current version information of the business sub-data is determined from the current configuration information, and the historical version information of the business sub-data is determined from the historical configuration information. If it is determined that the current version information does not match the historical version information, the business sub-data is used as the business sub-data to be loaded.
[0017] According to an embodiment of the present disclosure, loading the service sub-data to be loaded according to the loading timing to obtain the target service sub-data further includes:
[0018] In response to receiving a page jump instruction, a service identifier matching the jump page is determined based on the page jump instruction. Based on the service identifier, it is determined whether the service sub-data of the jump page is stored in the predetermined storage space. If it is determined that the service sub-data does not exist, the service sub-data of the jump page is loaded based on the configuration information of the service sub-data of the jump page, so as to display the jump page in the application. And if it is determined that the service sub-data of the jump page is not successfully loaded, the predetermined service sub-data of the predetermined jump page is loaded based on the configuration information of the service sub-data of the jump page, so as to display the predetermined jump page in the application.
[0019] According to an embodiment of the present disclosure, determining a target loading timing of the service sub-data to be loaded based on the current configuration information includes:
[0020] Based on the business identifier of the business sub-data to be loaded, the current configuration sub-information is determined from the current configuration information. A target field for identifying the loading type is determined from the current configuration sub-information. Based on the target field, the loading type of the business sub-data to be loaded is determined. And based on the loading type, a target loading time of the business sub-data to be loaded is determined.
[0021] Another aspect of the present disclosure provides an application execution device, including an acquisition module, a comparison module, a determination module, a first loading module and a first display module. The acquisition module is used to obtain current configuration information in response to a startup instruction for starting an application, wherein the current configuration information includes the configuration information of multiple business sub-data at the current moment, and each business sub-data is data for loading a page of the application. The comparison module is used to compare the current configuration information with the stored historical configuration information, and determine the business sub-data to be loaded from the multiple business sub-data. The determination module is used to determine the loading time of the business sub-data to be loaded based on the current configuration information. The first loading module is used to load the business sub-data to be loaded according to the loading time to obtain the target business sub-data. The first display module is used to display a target page matching the target business sub-data in the application.
[0022] According to an embodiment of the present disclosure, the first loading module includes a first loading submodule, an updating submodule and a first acquiring submodule. The first loading submodule is used to load the business subdata to be loaded according to the loading timing. The updating submodule is used to update the historical business subdata with the business subdata to be loaded to obtain the target business subdata when the business identifier of the business subdata to be loaded is matched from the predetermined storage space, wherein the business identifier of the historical business subdata is the same as that of the business subdata to be loaded. The first acquiring submodule is used to obtain the target business subdata based on the business subdata to be loaded when the business identifier of the business subdata to be loaded is not matched from the predetermined storage space.
[0023] According to an embodiment of the present disclosure, the first loading submodule includes a determination unit, an acquisition unit, a verification unit, and a parsing unit. The determination unit is used to determine the address information of the business subdata to be loaded from the current configuration information in response to the current moment satisfying the loading opportunity. The acquisition unit is used to obtain the initial business subdata to be loaded based on the address information. The verification unit is used to verify the initial business subdata to be loaded and obtain a verification result. The parsing unit is used to parse the initial business subdata to be loaded to obtain the business subdata to be loaded when the verification result indicates that the verification is successful.
[0024] According to an embodiment of the present disclosure, the obtaining unit includes an updating subunit and an obtaining subunit. The updating subunit is used to replace the domain name information in the address information to obtain the updated address information when it is determined that the number of downloads is greater than a predetermined retry threshold. The obtaining subunit is used to obtain the initial service sub-data to be loaded based on the updated address information.
[0025] According to an embodiment of the present disclosure, the application execution device further includes a second loading module and a second display module. The second loading module is used to load the predetermined business sub-data based on the predetermined address information when it is determined that the target business sub-data is not successfully obtained. The second display module is used to display an application page matching the predetermined business sub-data in the application.
[0026] According to an embodiment of the present disclosure, the comparison module includes a first determination submodule and a second acquisition submodule. The first determination submodule is used to determine, for each business subdata, the current version information of the business subdata from the current configuration information, and to determine the historical version information of the business subdata from the historical configuration information. The second acquisition submodule is used to use the business subdata as the business subdata to be loaded when it is determined that the current version information does not match the historical version information.
[0027] According to an embodiment of the present disclosure, the first loading module also includes a second determination submodule, a third determination submodule, a second loading submodule and a third loading submodule. Among them, the second determination submodule is used to determine the business identifier that matches the jump page based on the page jump instruction in response to receiving the page jump instruction. The third determination submodule is used to determine whether the business sub-data of the jump page is stored in the predetermined storage space based on the business identifier. The second loading submodule is used to load the business sub-data of the jump page based on the configuration information of the business sub-data of the jump page when it is determined that the business sub-data does not exist, so as to display the jump page in the application. The third loading submodule is used to load the predetermined business sub-data of the predetermined jump page based on the configuration information of the business sub-data of the jump page when it is determined that the business sub-data of the jump page has not been successfully loaded, so as to display the predetermined jump page in the application.
[0028] According to an embodiment of the present disclosure, the determination module includes a fourth determination submodule, a fifth determination submodule, a sixth determination submodule and a seventh determination submodule. Among them, the fourth determination submodule is used to determine the current configuration sub-information from the current configuration information based on the business identifier of the business sub-data to be loaded. The fifth determination submodule is used to determine the target field for identifying the loading type from the current configuration sub-information. The sixth determination submodule is used to determine the loading type of the business sub-data to be loaded based on the target field. The seventh determination submodule is used to determine the target loading timing of the business sub-data to be loaded based on the loading type.
[0029] Another aspect of the present disclosure provides a computer system, comprising:
[0030] one or more processors;
[0031] a memory for storing one or more programs,
[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the method.
[0033] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.
[0034] Another aspect of the present disclosure provides a computer program product, the computer program product comprising computer executable instructions, and the instructions are used to implement the above method when executed.
[0035] According to an embodiment of the present disclosure, an application execution method is adopted, including: in response to a startup instruction for starting an application, obtaining current configuration information, wherein the current configuration information includes respective configuration information of a plurality of business sub-data at the current moment, and each business sub-data is data for loading a page of the application. The current configuration information is compared with the stored historical configuration information, and the business sub-data to be loaded is determined from the plurality of business sub-data. Based on the current configuration information, the loading timing of the business sub-data to be loaded is determined. Since the business sub-data to be loaded is loaded according to the loading timing, the target business sub-data is obtained. And a target page matching the target business sub-data is displayed in the application. Therefore, the technical problem that the code package of the cross-end technology is built into the client, the data volume of the code package is increasing, and the code management is difficult is at least partially overcome, thereby achieving the technical effect of fast application running speed and improved user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0037] Figure 1 An exemplary system architecture to which the application program execution method and device of the present disclosure can be applied is schematically shown;
[0038] Figure 2 A flowchart of an application program execution method according to an embodiment of the present disclosure is schematically shown;
[0039] Figure 3 A logical diagram schematically illustrates a method for executing an application program according to another embodiment of the present disclosure;
[0040] Figure 4 A schematic diagram schematically shows a method for executing an application program according to another embodiment of the present disclosure;
[0041] Figure 5 A block diagram schematically shows an application program execution device according to an embodiment of the present disclosure; and
[0042] Figure 6 A block diagram of a computer system suitable for implementing an application execution method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0043] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0044] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0045] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0046] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0047] Nowadays, in the process of developing client applications, the use of native systems to develop full-service scenarios is becoming less and less common, and cross-end technology is becoming increasingly mature. Cross-end technology can implement a set of codes to run on the client and server. However, when calling native functions, the amount of code will increase due to the differences between the client system and the server system. Since the code of cross-end technology is built into the application, when hot updates are performed, the memory load of the application will increase, making the application run slowly and reducing the user experience.
[0048] In view of this, the present disclosure provides an application execution method, including: in response to a startup instruction for starting an application, obtaining current configuration information, wherein the current configuration information includes respective configuration information of multiple business sub-data at the current moment, and each business sub-data is data for loading a page of the application. Compare the current configuration information with the stored historical configuration information, and determine the business sub-data to be loaded from the multiple business sub-data. Based on the current configuration information, determine the loading time of the business sub-data to be loaded. According to the loading time, load the business sub-data to be loaded to obtain the target business sub-data. And display a target page matching the target business sub-data in the application.
[0049] Figure 1 The exemplary system architecture 100 that can be used for the application program execution method and apparatus according to an embodiment of the present disclosure is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0050] like Figure 1 As shown, the system architecture 100 according to this embodiment may include a terminal device 101, a terminal device 102, a terminal device 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, the terminal devices 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0051] The user can use the terminal device 101, the terminal device 102, and the terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, the terminal device 102, and the terminal device 103, such as video data processing applications, web browser applications, search applications, instant messaging tools, email clients, and / or social platform software, etc. (only as examples).
[0052] Terminal device 101, terminal device 102, and terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0053] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the cooking video data received such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.
[0054] It should be noted that the application execution method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the application execution device provided in the embodiment of the present disclosure can generally be set in the server 105. The application execution method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, the terminal device 102, the terminal device 103 and / or the server 105. Correspondingly, the application execution device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, the terminal device 102, the terminal device 103 and / or the server 105. Alternatively, the text image correction method provided in the embodiment of the present disclosure can also be executed by the terminal device 101, the terminal device 102, or the terminal device 103, or can also be executed by other terminal devices different from the terminal devices 101, 102, or 103. Accordingly, the application execution device provided in the embodiment of the present disclosure may also be set in terminal device 101, terminal device 102, or terminal device 103, or in other terminal devices different from terminal device 101, terminal device 102, or terminal device 103.
[0055] For example, the historical configuration information is originally stored in any one of the terminal device 101, the terminal device 102, or the terminal device 103 (for example, the terminal device 101, but not limited thereto), or is stored in an external storage device and can be imported into the terminal device 101. Then, the terminal device 101 can send the current configuration information to other servers or server clusters, and the other servers or server clusters that receive the current configuration information execute the application execution method provided by the embodiment of the present disclosure.
[0056] It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0057] Figure 2 The flowchart of the application program execution method according to the embodiment of the present disclosure is schematically shown.
[0058] like Figure 2 As shown, the method 200 includes operations S210 to S250.
[0059] In operation S210, in response to a start instruction for starting an application program, current configuration information is acquired.
[0060] In operation S220, the current configuration information is compared with the stored historical configuration information, and the business sub-data to be loaded is determined from the plurality of business sub-data.
[0061] In operation S230, a loading timing of the to-be-loaded service sub-data is determined based on the current configuration information.
[0062] In operation S240, the business sub-data to be loaded is loaded according to the loading timing to obtain the target business sub-data.
[0063] In operation S250, a target page matching the target business sub-data is displayed in the application.
[0064] According to an embodiment of the present disclosure, the startup instruction may be a command related to a computer startup item, such as a boot startup instruction, an update startup instruction, a startup instruction for starting an application, and the like.
[0065] According to an embodiment of the present disclosure, the current configuration information includes configuration information of each of a plurality of business sub-data at the current moment, and each business sub-data is data for loading a page of an application program.
[0066] According to an embodiment of the present disclosure, the historical configuration information may be configuration information of the application program started the last time before the current configuration information.
[0067] According to an embodiment of the present disclosure, the configuration information may include a service name, a framework version number, a maximum version number for upgrading, a minimum version number, an address for service downgrade, and the like.
[0068] For example, if the application needs hot update, you can configure RN (React Native, a cross-platform mobile application development framework) related information in the corresponding business space. For example, the RN package service name, RN framework version number, the maximum and minimum version numbers of the RN package that need to be upgraded on the App, the address of the service downgrade, the timing or priority of the upgrade download trigger, and whether downgrade is required.
[0069] According to an embodiment of the present disclosure, the loading timing may be a preset loading condition. For example, the loading timing may be a preset sub-service priority for loading. However, the loading timing is not limited thereto, and a loading sequence may be regularly preset according to actual conditions.
[0070] For example, during the application startup phase, the business sub-data to be loaded is downloaded to the client according to the loading timing.
[0071] For example, the loading time can be to perform loading operations according to priority classification, and the ones with higher priority will be added to the loading queue first. The business sub-data to be loaded may include C business, D business, and E business in the RN package. The loading time can be to load according to the priority order of "C business, D business, E business". The loading time means to perform loading operations according to priority classification, and the ones with higher priority will be added to the loading queue first.
[0072] For example, the loading time can be classified and downloaded by the business sub-data to be loaded. The business sub-data to be loaded is classified into downloading methods such as "start download", "delay download", and "custom download". Among them, the business sub-data to be loaded for "start download" can be added to the download queue immediately after startup for loading. The business sub-data to be loaded for "delay download" can be added to the download queue after waiting for the delay time. The business sub-data to be loaded for "custom download" can provide a download interface, and the user determines the download time and calls the provided download method to start loading. It can also be "enter page download". The business sub-data to be loaded for "enter page download" needs to monitor the life cycle. When entering the page, the page name is passed in. After the downloader reads the file corresponding to the page, it is loaded immediately. "Support breakpoint resumption" is to determine whether there is download information when starting download. If it exists, the download information is obtained and the download progress is updated; if it does not exist, the download information is created for downloading. "Download update" is to reload when the business sub-data needs to be updated. "Failure retry" is to ensure the download success rate, and a retry can be performed after the loading fails.
[0073] For example, in response to a startup instruction for starting an application, the current configuration information of the RN package is obtained, and the current configuration information is version 1.1. The stored historical configuration information is version 1.0. The version 1.1 configuration information of application a is compared with the version 1.0 configuration information, and the business sub-data to be loaded is determined from multiple business sub-data. The business sub-data to be loaded may be sub-data about C business and D business, where the business to be loaded is C business and D business. The loading timing is to load according to the priority of "D business, C business". According to the loading timing, the sub-data of D business and the sub-data of C business are loaded, and the client loads the sub-data of D business and the sub-data of C business. The target page that matches the target business sub-data is displayed in the application.
[0074] For example, when the application first obtains the current configuration information of the RN package (without historical configuration information), it can determine the loading time of the business sub-data to be loaded based on the current configuration information. According to the loading time, the business sub-data to be loaded is loaded to obtain the target business sub-data. Then, the target page matching the target business sub-data is displayed in the application.
[0075] According to an embodiment of the present disclosure, an application execution method is adopted, comprising: in response to a startup instruction for starting an application, obtaining current configuration information, wherein the current configuration information includes respective configuration information of a plurality of business sub-data at the current moment, and each business sub-data is data for loading a page of the application. The current configuration information is compared with the stored historical configuration information, and the business sub-data to be loaded is determined from the plurality of business sub-data. Based on the current configuration information, the loading timing of the business sub-data to be loaded is determined. Since the business sub-data to be loaded is loaded according to the loading timing, the target business sub-data is obtained. And a target page matching the target business sub-data is displayed in the application. Therefore, the technical problem of excessive memory load during hot update in the existing application execution method is at least partially overcome, thereby achieving the technical effect of fast application running speed and improved user experience.
[0076] According to an embodiment of the present disclosure, loading the service sub-data to be loaded according to the loading timing to obtain the target service sub-data includes:
[0077] The business sub-data to be loaded is loaded according to the loading timing. When the business identifier of the business sub-data to be loaded is matched from the predetermined storage space, the historical business sub-data is updated with the business sub-data to be loaded to obtain the target business sub-data, wherein the business identifier of the historical business sub-data is the same as that of the business sub-data to be loaded. And when the business identifier of the business sub-data to be loaded is not matched from the predetermined storage space, the target business sub-data is obtained based on the business sub-data to be loaded.
[0078] According to an embodiment of the present disclosure, the predetermined storage space may be a storage space of a terminal device.
[0079] According to an embodiment of the present disclosure, the service identifier may be a service serial number, a service name, a service code, etc.
[0080] For example, the business sub-data to be loaded may include "C business, D business", and the business identifier of the business sub-data to be loaded may be the business name, namely C business, D business. The loading timing may be a preset order of "B business, C business, D business" for loading. According to the loading timing, the business sub-data to be loaded is loaded. When the reserved storage space matches the business identifier of the C business, it means that the historical business sub-data corresponding to the business has been stored in the device terminal. The historical business sub-data can be updated with the business sub-data to obtain the target business sub-data, wherein the target business sub-data may be the updated business sub-data of the C business. When the reserved storage space does not match the business identifier of the D business, it means that the historical business sub-data corresponding to the business has not been stored in the device terminal. The business sub-data of the D business can be directly loaded into the terminal device.
[0081] According to the embodiments of the present disclosure, by determining whether a business identifier of the business sub-data to be loaded is matched from a predetermined storage space and then classifying the business sub-data to be loaded, memory consumption can be reduced and the running speed of the application can be improved.
[0082] According to an embodiment of the present disclosure, loading the to-be-loaded business sub-data according to the loading timing includes:
[0083] In response to the current moment satisfying the loading opportunity, the address information of the business sub-data to be loaded is determined from the current configuration information. Based on the address information, the initial business sub-data to be loaded is obtained. The initial business sub-data to be loaded is verified to obtain a verification result. And when the verification result indicates that the verification is successful, the initial business sub-data to be loaded is parsed to obtain the business sub-data to be loaded.
[0084] According to an embodiment of the present disclosure, the address information may be a download address, for example, “https: / / www.XXXX.OOO”.
[0085] According to the embodiment of the present disclosure, the information for verifying the initial service sub-data to be loaded may be verification data information, but the information for verifying the initial service sub-data to be loaded is not limited to verification data information, and may also be data packet name field information, etc.
[0086] For example, the service to be loaded may be the "C service" of the RN package. Determine from the current configuration information that the address information of the "C service" sub-data is "https: / / www.XXXX.OOO". Obtain the initial service sub-data to be loaded from the address information. Verify the data packet name field of the initial service sub-data to be loaded, and obtain the verification result as "correct". Determine that the verification is successful, and parse the C service sub-data.
[0087] For example, the initial service sub-data to be loaded is subjected to MD5 (Message-Digest Algorithm) verification to obtain a verification result. The MD5 verification is to check the correctness of the data by performing a hash operation on the received service sub-data to be loaded. The hash operation is a one-way operation that converts a data string of any length into a short fixed-length value.
[0088] According to the embodiments of the present disclosure, during the loading process, the security and adaptability of the data are improved by verifying and parsing the initial business sub-data to be loaded.
[0089] According to an embodiment of the present disclosure, initial service sub-data to be loaded is obtained based on the address information, including:
[0090] When it is determined that the number of downloads is greater than a predetermined retry threshold, the domain name information in the address information is replaced to obtain updated address information, and initial service sub-data to be loaded is obtained based on the updated address information.
[0091] According to an embodiment of the present disclosure, the predetermined retry threshold may be 19 times, and the predetermined retry threshold may be other times, which is not limited here.
[0092] According to the disclosed embodiment, the domain name information may be a name of a computer or computer group on the Internet consisting of a string of names separated by dots, used to identify the electronic location of the computer during data transmission, for example, "www.fuyeor.com".
[0093] For example, when it is determined that the number of downloads 20 is greater than the predetermined retry threshold 19, the domain name information in the address information is replaced, and the initial service sub-data to be loaded is obtained using the updated address information.
[0094] According to an embodiment of the present disclosure, by replacing the domain name information in the address information and continuing to load when it is determined that the number of downloads is greater than a predetermined retry threshold, the success rate of loading can be increased and the user experience can be improved.
[0095] According to an embodiment of the present disclosure, the above method further includes:
[0096] If it is determined that the target business sub-data is not successfully obtained, the predetermined business sub-data is loaded based on the predetermined address information, and an application page matching the predetermined business sub-data is displayed in the application.
[0097] For example, if the target business sub-data is not successfully obtained, the predetermined address information can be used to load the predetermined business sub-data. The predetermined business sub-data can be predetermined fallback business sub-data. The application page matching the predetermined fallback business sub-data is displayed in the application. The application page can be a fallback page. If the fallback page is not configured, the unified fallback page of the application system is entered.
[0098] According to the embodiments of the present disclosure, if the target business sub-data is not obtained successfully, an application page matching the predetermined business sub-data is displayed in the application, so that the application can run normally and the user experience can be improved.
[0099] According to an embodiment of the present disclosure, current configuration information is compared with stored historical configuration information, and business sub-data to be loaded is determined from a plurality of business sub-data, including:
[0100] For each business sub-data, the current version information of the business sub-data is determined from the current configuration information, and the historical version information of the business sub-data is determined from the historical configuration information. If it is determined that the current version information does not match the historical version information, the business sub-data is used as the business sub-data to be loaded.
[0101] According to an embodiment of the present disclosure, the version information may be update level information of the service sub-data.
[0102] For example, the business sub-data includes "C business" and "D business". It is determined from the current configuration information that the current version information of "C business" and "D business" are both "3.21", and it is determined from the historical configuration information that the historical version information of "C business" and "D business" are "3.21" and "3.20" respectively. The current version information of "D business" does not match the historical version information, and the "D business" sub-data is used as the business sub-data to be loaded.
[0103] For example, the configuration information may include the content of Table 1, which is used to determine whether the current version information matches the historical version information, and may also be used to determine the loading timing, etc.
[0104] Table 1
[0105]
[0106]
[0107] According to the embodiments of the present disclosure, when it is determined that the current version information does not match the historical version information, the business sub-data is updated, the business sub-data is updated in a targeted manner, the running speed of the application is improved, and the management uniformity of the hot update is strengthened.
[0108] Figure 3A logical diagram of a method for executing an application according to another embodiment of the present disclosure is schematically shown.
[0109] like Figure 3 As shown, the embodiment 300 includes operations S310 to S370.
[0110] In operation S310, in response to receiving a page jump instruction, a service identifier matching the jump page is determined based on the page jump instruction.
[0111] In operation S320, based on the business identifier, it is determined whether the business sub-data of the jump page is stored in the predetermined storage space. If so, operation S370 is executed; if not, operation S330 is executed.
[0112] In operation S330, the business sub-data of the jump page is loaded based on the configuration information of the business sub-data of the jump page.
[0113] In operation S340, whether the business sub-data of the jump page is successfully loaded, if so, execute operation S370; if not, execute operation S350.
[0114] In operation S350, based on the configuration information of the business sub-data of the jump page, predetermined business sub-data of the predetermined jump page is loaded.
[0115] In operation S360, a predetermined jump page is displayed.
[0116] In operation S370, a jump page is displayed.
[0117] For example, the page jump instruction may be a Router protocol, where the Router protocol is a router protocol used to implement the jump instruction. The business identifier that matches the jump page may be the business name "Project A", and the reserved storage space may be the client memory. The Router protocol may be subjected to data parsing, and by searching for the corresponding client memory that matches the "Project A" that matches the jump page, it is determined whether the business sub-data of the jump page is stored in the client memory. If so, the jump page is displayed; if not, the business sub-data of the jump page is loaded based on the configuration information of the business sub-data of the jump page.
[0118] For example, the business sub-data may be downgraded business sub-data, and it is determined whether the downgraded business sub-data of the jump page is successfully loaded. If the jump is successful, the jump page corresponding to the downgraded business sub-data is displayed. If the jump is unsuccessful, the fallback page of the application is displayed. The fallback page of the application is a predetermined jump page.
[0119] For example, if the fallback page of the application is not configured, the unified fallback page of RN is entered.
[0120] According to the embodiments of the present disclosure, by judging the loading status of the business sub-data of the page to be jumped, the flexibility of recording the business sub-data when the page is jumped is improved.
[0121] According to an embodiment of the present disclosure, determining a target loading timing of the service sub-data to be loaded based on the current configuration information includes:
[0122] Based on the business identifier of the business sub-data to be loaded, the current configuration sub-information is determined from the current configuration information. A target field for identifying the loading type is determined from the current configuration sub-information. Based on the target field, the loading type of the business sub-data to be loaded is determined. And based on the loading type, a target loading time of the business sub-data to be loaded is determined.
[0123] For example, the business identifier may be a business name. The target field identifying the load type may be a load type name.
[0124] For example, the Target field that identifies the load type has the following interpretation:
[0125] Assume that the target fields include "T-level project", "S-level project", "A-level project", "custom page trigger timing", and "manual trigger timing".
[0126] Among them, "T-level project" can be a way to load the RN upgrade package immediately after the App is started. If the first load fails, it will be retried immediately; if the load retry still fails, it will try to load again when entering the business. If it still fails, the configured fallback page will be displayed; if no fallback page is configured, a unified fallback page will be used to prevent the white screen from causing serious user experience problems.
[0127] "S-level project" can be a way to delay the loading of RN upgrade package after the App is started. The delay time is centrally controlled by the configuration platform, and the business is not allowed to configure it by itself.
[0128] "A-level project" can be a way to load the upgrade package synchronously when opening the service. In order not to affect the user experience, the old version is still displayed when the service is opened this time, and the new version is displayed when the service is opened next time.
[0129] "Custom page trigger timing" can be to automatically trigger the loading of the RN upgrade package when a certain page (View Controller or Activity or Fragment) is opened.
[0130] The "manual trigger timing" can be a method of calling an API with code. When the loading needs to be triggered, manually call the API to trigger the loading of the RN upgrade package.
[0131] For example, the service identifier may be the service name "C service". Based on the service identifier "C service" of the service sub-data to be loaded, the current configuration sub-information is determined from the current configuration information. The target field for identifying the loading type is determined to be "manual trigger timing" from the current configuration sub-information. Based on the target field "manual trigger timing", the loading type of the service sub-data to be loaded is determined to be "manual trigger timing". According to the loading type "manual trigger timing", the target loading timing of the service sub-data to be loaded is determined.
[0132] Figure 4 A schematic diagram schematically shows a method for executing an application according to yet another embodiment of the present disclosure.
[0133] like Figure 4 As shown, based on the target field, the loading type of the business sub-data to be loaded is determined. There are three types, "S-level project", "A-level project" and "T-level project". According to the loading timing of the three loading types, the queue is entered in order and the download starts in sequence.
[0134] For example, after the application is started, the client can read multiple business sub-data interfaces issued by the server, perform data parsing to obtain configuration information of multiple business sub-data, and save multiple business sub-data locally and persistently to the client memory. The business sub-data to be loaded are classified according to the target field of the loading type.
[0135] The server can increase the grayscale duration configuration according to the grayscale ratio of the business configuration. For example, immediate effect, 1 hour (default), 12 hours, 1 day, 2 days, 3 days, etc. The grayscale calculation method can be to increase the volume every 5 minutes. Each increase in the volume ratio = 5*(grayscale ratio of business configuration - current grayscale ratio) / grayscale duration minutes.
[0136] For example, the current grayscale ratio is 20%, the business adjusts the grayscale ratio to 40%, and the grayscale duration is 1 hour. Then the calculation for each increase in volume is: 5*(40%-20%) / 60. If the client is an Android system and the server is an iOS system, then it is necessary to control the grayscale switch separately, record the initial grayscale and target grayscale, and then calculate the volume increase step.
[0137] According to the embodiments of the present disclosure, the target loading timing of the business sub-data to be loaded is determined by the loading type of the business sub-data to be loaded, so that the efficiency of the application program execution can be improved.
[0138] Figure 5 The block diagram schematically shows an application program execution device according to an embodiment of the present disclosure.
[0139] like Figure 5As shown, the application execution device 500 includes an acquisition module 510 , a comparison module 520 , a determination module 530 , a first loading module 540 and a first display module 550 .
[0140] The acquisition module 510 is used to acquire the current configuration information in response to the startup instruction for starting the application program. In one embodiment, the acquisition module 510 can be used to perform the operation S210 described above, which will not be described in detail here.
[0141] The comparison module 520 is used to compare the current configuration information with the stored historical configuration information, and determine the service sub-data to be loaded from the multiple service sub-data. In one embodiment, the comparison module 520 can be used to perform the operation S220 described above, which will not be described in detail here.
[0142] The determination module 530 is used to determine the loading time of the service sub-data to be loaded based on the current configuration information. In one embodiment, the determination module 530 can be used to perform the operation S230 described above, which will not be described in detail here.
[0143] The first loading module 540 is used to load the service sub-data to be loaded according to the loading timing to obtain the target service sub-data. In one embodiment, the first loading module 540 can be used to perform the operation S240 described above, which will not be described in detail here.
[0144] The first display module 550 is used to display the target page matching the target business sub-data in the application. In one embodiment, the first display module 550 can be used to perform the operation S250 described above, which will not be described in detail here.
[0145] According to an embodiment of the present disclosure, the first loading module 540 includes a first loading submodule, an updating submodule and a first acquiring submodule. The first loading submodule is used to load the business subdata to be loaded according to the loading timing. The updating submodule is used to update the historical business subdata with the business subdata to be loaded to obtain the target business subdata when the business identifier of the business subdata to be loaded is matched from the predetermined storage space, wherein the business identifier of the historical business subdata is the same as that of the business subdata to be loaded. The first acquiring submodule is used to obtain the target business subdata based on the business subdata to be loaded when the business identifier of the business subdata to be loaded is not matched from the predetermined storage space.
[0146] According to an embodiment of the present disclosure, the first loading submodule includes a determination unit, an acquisition unit, a verification unit, and a parsing unit. The determination unit is used to determine the address information of the business subdata to be loaded from the current configuration information in response to the current moment satisfying the loading opportunity. The acquisition unit is used to obtain the initial business subdata to be loaded based on the address information. The verification unit is used to verify the initial business subdata to be loaded and obtain a verification result. The parsing unit is used to parse the initial business subdata to be loaded to obtain the business subdata to be loaded when the verification result indicates that the verification is successful.
[0147] According to an embodiment of the present disclosure, the obtaining unit includes an updating subunit and an obtaining subunit. The updating subunit is used to replace the domain name information in the address information to obtain the updated address information when it is determined that the number of downloads is greater than a predetermined retry threshold. The obtaining subunit is used to obtain the initial service sub-data to be loaded based on the updated address information.
[0148] According to an embodiment of the present disclosure, the application execution device further includes a second loading module and a second display module. The second loading module is used to load the predetermined business sub-data based on the predetermined address information when it is determined that the target business sub-data is not successfully obtained. The second display module is used to display an application page matching the predetermined business sub-data in the application.
[0149] According to an embodiment of the present disclosure, the comparison module 520 includes a first determination submodule and a second acquisition submodule. The first determination submodule is used to determine, for each business subdata, the current version information of the business subdata from the current configuration information, and to determine the historical version information of the business subdata from the historical configuration information. The second acquisition submodule is used to use the business subdata as the business subdata to be loaded when it is determined that the current version information does not match the historical version information.
[0150] According to an embodiment of the present disclosure, the first loading module 540 also includes a second determination submodule, a third determination submodule, a second loading submodule and a third loading submodule. Among them, the second determination submodule is used to determine the business identifier that matches the jump page based on the page jump instruction in response to receiving the page jump instruction. The third determination submodule is used to determine whether the business subdata of the jump page is stored in the predetermined storage space based on the business identifier. The second loading submodule is used to load the business subdata of the jump page based on the configuration information of the business subdata of the jump page when it is determined that the business subdata does not exist, so as to display the jump page in the application. The third loading submodule is used to load the predetermined business subdata of the predetermined jump page based on the configuration information of the business subdata of the jump page when it is determined that the business subdata of the jump page has not been successfully loaded, so as to display the predetermined jump page in the application.
[0151] According to an embodiment of the present disclosure, the determination module 530 includes a fourth determination submodule, a fifth determination submodule, a sixth determination submodule and a seventh determination submodule. Among them, the fourth determination submodule is used to determine the current configuration sub-information from the current configuration information based on the business identifier of the business sub-data to be loaded. The fifth determination submodule is used to determine the target field for identifying the loading type from the current configuration sub-information. The sixth determination submodule is used to determine the loading type of the business sub-data to be loaded based on the target field. The seventh determination submodule is used to determine the target loading timing of the business sub-data to be loaded based on the loading type.
[0152] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0153] For example, any multiple of the acquisition module 510, the comparison module 520, the determination module 530, the first loading module 540 and the first display module 550 can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the acquisition module 510, the comparison module 520, the determination module 530, the first loading module 540 and the first display module 550 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware and firmware or in a suitable combination of any of them. Alternatively, at least one of the acquisition module 510, the comparison module 520, the determination module 530, the first loading module 540 and the first display module 550 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be executed.
[0154] It should be noted that the video data processing device part in the embodiment of the present disclosure corresponds to the video data processing method part in the embodiment of the present disclosure. The description of the video data processing device part specifically refers to the video data processing method part, which will not be repeated here.
[0155] Figure 6 A block diagram of a computer system suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Figure 6 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0156] like Figure 6As shown, the computer system 600 according to the embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.
[0157] In RAM 603, various programs and data required for the operation of system 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other through bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0158] According to an embodiment of the present disclosure, the system 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The system 600 may further include one or more of the following components connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0159] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0160] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0161] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0162] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 602 and / or the RAM 603 described above and / or one or more memories other than the ROM 602 and the RAM 603 .
[0163] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the application execution method provided by the embodiment of the present disclosure.
[0164] When the computer program is executed by the processor 601, the above functions defined in the system / device of the embodiment of the present disclosure are executed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0165] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0166] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0167] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments and / or claims of the present disclosure can be combined and / or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0168] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for executing an application program, comprising: In response to a startup instruction for starting an application, current configuration information is acquired, wherein the current configuration information includes configuration information of each of a plurality of business sub-data at a current moment, each of the business sub-data being data for loading a page of the application; Comparing the current configuration information with the stored historical configuration information, and determining the business sub-data to be loaded from the multiple business sub-data; Determining a loading time of the service sub-data to be loaded based on the current configuration information; According to the loading timing, the service sub-data to be loaded is loaded to obtain the target service sub-data; and A target page matching the target business sub-data is displayed in the application.
2. The method according to claim 1, wherein: The step of loading the to-be-loaded business sub-data according to the loading timing to obtain the target business sub-data includes: Loading the to-be-loaded business sub-data according to the loading timing; When the service identifier of the service sub-data to be loaded is matched from the predetermined storage space, the historical service sub-data is updated with the service sub-data to obtain the target service sub-data, wherein the service identifier of the historical service sub-data is the same as that of the service sub-data to be loaded; and In the case that the service identifier of the service sub-data to be loaded is not matched from the predetermined storage space, the target service sub-data is obtained based on the service sub-data to be loaded.
3. The method according to claim 1 or 2, wherein: The loading of the to-be-loaded business sub-data according to the loading timing includes: In response to the current moment satisfying the loading opportunity, determining address information of the to-be-loaded service sub-data from the current configuration information; Based on the address information, obtaining initial service sub-data to be loaded; Verifying the initial business sub-data to be loaded to obtain a verification result; and When the verification result indicates that the verification is successful, the initial service sub-data to be loaded is parsed to obtain the service sub-data to be loaded.
4. The method according to claim 3, wherein: The obtaining of initial service sub-data to be loaded based on the address information includes: If it is determined that the number of downloads is greater than a predetermined retry threshold, replacing the domain name information in the address information to obtain updated address information; and Based on the updated address information, the initial service sub-data to be loaded is obtained.
5. The method according to any one of claims 1 to 4, further comprising: If it is determined that the target service sub-data is not successfully obtained, loading the predetermined service sub-data based on the predetermined address information; as well as An application page matching the predetermined service sub-data is displayed in the application program.
6. The method according to any one of claims 1 to 4, wherein: The comparing the current configuration information with the stored historical configuration information to determine the business sub-data to be loaded from the multiple business sub-data includes: For each of the service sub-data, determine the current version information of the service sub-data from the current configuration information, and determine the historical version information of the service sub-data from the historical configuration information; and When it is determined that the current version information does not match the historical version information, the business sub-data is used as the business sub-data to be loaded.
7. The method according to claim 2, further comprising: In response to receiving a page jump instruction, determining a service identifier that matches a jump page based on the page jump instruction; Based on the service identifier, determining whether the service sub-data of the jump page is stored in the predetermined storage space; If it is determined that the business sub-data does not exist, based on the configuration information of the business sub-data of the jump page, the business sub-data of the jump page is loaded to display the jump page in the application; as well as When it is determined that the business sub-data of the jump page is not loaded successfully, the predetermined business sub-data of the predetermined jump page is loaded based on the configuration information of the business sub-data of the jump page to display the predetermined jump page in the application.
8. The method according to any one of claims 1 to 4, wherein: The determining, based on the current configuration information, a target loading timing of the service sub-data to be loaded includes: Determining current configuration sub-information from the current configuration information based on the service identifier of the service sub-data to be loaded; Determine a target field for identifying a loading type from the current configuration sub-information; Determining a loading type of the business sub-data to be loaded based on the target field; and Based on the loading type, a target loading timing of the business sub-data to be loaded is determined.
9. A data processing device, comprising: an acquisition module, configured to acquire current configuration information in response to a startup instruction for starting an application, wherein the current configuration information includes configuration information of each of a plurality of business sub-data at a current moment, each of the business sub-data being data for loading a page of the application; A comparison module, used to compare the current configuration information with the stored historical configuration information, and determine the business sub-data to be loaded from the multiple business sub-data; A determination module, used to determine a loading time of the service sub-data to be loaded based on the current configuration information; A first loading module, configured to load the service sub-data to be loaded according to the loading timing to obtain target service sub-data; and The first display module is used to display a target page matching the target business sub-data in the application.
10. A computer system comprising: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having executable instructions stored thereon, wherein when the instructions are executed by a processor, the processor implements the method according to any one of claims 1 to 8.
12. A computer program product comprising: Computer executable instructions, which when executed are used to implement the method of any one of claims 1 to 8.
Citation Information
Cited By
Communication method, terminal, medium and product
CN120050689A