CN112311818B - Method, device, terminal and storage medium for downloading applet data packet - Google Patents

Method, device, terminal and storage medium for downloading applet data packet Download PDF

Info

Publication number
CN112311818B
CN112311818B CN201910676607.4A CN201910676607A CN112311818B CN 112311818 B CN112311818 B CN 112311818B CN 201910676607 A CN201910676607 A CN 201910676607A CN 112311818 B CN112311818 B CN 112311818B
Authority
CN
China
Prior art keywords
target
applet
description information
server
target applet
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
CN201910676607.4A
Other languages
Chinese (zh)
Other versions
CN112311818A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910676607.4A priority Critical patent/CN112311818B/en
Publication of CN112311818A publication Critical patent/CN112311818A/en
Application granted granted Critical
Publication of CN112311818B publication Critical patent/CN112311818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, a device, a terminal and a storage medium for downloading an applet data package, wherein the method for downloading the applet data package can be applied to an enterprise instant messaging client, and comprises the following steps: when an instruction for displaying an associated application set is received, determining a target small program in the associated application set; the target applet comprises an applet running in the environment of the enterprise instant messaging client; acquiring the description information of the target small program from a server corresponding to the enterprise instant messaging client; determining a target applet to be downloaded according to the description information; and downloading the data packet of the target applet to be downloaded from the server. According to the invention, the enterprise instant messaging client is used as the host application of the target small program, and the corresponding latest data packet is downloaded before the target small program is opened, so that the time consumption of the opening process of the target small program is greatly shortened.

Description

