CN112114913B - Application program interface updating method and device, computer equipment and storage medium - Google Patents

Application program interface updating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112114913B
CN112114913B CN202010732209.2A CN202010732209A CN112114913B CN 112114913 B CN112114913 B CN 112114913B CN 202010732209 A CN202010732209 A CN 202010732209A CN 112114913 B CN112114913 B CN 112114913B
Authority
CN
China
Prior art keywords
interface
data
application program
updating
target application
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.)
Active
Application number
CN202010732209.2A
Other languages
Chinese (zh)
Other versions
CN112114913A (en
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.)
Guangdong Pacific Internet Information Service Co ltd
Original Assignee
Guangdong Pacific Internet Information Service 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 Guangdong Pacific Internet Information Service Co ltd filed Critical Guangdong Pacific Internet Information Service Co ltd
Priority to CN202010732209.2A priority Critical patent/CN112114913B/en
Publication of CN112114913A publication Critical patent/CN112114913A/en
Application granted granted Critical
Publication of CN112114913B publication Critical patent/CN112114913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the technical field of mobile application, and provides an application program interface updating method, an application program interface updating device, computer equipment and a storage medium. According to the application program interface data loading method and device, the rapidness and the fluency of application program interface data loading can be guaranteed. The method comprises the following steps: acquiring a starting instruction aiming at a target application program; if the starting instruction is a first starting instruction, reading historical cache interface data and displaying the historical cache interface data on an interface of a target application program according to a first interface pattern when the historical cache interface data stored in the first interface pattern of the target application program is locally stored in the terminal; the first interface style is nested with a second interface style and a third interface style; the first starting instruction refers to a starting instruction which is acquired by the terminal for the target application program for the first time after the target application program is installed to the terminal; and receiving interface updating data stored in the server in the first interface style from the server, and updating the interface by using the interface updating data.

Description

