Page loading method, device, computer equipment and storage medium

By storing page configuration information and automatically downgrading through the unified jump system, the problem of abnormal loading after page frame upgrade is solved, efficient page loading and frame modification are achieved, and the user experience is improved.

CN118467059BActive Publication Date: 2025-09-16SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410738294.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2025-09-16
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

After the application page framework is upgraded, in the prior art, the user terminal needs to update the APP before the abnormal page can be loaded normally, resulting in low page loading efficiency.

Method used

The page configuration information of the target application is stored in the unified jump system, and the configuration information is returned after receiving the loading instruction. The target terminal loads the page according to the configuration information, and automatically downgrades when the loading fails, avoiding manual modification of the installation package.

Benefits of technology

It improves page loading efficiency and framework modification efficiency, reduces the need for user terminal updates, and improves page loading stability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467059B_ABST
    Figure CN118467059B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a page loading method, device, computer equipment and storage medium. The method includes: when receiving a loading instruction for a target page in a target application, sending a page configuration information request instruction to the unified jump system, so that the unified jump system responds to the page configuration information request instruction and determines the target page configuration information corresponding to the target page identifier from a preset configuration file; loading the target page according to the target page configuration information; if the loading is successful, jumping to the target page; if the loading fails, sending a loading failure message carrying the target page identifier to the unified jump system, so that the unified jump system downgrades the target page configuration information in the configuration file according to the target page identifier and the preset configuration information downgrade rule. When there is a front-end page loading exception problem caused by the page frame upgrade, the loading efficiency of the front-end page can be improved by implementing the method of the embodiment of the present application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a page loading method, apparatus, computer equipment, and storage medium. Background Art

[0002] In recent years, applications (APPs) have developed rapidly. APPs can display web pages on terminal devices, which greatly facilitates users. Therefore, both users and third-party service providers are paying attention to the development and operation of APPs. With the development of the software industry, various page frameworks exist for front-end pages, such as weex, webview, and react native.

[0003] During the business development process, this situation often occurs. When selecting the technology in the early stage of APP, Weex is used to display the business interface. After several years of development, Weex is relatively stable, but the page framework of APP needs to be gradually transformed (upgraded) and react native is used to display the business interface.

[0004] In the early stages of using react native, there are generally certain problems. At this time, the user terminal loads the page through the react native framework, resulting in the failure of APP page loading. In the existing technology, when it is found that a certain upgraded page of the APP has a page loading abnormality problem on the front end, the developer needs to downgrade the page with the loading abnormality problem, modify the corresponding page framework, and then repackage the APP. At this time, the user terminal needs to update the APP to open the page normally.

[0005] In the prior art, after the page framework is upgraded, the developer needs to manually downgrade the page with the loading abnormality problem and re-package the downgraded APP so that the user terminal can load the page normally based on the downgraded page framework. It can be seen that in the prior art, when there is a problem of abnormal loading of the current page due to the page framework upgrade, the user terminal also needs to update the APP before the page can be loaded normally, and the page loading efficiency is low. Summary of the Invention

[0006] The embodiments of the present application provide a page loading method, apparatus, computer equipment and storage medium. When there is a front-end page loading abnormality problem due to a page frame upgrade, the present application can improve the loading efficiency of the front-end page.

[0007] In a first aspect, an embodiment of the present application provides a page loading method, wherein a target application is installed in a target terminal, and the method includes:

[0008] When a load instruction for a target page in the target application is received, a page configuration information request instruction carrying a target page identifier is sent to the unified jump system, so that the unified jump system responds to the page configuration information request instruction and determines the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the configuration file stores the current page configuration information corresponding to each page in the target application;

[0009] Receiving the target page configuration information returned by the unified jump system;

[0010] Loading the target page according to the target page configuration information;

[0011] If the loading is successful, jump to the target page;

[0012] If the loading fails, a loading failure message carrying the target page identifier is sent to the unified jump system, so that the unified jump system responds to the loading failure message and downgrades the target page configuration information in the configuration file according to the target page identifier and the preset configuration information downgrade rules.

[0013] In a second aspect, an embodiment of the present application provides another page loading method, which is applied to a unified jump system and includes:

[0014] When receiving a page configuration information request instruction carrying a target page identifier from a target terminal, determining the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the page configuration information request instruction is an instruction generated when the target terminal receives a load instruction for a target page in a target application, and the configuration file stores current page configuration information corresponding to each page in the target application;

[0015] Returning the target page configuration information to the target terminal, so that the target terminal loads the target page according to the target page configuration information;

[0016] When the target terminal fails to load the target page according to the target page configuration information, receiving loading failure information sent by the target terminal and carrying the target page identifier;

[0017] In response to the loading failure information, the target page configuration information in the configuration file is downgraded according to the target page identifier and a preset configuration information downgrade rule.