Method, device, terminal and storage medium for downloading applet data packet
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for downloading an applet data package.
Background
The applet is a mobile application program which is developed based on a specific programming language and can be used without downloading and installation, and can run on a cross-platform mobile client. The applet has the greatest characteristic of convenient use, and the user can open the application by scanning or searching without manually installing the applet in an operating system of the mobile terminal, so that the user does not need to worry about whether to install too many application programs.
In the related art, the applet depends on the host application, runs in an environment provided by the host application, and when the applet of the host application is opened by other applications related to the host application, the problem that the opening process is long in time consumption exists. For example, it takes a long time for an enterprise WeChat to open an applet in the WeChat.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method, an apparatus, a terminal, and a storage medium for downloading an applet data package. The technical scheme is as follows:
in one aspect, a method for downloading an applet data package is provided, and is applied to an enterprise instant messaging client, and the method includes:
when an instruction for displaying an associated application set is received, determining a target small program in the associated application set; the target applet comprises an applet running in the environment of the enterprise instant messaging client;
acquiring the description information of the target small program from a server corresponding to the enterprise instant messaging client;
determining a target applet to be downloaded according to the description information;
and downloading the data packet of the target applet to be downloaded from the server.
In another aspect, an applet data package downloading apparatus applied to an enterprise instant messaging client is provided, the apparatus includes:
the system comprises a first determination module, a second determination module and a third determination module, wherein the first determination module is used for determining target applets in a related application set when an instruction for displaying the related application set is received; the target applet comprises an applet running in the environment of the enterprise instant messaging client;
the first acquisition module is used for acquiring the description information of the target small program from a server corresponding to the enterprise instant messaging client;
the second determining module is used for determining the target applet to be downloaded according to the description information;
and the downloading module is used for downloading the data packet of the target applet to be downloaded from the server.
Optionally, the first obtaining module includes:
the selection module is used for selecting a first target applet with an entrance in a display interface from the target applets;
a first sending module, configured to send a description information obtaining request to a server corresponding to the enterprise instant messaging client, where the description information obtaining request carries identification information of the first target applet, so that the server determines the description information of the first target applet according to the identification information;
and the first receiving module is used for receiving the description information of the first target applet returned by the server.
Optionally, the first obtaining module further includes:
a second sending module, configured to send the identification information of the first target applet to the server, so that the server determines a second target applet according to the identification information of the first target applet; the second target applet is a target applet without an entry in the display interface;
and the second receiving module is used for receiving the description information of the second target applet, which is sent by the server under a preset trigger event.
Optionally, the description information includes identification information and version information;
accordingly, the second determining module comprises:
the first judgment module is used for judging whether a data packet of the target small program matched with the identification information in the description information exists in the appointed storage space;
the second acquisition module is used for acquiring the current version information of the data packet of the target small program matched with the identification information when the judgment result of the first judgment module is yes;
the second judging module is used for judging whether the current version information is matched with the version information in the description information;
and the third determining module is used for determining the target applet matched with the identification information as the target applet to be downloaded when the judgment result of the second judging module is negative.
Optionally, the downloading module includes:
the downloading submodule is used for downloading a target data packet matched with the description information of the target small program to be downloaded from a server side;
and the updating module is used for updating the data packet corresponding to the current version information of the target applet to be downloaded into the target data packet.
Optionally, the second determining module further includes:
and the fourth determining module is used for determining the target small program matched with the identification information as the target small program to be downloaded when the data packet of the target small program matched with the identification information does not exist in the designated storage space.
Optionally, the first obtaining module further includes:
a third obtaining module, configured to obtain a timestamp of a last time the first target applet was opened;
a fifth determining module, configured to determine a difference between the current timestamp and the timestamp of the last time that the first target applet was opened, so as to obtain an interval duration;
and the third judging module is used for judging whether the interval duration is less than the preset duration or not, and executing the function of the first sending module when the judging result is yes.
In another aspect, a terminal is provided, which includes a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the method for downloading the applet data package.
In another aspect, a computer readable storage medium is provided, in which at least one instruction, at least one program, a set of codes or a set of instructions is stored, which is loaded and executed by a processor to implement the method for downloading an applet data package as described above.
According to the embodiment of the invention, the enterprise instant messaging client is used as the host application of the target small program, when the client receives the instruction for displaying the associated application set, the target small program in the associated application set is determined, the description information of the target small program is obtained from the server corresponding to the enterprise instant messaging client, the target small program to be downloaded is further determined according to the description information, and the data packet of the target small program to be downloaded is downloaded from the server, so that the corresponding latest data packet is downloaded on the enterprise instant messaging client side before the target small program is opened, the target small program is subsequently loaded and opened directly based on the downloaded latest data packet, and the time consumed for the enterprise instant messaging client to open the small program is greatly shortened.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the invention;
fig. 2 is a schematic diagram of a display interface of an associated application set of an enterprise instant messaging client according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for downloading an applet data package according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for obtaining description information of a target applet from a server corresponding to an enterprise instant messaging client according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of another applet data package downloading method according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating another method for obtaining description information of a target applet from a server corresponding to an enterprise instant messaging client according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating another applet data package downloading method according to an embodiment of the present invention;
fig. 8 is a flowchart illustrating another applet data package downloading method according to an embodiment of the present invention;
fig. 9 is a flowchart illustrating another applet data package downloading method according to an embodiment of the present invention;
fig. 10 is a timing chart of another applet data package downloading method provided in the embodiment of the present invention;
fig. 11 is a schematic structural diagram of an applet data package downloading apparatus according to an embodiment of the present invention;
fig. 12 is a block diagram of a hardware structure of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, a schematic diagram of an implementation environment according to an embodiment of the present invention is shown, where the implementation environment may include an enterprise instant messaging client 110 and a server 120 connected to the enterprise instant messaging client 110, and the connection may include, but is not limited to, a wired network or a wireless network.
The enterprise instant messaging client 110 may provide various enterprise management functions, such as enterprise personnel management function and enterprise work management function, which may be implemented through associated applications in the enterprise instant messaging client 110, for example, enterprise personnel management may be implemented through a card punching application in fig. 2, and enterprise work management may be implemented through an approval application.
The types of associated applications in the enterprise instant messaging client 110 may include, but are not limited to, system applications such as, for example, pay telephone and card punch in fig. 2; a third party application, i.e., an application in the form of an HTML5 web page or applet installed from a third party application marketplace; the custom application, i.e. the application in the form of HTML5 webpage or applet running in the environment of the enterprise instant messaging client 110, is managed and distributed by the background of the enterprise instant messaging client 110, and the approval applet shown in fig. 2 is the custom application of the enterprise instant messaging client.
Specifically, the enterprise instant messaging client 110 may include software running in a terminal, such as an enterprise WeChat application, and the like, which may include, but is not limited to, a smart phone, a desktop computer, a tablet computer, a laptop computer, a digital assistant, a smart wearable device, and the like.
The server 120 is a server corresponding to the enterprise instant messaging client 110, and may provide a background service for the enterprise instant messaging client 110, for example, provide a data packet corresponding to an associated application in the enterprise instant messaging client 110. The server 120 may comprise a server operating independently, or a distributed server, or a server cluster consisting of multiple servers.
Please refer to fig. 3, which is a flowchart illustrating a method for downloading an applet data package according to an embodiment of the present invention, where the method can be applied to the enterprise instant messaging client in fig. 1. It is noted that the present specification provides the method steps as described in the examples or flowcharts, but may include more or less steps based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In actual system or product execution, sequential execution or parallel execution (e.g., parallel processor or multi-threaded environment) may be possible according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 3, the method may include:
s301, when an instruction for displaying an associated application set is received, determining a target applet in the associated application set.
The target applet comprises an applet which runs in the environment of the enterprise instant messaging client, namely, the host application of the target applet is the enterprise instant messaging client and runs by depending on the environment of the enterprise instant messaging client, and a data packet of the target applet is completely distributed and managed by a server corresponding to the enterprise instant messaging client. The associated application set includes a plurality of applications associated with the enterprise instant messaging client, the types of which may include, but are not limited to, system applications such as pay telephone and card punch as illustrated in fig. 2; a third party application, i.e. an application in the form of a web page of HTML5 or an applet installed from a third party application market; a custom application, i.e., an application in the form of an HTML5 web page or applet running in the environment of an enterprise instant messaging client, such as the approval applet illustrated in fig. 2, is managed and distributed by the back-end of the enterprise instant messaging client.
In this embodiment, the enterprise instant messaging client may provide a display control for the user, and when the user needs a certain associated application, the display control may be operated to issue an instruction to display the associated application set. Taking the enterprise instant messaging client shown in fig. 2 as an example, when the user clicks the "workbench", an instruction to display the associated application set is issued to the enterprise instant messaging client.
In this embodiment of the present specification, when the enterprise instant messaging client receives an instruction to present the associated application set, the enterprise instant messaging client may determine a target applet in the associated application set according to a specific type of each associated application in the associated application set. It can be understood that the enterprise instant messaging client can also obtain identification information of the target small program, and the identification information is used for uniquely identifying one small program.
And S303, acquiring the description information of the target applet from the server corresponding to the enterprise instant messaging client.
Specifically, the server corresponding to the enterprise instant messaging client stores description information of the target applet, and the description information may include, but is not limited to, identification information of the target applet, version information of a latest data package of the target applet, and download address information of the latest data package.
In an embodiment of this specification, the method of fig. 4 may be adopted for obtaining the description information of the target applet from the server corresponding to the enterprise instant messaging client, and as shown in fig. 4, the method may include:
s401, selecting a first target small program with an entrance in a display interface from the target small programs.
In practical application, the enterprise instant messaging client may integrate a plurality of target applets, and only one or some of the plurality of target applets are common target applets, so as to facilitate a user to quickly open the common target applets. The display interface of the workstation shown in fig. 2 includes an entry into a plurality of associated applications, the approval application is a target applet of the enterprise instant messaging client, and the display interface includes an entry into the approval applet.
It should be understood that the presentation interface only provides a portal for a part of commonly used associated applications, and the associated applications of the enterprise instant messaging client also include other associated applications for which the presentation interface does not provide a portal, besides commonly used associated applications in the presentation interface.
And S403, sending a description information acquisition request to a server corresponding to the enterprise instant messaging client, wherein the description information acquisition request carries the identification information of the first target applet, so that the server determines the description information of the first target applet according to the identification information.
Specifically, the enterprise instant messaging client may obtain description information of a commonly used target applet in an active pull manner, that is, actively send a description information obtaining request carrying identification information of the first target applet to the server, and after receiving the description information obtaining request, the server may extract the identification information of the first target applet, search description information matched with the identification information, and return the matched corresponding description information to the enterprise instant messaging client.
S405, receiving the description information of the first target small program returned by the server.
Taking the display interface of the "workbench" in fig. 2 as an example to illustrate the description information of the pulled target applet, as shown in fig. 5, the enterprise instant messaging client may traverse the application in the workbench to find the first target applet having an entry in the display interface, and further may pull the description information of the first target applet in batch from the server, it should be noted that the description information pulled here is the latest description information of the first target applet, such as APP 1-description information 1 and APP 2-description information 2 … … APPN-description information N in fig. 5, where APP represents the first target applet.
In practical applications, a user may frequently switch to a presentation-related application set, that is, an enterprise instant messaging client may frequently receive an instruction for presenting the related application set, taking fig. 2 as an example, the user may click a "work table," but click a "message" after 10s, and click the "work table" after 20s, as described above, the user clicks the "work table," that is, the instruction for presenting the related application set is sent to the enterprise instant messaging client, the enterprise instant messaging client performs a step of obtaining description information from a server when receiving the instruction, and obviously, in the case of frequently receiving the instruction for presenting the related application set, it is not necessary to interact with the server every time to obtain the description information, so as to avoid waste of network resources and influence on the operation speed of the client due to frequent interaction under the above circumstances, in a specific embodiment, as shown in fig. 6, before step S403, the method may further include:
s601, acquiring the timestamp of the last time of opening the first target applet.
Specifically, the enterprise instant messaging client may record a timestamp of each associated application that is opened each time, and in this step, the enterprise instant messaging client obtains a timestamp of the last time that the first target applet was opened.
S603, determining the difference value between the current timestamp and the timestamp of the last time of opening the first target applet, and obtaining the interval duration.
Specifically, the enterprise instant messaging client further obtains a current timestamp, and calculates a difference between the current timestamp and a timestamp of last opening of the first target applet, so as to obtain an interval duration of the first target applet.
And S605, judging whether the interval time length is less than a preset time length, and if so, executing the step S403.
The preset time period may be set according to actual needs, for example, may be set to 1 hour.
In another specific embodiment, for an unusual target applet that does not have an entry in a presentation interface, a server may be used to actively push description information of the target applet to an enterprise instant messaging client, and specifically, as shown in fig. 7, the method may further include:
s407, sending the identification information of the first target small program to the server, so that the server determines a second target small program according to the identification information of the first target small program.
Wherein the second target applet is a target applet having no entry in the presentation interface.
Specifically, the server may store the identification information of the associated application according to the type of the associated application in the associated application set of the enterprise instant messaging client. After the server receives the identification information of the first target applet sent by the enterprise instant messaging client, the identification information of the target applet which is not matched with the identification information of the first target applet can be determined as the identification information of the second target applet, that is, the second target applet is determined, and then the server can determine corresponding description information according to the identification information of the second target applet.
S409, receiving the description information of the second target applet sent by the server under a preset trigger event.
The preset trigger event may be set according to actual needs, for example, the preset trigger event may be that the second target applet has an updated data packet, that is, when the second target applet has an updated data packet, the description information of the second target applet is sent to the corresponding enterprise instant messaging client; the preset trigger event may also be that a preset time interval is reached, for example, 3 days or 5 days, and the like, that is, when the preset time interval is reached, the server sends the description information of the second target applet to the corresponding enterprise instant messaging client. In practical applications, as shown in fig. 8, the server may issue the description information of the second target applet in the form of a notification message. Correspondingly, after receiving the notification message sent by the server, the enterprise instant messaging client can extract the description information of the second target applet sent by the server under the preset trigger event from the notification message.
According to the embodiment of the invention, for the target applet which is not commonly used and has no entrance on the display interface, the description information of the target applet is actively pushed by the server, so that unnecessary interaction between the client and the server can be avoided, and the method and the system are favorable for saving network resources and improving the running speed of the client side.
S305, determining the target small program to be downloaded according to the description information.
Specifically, the description information may include, but is not limited to, identification information of the target applet, version information of the latest package of the target applet, and download address information of the latest package, etc. When determining a target applet to be downloaded based on the description information, a method shown in fig. 9 may be employed, which may include:
s901, judging whether a data packet of the target small program matched with the identification information in the description information exists in the designated storage space, and if so, executing the steps from S903 to S907; when the result of the determination is no, step S907 is directly performed.
The designated storage space is a storage space used by the enterprise instant messaging client for storing the data packet of the target applet, and may be, but is not limited to, a local storage space.
Specifically, the enterprise instant messaging client determines whether a data packet of the target applet matched with the identification information in the description information exists in the designated storage space, if so, it indicates that the data packet of the corresponding target applet is downloaded before the current timestamp, and at this time, step S903 may be executed; if the result of the determination is no, it indicates that the data packet of the corresponding target applet has not been downloaded before the current timestamp, and at this time, step S907 may be directly performed.
And S903, acquiring the current version information of the data packet of the target small program matched with the identification information.
Specifically, the enterprise instant messaging client acquires the current version information of the data packet of the target applet matched with the identification information in the description information in the designated storage space.
S905, judging whether the current version information is matched with the version information in the description information, and executing the step S907 if the judgment result is negative; otherwise, execution ends.
Specifically, the enterprise instant messaging client determines whether the current version information of the data packet of the target applet is consistent with the version information of the data packet in the description information, if the determination result is negative, it indicates that the corresponding target applet has a data packet with an updated version to be downloaded, and may perform step S907; if the judgment result is yes, the data packet of the corresponding target applet in the designated storage space is the data packet of the current latest version, repeated downloading from the server is not needed, and the execution can be finished.
And S907, determining the target applet matched with the identification information as the target applet to be downloaded.
S307, downloading the data packet of the target small program to be downloaded from the server.
Specifically, if a corresponding data packet is downloaded before the current timestamp of the target applet to be downloaded, but the data packet is not the latest version of the data packet, the enterprise instant messaging client may first download, from the server, the target data packet matched with the version information in the description information of the target applet to be downloaded, and then update the data packet corresponding to the current version information of the target applet to be downloaded into the target data packet. If the target applet to be downloaded does not download the corresponding data packet before the current timestamp, the target data packet matched with the version information in the description information of the target applet to be downloaded can be directly downloaded from the server.
Taking the designated storage space as the local storage space as an example, as shown in fig. 5 and 8, when there is no data packet corresponding to the description information in the local storage space, directly downloading the data packet of the latest version from the server; when the local storage space has a data packet corresponding to the description information but the version of the data packet is not the latest version, downloading the data packet of the latest version from the server, and then updating the data packet of the old version in the local storage space to the data packet of the latest version; and when the local storage space has a data packet corresponding to the description information and the data packet is the data packet of the latest version, the direct execution is finished.
According to the technical scheme of the embodiment of the invention, the enterprise instant messaging client is used as the host application of the target small program, the corresponding latest data packet is downloaded at the enterprise instant messaging client before the target small program is opened, and the downloaded target data packet can be directly loaded and opened subsequently when the target small program needs to be opened, so that the time consumption of the enterprise instant messaging client for opening the target small program is greatly shortened, the opened small program is ensured to be the latest version, and a user obtains better use experience.
The method for downloading an applet data package according to the embodiment of the present invention is described below by taking an enterprise instant messaging client as an enterprise wechat client and a server as an enterprise wechat background corresponding to the enterprise wechat, where fig. 10 provides a timing diagram of another applet data downloading method, as shown in fig. 10: in step S1010, the enterprise wechat client sends the identification information of the first target applet to the enterprise wechat background, and as can be understood, the identification information of the first target applet may be carried in the description information obtaining request and sent; in step S1020, the enterprise wechat back office sends the description information of the target applet to the enterprise wechat client, where as may be understood, the enterprise wechat back office may return the description information of the first target applet in response to the received description information obtaining request, or send the description information of the second target applet to the enterprise wechat client under the trigger of a preset trigger event; in step S1030, the enterprise wechat client sends an acquisition request of a data packet of the target applet to be downloaded to the enterprise wechat background, where the acquisition request carries description information of the target applet to be downloaded; in step S1040, the enterprise wechat background returns the download address information of the target applet to be downloaded to the enterprise wechat client in response to the acquisition request of the data packet; in step S1050, the enterprise wechat client downloads the target data packet from the enterprise wechat background based on the download address information of the target applet to be downloaded.
Corresponding to the methods for downloading the applet data package provided in the foregoing embodiments, embodiments of the present invention further provide a device for downloading the applet data package, and since the device for downloading the applet data package provided in the embodiments of the present invention corresponds to the methods for downloading the applet data package provided in the foregoing embodiments, embodiments of the method for downloading the applet data package are also applicable to the device for downloading the applet data package provided in the embodiments, and will not be described in detail in this embodiment.
Please refer to fig. 11, which is a schematic structural diagram illustrating a downloading apparatus for an applet data package according to an embodiment of the present invention, where the apparatus has a function of implementing a downloading method for an applet data package according to the foregoing method embodiment, and the function may be implemented by hardware or by hardware executing corresponding software, and the apparatus may be applied to an enterprise instant messaging client. As shown in fig. 11, the apparatus may include:
a first determining module 1110, configured to determine, when an instruction for presenting an associated application set is received, a target applet in the associated application set; the target applet comprises an applet running in the environment of the enterprise instant messaging client;
a first obtaining module 1120, configured to obtain description information of the target applet from a server corresponding to the enterprise instant messaging client;
a second determining module 1130, configured to determine, according to the description information, a target applet to be downloaded;
a downloading module 1140, configured to download the data packet of the target applet to be downloaded from the server.
In a specific embodiment, the first obtaining module 1120 may include:
the selection module is used for selecting a first target applet with an entrance in a display interface from the target applets;
a first sending module, configured to send a description information obtaining request to a server corresponding to the enterprise instant messaging client, where the description information obtaining request carries identification information of the first target applet, so that the server determines the description information of the first target applet according to the identification information;
and the first receiving module is used for receiving the description information of the first target applet returned by the server.
In another specific embodiment, the first obtaining module 1120 may further include:
a second sending module, configured to send the identification information of the first target applet to the server, so that the server determines a second target applet according to the identification information of the first target applet; the second target applet is a target applet without an entry in the display interface;
and the second receiving module is used for receiving the description information of the second target applet, which is sent by the server under a preset trigger event.
Optionally, the description information includes identification information and version information;
accordingly, the second determination module 1130 may include:
the first judgment module is used for judging whether a data packet of the target small program matched with the identification information in the description information exists in the appointed storage space;
the second acquisition module is used for acquiring the current version information of the data packet of the target small program matched with the identification information when the judgment result of the first judgment module is yes;
the second judging module is used for judging whether the current version information is matched with the version information in the description information;
and the third determining module is used for determining the target applet matched with the identification information as the target applet to be downloaded when the judgment result of the second judging module is negative.
Optionally, the downloading module 1140 may include:
the downloading submodule is used for downloading a target data packet matched with the description information of the target applet to be downloaded from a server;
and the updating module is used for updating the data packet corresponding to the current version information of the target applet to be downloaded into the target data packet.
In another specific embodiment, the first obtaining module 1120 may further include:
a third obtaining module, configured to obtain a timestamp of a last time the first target applet was opened;
a fifth determining module, configured to determine a difference between the current timestamp and the timestamp of the last time that the first target applet was opened, so as to obtain an interval duration;
and the third judging module is used for judging whether the interval duration is less than the preset duration or not, and executing the function of the first sending module when the judging result is yes.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, the division of each functional module is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments, which are not described herein again.
According to the downloading device of the small program data packet, the enterprise instant messaging client is used as the host application of the target small program, the corresponding latest data packet is downloaded on the side of the enterprise instant messaging client before the target small program is opened, and the downloaded target data packet can be directly loaded and opened subsequently when the target small program needs to be opened, so that the time consumption of the enterprise instant messaging client for opening the target small program is greatly shortened, the opened small program is ensured to be the latest version, and a user can obtain better use experience.
The embodiment of the invention provides a terminal, which comprises a processor and a memory, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to realize the downloading method of the applet data package provided by the method embodiment.
The memory may be used to store software programs and modules that the processor executes to execute various functional applications and the downloading of applet packages by running the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
The method provided by the embodiment of the invention can be executed in a computer terminal, a server or a similar operation device. Taking the example of running on the terminal, fig. 12 is a hardware structure block diagram of the terminal running a downloading method of an applet data package according to the embodiment of the present invention, specifically:
the terminal 1200 may include RF (Radio Frequency) circuitry 1210, memory 1220 including one or more computer-readable storage media, an input unit 1230, a display unit 1240, a video sensor 1250, audio circuitry 1260, a WiFi (wireless fidelity) module 1270, a processor 1280 including one or more processing cores, and power supply 120. Those skilled in the art will appreciate that the terminal structure shown in fig. 12 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 1210 is configured to receive and transmit signals during a message transmission or communication process, and in particular, receive downlink information of a base station and then send the received downlink information to one or more processors 1280 for processing; in addition, data relating to uplink is transmitted to the base station. In general, RF circuit 1210 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuit 1210 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 1220 may be used to store software programs and modules, and the processor 1280 executes various functional applications and data processing by operating the software programs and modules stored in the memory 1220. The memory 1220 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as video data, a phone book, etc.) created according to the use of the terminal 1200, and the like. Further, the memory 1220 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 1220 may also include a memory controller to provide the processor 12120 and the input unit 1230 access to the memory 1220.
The input unit 1230 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, the input unit 1230 may include an image input device 1231 and other input devices 1232. The image input device 1231 may be a camera or a photoelectric scanning device. The input unit 1230 may include other input devices 1232 in addition to the image input device 1231. In particular, other input devices 1232 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1240 may be used to display information input by or provided to the user as well as various graphical user interfaces of the terminal 1200, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 1240 may include a Display panel 1241, and optionally, the Display panel 1241 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
The terminal 1200 may include at least one video sensor 1250 for acquiring video information of a user. The terminal 1200 may also include other sensors (not shown), such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 1241 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1241 and/or a backlight when the terminal 1200 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of identifying the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration identification related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the terminal 1200, detailed descriptions thereof are omitted.
Video circuit 1260, speaker 1261, microphone 1262 can provide a video interface between a user and terminal 1200. The audio circuit 1260 can transmit the received electrical signal converted from the audio data to the speaker 1261, and the audio signal is converted into a sound signal by the speaker 1261 and output; on the other hand, the microphone 1262 converts the collected sound signal into an electric signal, is received by the audio circuit 1260, is converted into audio data, is processed by the audio data output processor 1280, and is then transmitted to, for example, another terminal via the RF circuit 1210, or outputs the audio data to the memory 1220 for further processing. The audio circuit 1260 may also include an earbud jack to provide communication of peripheral headphones with the terminal 1200.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 1200 can help a user to send and receive e-mails, browse webpages, access streaming media, and the like through the WiFi module 1270, and provides the user with wireless broadband internet access. Although fig. 12 shows WiFi module 1270, it is understood that it does not belong to the essential constitution of terminal 1200, and may be omitted entirely as needed within a scope not changing the essence of the invention.
The processor 1280 is a control center of the terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 1220 and calling data stored in the memory 1220, thereby performing overall monitoring of the mobile phone. Optionally, processor 1280 may include one or more processing cores; preferably, the processor 1280 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into the processor 1280.
The terminal 1200 also includes a power supply 120 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1280 via a power management system that may be configured to manage charging, discharging, and power consumption. The power supply 120 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal 1200 may further include a bluetooth module, etc., which will not be described in detail herein.
In this embodiment, the terminal 1200 further includes a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for performing the method for downloading an applet package provided by the method embodiments described above.
Embodiments of the present invention further provide a computer-readable storage medium, which may be disposed in a terminal to store at least one instruction, at least one program, a code set, or a set of instructions related to implementing a video generation method, where the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the method for downloading an applet package provided in the foregoing method embodiments.
Optionally, in this embodiment, the storage medium may include but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. And that specific embodiments have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A method for downloading an applet data package, which is applied to an enterprise instant messaging client, the method comprises the following steps:
when an instruction for displaying an associated application set is received, determining a target small program in the associated application set; the target applet comprises an applet running in the environment of the enterprise instant messaging client, the target applet comprises a first target applet and a second target applet, the first target applet is the target applet with an entry in a display interface, the second target applet is the target applet without an entry in the display interface, and the display interface is an interface displayed when the instruction is received;
sending a description information acquisition request to a server corresponding to the enterprise instant messaging client, wherein the description information acquisition request carries identification information of the first target applet, so that the server determines the description information of the first target applet according to the identification information and receives the description information of the first target applet returned by the server;
sending the identification information of the first target small program to the server, so that the server determines the second target small program according to the identification information of the first target small program, and receives the description information of the second target small program sent by the server under a preset trigger event;
determining a target applet to be downloaded according to the description information;
and downloading the data packet of the target applet to be downloaded from the server.
2. The applet data package downloading method according to claim 1, wherein the description information includes identification information and version information;
correspondingly, the determining the target applet to be downloaded according to the description information includes:
judging whether a data packet of the target small program matched with the identification information in the description information exists in the appointed storage space;
if the judgment result is yes, acquiring the current version information of the data packet of the target small program matched with the identification information;
judging whether the current version information is matched with the version information in the description information;
and if the judgment result is negative, determining the target applet matched with the identification information as the target applet to be downloaded.
3. The applet data package downloading method according to claim 2, wherein the downloading of the data package of the target applet to be downloaded from the server comprises:
downloading a target data packet matched with the description information of the target small program to be downloaded from a server;
and updating the data packet corresponding to the current version information of the target applet to be downloaded into the target data packet.
4. The applet data package downloading method according to claim 2, characterized in that the method further comprises:
and when the data packet of the target small program matched with the identification information does not exist in the designated storage space, determining the target small program matched with the identification information as the target small program to be downloaded.
5. The applet data package downloading method according to claim 1, before sending a description information obtaining request to a server corresponding to the enterprise instant messaging client, the method further includes: obtaining a timestamp of the last time the first target applet was opened;
determining the difference value between the current timestamp and the timestamp of the last time of opening the first target applet to obtain interval duration;
judging whether the interval duration is less than a preset duration or not;
and if so, executing the step of sending a description information acquisition request by a server corresponding to the enterprise instant messaging client.
6. An applet data package downloading apparatus applied to an enterprise instant messaging client, the apparatus comprising:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining target small programs in an associated application set when an instruction for displaying the associated application set is received; the target applet comprises an applet running in the environment of the enterprise instant messaging client, the target applet comprises a first target applet and a second target applet, the first target applet is the target applet with an entry in a display interface, the second target applet is the target applet without an entry in the display interface, and the display interface is an interface displayed when the instruction is received;
a first obtaining module, configured to send a description information obtaining request to a server corresponding to the enterprise instant messaging client, where the description information obtaining request carries identification information of the first target applet, so that the server determines the description information of the first target applet according to the identification information, and receives the description information of the first target applet returned by the server; sending the identification information of the first target small program to the server, so that the server determines the second target small program according to the identification information of the first target small program, and receiving the description information of the second target small program sent by the server under a preset trigger event;
the second determining module is used for determining the target applet to be downloaded according to the description information;
and the downloading module is used for downloading the data packet of the target applet to be downloaded from the server.
7. A terminal comprising a processor and a memory having stored therein at least one instruction, at least one program, set of codes or set of instructions, which is loaded and executed by the processor to implement a method of downloading an applet data package according to any one of claims 1 to 5.
8. A computer readable storage medium having stored therein at least one instruction, at least one program, set of codes or set of instructions, which is loaded and executed by a processor to implement a method of downloading an applet data package according to any one of claims 1 to 5.
CN201910676607.4A 2019-07-25 2019-07-25 Method, device, terminal and storage medium for downloading applet data packet Active CN112311818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910676607.4A CN112311818B (en) 2019-07-25 2019-07-25 Method, device, terminal and storage medium for downloading applet data packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910676607.4A CN112311818B (en) 2019-07-25 2019-07-25 Method, device, terminal and storage medium for downloading applet data packet