Application program interface updating method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of mobile application technologies, and in particular, to a method and an apparatus for implementing real-time update of a home interface of a mobile application program, a computer device, and a storage medium.
Background
With the continuous expansion of mobile services, mobile end Applications (APPs) in many industries, such as e-commerce, information enterprises, etc., need to update UI layouts in time according to services to meet the needs of business development of companies. Currently, the industry generally adopts a fixed overall UI layout, and returns pictures and texts of local units through an interface to change display.
However, due to different loading speeds of different files such as pictures and documents, blank pages, disordered layout or no response to clicking can occur.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an interface updating method and apparatus for an application program, a computer device, and a storage medium.
An interface updating method of an application program is applied to a terminal, and the method comprises the following steps:
acquiring a starting instruction aiming at a target application program;
if the starting instruction is a first starting instruction, reading historical cache interface data stored in a first interface mode of the target application program when the historical cache interface data is locally stored in the terminal, and displaying the historical cache interface data on an interface of the target application program according to the first interface mode; the first interface style is nested with a second interface style and a third interface style; the first starting instruction refers to a starting instruction which is acquired by the terminal for the target application program for the first time after the target application program is installed to the terminal;
and receiving interface updating data stored in the server in the first interface style from a server, and updating the interface by using the interface updating data.
In one embodiment, after updating the interface with the interface update data, the method further includes:
and overlaying the interface updating data on the historical cache interface data.
In one embodiment, the method further comprises:
when the historical cache interface data are not stored locally in the terminal, sending an interface data acquisition request to the server, and triggering the server to return initial interface data;
and displaying the initial interface data returned by the server on the interface of the target application program according to the first interface style.
In one embodiment, after the obtaining of the start instruction for the target application, the method further includes:
and if the starting instruction is not a first starting instruction, executing the step of receiving interface updating data stored in the server in the first interface mode from the server and updating the interface by using the interface updating data.
In one embodiment, the native code of the target application program is packaged with an event protocol object with an interface; the method further comprises the following steps:
responding to an event interaction instruction triggered on the interface by a user, and analyzing the event interaction instruction to obtain a corresponding action semantic parameter;
and transmitting the action semantic parameters to the event protocol object in the native code through the interface so as to enable the event protocol object to execute corresponding actions.
In one embodiment, the server is configured to update the interface update data stored in the server according to a preset time interval.
In one embodiment, the first interface style encodes the picture data for display on the interface in a Base 64-based data encoding manner; the picture data comprises picture data in the historical cache interface data, picture data in the interface updating data and/or picture data in the initial interface data.
An interface updating device of an application program, which is applied to a terminal, the device comprises:
the instruction acquisition module is used for acquiring a starting instruction aiming at the target application program;
the historical cache data display module is used for reading the historical cache interface data and displaying the historical cache interface data on the interface of the target application program according to a first interface pattern when the historical cache interface data stored in the first interface pattern of the target application program is locally stored in the terminal if the starting instruction is a first starting instruction; the first interface style is nested with a second interface style and a third interface style; the first starting instruction refers to a starting instruction which is acquired by the terminal for the target application program for the first time after the target application program is installed to the terminal;
and the server data display module is used for receiving the interface updating data stored in the server in the first interface mode from the server and updating the interface by using the interface updating data.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method for updating an interface of an application program as described above when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for updating an interface of an application program as described above.
The interface updating method, the interface updating device, the computer equipment and the storage medium of the application program are realized by acquiring a starting instruction aiming at a target application program; if the starting instruction is a first starting instruction, reading historical cache interface data and displaying the historical cache interface data on an interface of a target application program according to a first interface pattern when the historical cache interface data stored in the first interface pattern of the target application program is locally stored in the terminal; the first interface style is nested with a second interface style and a third interface style; the first starting instruction refers to a starting instruction which is acquired by the terminal for the target application program for the first time after the target application program is installed to the terminal; and receiving interface updating data stored in the server in a first interface mode from the server, and updating the interface by using the interface updating data. The interface updating method acquires the historical cache interface data when the application program is started for the first time, and displays the historical cache interface data in the first interface style, wherein the first interface style is nested with the second interface style and the third interface style, so that the local data can be quickly loaded when the application program is started for the first time, meanwhile, the data of the first interface style, the second interface style and the third interface style can be synchronously loaded, and the synchronous loading of the data in different styles is ensured.
Drawings
FIG. 1 is a diagram of an application environment for a method for updating an interface of an application in one embodiment;
FIG. 2 is a diagram illustrating an exemplary business process of an interface updating method for an application in another embodiment;
FIG. 3 is a flowchart illustrating a method for updating an interface of an application according to an embodiment;
FIG. 4 is a flow diagram of a cache-first loading policy in one embodiment;
FIG. 5 is a flowchart illustrating an interface update method performed when an application is not first started according to another embodiment;
FIG. 6 is a block diagram showing an example of an interface update apparatus for an application;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The interface updating method of the application program can be applied to the application environment shown in fig. 1. Wherein the terminal 101 communicates with the server 102 via a network. The terminal 101 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 102 may be implemented by an independent server or a server cluster formed by a plurality of servers.
Exemplarily, as shown in fig. 2, fig. 2 shows an exemplary service flow diagram of the interface updating method of the application program, where the terminal 101 may be, for example, a smart phone, the smart phone is installed with a mobile terminal APP, the server 102 includes a middle platform mrobot in a car network, and a developer or a data center accesses data from content systems such as articles, videos, forums, and the like to the server 102, for example, the middle platform mrobot in the car network, performs integration and distribution through the middle platform mrobot in the car network, stores and caches the data in a file with an HTML5 interface style, and finally displays the data on the mobile terminal APP on the terminal 101 through a web page rendering component, for example, WebView.
In an embodiment, as shown in fig. 3, an interface updating method for an application program is provided, which is described by taking the method as an example applied to the terminal 101 in fig. 1, and includes the following steps:
in step S301, a start instruction for the target application is acquired.
The target application is various applications installed on the terminal 101, and may be, for example, a mobile APP installed on a smart phone or various application software installed on a computer and capable of interacting with a user. The starting instruction is a starting instruction sent by a user to the application program, and may be, for example, a triggering starting instruction for the mobile APP by the user through a touch screen, an instruction for starting the program through a specific action, or a starting instruction input through a certain tool, such as an input device such as a mouse, a keyboard, and the like.
Step S302, if the starting instruction is a first starting instruction, when historical cache interface data stored in a first interface mode of a target application program are locally stored in the terminal, reading the historical cache interface data and displaying the historical cache interface data on an interface of the target application program according to the first interface mode; the first interface style is nested with a second interface style and a third interface style; the first starting instruction refers to a starting instruction which is acquired by the terminal for the target application program for the first time after the target application program is installed to the terminal.
The first start instruction means that the target application may be, for example, a mobile application APP, and after the APP is installed in the terminal 101, the installation includes first installation to the terminal 101 and subsequent installation to the terminal 101 again each time after being uninstalled, and the terminal 101 first obtains the start instruction for the target application APP. The first interface style, the second interface style and the third interface style are different display styles, for example, the first interface style may be in a format of HTML (Hyper Text Markup Language) or HTML5, the format of HTML is called as a Hyper Text Markup Language, and is a Markup Language, which includes a series of tags, and the tags can unify the document format on the network, so that the dispersed internet resources are connected into a logical whole, and HTML5 is a Language description mode for constructing Web content. HTML5 is the next generation standard for the Internet, a language way to build and present Internet content; the second interface Style may be, for example, a Style file regularly laid out in a CSS (Cascading Style Sheets) Style, and the third interface Style may be, for example, a Style file programmed in js (javascript) language.
Specifically, fig. 4 shows a flow chart of a cache priority loading policy in the present application, where if the terminal 101 detects that the obtained start instruction is the start instruction obtained for the first time after the target application APP is downloaded to the terminal 101, the cache policy is set to CacheFirst by calling an application program interface, if the terminal 101 detects that the target application APP is still run by the terminal 101, a local memory of the terminal 101 further stores history cache interface data, where the history cache interface data is a first interface style file, such as an HTML file or an HTML5 file, a second interface style file and a third interface style file are also nested in the first interface style file, the second interface style file may be a CSS file, for example, and the third interface style file may be a JS file, for example. The terminal 101 reads the history cache interface data and displays the history cache interface data on the interface of the target application program APP.
Step S303, receiving, from the server, interface update data stored in the server in the first interface style, and updating the interface with the interface update data.
Specifically, the server 102 stores the latest service data corresponding to the target application, and the server 102 refreshes the interface data currently stored by the server at preset time intervals, which may be 15s, for example, such as new car sales information provided by car manufacturers, and the like, and the server 102 stores the interface update data in a first interface style, which may be an HTML file, for example, and the terminal 101 acquires the current latest interface update data from the server 102 and updates the interface of the target application with the interface update data.
In the interface updating method of the application program, the historical cache interface data is obtained when the application program is started for the first time, and the historical cache interface data is displayed in a first interface mode, wherein the first interface mode is nested with a second interface mode and a third interface mode, so that the local data can be quickly loaded when the application program is started for the first time, meanwhile, the data of the first interface mode, the second interface mode and the third interface mode can be synchronously loaded, and the synchronous loading of the data of different modes is ensured.
In one embodiment, the step S303 further includes: and overlaying the interface updating data on historical cache interface data.
Specifically, after receiving the current latest interface update data from the server 102, the terminal 101 updates the current interface with the latest interface update data, and saves the latest interface update data in the local memory, covering the history cached interface data.
According to the embodiment, the current latest interface updating data of the server is stored locally, so that the historical cache data loaded when the target application program is started next time is the latest interface updating data, and the freshness of the data is ensured.
In an embodiment, the method for updating an interface of an application further includes: when the historical cache interface data are not stored locally in the terminal, sending an interface data acquisition request to the server, and triggering the server to return the initial interface data; and displaying the initial interface data returned by the server on the interface of the target application program according to the first interface style.
Specifically, as shown in fig. 4, when the target application is started for the first time, the terminal detects that there is no local history cache interface data, the terminal 101 sends an interface data acquisition request to the server 102 by calling an application program interface, after the request data is successful, the server 102 returns initial interface data, the terminal 101 stores the initial interface data locally, and refreshes the page display of the target application in a first interface style, for example, in an HTML format, using the initial interface data.
The embodiment ensures that when the application program is started for the first time, under the condition that no historical cache data exists, the data is requested from the server in time and the interface is refreshed, and avoids the condition that the page is blank after the application program is started.
In an embodiment, after the step S301, the method further includes: and if the starting instruction is not the first starting instruction, receiving interface updating data stored in the server in a first interface mode from the server, and updating the interface by using the interface updating data.
Specifically, as shown in fig. 5, if the terminal 101 detects that the obtained start instruction is not the first start instruction on the terminal, at this time, the terminal 101 quickly loads the local history cache data to the target application program interface, and sets the cache policy to onlyHttp, and only loads the latest data of the server.
In the embodiment, the cache policy is set to the onlyHttp mode, so that the server is directly requested to update the interface with the latest data under the condition that the target application program is not started for the first time and the local historical cache is loaded successfully, the page updating speed is accelerated under the condition that the target application program is not started for the first time, and better user experience is further brought to the user.
In an embodiment, an event protocol object with an interface is encapsulated in the native code of the target application program, and the interface updating method of the application program further includes: responding to an event interaction instruction triggered on an interface by a user, and analyzing the event interaction instruction to obtain a corresponding action semantic parameter; and transmitting the action semantic parameters to the event protocol object in the native code through the interface so that the event protocol object executes the corresponding action.
The event interaction instruction refers to a single-point touch or multi-point touch certain page module sent by a user and is used for sending an operation instruction to a target application program. The action semantic parameter refers to a semantic parameter corresponding to the event interaction instruction, such as jumping to a specific page or popping up a dialog box.
Specifically, a target application program is constructed by adopting an HTML5 and native code mixed-compilation scheme, all event protocols are interfaced, for example, protocols such as a conventional functional protocol pcautobrowser:// new-cars-info-list/(jump to a new car list), a functional protocol pclive _ audio room of a main push activity, a pcautobrowser:// ip _ list of a recommended article ip (jump to an ip article list) and the like are packaged on the native code, an interface is exposed, an HTML5 interface can obtain a user event interaction instruction through webView, analyze the event interaction instruction to obtain a corresponding semantic action parameter, transmit the action semantic parameter to a protocol object in the native code through the interface, and the protocol object finds a corresponding event through mapping to trigger.
According to the embodiment, all protocols are interfaced, so that the problem that each module of the target application program is configured with the same protocol to cause code redundancy is avoided, and meanwhile, after all the protocols are packaged, only the interfaces are exposed, so that convenience is brought to later-stage re-development and maintenance.
In one embodiment, the first interface style encodes the picture data for display on the interface in a Base 64-based data encoding manner; the picture data comprises picture data in historical cache interface data, picture data in interface updating data and/or picture data in initial interface data.
Base64 is one of the encoding methods for transmitting 8-Bit byte codes, and Base64 is a method for representing binary data based on 64 printable characters. Since the loading of the picture is asynchronous loading, and the setting manner of the picture Resource in the first interface style, such as an HTML file, is generally a URL (Uniform Resource Locator) of the picture, loading in the weak network environment may still cause a blank situation. The picture data loading form in the application does not adopt the form of embedded picture URL, but puts the Base64 data of the picture in an HTML file. Therefore, after the HTML file is loaded, the data of the picture can be guaranteed to be loaded completely together. When the webpage is rendered, the webpage rendering component directly obtains the Base64 data corresponding to the picture, and the data is analyzed and displayed.
According to the embodiment, the pictures are stored in the HTML file in the form of Base64 data, so that the loading and rendering speed of the pictures is guaranteed, and the smoothness of updating an application program interface is guaranteed.
It should be understood that although the steps in the flowcharts of fig. 3 to 5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 3 to 5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 6, an interface updating apparatus 600 for an application, which is applicable to a terminal, is provided, including: an instruction obtaining module 601, a history cache data display module 602, and a server data display module 603, wherein:
an instruction obtaining module 601, configured to obtain a start instruction for a target application;
a history cache data display module 602, configured to, if the start instruction is a first start instruction, when history cache interface data, stored in a first interface style, of the target application program is locally stored in the terminal, read the history cache interface data and display the history cache interface data on an interface of the target application program according to the first interface style; the first interface style is nested with a second interface style and a third interface style; the first starting instruction refers to a starting instruction which is acquired by the terminal for the target application program for the first time after the target application program is installed to the terminal;
the server data display module 603 is configured to receive, from a server, interface update data stored in the server in the first interface style, and update the interface with the interface update data.
The server data display module 603, in one embodiment, is further configured to,
and overlaying the interface updating data on the historical cache interface data.
In an embodiment, the server data display module 603 is further configured to:
when the historical cache interface data are not stored locally in the terminal, sending an interface data acquisition request to the server, and triggering the server to return initial interface data;
and displaying the initial interface data returned by the server on the interface of the target application program according to the first interface style.
In an embodiment, the server data display module 603 is further configured to:
and if the starting instruction is not a first starting instruction, executing the step of receiving interface updating data stored in the server in the first interface mode from the server and updating the interface by using the interface updating data.
In an embodiment, the instruction obtaining module 601 is further configured to:
responding to an event interaction instruction triggered on the interface by a user, and analyzing the event interaction instruction to obtain a corresponding action semantic parameter;
and transmitting the action semantic parameters to the event protocol object in the native code through the interface so as to enable the event protocol object to execute corresponding actions.
In an embodiment, the server is configured to update the interface update data stored by the server according to a preset time interval.
In one embodiment, the first interface style encodes the picture data for display on the interface in a Base 64-based data encoding manner; the picture data comprises picture data in the historical cache interface data, picture data in the interface updating data and/or picture data in the initial interface data.
For specific limitations of the interface updating apparatus for the application program, reference may be made to the above limitations of the interface updating method for the application program, and details are not described herein again. The various modules in the above-described interface update apparatus for an application may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an interface update method for an application. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a starting instruction aiming at a target application program;
if the starting instruction is a first starting instruction, reading historical cache interface data stored in a first interface mode of the target application program when the historical cache interface data is locally stored in the terminal, and displaying the historical cache interface data on an interface of the target application program according to the first interface mode; the first interface style is nested with a second interface style and a third interface style; the first starting instruction refers to a starting instruction which is acquired by the terminal for the target application program for the first time after the target application program is installed to the terminal;
and receiving interface updating data stored in the server in the first interface style from a server, and updating the interface by using the interface updating data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and overlaying the interface updating data on the historical cache interface data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the historical cache interface data are not stored locally in the terminal, sending an interface data acquisition request to the server, and triggering the server to return initial interface data;
and displaying the initial interface data returned by the server on the interface of the target application program according to the first interface style.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and if the starting instruction is not a first starting instruction, executing the step of receiving interface updating data stored in the server in the first interface mode from the server and updating the interface by using the interface updating data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
responding to an event interaction instruction triggered on the interface by a user, and analyzing the event interaction instruction to obtain a corresponding action semantic parameter;
and transmitting the action semantic parameters to the event protocol object in the native code through the interface so as to enable the event protocol object to execute corresponding actions.
In one embodiment, the server is configured to update the interface update data stored by the server according to a preset time interval.
In one embodiment, the first interface style encodes the picture data for display on the interface in a Base 64-based data encoding manner; the picture data comprises picture data in the historical cache interface data, picture data in the interface updating data and/or picture data in the initial interface data
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An interface updating method of an application program is applied to a terminal, and the method comprises the following steps:
acquiring a starting instruction aiming at a target application program;
if the starting instruction is a first starting instruction, reading historical cache interface data stored in a first interface mode of the target application program when the historical cache interface data is locally stored in the terminal, and displaying the historical cache interface data on an interface of the target application program according to the first interface mode; the first interface style is nested with a second interface style and a third interface style; the first starting instruction refers to a starting instruction which is acquired by the terminal for the target application program for the first time after the target application program is installed to the terminal;
receiving interface updating data stored in the server in the first interface style from a server, and updating the interface by using the interface updating data;
responding to an event interaction instruction triggered on the interface by a user, and analyzing the event interaction instruction to obtain a corresponding action semantic parameter; an event protocol object with an interface is encapsulated in the native code of the target application program;
and transmitting the action semantic parameters to the event protocol object in the native code through the interface so as to enable the event protocol object to execute corresponding actions.
2. The method of claim 1, wherein after updating the interface with the interface update data, the method further comprises:
and overlaying the interface updating data on the historical cache interface data.
3. The method of claim 1, further comprising:
when the historical cache interface data are not stored locally in the terminal, sending an interface data acquisition request to the server, and triggering the server to return initial interface data;
and displaying the initial interface data returned by the server on the interface of the target application program according to the first interface style.
4. The method of claim 1, wherein after obtaining the launch instruction for the target application, the method further comprises:
and if the starting instruction is not a first starting instruction, executing the step of receiving interface updating data stored in the server in the first interface mode from the server and updating the interface by using the interface updating data.
5. The method of claim 1, wherein the event interaction instruction comprises a single-touch instruction and a multi-touch instruction.
6. The method of claim 1, wherein the server is configured to update the interface update data stored by the server at preset time intervals.
7. The method according to any one of claims 1 to 6, wherein the first interface style encodes the picture data for display on the interface in a data encoding manner based on Base 64; the picture data comprises picture data in the historical cache interface data, picture data in the interface updating data and/or picture data in the initial interface data.
8. An interface updating device of an application program, which is applied to a terminal, the device comprising:
the instruction acquisition module is used for acquiring a starting instruction aiming at the target application program;
the historical cache data display module is used for reading the historical cache interface data and displaying the historical cache interface data on the interface of the target application program according to a first interface pattern when the historical cache interface data stored in the first interface pattern of the target application program is locally stored in the terminal if the starting instruction is a first starting instruction; the first interface style is nested with a second interface style and a third interface style; the first starting instruction refers to a starting instruction which is acquired by the terminal for the target application program for the first time after the target application program is installed to the terminal;
the server data display module is used for receiving interface updating data stored in the server in the first interface mode from the server and updating the interface by using the interface updating data;
the instruction acquisition module is further used for responding to an event interaction instruction triggered on the interface by a user, and analyzing the event interaction instruction to obtain a corresponding action semantic parameter; an event protocol object with an interface is encapsulated in the native code of the target application program; and transmitting the action semantic parameters to the event protocol object in the native code through the interface so as to enable the event protocol object to execute corresponding actions.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010732209.2A 2020-07-27 2020-07-27 Application program interface updating method and device, computer equipment and storage medium Active CN112114913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010732209.2A CN112114913B (en) 2020-07-27 2020-07-27 Application program interface updating method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010732209.2A CN112114913B (en) 2020-07-27 2020-07-27 Application program interface updating method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112114913A CN112114913A (en) 2020-12-22
CN112114913B true CN112114913B (en) 2022-08-09

