CN117008936A - Page updating method and device, computing equipment and storage medium - Google Patents

Page updating method and device, computing equipment and storage medium Download PDF

Info

Publication number
CN117008936A
CN117008936A CN202310862224.2A CN202310862224A CN117008936A CN 117008936 A CN117008936 A CN 117008936A CN 202310862224 A CN202310862224 A CN 202310862224A CN 117008936 A CN117008936 A CN 117008936A
Authority
CN
China
Prior art keywords
application
page
file
resource file
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310862224.2A
Other languages
Chinese (zh)
Inventor
王孟永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Chezhiying Technology Co ltd
Original Assignee
Beijing Chezhiying Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Chezhiying Technology Co ltd filed Critical Beijing Chezhiying Technology Co ltd
Priority to CN202310862224.2A priority Critical patent/CN117008936A/en
Publication of CN117008936A publication Critical patent/CN117008936A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a page updating method, a page updating device, computing equipment and a storage medium, and relates to the technical field of Internet. The method is executed at a client to update an application page, the application includes a plurality of service modules, each service module corresponds to a page, the client is in communication connection with a server, the method includes: after the application is started, acquiring a configuration file generated by a server; judging whether the application rolls back or not according to the configuration file; if the rollback is not carried out, requesting the server to acquire the corresponding latest resource file according to the resource information in the configuration file; and updating the current page of the application according to the latest resource file. According to the technical scheme of the invention, the dynamic replacement and display of the pages corresponding to different service modules in the same application are realized, and the problem of repeated packaging in the development process of the hybrid application is solved.

Description