Publications (2)

Publication Number Publication Date
CN112311818A CN112311818A (en) 2021-02-02
CN112311818B true CN112311818B (en) 2022-08-23

Family

ID=74329190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910676607.4A Active CN112311818B (en) 2019-07-25 2019-07-25 Method, device, terminal and storage medium for downloading applet data packet

Country Status (1)

Country Link
CN (1) CN112311818B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641274A (en) * 2021-08-16 2021-11-12 海尔数字科技(青岛)有限公司 Page display method, device and equipment for micro application
CN117176698A (en) * 2022-05-26 2023-12-05 华为技术有限公司 Communication method, device and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2733605B8 (en) * 2012-08-29 2017-07-05 Huawei Device Co., Ltd. Management method and device for webpage application program
CN102932441A (en) * 2012-10-26 2013-02-13 北京小米科技有限责任公司 Method and system for downloading application, terminal and server
CN105554087B (en) * 2015-12-10 2018-10-26 小米科技有限责任公司 information setting method and device
CN108647055B (en) * 2018-05-10 2021-05-04 Oppo广东移动通信有限公司 Application program preloading method and device, storage medium and terminal
CN109118160B (en) * 2018-06-26 2021-06-15 腾讯科技(深圳)有限公司 Information sharing method, device, terminal equipment and medium