Family

ID=73799309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010732209.2A Active CN112114913B (en) 2020-07-27 2020-07-27 Application program interface updating method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112114913B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112581279B (en) * 2020-12-25 2024-03-19 深圳市富途网络科技有限公司 Ordering method of desktop financial software and related products
CN115130029A (en) * 2021-03-26 2022-09-30 Oppo广东移动通信有限公司 Starting window generation method and device, computer readable medium and electronic equipment
CN113094139B (en) * 2021-04-20 2024-04-19 北京沃东天骏信息技术有限公司 UI style updating method and device
CN114237444A (en) * 2021-11-30 2022-03-25 阿波罗智联(北京)科技有限公司 Application program starting method and device, electronic equipment and storage medium
CN114185621A (en) * 2021-12-17 2022-03-15 广东德生科技股份有限公司 Application program interface picture loading method, device, equipment and storage medium
CN115033396B (en) * 2022-05-27 2023-05-02 荣耀终端有限公司 Communication method and related equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829485A (en) * 2018-06-25 2018-11-16 腾讯科技(深圳)有限公司 Update method, device, storage medium and the computer equipment of application interface layout
CN109408086A (en) * 2018-09-28 2019-03-01 平安普惠企业管理有限公司 Interface updating method, device, computer equipment and the storage medium of APP
CN110865834A (en) * 2019-10-12 2020-03-06 平安国际智慧城市科技股份有限公司 Application program interface updating method and device, readable storage medium and terminal equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829485A (en) * 2018-06-25 2018-11-16 腾讯科技(深圳)有限公司 Update method, device, storage medium and the computer equipment of application interface layout
CN109408086A (en) * 2018-09-28 2019-03-01 平安普惠企业管理有限公司 Interface updating method, device, computer equipment and the storage medium of APP
CN110865834A (en) * 2019-10-12 2020-03-06 平安国际智慧城市科技股份有限公司 Application program interface updating method and device, readable storage medium and terminal equipment