Page updating method and device, computing equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a page update method, a page update device, a computing device, and a storage medium.
Background
The real Native is an open-source cross-platform development framework, supports the development of IOS and Android Native applications by using an open-source JavaScript library reaction.js, and can realize the operation of one code on multiple platforms.
According to the prior art, in the process of developing the application based on the real Native, the application needs to be packaged for many times, the development efficiency is low, and one application program can only load one real Native page and the dynamic replacement of the real Native page in one application program can not be realized. In addition, the dynamic configuration scheme in the prior art has the problems of strong code invasion, low safety, closed code, low expansibility and difficult maintenance.
For this reason, a page update method is needed to solve the problems in the above technical solutions.
Disclosure of Invention
To this end, the present invention provides a page updating method and page updating apparatus to solve or at least alleviate the above-mentioned problems.
According to one aspect of the present invention, there is provided a page updating method executed at a client to update a page of an application, the application including a plurality of service modules, each service module corresponding to a respective page, the client being communicatively connected to a server, the method comprising: after the application is started, acquiring a configuration file generated by a server; judging whether the application rolls back or not according to the configuration file; if the rollback is not carried out, requesting the server to acquire the corresponding latest resource file according to the resource information in the configuration file; and updating the current page of the application according to the latest resource file.
Optionally, in the page updating method according to the present invention, the resource information includes a resource name, a version number, and a service name corresponding to the service module; requesting to obtain a corresponding latest resource file from a server according to the resource information in the configuration file, including: requesting a server to acquire an up-to-date resource file corresponding to the service name according to the resource information; updating the current page of the application according to the latest resource file, including: and updating the current page of the application into a page corresponding to the service module according to the latest resource file corresponding to the service name.
Optionally, in the page updating method according to the present invention, updating the current page of the application to the page corresponding to the service module according to the latest resource file corresponding to the service name includes: and generating a service object according to the related information of the latest resource file, and transmitting the service object to a service module corresponding to the service name so as to update the current page of the application into a page corresponding to the service module.
Optionally, in the page updating method according to the present invention, according to the resource information in the configuration file, the request for obtaining the corresponding latest resource file from the server includes: judging whether the version number of the current resource file at the client is consistent with the version number of the latest resource file; if the resource information in the configuration file is inconsistent, requesting the server to acquire a corresponding latest resource file; and updating the current resource file local to the client according to the latest resource file.
Optionally, in the page updating method according to the present invention, according to the resource information in the configuration file, the method requests to obtain the corresponding latest resource file from the server, and further includes: judging whether the type of the current resource file of the local client is abnormal or not; if so, requesting the server to acquire a corresponding latest resource file according to the resource information in the configuration file; and updating the current resource file local to the client according to the latest resource file.
Optionally, in the page updating method according to the present invention, further comprising: and saving the version number of the latest resource file.
Optionally, in the page updating method according to the present invention, the step of requesting the server to acquire the corresponding latest resource file includes: requesting to obtain a corresponding compressed file from a server; decompressing the compressed file to obtain the latest resource file, and storing the latest resource file under a preset directory.
Optionally, in the page updating method according to the present invention, further comprising: all crash events during the application run are captured.
Optionally, in the page updating method according to the present invention, determining whether the application rolls back according to the configuration file includes: judging whether the application carries out gray scale processing or not according to the configuration file, and if so, judging whether the application carries out rollback or not according to the configuration file.
According to one aspect of the present invention, there is provided a page updating apparatus deployed on a client for updating pages of an application, where the application includes a plurality of service modules, each service module corresponding to a page, and the client is communicatively connected to a server, and the method includes: the first acquisition module is suitable for acquiring a configuration file generated by a server after the application is started; the judging module is suitable for judging whether the application rolls back or not according to the configuration file; the second acquisition module is suitable for requesting the server to acquire the corresponding latest resource file according to the resource information in the configuration file if rollback is not performed; and the updating module is suitable for updating the current page of the application according to the latest resource file.
According to one aspect of the invention, there is provided a computing device comprising: at least one processor; a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the page update method as described above.
According to one aspect of the present invention, there is provided a readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform a page update method as described above.
According to the technical scheme of the invention, the page updating method is provided, the application can comprise a plurality of service modules, each service module corresponds to one page respectively, so that the pages of different service modules can be loaded and displayed in the same application, and the problem of repeated packaging in the development process of the hybrid application is solved. The method comprises the steps that after an application is started, a configuration file dynamically generated by a server can be obtained, if the application is judged not to roll back according to the configuration file, a corresponding latest resource file can be requested to be obtained from the server according to resource information in the configuration file, and then a current page of the application can be updated according to the latest resource file. Here, for different service modules, the latest resource file corresponding to the service name may be acquired according to the resource information (including the service name), so that the current page of the application may be updated to the page corresponding to the service module according to the latest resource file. Therefore, the invention realizes the dynamic replacement and display of the pages corresponding to different service modules in the same application. According to the technical scheme, the application and the real Native page can be accessed at the client by only packing the application once and dynamically configuring and generating the configuration file at the server in the application development process, so that the one-to-many relationship between the application and the real Native page is realized, the problem of multiple packing in the application development process is avoided, and the development efficiency is improved.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 shows a schematic diagram of a computing device 100 according to one embodiment of the invention;
FIG. 2 shows a flow diagram of a page update method 200 according to one embodiment of the invention;
fig. 3 shows a schematic diagram of a page updating apparatus 300 according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 shows a schematic diagram of a computing device 100 according to one embodiment of the invention. As shown in FIG. 1, in a basic configuration, computing device 100 includes at least one processing unit 102 and a system memory 104. According to one aspect, the processing unit 102 may be implemented as a processor, depending on the configuration and type of computing device. The system memory 104 includes, but is not limited to, volatile storage (e.g., random access memory), non-volatile storage (e.g., read only memory), flash memory, or any combination of such memories. According to one aspect, an operating system 105 is included in system memory 104.
According to one aspect, operating system 105 is suitable, for example, for controlling the operation of computing device 100. Further, examples are practiced in connection with a graphics library, other operating systems, or any other application program and are not limited to any particular application or system. This basic configuration is illustrated in fig. 1 by those components within the dashed line. According to one aspect, computing device 100 has additional features or functionality. For example, according to one aspect, computing device 100 includes additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in fig. 1 by removable storage device 109 and non-removable storage device 110.
As set forth hereinabove, according to one aspect, the program module 103 is stored in the system memory 104. According to one aspect, program modules 103 may include one or more applications, the invention is not limited in the type of application, for example, the application may include: email and contacts applications, word processing applications, spreadsheet applications, database applications, slide show applications, drawing or computer-aided application, web browser applications, etc.
According to one aspect, the program module 103 may comprise a page updating apparatus 300, the page updating apparatus 300 comprising a plurality of program instructions adapted to perform the page updating method 200 of the present invention, such that the page updating apparatus 300 is configured to perform the page updating method 200 of the present invention.
According to one aspect, the examples may be practiced in a circuit comprising discrete electronic components, a packaged or integrated electronic chip containing logic gates, a circuit utilizing a microprocessor, or on a single chip containing electronic components or a microprocessor. For example, examples may be practiced via a system on a chip (SOC) in which each or many of the components shown in fig. 1 may be integrated on a single integrated circuit. According to one aspect, such SOC devices may include one or more processing units, graphics units, communication units, system virtualization units, and various application functions, all of which are integrated (or "burned") onto a chip substrate as a single integrated circuit. When operating via an SOC, the functionality described herein may be operated via dedicated logic integrated with other components of computing device 100 on a single integrated circuit (chip). Embodiments of the invention may also be practiced using other techniques capable of performing logical operations (e.g., AND, OR, AND NOT), including but NOT limited to mechanical, optical, fluidic, AND quantum techniques. In addition, embodiments of the invention may be practiced within a general purpose computer or in any other circuit or system.
According to one aspect, the computing device 100 may also have one or more input devices 112, such as a keyboard, mouse, pen, voice input device, touch input device, and the like. Output device(s) 114 such as a display, speakers, printer, etc. may also be included. The foregoing devices are examples and other devices may also be used. Computing device 100 may include one or more communication connections 116 that allow communication with other computing devices 118. Examples of suitable communication connections 116 include, but are not limited to: RF transmitter, receiver and/or transceiver circuitry; universal Serial Bus (USB), parallel and/or serial ports.
The term computer readable media as used herein includes computer storage media. Computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information (e.g., computer readable instructions, data structures, or program modules 103). System memory 104, removable storage 109, and non-removable storage 110 are all examples of computer storage media (i.e., memory storage). Computer storage media may include Random Access Memory (RAM), read Only Memory (ROM), electrically erasable read only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other article of manufacture that can be used to store information and that can be accessed by computing device 100. According to one aspect, any such computer storage media may be part of computing device 100. Computer storage media does not include a carrier wave or other propagated data signal.
According to one aspect, communication media is embodied by computer readable instructions, data structures, program modules 103, or other data in a modulated data signal (e.g., carrier wave or other transport mechanism) and includes any information delivery media. According to one aspect, the term "modulated data signal" describes a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio Frequency (RF), infrared, and other wireless media.
In an embodiment according to the invention, the computing device 100 is configured to perform the page update method 200 according to the invention. The computing device 100 includes one or more processors and one or more readable storage media storing program instructions that, when configured to be executed by the one or more processors, cause the computing device to perform the page update method 200 in an embodiment of the invention.
According to one embodiment of the invention, a page updating apparatus 300 is deployed in a computing device 100, the page updating apparatus 300 being configured to perform the page updating method 200 according to the invention. The page updating apparatus 300 includes a plurality of program instructions for executing the page updating method 200 of the present invention, and these program instructions may instruct a processor to execute the page updating method 200 according to the present invention.
FIG. 2 illustrates a flow diagram of a page update method 200 according to one embodiment of the invention. The page update method 200 is suitable for execution in a client (e.g., the aforementioned computing device 100). In particular, the client may be a mobile terminal. The client is communicatively connected to the server, and the client is deployed with an application, which may include one or more pages, and the client may implement updating the pages of the application by performing the page update method 200 of the present invention.
In one embodiment of the invention, an application may include a plurality of business modules. Each business module may correspond to a page of an application, respectively.
In one embodiment of the invention, the application may specifically be an application developed based on real Native. Accordingly, the page of the application may be implemented as a real Native page.
As shown in fig. 2, method 200 includes steps 210-240.
First, in step 210, after an application is started, a server-generated configuration file is obtained.
Here, in one embodiment, the server may dynamically configure the generation of the configuration file for downloading from the server after the client's application is started. The configuration file may include resource information. The resource information may specifically include a version number (version number of the latest resource file) and a resource name.
Then, in step 220, it is determined from the configuration file whether the application rolls back (to the old version).
In one embodiment, before determining whether the application rolls back according to the configuration file, it may be determined whether the application performs gray scale processing (gray scale release) according to the configuration file, and if so, whether the application rolls back according to the configuration file.
If no rollback is performed (gray scale processing is performed and no rollback is performed), step 230 is performed.
In step 230, according to the resource information in the configuration file (the version number and the resource name of the latest resource file), the server is requested to acquire the corresponding latest resource file. The latest resource file may then be saved locally at the client.
Finally, in step 240, the current page of the application is updated based on the latest resource file. Here, the root view of the page may be updated based on the latest resource file.
In one embodiment of the present invention, the resource information in the configuration file may include a version number of the latest resource file, a resource name, and a service name (busName) corresponding to the service module. When the server requests to acquire the corresponding latest resource file according to the resource information in the configuration file, the server may specifically request to acquire the latest resource file corresponding to the service name (e.g., JSBundle package) according to the resource information (version number, resource name, and service name).
In this embodiment, when the current page of the application is updated according to the latest resource file, the current page of the application may be updated to a page corresponding to a service module (i.e., a service module corresponding to a service name) according to the latest resource file corresponding to the service name. Thus, the page corresponding to different service modules is dynamically replaced and displayed in the application.
In one implementation, after the latest resource file corresponding to the service name is acquired, a corresponding service object may be generated according to related information of the latest resource file, and the service object is transferred to the service module corresponding to the service name, so as to update the current page of the application to the page corresponding to the service module.
In one embodiment, the following information may be included in the configuration file:
according to one embodiment of the present invention, in step 230, before requesting the server to obtain the corresponding latest resource file according to the resource information in the configuration file, it may be determined whether the version number of the current resource file local to the client is consistent with the version number of the latest resource file (i.e., version number ver in the resource information).
If the version number of the current resource file at the client is inconsistent with the version number of the latest resource file, the corresponding latest resource file can be requested to be acquired from the server according to the resource information in the configuration file. The current resource file local to the client may then be updated based on the latest resource file. Specifically, the current resource file local to the client may be replaced with the latest resource file.
In addition, in one embodiment, before requesting to obtain the corresponding latest resource file from the server according to the resource information in the configuration file, it may also be determined whether the type of the current resource file local to the client is abnormal. Here, if the type of the current resource file is not the file type, it is determined as abnormal.
If the resource information in the configuration file is abnormal, the corresponding latest resource file can be requested to be acquired from the server according to the resource information in the configuration file. The current resource file local to the client may then be updated based on the latest resource file. Specifically, the current resource file local to the client may be replaced with the latest resource file.
In addition, whether the client side has the current resource file or not can be judged, and if the client side does not have the current resource file, the corresponding latest resource file can be requested to be acquired from the server according to the resource information in the configuration file. The latest resource file is then saved locally to the client.
In one embodiment, after the latest resource file is obtained, the version number of the latest resource file may also be saved locally to the client.
In one embodiment of the invention, a compressed file path may be generated from the resource information. When the server is requested to acquire the corresponding latest resource file according to the resource information in the configuration file, the server may be requested to acquire the corresponding compressed file (i.e., the compressed file corresponding to the latest resource file) according to the resource information. Specifically, a compressed file path may be generated according to the resource information, and a corresponding compressed file may be requested to be acquired from the server according to the compressed file path. Subsequently, by decompressing the compressed file, the latest resource file can be obtained. After the latest resource file is obtained, the latest resource file can be saved to a predetermined directory of the client. Here, the predetermined directory may be, for example, an assets directory.
In one embodiment of the invention, during the run-time after the application is started, all crash events during the run-time of the application may be captured. And, an error occurring in the process of requesting the server to acquire the latest resource file may be captured.
Fig. 3 shows a schematic diagram of a page updating apparatus 300 according to an embodiment of the invention. The page updating apparatus 300 resides in a client (e.g., the aforementioned computing device 100). The page updating apparatus 300 may be configured to perform the page updating method 200 of the present invention.
In particular, the client may be a mobile terminal. The client is communicatively connected to the server, and the client is deployed with an application, which may include one or more pages, and the client may implement updating the pages of the application by performing the page update method 200 of the present invention.
In one embodiment of the invention, an application may include a plurality of business modules. Each business module may correspond to a page of an application, respectively.
In one embodiment of the invention, the application may specifically be an application developed based on real Native. Accordingly, the page of the application may be implemented as a real Native page.
In the embodiment of the present invention, as shown in fig. 3, the page updating apparatus 300 includes a first acquisition module 310, a judgment module 320, a second acquisition module 330, and an updating module 340 that are sequentially connected in communication.
The first obtaining module 310 may obtain the configuration file generated by the server after the application is started. The determination module 320 may determine whether the application rolls back based on the configuration file. If no rollback is performed, the second obtaining module 330 may request the server to obtain the corresponding latest resource file according to the resource information in the configuration file. The update module 340 may update the current page of the application based on the latest resource file.
It should be noted that the first obtaining module 310, the judging module 320, the second obtaining module 330, and the updating module 340 are respectively configured to execute the foregoing steps 210 to 240. Here, for specific execution logic of the first acquisition module 310, the judgment module 320, the second acquisition module 330, and the update module 340, reference may be made to the descriptions of the steps 210 to 240 in the foregoing method 200, and the description is omitted here.
According to the page updating method 200 and the page updating device 300 of the invention, the application deployed at the client can comprise a plurality of service modules, each service module corresponds to one page respectively, so that the pages of different service modules can be loaded and displayed in the same application, and the problem of repeated packaging in the development process of the hybrid application is solved. The method comprises the steps that after an application is started, a configuration file dynamically generated by a server can be obtained, if the application is judged not to roll back according to the configuration file, a corresponding latest resource file can be requested to be obtained from the server according to resource information in the configuration file, and then a current page of the application can be updated according to the latest resource file. Here, for different service modules, the latest resource file corresponding to the service name may be acquired according to the resource information (including the service name), so that the current page of the application may be updated to the page corresponding to the service module according to the latest resource file. Therefore, the invention realizes the dynamic replacement and display of the pages corresponding to different service modules in the same application. According to the technical scheme, the application and the real Native page can be accessed at the client by only packing the application once and dynamically configuring and generating the configuration file at the server in the application development process, so that the one-to-many relationship between the application and the real Native page is realized, the problem of multiple packing in the application development process is avoided, and the development efficiency is improved.
The method of any one of A1-A7, wherein further comprising: all crash events during the application run are captured.
A9, the method of any of A1-A8, wherein determining whether the application rolls back according to the configuration file comprises: judging whether the application carries out gray scale processing or not according to the configuration file, and if so, judging whether the application carries out rollback or not according to the configuration file.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions of the methods and apparatus of the present invention, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U-drives, floppy diskettes, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the mobile terminal will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to perform the page updating method of the invention in accordance with instructions in said program code stored in the memory.
By way of example, and not limitation, readable media comprise readable storage media and communication media. The readable storage medium stores information such as computer readable instructions, data structures, program modules, or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with examples of the invention. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is for carrying out the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the above description, will appreciate that other embodiments are contemplated within the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter.