Also Published As

Publication number Publication date
CN112311818A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN110795666B (en) Webpage generation method, device, terminal and storage medium
CN109857403B (en) Page updating method and device, page processing method and device
JP6461173B2 (en) Message withdrawal method and apparatus
US10088599B2 (en) Systems and methods for weather forecasting
CN107741844B (en) Method and device for generating application installation package
CN113365106B (en) Multimedia resource generation method and device, electronic equipment and storage medium
CN105471931B (en) Method, device and system for inquiring service data
CN107204964B (en) Authority management method, device and system
CN111178012A (en) Form rendering method, device and equipment and storage medium
CN103294335A (en) Apparatus and method for creating a shortcut menu
CN107666406B (en) Intelligent card display method and device
CN106293738B (en) Expression image updating method and device
CN106156097B (en) Method and device for processing browser input records
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN112311818B (en) Method, device, terminal and storage medium for downloading applet data packet
CN108809805B (en) Information interaction method and system and public account client
CN107025574B (en) Promotion information display method and device
CN114385164A (en) Page generation and rendering method and device, electronic equipment and storage medium
CN108287706A (en) Data processing method and device
CN108182090B (en) Flash plug-in loading method and device based on blink kernel
CN106095423B (en) Method, terminal and server for providing browsing service
CN105095161B (en) Method and device for displaying rich text information
CN106708501B (en) Activity monitoring method and device
CN110196662B (en) Method, device, terminal and storage medium for displaying synchronization state
CN109145182B (en) Data acquisition method and device, computer equipment and system

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