[0018] In a third aspect, an embodiment of the present application further provides a page loading device, wherein the page loading device is a first page loading device or a second page loading device, wherein the first page loading device is configured in a target terminal, wherein a target application is installed in the target terminal, and the second page loading device is configured in a unified jump system, wherein the first page loading device includes a first transceiver unit and a first processing unit, and the second page loading device includes a second transceiver unit and a second processing unit, wherein:

[0019] The first transceiver unit is configured to, upon receiving a loading instruction for a target page in the target application, send a page configuration information request instruction carrying a target page identifier to the second page loading device, so that the second page loading device, in response to the page configuration information request instruction, determines the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the configuration file stores current page configuration information corresponding to each page in the target application; and receive the target page configuration information returned by the second page loading device;

[0020] The first processing unit is configured to load the target page according to the target page configuration information; if the loading is successful, jump to the target page; if the loading fails, send a loading failure message carrying the target page identifier to the second page loading device via the first transceiver unit, so that the second page loading device, in response to the loading failure message, downgrades the target page configuration information in the configuration file according to the target page identifier and a preset configuration information downgrade rule;

[0021] The second processing unit is configured to, upon receiving a page configuration information request instruction carrying a target page identifier sent by the first page loading device, determine the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the page configuration information request instruction is an instruction generated by the first page loading device when receiving a loading instruction for a target page in a target application, and the configuration file stores current page configuration information corresponding to each page in the target application;

[0022] The second transceiver unit is configured to return the target page configuration information to the first page loading device, so that the first page loading device loads the target page according to the target page configuration information; when the first page loading device fails to load the target page according to the target page configuration information, receive a loading failure message carrying the target page identifier sent by the first page loading device;

[0023] The second processing unit is further configured to, in response to the loading failure information, perform downgrade processing on the target page configuration information in the configuration file according to the target page identifier and a preset configuration information downgrade rule.

[0024] In a fourth aspect, an embodiment of the present application further provides a computer device comprising a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method in the first or second aspect described above is implemented.

[0025] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method in the first or second aspect described above can be implemented.

[0026] The embodiment of the present application provides a page loading method, apparatus, computer equipment and storage medium. In this embodiment, when a target terminal with a target application installed needs to load a target page in the target application, a page configuration information request instruction carrying a target page identifier is sent to the unified jump system. Since the current page configuration information corresponding to each page in the target application is pre-set in the configuration file of the unified jump system, the unified jump system can respond to the page configuration information request instruction and return the target page configuration information to the target terminal. Then the target terminal loads the target page based on the target page configuration information. On the one hand, the embodiment of the present application stores the current page configuration information of each page in the target application in the configuration file of the unified jump system, instead of storing the page configuration information of the target application or the corresponding page frame in the configuration file of the unified jump system. The framework is set in the installation package of the target application. When the page frame of the target page needs to be modified, it is only necessary to modify the corresponding page configuration information in the unified jump system configuration file. There is no need for the user terminal to update the installation package of the target application, thereby improving the page loading efficiency and the modification efficiency of the page frame; on the other hand, when the page loading fails in the embodiment of the present application, the target terminal will send a loading failure information to the unified jump system. The unified jump system will automatically downgrade the page configuration information of the corresponding page based on the loading failure information and the preset configuration information downgrade rules. There is no need for the developer to manually switch the page configuration information, which improves the switching efficiency of the page configuration information and the modification efficiency of the page frame. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0028] Figure 1 A schematic diagram of an application scenario of the page loading method provided in an embodiment of the present application;

[0029] Figure 2 A schematic diagram of a flow chart of a page loading method provided in an embodiment of the present application;

[0030] Figure 3 A schematic block diagram of a first page loading device provided in an embodiment of the present application;

[0031] Figure 4 A schematic block diagram of a second page loading device provided in an embodiment of the present application;

[0032] Figure 5 A schematic block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0034] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0035] It should also be understood that the terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.

[0036] It should be further understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0037] Embodiments of the present application provide a page loading method, apparatus, computer equipment, and storage medium.

[0038] The executor of the page loading method may be the page loading device provided in the embodiment of the present application, or a computer device integrated with the page loading device, wherein the page loading device may be implemented in hardware or software, and the computer device may be a terminal or a server.

[0039] For ease of understanding, this embodiment takes the Weex framework as the original page framework before the upgrade (after the downgrade), and the React Native framework as the upgraded page framework as an example for illustration. The frameworks before and after the upgrade can also be other types of frameworks. The framework type depends on the actual application situation. This application does not limit the framework types before and after the upgrade.

[0040] See also Figure 1 , Figure 1 Schematic diagram of an application scenario of the page loading method provided in an embodiment of the present application. The page loading method provided in the present application is applied to a page intelligent loading system including a target terminal, a unified jump system, and a target server, wherein:

[0041] The target terminal is a user terminal with a target application installed. The target application includes multiple pages, each of which can be loaded based on different types of page frames according to settings. The current page of the target application has some or all of its page frames upgraded.

[0042] The unified jump system is the company's backend system, which is used to configure the current page configuration information of each page in the target application. The unified jump system is provided with a configuration file and a downgrade file. The configuration file stores the current page configuration information of each page in the target application, and the downgrade file stores the downgraded page configuration information of each page that has undergone a framework upgrade (the page configuration information corresponding to the stable page framework before the upgrade). It can be seen that in this embodiment, the unified jump system is provided with upgraded page configuration information and pre-upgrade page configuration information for the pages that have undergone an upgrade. The upgraded page configuration information is used to instruct the target terminal to download the upgraded framework package in the target server, and the pre-upgrade page configuration information is used to instruct the target terminal to download the original (downgraded) framework package in the target server.

[0043] For example, in the unified jump system, the page configuration information corresponding to the react native framework is:

[0044] {

[0045] "pageType": "reactnative"

[0046] enable": "1".

[0047] "name": "login reactnative bundle.rn",

[0048] "url":"https: / / *****_bundle.rn"

[0049] }

[0050] The page configuration information corresponding to the weex framework is:

[0051] {

[0052] "pageType": "weex"

[0053] "enable": "1",

[0054] "name": "login_weex bundle.wx"

[0055] "url":"https: / *****_weex_bundle.wx"

[0056] }

[0057] The target server stores the framework packages used by each page in the target application. In this embodiment, the target server stores two different types of bundles for the upgraded pages, namely the upgraded framework packages (such as the react native framework packages) and the pre-upgrade framework packages (such as the weex framework packages).

[0058] Figure 2 This is a schematic diagram of an interactive process of the page loading method provided by the embodiment of the present application. Figure 2 As shown, the method includes the following steps S110-S180.

[0059] S110. When receiving a loading instruction for a target page in the target application, the target terminal sends a page configuration information request instruction carrying a target page identifier to the unified jump system.

[0060] For example, the user opens the target application in the target terminal. When the user needs to access the target page, the user clicks the entrance of the target page in the target application. At this time, a loading instruction for the target page in the target application is triggered in the target terminal.

[0061] When receiving the above-mentioned loading instruction, the target terminal sends a page configuration information request instruction carrying the target page identifier to the unified jump system, wherein the target page identifier is a unique identifier corresponding to the target page.

[0062] The target terminal may specifically be a mobile phone, a computer, etc.

[0063] S120: The unified jump system determines the target page configuration information corresponding to the target page identifier from a preset configuration file in response to the page configuration information request instruction.

[0064] In this embodiment, the configuration file of the unified jump system stores the current page configuration information corresponding to each page in the target application. After the unified jump system obtains the page configuration information request instruction sent by the target terminal, it finds the current page configuration information corresponding to the target page identifier from the configuration file as the target page configuration information.

[0065] S130: The unified jump system returns the target page configuration information to the target terminal.

[0066] In this embodiment, after the unified jump system finds the target page configuration information corresponding to the target page identifier from the configuration file, it returns the target page configuration information to the target terminal. The target page configuration information is used to instruct the target terminal to load the target page.

[0067] S140: The target terminal downloads the target framework package from the target server according to the target link in the target page configuration information.

[0068] In this embodiment, after the target terminal obtains the target page configuration letter, it parses the target page configuration letter, obtains the target link from the target page configuration information, and downloads the target framework package from the target server based on the target link. Specifically, the target terminal sends a download request for the target framework package to the target server based on the target link, and then the target server responds to the download request and returns the target framework package to the target terminal.

[0069] For example, when the target framework package is the react native framework package, the corresponding link in the target page configuration information is:

[0070] "https: / / *****_bundle.rn";

[0071] The target terminal can download the target framework package from the target server through the target link.

[0072] S150: The target terminal loads the target page based on the target framework package.

[0073] In this embodiment, after the target terminal downloads the target framework package corresponding to the target page, the target framework is obtained through the target framework package, and the target page is loaded based on the target framework.

[0074] It can be seen that in this embodiment, when it is necessary to load the target page, it is first necessary to access the unified jump system, obtain the target page configuration information corresponding to the target page from the unified jump system, and then load the target page based on the obtained target page configuration information, instead of setting the page configuration information of the target application or the corresponding page frame in the installation package of the target application. When it is necessary to modify the page frame of the target page, it is only necessary to modify the corresponding page configuration information in the unified jump system configuration file, and there is no need for the user terminal to update the installation package of the target application, thereby improving the modification efficiency of the page frame.

[0075] In some embodiments, in order to improve page loading efficiency, the target terminal downloads the page frames of each page when it is currently started. At this time, when the user clicks on other pages in the target application, since the target terminal has downloaded the page frame in advance, the corresponding page can be quickly loaded based on the pre-downloaded page frame, thereby improving the page loading efficiency.

[0076] However, since the page frame may be changed after the target terminal is started, in order to reduce the possibility of page loading failure, at this time, before the target terminal downloads the target frame package from the target server according to the target link in the target page configuration information, the method further includes:

[0077] Detecting whether a local framework package corresponding to the target page exists in a local database; if the local framework package exists, determining whether the local framework package needs to be updated;

[0078] Specifically, the following steps are used to determine whether the local framework package needs to be updated:

[0079] Determine the local page configuration information of the target page from the local database according to the target page identifier; compare the local page configuration information with the target page configuration information to obtain a comparison result; and determine whether the local framework package needs to be updated according to the comparison result.

[0080] Specifically, if local page configuration information corresponding to the target page identifier exists in the local database, it is determined that a local frame package body corresponding to the target page exists in the local database; the local page configuration information includes the first MD5 value of the local frame package body of the target page, and the target page configuration information includes the second MD5 value of the target frame package body currently set for the target page. Then the target terminal compares the first MD5 with the second MD5 value. If they are consistent, it means that the local frame package body and the target frame package body are the same, and the local frame package body does not need to be updated. If they are inconsistent, it means that the local frame package body and the target frame package body are different. At this time, the local frame package body needs to be updated.

[0081] At this time, downloading the target framework package from the target server according to the target link in the target page configuration information includes:

[0082] If the local framework package does not exist in the local database or it is determined that the local framework package needs to be updated, the target framework package is downloaded from the target server according to the target link.

[0083] That is, when it is determined that the local framework package does not exist in the local database or it is determined that the local framework package needs to be updated, the target framework package needs to be downloaded from the target server. If the local framework package exists in the local database and it is determined that the local framework package does not need to be updated, then there is no need to download the target framework package from the target server, and the local framework package is used as the target framework package to load the target page, thereby improving the loading speed of the page.

[0084] S160: If the loading is successful, jump to the target page.

[0085] In this embodiment, if the target terminal successfully loads the target page based on the target frame, the target page is displayed on the display interface of the target terminal in response to the loading instruction of the target page.

[0086] S170: If the loading fails, a loading failure message carrying the target page identifier is sent to the unified jump system.

[0087] In this embodiment, if the target terminal fails to load the target page based on the target frame, a loading failure message carrying the target page identifier is sent to the unified jump system. The loading failure message is used to indicate that the target terminal failed to load the target page when using the target frame corresponding to the target page identifier. Therefore, when the unified jump system obtains the loading failure message, it can be known that a loading failure event has occurred in the target page corresponding to the target page identifier.

[0088] S180: In response to the loading failure information, the unified jump system downgrades the target page configuration information in the configuration file according to the target page identifier and a preset configuration information downgrade rule.

[0089] In this embodiment, specifically, the unified jump system performs downgrade processing on the target page configuration information through the following steps.

[0090] In response to the loading failure information, the total number of loads and the number of loading failures of the target page within a preset time period are determined according to the target page identifier; the loading failure rate of the target page within the preset time period is determined according to the total number of loads and the number of loading failures; if the loading failure rate is greater than a preset loading failure rate threshold, the degraded page configuration information corresponding to the target page identifier is determined from a preset degraded file; the current page configuration information corresponding to the target page identifier in the configuration file is updated to the degraded page configuration information, and the degraded page configuration information is used to instruct the target terminal to download the downgraded framework package from the target server.

[0091] Specifically, since the target application in the terminal sends corresponding loading failure information to the unified jump system every time a page loading failure occurs, the unified jump system can automatically count the number of loading failures of each page. When the unified jump system receives loading failure information carrying the target page identifier, it is necessary to update the total number of loading times and the number of loading failures of the target page corresponding to the target page identifier within the preset time period. For example, the unified jump system stores the total number of loading times and the number of loading failures of the target page within nearly half an hour. For example, the total number of loading times is 1000 times and the number of loading failures is 99 times. If the loading failure information carrying the target page identifier is received again, the number of loading failures is updated to 100 times. At this time, the calculated loading failure rate is: 100 / 1000=10%; and the preset loading failure rate threshold is 9%. At this time, it is determined that the loading failure rate is greater than the loading failure rate threshold. The unified jump system automatically determines the degraded page configuration information corresponding to the target page identifier from the preset degraded file, and updates the current page configuration information corresponding to the target page identifier in the configuration file to the degraded page configuration information.

[0092] For example, in the configuration file of the unified jump system, the react native page configuration information is configured for the current target application. After the target application is downgraded, the react native page configuration information corresponding to the target application in the configuration file is automatically switched to the weex page configuration information. At this time, the target page of the terminal is automatically switched from the react native page (a page loaded based on the react native framework) to the weex page (a page loaded based on the weex framework). By switching the target file page configuration information in the configuration file, the target page is quickly downgraded from the react native page to the weex page.

[0093] When the unified jump system downgrades the target page configuration information in the configuration file and updates the current page configuration information corresponding to the target page identifier in the configuration file to the downgraded page configuration information, when the target terminal receives a retry loading instruction for the target page, the target terminal sends a downgraded page configuration information request instruction carrying the target page identifier to the unified jump system, so that the unified jump system responds to the downgraded page configuration information request instruction, determines the downgraded page configuration information corresponding to the target page identifier from the configuration file; then receives the downgraded page configuration information returned by the unified jump system; and downloads the downgraded framework package from the target server according to the downgraded page configuration information; and then loads the target page based on the downgraded framework package. Specifically, the downgraded framework is obtained from the downgraded framework package, and then the target page is loaded based on the downgraded framework.

[0094] Among them, in this embodiment, the downgraded page framework is a relatively stable page framework that has been used for a long time, so after downgrading the upgraded react native page to the weex page, the target page can be loaded stably, the stability of page loading can be improved, and thus the user experience can be improved.

[0095] Furthermore, after the developer completes debugging the upgraded page frame of the target page, or upgrades the page frames of other pages in the target application that have not been upgraded, the page frames of the pages that have not been upgraded will also be upgraded. For example, the target page frame is upgraded by the following steps:

[0096] receiving an upgrade instruction carrying the target page identifier and upgrade page configuration information;

[0097] In response to the upgrade instruction, the current page configuration information corresponding to the target page identifier in the configuration file is updated to the upgraded page configuration information.

[0098] It should be noted that the server pre-stores the upgraded page framework package corresponding to the upgraded page configuration information, and the target terminal can download the upgraded page framework package from the server based on the upgraded page configuration information.

[0099] To sum up, in this embodiment, when the target terminal installed with the target application needs to load the target page in the target application, it will send a page configuration information request instruction carrying the target page identifier to the unified jump system. Since the current page configuration information corresponding to each page in the target application is pre-set in the configuration file of the unified jump system, the unified jump system can respond to the page configuration information request instruction and return the target page configuration information to the target terminal. Then the target terminal loads the target page based on the target page configuration information. On the one hand, the embodiment of the present application stores the current page configuration information of each page in the target application in the configuration file of the unified jump system, instead of storing the page configuration information of the target application in the configuration file of the unified jump system. Or the corresponding page frame is set in the installation package of the target application. When the page frame of the target page needs to be modified, it is only necessary to modify the corresponding page configuration information in the unified jump system configuration file. There is no need for the user terminal to update the installation package of the target application, thereby improving the page loading efficiency; on the other hand, when the page loading fails in the embodiment of the present application, the target terminal will send a loading failure information to the unified jump system. The unified jump system will automatically downgrade the page configuration information of the corresponding page based on the loading failure information and the preset configuration information downgrade rules. There is no need for the developer to manually switch the page configuration information, which improves the switching efficiency of the page configuration information and the modification efficiency of the page frame.

[0100] Figure 3 : is a schematic block diagram of a first page loading device 300 provided in an embodiment of the present application. Figure 3 As shown, corresponding to the above page loading method, the present application further provides a first page loading device 300, which is configured in a target terminal, and the target terminal has a target application installed therein. The first page loading device 300 includes a first transceiver unit 301 and a first processing unit 302, wherein:

[0101] The first transceiver unit 301 is configured to, upon receiving a loading instruction for a target page in the target application, send a page configuration information request instruction carrying a target page identifier to the second page loading device 400, so that the second page loading device 400, in response to the page configuration information request instruction, determines the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the configuration file stores current page configuration information corresponding to each page in the target application; and receive the target page configuration information returned by the second page loading device 400;

[0102] The first processing unit 302 is used to load the target page according to the target page configuration information; if the loading is successful, it jumps to the target page; if the loading fails, it sends a loading failure message carrying the target page identifier to the second page loading device 400 through the first transceiver unit 301, so that the second page loading device 400 responds to the loading failure message and downgrades the target page configuration information in the configuration file according to the target page identifier and the preset configuration information downgrade rules.

[0103] Figure 4 : is a schematic block diagram of a second page loading device 400 provided in an embodiment of the present application. Figure 4 As shown, corresponding to the above page loading method, the present application further provides a second page loading device 400, which is configured in the unified jump system. The second page loading device 400 includes a second transceiver unit 401 and a second processing unit 402, wherein:

[0104] The second processing unit 402 is configured to, upon receiving a page configuration information request instruction carrying a target page identifier sent by the first page loading device 300, determine the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the page configuration information request instruction is an instruction generated by the first page loading device 300 when receiving a loading instruction for a target page in a target application, and the configuration file stores current page configuration information corresponding to each page in the target application;

[0105] The second transceiver unit 401 is configured to return the target page configuration information to the first page loading device 300, so that the first page loading device 300 loads the target page according to the target page configuration information; when the first page loading device 300 fails to load the target page according to the target page configuration information, receive a loading failure message carrying the target page identifier sent by the first page loading device 300;

[0106] The second processing unit 402 is further configured to, in response to the loading failure information, perform downgrade processing on the target page configuration information in the configuration file according to the target page identifier and a preset configuration information downgrade rule.

[0107] To sum up, on the one hand, the embodiment of the present application stores the current page configuration information of each page in the target application in the configuration file of the second page loading device 400, instead of setting the page configuration information of the target application or the corresponding page frame in the installation package of the target application. When the page frame of the target page needs to be modified, it is only necessary to modify the corresponding page configuration information in the configuration file of the second page loading device 400, and there is no need for the user terminal to update the installation package of the target application, thereby improving the page loading efficiency and the page frame modification efficiency; on the other hand, when the page loading fails in the embodiment of the present application, the first page loading device 300 will send a loading failure information to the second page loading device 400, and the second page loading device 400 will automatically downgrade the page configuration information of the corresponding page based on the loading failure information and the preset configuration information downgrade rules, without the need for the developer to manually switch the page configuration information, thereby improving the switching efficiency of the page configuration information and the modification efficiency of the page frame.

[0108] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned page loading device and each unit can refer to the corresponding description in the aforementioned method embodiment. For the convenience and brevity of description, it will not be repeated here.

[0109] The page loading device can be implemented as a computer program. Figure 5 Runs on the computer equipment shown.

[0110] The computer device 500 may be a target terminal or a unified jump system in a page intelligent loading system, and a target application is installed in the target terminal.

[0111] See also Figure 5 , Figure 5 1 is a schematic block diagram of a computer device provided in an embodiment of the present application. When the computer device 500 is a unified hopping system, the computer device 500 can be a terminal or a server.

[0112] See Figure 5 The computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0113] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, which, when executed, can cause the processor 502 to perform a page loading method.

[0114] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.

[0115] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503 . When the computer program 5032 is executed by the processor 502 , the processor 502 can execute a page loading method.

[0116] The network interface 505 is used to communicate with other devices through the network. Figure 5 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0117] When the computer device 500 is a target terminal, the processor 502 is configured to execute a computer program 5032 stored in a memory to implement the following steps:

[0118] When a load instruction for a target page in the target application is received, a page configuration information request instruction carrying a target page identifier is sent to the unified jump system, so that the unified jump system responds to the page configuration information request instruction and determines the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the configuration file stores the current page configuration information corresponding to each page in the target application;

[0119] Receiving the target page configuration information returned by the unified jump system;

[0120] Loading the target page according to the target page configuration information;

[0121] If the loading is successful, jump to the target page;

[0122] If the loading fails, a loading failure message carrying the target page identifier is sent to the unified jump system, so that the unified jump system responds to the loading failure message and downgrades the target page configuration information in the configuration file according to the target page identifier and the preset configuration information downgrade rules.

[0123] When the computer device 500 is a unified jump system, the processor 502 is used to run the computer program 5032 stored in the memory to implement the following steps:

[0124] When receiving a page configuration information request instruction carrying a target page identifier from a target terminal, determining the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the page configuration information request instruction is an instruction generated when the target terminal receives a load instruction for a target page in a target application, and the configuration file stores current page configuration information corresponding to each page in the target application;

[0125] Returning the target page configuration information to the target terminal, so that the target terminal loads the target page according to the target page configuration information;

[0126] When the target terminal fails to load the target page according to the target page configuration information, receiving loading failure information sent by the target terminal and carrying the target page identifier;

[0127] In response to the loading failure information, the target page configuration information in the configuration file is downgraded according to the target page identifier and a preset configuration information downgrade rule.

[0128] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0129] Those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program includes program instructions, which can be stored in a storage medium that is computer-readable. The program instructions are executed by at least one processor in the computer system to implement the steps in the method of the above-described embodiment.

[0130] Therefore, the present application also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor performs the following steps:

[0131] When a load instruction for a target page in the target application is received, a page configuration information request instruction carrying a target page identifier is sent to the unified jump system, so that the unified jump system responds to the page configuration information request instruction and determines the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the configuration file stores the current page configuration information corresponding to each page in the target application;

[0132] Receiving the target page configuration information returned by the unified jump system;

[0133] Loading the target page according to the target page configuration information;

[0134] If the loading is successful, jump to the target page;

[0135] If the loading fails, a loading failure message carrying the target page identifier is sent to the unified jump system, so that the unified jump system responds to the loading failure message and downgrades the target page configuration information in the configuration file according to the target page identifier and a preset configuration information downgrade rule. Or;

[0136] When receiving a page configuration information request instruction carrying a target page identifier from a target terminal, determining the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the page configuration information request instruction is an instruction generated when the target terminal receives a load instruction for a target page in a target application, and the configuration file stores current page configuration information corresponding to each page in the target application;

[0137] Returning the target page configuration information to the target terminal, so that the target terminal loads the target page according to the target page configuration information;

[0138] When the target terminal fails to load the target page according to the target page configuration information, receiving loading failure information sent by the target terminal and carrying the target page identifier;

[0139] In response to the loading failure information, the target page configuration information in the configuration file is downgraded according to the target page identifier and a preset configuration information downgrade rule.

[0140] The storage medium may be any computer-readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.

[0141] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0142] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and other division methods may be used in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not implemented.

[0143] The steps in the method of the embodiment of the present application can be adjusted in order, combined, and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided, and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit.

[0144] If this integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of this application, or the part that contributes to the existing technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of this application.

[0145] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A page loading method, characterized in that: The method is applied to a target terminal, wherein a target application is installed in the target terminal, and the method includes: When receiving a load instruction for a target page in the target application, sending a page configuration information request instruction carrying a target page identifier to a background system, so that the background system, in response to the page configuration information request instruction, determines the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the configuration file stores current page configuration information corresponding to each page in the target application; Receiving the target page configuration information returned by the background system; Loading the target page according to the target page configuration information includes: downloading a target framework package from a target server according to a target link in the target page configuration information; and loading the target page based on the target framework package; If the loading is successful, jump to the target page; If the loading fails, a loading failure message carrying the target page identifier is sent to the background system, so that the background system, in response to the loading failure message, downgrades the target page configuration information in the configuration file according to the target page identifier and a preset configuration information downgrade rule; After sending the loading failure information carrying the target page identifier to the background system, the method further includes: When a retry loading instruction for the target page is received, a degraded page configuration information request instruction carrying the target page identifier is sent to the background system, so that the background system determines, in response to the degraded page configuration information request instruction, the degraded page configuration information corresponding to the target page identifier from the configuration file; wherein the degraded page configuration information is page configuration information obtained after the background system performs degrading processing on the target page configuration information in the configuration file; Receiving the degraded page configuration information returned by the background system; Downloading the downgraded framework package from the target server according to the downgrade page configuration information; The target page is loaded based on the downgraded framework package.

2. The method according to claim 1, characterized in that Before downloading the target framework package from the target server according to the target link in the target page configuration information, the method further includes: Detecting whether there is a local framework package corresponding to the target page in the local database; If the local framework package exists, determining whether the local framework package needs to be updated; The downloading of the target framework package from the target server according to the target link in the target page configuration information includes: If the local framework package does not exist in the local database or it is determined that the local framework package needs to be updated, the target framework package is downloaded from the target server according to the target link.

3. The method according to claim 2, characterized in that The determining whether the local framework package needs to be updated includes: Determining local page configuration information of the target page from the local database according to the target page identifier; Comparing the local page configuration information with the target page configuration information to obtain a comparison result; Determine whether the local framework package needs to be updated based on the comparison result.

4. A page loading method, characterized in that: The method is applied to a background system and includes: When receiving a page configuration information request instruction carrying a target page identifier from a target terminal, determining the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the page configuration information request instruction is an instruction generated when the target terminal receives a load instruction for a target page in a target application, and the configuration file stores current page configuration information corresponding to each page in the target application; Returning the target page configuration information to the target terminal so that the target terminal loads the target page according to the target page configuration information, including: downloading a target framework package from a target server according to a target link in the target page configuration information; and loading the target page based on the target framework package; When the target terminal fails to load the target page according to the target page configuration information, receiving loading failure information sent by the target terminal and carrying the target page identifier; In response to the loading failure information, downgrading the target page configuration information in the configuration file according to the target page identifier and a preset configuration information downgrading rule; receiving a downgraded page configuration information request instruction carrying the target page identifier sent by the target terminal, and determining, in response to the downgraded page configuration information request instruction, downgraded page configuration information corresponding to the target page identifier from the configuration file; wherein the downgraded page configuration information is page configuration information obtained after the background system downgrades the target page configuration information in the configuration file; The downgraded page configuration information is returned to the target terminal, so that the target terminal downloads the downgraded framework package from the target server according to the downgraded page configuration information; and the target page is loaded based on the downgraded framework package.