Claims (10)

1. A method for updating a page, the method being executed at a client to update a page of an application, the application comprising a plurality of service modules, each service module corresponding to a respective page, the client being communicatively coupled to a server, the method comprising:
after the application is started, acquiring a configuration file generated by a server;
judging whether the application rolls back or not according to the configuration file;
if the rollback is not carried out, requesting the server to acquire the corresponding latest resource file according to the resource information in the configuration file;
and updating the current page of the application according to the latest resource file.
2. The method of claim 1, wherein the resource information includes a resource name, a version number, and a service name corresponding to a service module; requesting to obtain a corresponding latest resource file from a server according to the resource information in the configuration file, including:
requesting a server to acquire an up-to-date resource file corresponding to the service name according to the resource information;
updating the current page of the application according to the latest resource file, including:
and updating the current page of the application into a page corresponding to the service module according to the latest resource file corresponding to the service name.
3. The method of claim 2, wherein updating the current page of the application to the page corresponding to the business module according to the latest resource file corresponding to the business name comprises:
and generating a service object according to the related information of the latest resource file, and transmitting the service object to a service module corresponding to the service name so as to update the current page of the application into a page corresponding to the service module.
4. A method according to any one of claims 1-3, wherein requesting the server to obtain the corresponding latest resource file according to the resource information in the configuration file comprises:
judging whether the version number of the current resource file at the client is consistent with the version number of the latest resource file;
if the resource information in the configuration file is inconsistent, requesting the server to acquire a corresponding latest resource file;
and updating the current resource file local to the client according to the latest resource file.
5. The method of any of claims 1-4, wherein requesting the server to obtain the corresponding latest resource file according to the resource information in the configuration file, further comprises:
judging whether the type of the current resource file of the local client is abnormal or not;
if so, requesting the server to acquire a corresponding latest resource file according to the resource information in the configuration file;
and updating the current resource file local to the client according to the latest resource file.
6. The method of any one of claims 1-5, further comprising:
and saving the version number of the latest resource file.
7. The method of any of claims 1-6, wherein requesting the server to obtain the corresponding up-to-date resource file comprises:
requesting to obtain a corresponding compressed file from a server;
decompressing the compressed file to obtain the latest resource file, and storing the latest resource file under a preset directory.
8. The page updating device is deployed at a client and is used for updating an application page, the application comprises a plurality of service modules, each service module corresponds to one page, and the client is in communication connection with a server, and the method comprises the following steps:
the first acquisition module is suitable for acquiring a configuration file generated by a server after the application is started;
the judging module is suitable for judging whether the application rolls back or not according to the configuration file;
the second acquisition module is suitable for requesting the server to acquire the corresponding latest resource file according to the resource information in the configuration file if rollback is not performed;
and the updating module is suitable for updating the current page of the application according to the latest resource file.
9. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-7.
10. A readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-7.
CN202310862224.2A 2023-07-13 2023-07-13 Page updating method and device, computing equipment and storage medium Pending CN117008936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310862224.2A CN117008936A (en) 2023-07-13 2023-07-13 Page updating method and device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310862224.2A CN117008936A (en) 2023-07-13 2023-07-13 Page updating method and device, computing equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117008936A true CN117008936A (en) 2023-11-07

Family

ID=88564617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310862224.2A Pending CN117008936A (en) 2023-07-13 2023-07-13 Page updating method and device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117008936A (en)

Similar Documents

Publication Publication Date Title
US10613970B1 (en) Method and system for managing deployment of software application components based on software performance data
CN110058873B (en) Application page updating method, device, equipment and storage medium
US20210255847A1 (en) Model-based differencing to selectively generate and deploy images in a target computing environment
CN112286829B (en) Test script generation method and device
CN111427579A (en) Plug-in, application program implementing method and system, computer system and storage medium
CN113885936A (en) Solution method for software package dependence in customized mirror image
CN114860272A (en) Operating system installation method, computing device and storage medium
CN110968339B (en) Method and device for front-end building tool and electronic equipment
CN115150392B (en) Remote file copying method, system, computing equipment and storage medium
CN117008936A (en) Page updating method and device, computing equipment and storage medium
CN116450184A (en) System upgrading method and device, electronic equipment and storage medium
CN114816772B (en) Debugging method, debugging system and computing device for application running based on compatible layer
CN114035864A (en) Interface processing method, interface processing device, electronic device, and storage medium
CN115048082A (en) Micro front-end system construction method and device, server and readable storage medium
CN112506781A (en) Test monitoring method, test monitoring device, electronic device, storage medium, and program product
CN115617489B (en) Operating system migration method, migration application and migration application deployment method
CN118055064A (en) Route information synchronization method, device, computing equipment and storage medium
CN118138454A (en) Resource package downloading method, device, computing equipment and storage medium
CN116776848A (en) Page generation method, page generation device, computing equipment and storage medium
CN118276881A (en) Application installation method, system, computing device and storage medium
CN117891723A (en) Code checking method, computing device and storage medium
US20150007133A1 (en) Content Package Generation for Web Content
CN117271309A (en) Service testing method, system, electronic equipment and storage medium
CN115658075A (en) Software package compiling method and device, computing equipment and storage medium
CN115185820A (en) Test method and test device for system installer and computing equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination