Application hot update method and device and storage medium
By querying the rendering instruction configuration file from the rendering instruction warehouse when the application page is accessed, rapid updating of the application page is achieved, which solves the problem of uncontrollable update time in the existing technology and realizes real-time and rapid updating of the application page.
Patent Information
- Application Number
- CN202410944620.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-09-13
AI Technical Summary
The existing application update method relies on the review of the application market and user-side downloading, resulting in uncontrollable update time and is not suitable for emergency error repair or real-time feature release scenarios.
By querying the page rendering instruction configuration file from the rendering instruction warehouse when the user accesses the application page, rapid updates to the target application page are achieved, bypassing the application market review and download steps, and using the preset instruction generator to build and upload page rendering instructions. Configuration file, using the preset instruction rendering engine to render the page.
Real-time updating of application pages is realized. Users can see the updated pages in time without downloading update packages from the application market, ensuring rapid updates and real-time performance of application pages.
Smart Images

Figure CN118642735A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of application update, and in particular to an application hot update method, device and storage medium. Background Art
[0002] During the process of system application development, if you need to update an application that has been released, you need to release the application update package through the application market. The application update package needs to be reviewed and tested by the application market and can only be put on the shelves after passing the review and testing. The review cycle is generally long. And when the application market client on the user side detects that there is a new application update package on the application market, it will download the latest version of the application update package, and then install and deploy the application update package through the package management service in the system. This method of application update depends on the review of the application market and the download of the application market client on the user side. The update time is uncontrollable and is not suitable for some urgent error repairs or real-time function release scenarios. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide an application hot update method, device and storage medium, which can realize the rapid update of the target application page based on the target page rendering instruction configuration in the page rendering instruction configuration file queried from the rendering instruction warehouse when the user accesses the target application page in the current application, bypassing the application market review and the steps of downloading the application update package from the application market, and ensuring the real-time update of the application page. The specific scheme is as follows:
[0004] In a first aspect, the present application provides an application hot update method, comprising:
[0005] When an application opening event is detected, a page rendering instruction configuration file corresponding to the current application is queried from a preset rendering instruction repository; wherein the page rendering instruction configuration file includes a plurality of page rendering instruction configurations, and different page rendering instruction configurations correspond to different application pages in the current application;
[0006] If an access event to a target application page in the current application is monitored, a search operation for the page rendering instruction configuration file is triggered to search for a target page rendering instruction configuration file corresponding to the target application page;
[0007] If the target page rendering instruction configuration is found, the target page rendering instruction configuration is used to render the target application page in the current application to complete the update of the target application page.
[0008] Optionally, before querying the page rendering instruction configuration file corresponding to the current application from the preset rendering instruction repository, the method further includes:
[0009] The project source code corresponding to the current application is identified through the preset instruction generator to obtain page layout information, the page rendering instruction configuration file is constructed based on the page layout information, and the page rendering instruction configuration file is uploaded to the preset rendering instruction warehouse.
[0010] Optionally, the identifying the project source code corresponding to the current application by the preset instruction generator to obtain the page layout information includes:
[0011] The project source code corresponding to the current application is parsed into an abstract syntax tree by the preset instruction generator, and the abstract syntax tree is identified to obtain the page layout information.
[0012] Optionally, querying a page rendering instruction configuration file corresponding to the current application from a preset rendering instruction repository includes:
[0013] Querying the page rendering instruction configuration file corresponding to the current application from the preset rendering instruction repository based on the preset product configuration policy through the preset instruction service;
[0014] If the page rendering instruction configuration file is found, the page rendering instruction configuration file is stored;
[0015] If the page rendering instruction configuration file is not found, an empty configuration file corresponding to the current application is obtained.
[0016] Optionally, the method further includes:
[0017] After finding the target page rendering instruction configuration corresponding to the target application page, detecting the validity of the target page rendering instruction configuration;
[0018] Correspondingly, if the target page rendering instruction configuration is found, the target application page in the current application is rendered using the target page rendering instruction configuration, including:
[0019] If the target page rendering instruction configuration is found and the target page rendering instruction configuration is a valid configuration, the target application page in the current application is rendered using the target page rendering instruction configuration.
[0020] Optionally, the detecting the validity of the target page rendering instruction configuration includes:
[0021] Determine the application version number corresponding to the target page rendering instruction configuration;
[0022] If the application version number corresponding to the target page rendering instruction configuration is higher than the application version number of the current application, the target page rendering instruction configuration is determined to be a valid configuration.
[0023] Optionally, the method further includes:
[0024] If the target page rendering instruction configuration is not found or the target page rendering instruction configuration is an invalid configuration, the target application page is rendered based on the original page rendering logic of the target application page in the current application.
[0025] Optionally, the using the target page rendering instruction configuration to render the target application page in the current application includes:
[0026] Binding the user data and the page data of the target application page through a preset instruction rendering engine, and rendering the target application page using the target page rendering instruction configuration through the preset instruction rendering engine after binding the data;
[0027] The page data includes page context data and interface data.
[0028] Optionally, the using the target page rendering instruction configuration to render the target application page in the current application includes:
[0029] The target page rendering instruction configuration is parsed to map each node in the target page rendering instruction configuration to a corresponding component on the target application page to complete page rendering of the target application page.
[0030] In a second aspect, the present application provides an electronic device, including:
[0031] Memory, used to store computer programs;
[0032] The processor is used to execute the computer program to implement the aforementioned application hot update method.
[0033] In a third aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program implements the aforementioned application hot update method when executed by a processor.
[0034] In the present application, when an application opening event is detected, a page rendering instruction configuration file corresponding to the current application is queried from a preset rendering instruction repository; wherein the page rendering instruction configuration file contains several page rendering instruction configurations, and different page rendering instruction configurations correspond to different application pages in the current application; if an access event to a target application page in the current application is detected, a search operation for the page rendering instruction configuration file is triggered to search for a target page rendering instruction configuration corresponding to the target application page from the page rendering instruction configuration file; if the target page rendering instruction configuration is found, the target page rendering instruction configuration is used to perform page rendering on the target application page in the current application to complete the update of the target application page. It can be seen that the present application saves the page rendering instruction configuration file through the rendering instruction warehouse, so that when the user opens the relevant application, the corresponding page rendering instruction configuration file can be directly queried from the rendering instruction warehouse, bypassing the application market review and the steps of downloading the application update package from the application market; and, when the user accesses the target application page in the current application, the corresponding target page rendering instruction configuration is searched from the page rendering instruction configuration file to implement hot update of the target application page based on the target page rendering instruction configuration, so that the user can see the updated application page in time, and the application page can be quickly updated without the user downloading the application update package from the application market, thereby ensuring the real-time update of the application page. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0036] Figure 1 This is an architecture diagram of an application hot update system disclosed in this application;
[0037] Figure 2 A flow chart of an application hot update method disclosed in this application;
[0038] Figure 3 A data flow diagram disclosed in this application;
[0039] Figure 4 A flow chart for constructing a page rendering instruction configuration file disclosed in this application;
[0040] Figure 5 A software application structure diagram disclosed in this application;
[0041] Figure 6 A page rendering flow chart disclosed in this application;
[0042] Figure 7 A schematic diagram of page rendering disclosed in this application;
[0043] Figure 8 A hot update flow chart of an application disclosed in this application;
[0044] Fig. 9 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] At present, application updates rely on the review and verification of the application market and the download of the application update package by the user-side application market client. The update time is uncontrollable and is not suitable for some urgent bug fixes or real-time function release scenarios. To this end, this application provides an application hot update method, which implements a rapid update of the target application page based on the target page rendering instruction configuration in the page rendering instruction configuration file queried from the rendering instruction warehouse when the user accesses the target application page in the current application, bypassing the application market review and the steps of downloading the application update package from the application market, and ensuring the real-time nature of the application page update.
[0047] The system framework used in the application hot update method of this application can be specifically referred to in Figure 1 As shown, it may specifically include: a software application 01 and a preset rendering instruction warehouse 02 connected to the software application 01 .
[0048] In the present application, the preset rendering instruction repository 02 pre-stores page rendering instruction configuration files corresponding to each software application 01 ; wherein the page rendering instruction configuration files are configuration files generated based on the project source code of the software application 01 .
[0049] Furthermore, the software application 01 is used to execute the steps of the application hot update method, including querying the page rendering instruction configuration file corresponding to the current application from the preset rendering instruction warehouse 02 when an application opening event is detected; and triggering a search operation for the page rendering instruction configuration file when an access event to the target application page in the current application is further detected, so as to search for the target page rendering instruction configuration file corresponding to the target application page from the page rendering instruction configuration file; if the target page rendering instruction configuration is found, the target application page in the current application is rendered using the target page rendering instruction configuration to complete the update of the target application page, so that the user can see the updated application page in real time.
[0050] See also Figure 2 As shown, an embodiment of the present invention discloses an application hot update method, including:
[0051] Step S11: when an application opening event is detected, a page rendering instruction configuration file corresponding to the current application is queried from a preset rendering instruction repository; wherein the page rendering instruction configuration file contains several page rendering instruction configurations, and different page rendering instruction configurations correspond to different application pages in the current application.
[0052] During the development process of software applications, if you want to update a software application that has been released and put on the shelves, after completing the project source code writing of the software application, one way is to compile the project source code through IDE (Integrated Development Environment) to package the project source code to generate an application update package, and put the application update package on the application market, so that users can download the application update package from the application market through the application market client, and install and deploy the application update package through the package management system to achieve the installation and update of the software application.
[0053] However, in order to achieve timely updates of software applications, this application completes the project source code of the software application, such as Figure 3 As shown, the project source code of the software application is identified by the instruction generator to construct a page rendering instruction configuration file, and the page rendering instruction configuration file is uploaded to the preset rendering instruction warehouse. Among them, the page rendering instruction configuration file is a plain text JSON (JavaScript Object Notation, JS object notation) file, which can be directly stored in the preset rendering instruction warehouse. In addition, the page rendering instruction configuration file contains several page rendering instruction configurations, and different page rendering instruction configurations correspond to different application pages in the software application.
[0054] Specifically, Figure 4As shown, the project source code corresponding to the software application is parsed into an Abstract Syntax Tree (AST) through a preset instruction generator, and the abstract syntax tree is identified to obtain page layout information. Then, a page rendering instruction configuration file is constructed based on the page layout information, and the page rendering instruction configuration file is uploaded to the preset rendering instruction warehouse for storage, so that when the user opens the software application, he can bypass the application market and directly search and download the corresponding page rendering instruction configuration file from the preset rendering instruction warehouse, thereby updating the software application.
[0055] In this embodiment, when the user opens the current application, the current application will correspondingly monitor the application opening event for itself, and at this time, the page rendering instruction configuration file corresponding to the current application can be queried from the preset rendering instruction warehouse according to the preset product configuration policy. Among them, the preset product configuration policy includes the configuration policy of the application version, for example, for the same software application, different user identifiers correspond to different application versions, etc.
[0056] Further, such as Figure 5 As shown, when the current application detects an application opening event for itself, the configuration management module will be started, and the preset instruction service will be called through the configuration management module, so that the preset instruction service can query the page rendering instruction configuration file corresponding to the current application from the preset rendering instruction warehouse based on the preset product configuration policy. If the preset instruction service queries the page rendering instruction configuration file from the preset rendering instruction warehouse, the page rendering instruction configuration file is downloaded from the preset rendering instruction warehouse, and the page rendering instruction configuration file is sent to the configuration management module for storage, waiting for the user to access the relevant page in the current application. If the preset instruction service does not query the page rendering instruction configuration file from the preset rendering instruction warehouse, an empty configuration file corresponding to the current application is sent to the configuration management module to indicate that the page rendering instruction configuration file corresponding to the current application has not been queried from the preset rendering instruction warehouse.
[0057] Step S12: If an access event to a target application page in the current application is monitored, a search operation for the page rendering instruction configuration file is triggered to search for a target page rendering instruction configuration file corresponding to the target application page.
[0058] When a user visits the target application page in the current application, the current application will correspondingly monitor the access event to the target application page in itself, and at this time will trigger a search operation for the page rendering instruction configuration file to find the target page rendering instruction configuration corresponding to the visited target application page from the page rendering instruction configuration file, so as to subsequently update the target application page based on the target page rendering instruction configuration.
[0059] If a target page rendering instruction configuration corresponding to the target application page being accessed is found in the page rendering instruction configuration file, the target application page in the current application is rendered using the target page rendering instruction configuration. If a target page rendering instruction configuration corresponding to the target application page being accessed is not found in the page rendering instruction configuration file, the target application page is rendered based on the original page rendering logic corresponding to the target application page in the current application.
[0060] Step S13: If the target page rendering instruction configuration is found, the target application page in the current application is rendered using the target page rendering instruction configuration to complete the update of the target application page.
[0061] In this embodiment, Figure 6 As shown, the target page rendering instruction configuration corresponding to the target application page being accessed is searched from the page rendering instruction configuration file. If the target page rendering instruction configuration is found, the validity of the target page rendering instruction configuration needs to be further tested. If the target page rendering instruction configuration is detected to be a valid configuration, the target application page in the current application is rendered using the target page rendering instruction configuration. If the target page rendering instruction configuration is detected to be an invalid configuration, the target application page is rendered based on the original page rendering logic of the target application page in the current application.
[0062] Among them, the detection of the validity of the target page rendering instruction configuration can be carried out by determining the application version number corresponding to the target page rendering instruction configuration, and comparing the application version number corresponding to the target page rendering instruction configuration and the application version number of the current application. If the application version number corresponding to the target page rendering instruction configuration is higher than the application version number of the current application, the target page rendering instruction configuration is determined to be a valid configuration. If the application version number corresponding to the target page rendering instruction configuration is lower than or equal to the application version number of the current application, the target page rendering instruction configuration is determined to be an invalid configuration. It should be noted that the comparison of application version numbers is only a specific implementation method of validity detection. Of course, there are other methods, which are not limited here.
[0063] Furthermore, for page rendering of the target application page, the preset instruction rendering engine in the current application can be used to bind user data and page data of the target application page, and the preset instruction rendering engine after binding the data uses the target page rendering instruction configuration to render the target application page, so as to complete the hot update of the target application page and display the updated target application page. The page data includes page context data and event interface data.
[0064] Furthermore, for page rendering of the target application page, the target page rendering instruction configuration corresponding to the target application page can be parsed to map each node in the target page rendering instruction configuration to a corresponding component on the target application page to complete the page rendering of the target application page. Figure 7 For example, for a certain section of source code in the current application, the preset instruction generator can be used to convert this section of source code into a page rendering instruction configuration in a page rendering instruction configuration file. In the process of using the page rendering instruction configuration to render the corresponding application page, the page rendering of the application page is achieved by mapping each node in the page rendering instruction configuration to the corresponding component on the application page, and then the rendered application page is displayed.
[0065] For example, the original project source code is version 1, and the updated project source code is version 2. In the development stage, a page rendering instruction configuration file corresponding to version 2 is constructed based on the project source code of version 2, and the page rendering instruction configuration file of version 2 is uploaded to the rendering instruction warehouse. In the running stage, when a user who has installed version 1 opens the application of version 1, the application queries the page rendering instruction configuration file of version 2 corresponding to the current application from the rendering instruction warehouse through the instruction service, and after querying the page rendering instruction configuration file of version 2, downloads the page rendering instruction configuration file of version 2 from the rendering instruction warehouse. Later, when the user opens the target application page in the version 1 application, the application will search the page rendering instruction configuration file of version 2 corresponding to the target application page from the page rendering instruction configuration file, and check whether the version number corresponding to the target page rendering instruction configuration is higher than the version number of the current application. If higher, the instruction rendering engine in the application is initialized according to the user data and the page data of the target application page, and the target application page is rendered according to the target page rendering instruction configuration of version 2 through the initialized instruction rendering engine, so as to update and display the target application page of version 2 on the application of version 1.
[0066] It can be seen that the present application saves the page rendering instruction configuration file through the rendering instruction warehouse, so that when the user opens the relevant application, the corresponding page rendering instruction configuration file can be directly queried from the rendering instruction warehouse, bypassing the application market review and the steps of downloading the application update package from the application market; and, when the user accesses the target application page in the current application, the corresponding target page rendering instruction configuration is searched from the page rendering instruction configuration file to implement hot update of the target application page based on the target page rendering instruction configuration, so that the user can see the updated application page in time, and the application page can be quickly updated without the user downloading the application update package from the application market, thereby ensuring the real-time update of the application page.
[0067] See also Figure 8 As shown, an embodiment of the present invention discloses an application hot update method, including:
[0068] During the development phase, after completing the writing of the project source code for the released software application, the page layout information of the project source code of the software application is identified through the instruction generator to build a page rendering instruction configuration file, which is a plain text JSON file; then the page rendering instruction configuration file is uploaded to the rendering instruction warehouse, and the corresponding preset product configuration strategy is configured for the page rendering instruction configuration file.
[0069] During the running stage, when the user opens the current application, the current application will correspondingly monitor the application opening event for itself and start the local configuration management module. Then, the command service in the current application is called through the configuration management module to query the page rendering command configuration file corresponding to the current application from the rendering command warehouse through the command service based on the preset product configuration policy. If the command service queries the page rendering command configuration file from the rendering command warehouse, the page rendering command configuration file downloaded from the rendering command warehouse will be sent to the configuration management module for storage. If the command service does not query the page rendering command configuration file from the rendering command warehouse, an empty configuration file corresponding to the current application will be sent to the configuration management module.
[0070] Furthermore, when a user accesses the target application page in the current application, the current application will correspondingly monitor the access event to the target application page in itself, and at this time, the target page rendering instruction configuration corresponding to the target application page will be searched from the page rendering instruction configuration file stored in the configuration management module. After finding the target page rendering instruction configuration, the validity of the target page rendering instruction configuration is further detected. If the target page rendering instruction configuration is detected to be an invalid configuration, the target application page is rendered based on the original page rendering logic of the target application page in the current application. If the target page rendering instruction configuration is detected to be a valid configuration, the user data and the page data of the target application page are bound through the instruction rendering engine in the current application, wherein the page data includes page context data and event interface data; then, the preset instruction rendering engine after binding the data uses the target page rendering instruction configuration to render the target application page, and displays the rendered target application page, thereby completing the hot update of the target application page.
[0071] It can be seen that the present application saves the page rendering instruction configuration file through the rendering instruction warehouse, so that when the user opens the relevant application, the corresponding page rendering instruction configuration file can be directly queried from the rendering instruction warehouse, bypassing the application market review and the steps of downloading the application update package from the application market; and, when the user accesses the target application page in the current application, the corresponding target page rendering instruction configuration is searched from the page rendering instruction configuration file to implement hot update of the target application page based on the target page rendering instruction configuration, so that the user can see the updated application page in time, and the application page can be quickly updated without the user downloading the application update package from the application market, thereby ensuring the real-time update of the application page.
[0072] Furthermore, the present application also discloses an electronic device. Fig. 9 This is a structural diagram of an electronic device 10 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0073] Fig. 9 A schematic diagram of the structure of an electronic device 10 provided in an embodiment of the present application. The electronic device 10 may specifically include: at least one processor 11, at least one memory 12, a power supply 13, a communication interface 14, an input / output interface 15, and a communication bus 16. The memory 12 is used to store a computer program, which is loaded and executed by the processor 11 to implement the relevant steps in the application hot update method disclosed in any of the aforementioned embodiments. In addition, the electronic device 10 in this embodiment may specifically be an electronic computer.
[0074] In this embodiment, the power supply 13 is used to provide working voltage for each hardware device on the electronic device 10; the communication interface 14 can create a data transmission channel between the electronic device 10 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 15 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0075] In addition, the memory 12, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 121, a computer program 122, etc., and the storage method can be temporary storage or permanent storage.
[0076] The operating system 121 is used to manage and control the hardware devices and computer programs 122 on the electronic device 10, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the application hot update method performed by the electronic device 10 disclosed in any of the aforementioned embodiments, the computer program 122 can further include a computer program that can be used to complete other specific tasks.
[0077] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed application hot update method. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.
[0078] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0079] Professionals may further 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 the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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.
[0080] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0081] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0082] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for hot updating an application, characterized in that: include: When an application opening event is detected, a page rendering instruction configuration file corresponding to the current application is queried from a preset rendering instruction repository; wherein the page rendering instruction configuration file includes a plurality of page rendering instruction configurations, and different page rendering instruction configurations correspond to different application pages in the current application; If an access event to a target application page in the current application is monitored, a search operation for the page rendering instruction configuration file is triggered to search for a target page rendering instruction configuration file corresponding to the target application page; If the target page rendering instruction configuration is found, the target page rendering instruction configuration is used to render the target application page in the current application to complete the update of the target application page.
2. The application hot update method according to claim 1, characterized in that: Before querying the page rendering instruction configuration file corresponding to the current application from the preset rendering instruction repository, the method further includes: The project source code corresponding to the current application is identified through the preset instruction generator to obtain page layout information, the page rendering instruction configuration file is constructed based on the page layout information, and the page rendering instruction configuration file is uploaded to the preset rendering instruction warehouse.
3. The application hot update method according to claim 2, characterized in that: The project source code corresponding to the current application is identified by the preset instruction generator to obtain page layout information, including: The project source code corresponding to the current application is parsed into an abstract syntax tree by the preset instruction generator, and the abstract syntax tree is identified to obtain the page layout information.
4. The application hot update method according to claim 1, characterized in that: The step of querying a page rendering instruction configuration file corresponding to the current application from a preset rendering instruction repository includes: Querying the page rendering instruction configuration file corresponding to the current application from the preset rendering instruction repository based on the preset product configuration policy through the preset instruction service; If the page rendering instruction configuration file is found, the page rendering instruction configuration file is stored; If the page rendering instruction configuration file is not found, an empty configuration file corresponding to the current application is obtained.
5. The application hot update method according to claim 1, characterized in that: Also includes: After finding the target page rendering instruction configuration corresponding to the target application page, detecting the validity of the target page rendering instruction configuration; Correspondingly, if the target page rendering instruction configuration is found, the target application page in the current application is rendered using the target page rendering instruction configuration, including: If the target page rendering instruction configuration is found and the target page rendering instruction configuration is a valid configuration, the target application page in the current application is rendered using the target page rendering instruction configuration.
6. The application hot update method according to claim 5, characterized in that: The detecting the validity of the target page rendering instruction configuration includes: Determine the application version number corresponding to the target page rendering instruction configuration; If the application version number corresponding to the target page rendering instruction configuration is higher than the application version number of the current application, the target page rendering instruction configuration is determined to be a valid configuration.
7. The application hot update method according to claim 1, characterized in that: Also includes: If the target page rendering instruction configuration is not found or the target page rendering instruction configuration is an invalid configuration, the target application page is rendered based on the original page rendering logic of the target application page in the current application.
8. The application hot update method according to claim 1, characterized in that: The using the target page rendering instruction configuration to render the target application page in the current application includes: Binding the user data and the page data of the target application page through a preset instruction rendering engine, and rendering the target application page using the target page rendering instruction configuration through the preset instruction rendering engine after binding the data; The page data includes page context data and interface data.
9. The application hot update method according to any one of claims 1 to 8, characterized in that: The using the target page rendering instruction configuration to render the target application page in the current application includes: The target page rendering instruction configuration is parsed to map each node in the target page rendering instruction configuration to a corresponding component on the target application page to complete page rendering of the target application page.
10. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the application hot update method according to any one of claims 1 to 9.
11. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the application hot update method according to any one of claims 1 to 9.
Citation Information
Cited By
Page rendering method and device, equipment, storage medium and product
CN119045853A
Page rendering method, device, apparatus, storage medium and product
CN119045853B