5. The method according to claim 4, characterized in that In response to the loading failure information, downgrading the target page configuration information in the configuration file according to the target page identifier and a preset configuration information downgrading rule includes: In response to the loading failure information, determining a total number of loading times and a number of loading failures of the target page within a preset time period according to the target page identifier; Determining a loading failure rate of the target page within the preset time period based on the total number of loading times and the number of loading failures; If the loading failure rate is greater than a preset loading failure rate threshold, determining the degraded page configuration information corresponding to the target page identifier from a preset degrade file; The current page configuration information corresponding to the target page identifier in the configuration file is updated to the downgraded page configuration information, where the downgraded page configuration information is used to instruct the target terminal to download the downgraded framework package from the target server.

6. The method according to claim 5, characterized in that After updating the current page configuration information corresponding to the target page identifier in the configuration file to the degraded page configuration information, the method further includes: receiving an upgrade instruction carrying the target page identifier and upgrade page configuration information; In response to the upgrade instruction, the current page configuration information corresponding to the target page identifier in the configuration file is updated to the upgraded page configuration information.

7. A page loading device, characterized in that: The page loading device is a first page loading device or a second page loading device. The first page loading device is configured in a target terminal, and a target application is installed in the target terminal. The second page loading device is configured in a background system. The first page loading device includes a first transceiver unit and a first processing unit. The second page loading device includes a second transceiver unit and a second processing unit, wherein: The first transceiver unit is configured to, upon receiving a loading instruction for a target page in the target application, send a page configuration information request instruction carrying a target page identifier to the second page loading device, so that the second page loading device, in response to the page configuration information request instruction, determines the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the configuration file stores current page configuration information corresponding to each page in the target application; and receive the target page configuration information returned by the second page loading device; The first processing unit is configured to load the target page according to the target page configuration information, including: downloading a target framework package from a target server according to a target link in the target page configuration information; performing loading processing on the target page based on the target framework package; if loading is successful, jumping to the target page; if loading fails, sending a loading failure message carrying the target page identifier to the second page loading device via the first transceiver unit, so that the second page loading device, in response to the loading failure message, performs downgrade processing on the target page configuration information in the configuration file according to the target page identifier and a preset configuration information downgrade rule; The first processing unit is further configured to: When a retry loading instruction for the target page is received, a downgraded page configuration information request instruction carrying the target page identifier is sent to the second page loading device through the first transceiver unit, so that the second page loading device determines the downgraded page configuration information corresponding to the target page identifier from the configuration file in response to the downgraded page configuration information request instruction; wherein the downgraded page configuration information is page configuration information obtained after the second page loading device downgrades the target page configuration information in the configuration file; the downgraded page configuration information returned by the second page loading device is received through the first transceiver unit; the downgraded framework package is downloaded from the target server according to the downgraded page configuration information; and the target page is loaded based on the downgraded framework package; The second processing unit is configured to, upon receiving a page configuration information request instruction carrying a target page identifier sent by the first page loading device, determine the target page configuration information corresponding to the target page identifier from a preset configuration file, wherein the page configuration information request instruction is an instruction generated by the first page loading device when receiving a loading instruction for a target page in a target application, and the configuration file stores current page configuration information corresponding to each page in the target application; The second transceiver unit is configured to return the target page configuration information to the first page loading device, so that the first page loading device loads the target page according to the target page configuration information; the first page loading device loads the target page according to the target page configuration information, including: downloading a target framework package from a target server according to a target link in the target page configuration information; loading the target page based on the target framework package; and receiving a loading failure message carrying the target page identifier sent by the first page loading device when the first page loading device fails to load the target page according to the target page configuration information; The second processing unit is further configured to, in response to the loading failure information, perform downgrading processing on the target page configuration information in the configuration file according to the target page identifier and a preset configuration information downgrading rule; The second processing unit is further used to receive a downgraded page configuration information request instruction carrying the target page identifier sent by the first page loading device through the second transceiver unit, and determine the downgraded page configuration information corresponding to the target page identifier from the configuration file in response to the downgraded page configuration information request instruction; wherein, the downgraded page configuration information is the page configuration information obtained after the second page loading device downgrades the target page configuration information in the configuration file; return the downgraded page configuration information to the first page loading device, so that the first page loading device downloads the downgraded framework package from the target server according to the downgraded page configuration information; and load the target page based on the downgraded framework package.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the page loading method according to any one of claims 1 to 3 or 4 to 6 is implemented.

9. A storage medium, characterized in that: The storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, the processor executes the page loading method according to any one of claims 1 to 3 or 4 to 6.

Citation Information

Patent Citations

  • Page loading method, assembly, system, apparatus, and computer-readable storage medium

    WO2023024436A1

  • Page display method and apparatus, storage medium and electronic device

    WO2023169215A1