Also Published As

Publication number Publication date
CN112114913A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN112114913B (en) Application program interface updating method and device, computer equipment and storage medium
US20190251143A1 (en) Web page rendering method and related device
CN100550013C (en) The method of client computer video data
US20150370912A1 (en) Method and system for displaying customized webpage on double webview
US20100031139A1 (en) Network system
US20120317172A1 (en) Mobile web app infrastructure
WO2017124962A1 (en) Method, apparatus, and system for hot-deploying application
CN106874519B (en) Page display method and device
CN107085580B (en) Method for displaying page by client and client
US10084878B2 (en) Systems and methods for hosted application marketplaces
CN106533926B (en) Webpage information spreading method and device
CN110598149A (en) Webpage access method, device and storage medium
CN108418797B (en) Webpage access method and device, computer equipment and storage medium
CN104881273A (en) Webpage rendering analysis method and terminal device
CN111191158A (en) Webpage resource caching method and device, computer equipment and storage medium
CN111596911A (en) Method and device for generating control, computer equipment and storage medium
CN108319474B (en) Page information generation method, device and equipment
CN111079048A (en) Page loading method and device
CN114756228A (en) Page processing method, device, equipment and storage medium
CN113449216A (en) File processing method and device and storage medium
CN111241438A (en) Cartoon picture display method and device, computer readable storage medium and computer equipment
CN113127783B (en) Page display method and device, equipment and medium
CN116127219A (en) Method and device for displaying pages in applet and computer equipment
CN115858978A (en) Page loading method and device based on updated resources
CN115017436A (en) Data interaction method and device of application program, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant