CN111478956A - Deployment and preview method and device of small program package - Google Patents

Deployment and preview method and device of small program package Download PDF

Info

Publication number
CN111478956A
CN111478956A CN202010251224.5A CN202010251224A CN111478956A CN 111478956 A CN111478956 A CN 111478956A CN 202010251224 A CN202010251224 A CN 202010251224A CN 111478956 A CN111478956 A CN 111478956A
Authority
CN
China
Prior art keywords
package
applet
small program
protocol
information
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.)
Granted
Application number
CN202010251224.5A
Other languages
Chinese (zh)
Other versions
CN111478956B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010251224.5A priority Critical patent/CN111478956B/en
Publication of CN111478956A publication Critical patent/CN111478956A/en
Application granted granted Critical
Publication of CN111478956B publication Critical patent/CN111478956B/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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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 
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses a method and a device for deploying and previewing an applet package, and relates to the technical field of applets. The specific implementation scheme is as follows: acquiring an applet package to be issued, information of the applet package and a call-up protocol of the applet package; carrying out network deployment on the small program package to obtain a network address of a preview version of the small program package; and providing the information of the small program package, the calling protocol and the network address of the preview version to a terminal so that the terminal can download the small program package according to the information of the small program package and the network address of the preview version and call the small program corresponding to the small program package according to the calling protocol. The embodiment breaks through a serial operation mode in the prior art, and improves the service stability and performance in the applet deployment process.

Description

Deployment and preview method and device of small program package
Technical Field
The application relates to computer technology, in particular to the technical field of small programs.
Background
Under the current situation that the number of small program developers is becoming huge, a very large number of small programs are generated every day. As an applet server, the operations of uploading, processing, deploying, issuing and the like of the applet need to be completed, and the operations have very high requirements on the stability and performance response of service operation.
At present, links from a tool end to a service end of an applet are serial operations, namely the applet package is processed and checked after being uploaded, and the applet package is deployed and downloaded after being passed through the check, so that the whole process is long in link and long in processing time, and the stability and performance of the service are affected by any link in the middle, and the influence on developers is great.
Disclosure of Invention
The embodiment of the application provides a method and a device for deploying and previewing an applet package, and further provides a platform server, a package management server, a terminal and a readable storage medium, so that the service stability and performance in the applet deploying process are improved, and a developer-oriented applet previewing mode is provided.
In a first aspect, an embodiment of the present application provides a method for deploying an applet package, which is applicable to a platform server, and includes:
acquiring an applet package to be issued, information of the applet package and a call-up protocol of the applet package;
carrying out network deployment on the small program package to obtain a network address of a preview version of the small program package;
and providing the information of the small program package, the calling protocol and the network address of the preview version to a terminal so that the terminal can download the small program package according to the information of the small program package and the network address of the preview version and call the small program corresponding to the small program package according to the calling protocol.
In the embodiment of the application, an applet package to be issued, information of the applet package and a call-up protocol of the applet package are obtained; and carrying out network deployment on the small program package to obtain a network address of a preview version of the small program package, so that the small program package is directly deployed through a platform server before the small program package is checked, a terminal can immediately download the small program package for previewing, a previewing mode of the small program facing a developer is provided, and the problems of long data flow and long time consumption of the developer in the developing process are effectively solved. The development efficiency of developers can be greatly improved, and meanwhile, the deployment efficiency is improved; moreover, the platform server directly deploys the applet package without waiting for the verification to pass, so that a serial operation mode in the prior art is broken, the service stability and performance in the applet deployment process are improved, and good experience is brought to the use of an applet development tool by a developer.
Optionally, after providing the information of the applet package and the network address to the terminal, the method further includes:
and asynchronously sending the applet package, the information of the applet package and the call-up protocol to a package management server so that the package management server can perform network deployment on the applet package to obtain a formal edition network address of the applet package, and correspondingly storing the information of the applet package, the call-up protocol and the formal edition network address.
In an optional implementation manner in the above application, the applet package, the information of the applet package and the call-up protocol are asynchronously sent to a package management server, so that the package management server performs network deployment on the applet package to obtain a formal edition network address of the applet package, and correspondingly stores the information of the applet package, the call-up protocol and the formal edition network address, thereby providing a download mode of the applet for a common user, and considering both a preview mode and a download mode without conflict; meanwhile, the two modes can mutually backup each other, and the disaster tolerance capability of the service is improved.
Optionally, the obtaining the applet package to be issued, the call-up protocol of the applet package, and the information of the applet package includes:
receiving an applet package to be issued, a call-up protocol of the applet package and information of the applet package, which are sent by an applet development tool;
the providing the information of the applet package, the call-up protocol and the network address of the preview version to the terminal includes:
generating a preview two-dimensional code according to the information of the small program package, the calling protocol and the preview network address;
and returning the preview two-dimensional code to the applet development tool so that the terminal can obtain the information of the applet package, the call-up protocol and the preview network address by scanning the preview two-dimensional code in the applet development tool.
In an optional implementation manner in the above application, the information of the applet package, the call-up protocol and the network address of the preview version are obtained by scanning the two-dimensional code in the applet development tool, so that the applet package is downloaded, and convenience and safety of preview are improved.
In a second aspect, an embodiment of the present application provides a deployment method for an applet package, which is applicable to a package management server, and includes:
receiving a starting protocol of a small program packet sent by a terminal;
judging whether the calling protocol contains the information of the small program package and the network address of the preview version of the small program package;
if the calling protocol comprises the information of the small program package and the network address of the preview version, searching the small program package according to the information of the small program package and the network address of the preview version;
and sending the found small program package to the terminal so that the terminal can call the small program corresponding to the small program package according to the call protocol.
In the embodiment, the package management server determines to download the applet package from the network address of the preview version or download the applet package from the network address of the formal version according to whether the calling protocol contains the information of the applet package and the network address of the preview version of the applet package, so that the preview mode and the download mode are considered and are not conflicted with each other; meanwhile, the downloading of the small program package can be realized and the disaster tolerance capability of the service is improved regardless of whether the calling protocol contains the information of the small program package and the network address of the preview version of the small program package.
Optionally, before the receiving the initiation protocol of the applet packet sent by the terminal, the method further includes:
receiving an applet package, information of the applet package and a call-up protocol of the applet package sent by a platform server;
carrying out network deployment on the small program package to obtain a formal version network address of the small program package;
correspondingly storing the information of the small program package, the calling protocol and the formal version network address;
and providing the starting protocol to the terminal so that the terminal can download the small program package according to the starting protocol and start the small program corresponding to the small program package.
Optionally, after the determining whether the invoking protocol includes the information of the applet package and the network address of the preview version of the applet package, the method further includes:
if the starting protocol does not contain the information of the small program package and the network address of the preview version, determining the information of the small program package and the network address of the formal version corresponding to the starting protocol;
and searching the small program package according to the information of the small program package and the network address of the formal version.
In a third aspect, an embodiment of the present application provides a method for previewing an applet package, which is applied to a terminal, and includes:
acquiring information of an applet package to be downloaded, a calling protocol of the applet package and a network address of a preview version of the applet package from a platform server, wherein the network address of the preview version is obtained by performing network deployment on the applet package after the platform server receives the applet package to be issued;
adding the information of the small program package and the network address of the preview version into the starting protocol;
sending the added calling protocol to a package management server, so that the package management server searches the small program package according to the information of the small program package and the network address of the preview version and sends the searched small program package to a terminal;
and calling up the small program corresponding to the small program package according to the calling-up protocol.
In the embodiment, the terminal acquires the information of the applet package to be downloaded, the call-up protocol of the applet package and the network address of the preview version of the applet package through the platform server, and then downloads the applet from the package management server, so that the applet package can be downloaded for previewing before the applet package is checked, a developer-oriented applet preview mode is provided, and the problems that the data flow is too long and the time consumption is too long in the development process of the developer are effectively reduced. The development efficiency of developers can be greatly improved, and meanwhile, the deployment efficiency is improved; moreover, the platform server directly deploys the applet package without waiting for the verification to pass, so that a serial operation mode in the prior art is broken, the service stability and performance in the applet deployment process are improved, and good experience is brought to the use of an applet development tool by a developer.
Optionally, the obtaining, from the platform server, information of the applet package to be downloaded, a call-up protocol of the applet package, and a network address of a preview version of the applet package includes:
scanning a preview version two-dimensional code in an applet development tool to obtain information of the applet package, the call-up protocol and the preview version network address; and the preview-version two-dimensional code is generated according to the information of the applet package, the call-up protocol and the preview-version network address and is sent to an applet development tool by a platform server.
In an optional implementation manner in the above application, the information of the applet package, the call-up protocol and the network address of the preview version are obtained by scanning the two-dimensional code in the applet development tool, so that the applet package is downloaded, and convenience and safety of preview are improved.
In a fourth aspect, an embodiment of the present application further provides a device for deploying an applet package, which is applicable to a platform server, and includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an applet packet to be issued, information of the applet packet and a starting protocol of the applet packet;
the deployment module is used for carrying out network deployment on the small program package to obtain a network address of a preview version of the small program package;
and the providing module is used for providing the information of the small program package, the calling protocol and the network address of the preview version to a terminal so that the terminal can download the small program package according to the information of the small program package and the network address of the preview version and call the small program corresponding to the small program package according to the calling protocol.
In a fifth aspect, an embodiment of the present application further provides a deployment apparatus for an applet package, which is applicable to a package management server, and includes:
the receiving module is used for receiving a calling protocol of the small program package sent by the terminal;
the judging module is used for judging whether the calling protocol contains the information of the small program package and the network address of the preview version of the small program package;
the searching module is used for searching the small program package according to the information of the small program package and the network address of the preview version if the calling protocol contains the information of the small program package and the network address of the preview version;
and the issuing module is used for issuing the searched small program package to the terminal so that the terminal can invoke the small program corresponding to the small program package according to the invoking protocol.
In a sixth aspect, an embodiment of the present application further provides a device for previewing an applet package, which is applied to a terminal, and includes:
the system comprises an acquisition module, a distribution module and a distribution module, wherein the acquisition module is used for acquiring information of an applet package to be downloaded, a calling protocol of the applet package and a preview version network address of the applet package from a platform server, and the preview version network address is obtained by carrying out network deployment on the applet package after the platform server receives the applet package to be issued;
the adding module is used for adding the information of the applet package and the network address of the preview version into the starting protocol;
the sending module is used for sending the added calling protocol to a package management server so that the package management server can search the small program package according to the information of the small program package and the network address of the preview version and send the searched small program package to a terminal;
and the calling module is used for calling the small program corresponding to the small program package according to the calling protocol.
In a seventh aspect, an embodiment of the present application further provides a platform server, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute a method for deploying an applet package as provided in an embodiment of the first aspect.
In an eighth aspect, an embodiment of the present application further provides a package management server, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute a method for deploying an applet package as provided in an embodiment of the second aspect.
In a ninth aspect, an embodiment of the present application further provides a terminal, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of previewing packages as provided in embodiments of the third aspect.
In a tenth aspect, embodiments of the present application further provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute a method for deploying a small package as provided in the first and second aspects, or a method for previewing a small package as provided in the third aspect.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1a is a schematic diagram of an applet deployment and browsing architecture in an embodiment of the present application;
fig. 1b is a flowchart of a deployment method of an applet package in the first embodiment of the present application;
fig. 2 is a flowchart of a method for deploying an applet package in the second embodiment of the present application;
fig. 3 is a flowchart of a deployment method of an applet package in a third embodiment of the present application;
fig. 4 is a flowchart of a method for previewing an applet package according to a fourth embodiment of the present application;
fig. 5 is a block diagram of a deployment apparatus of an applet package in a fifth embodiment of the present application;
fig. 6 is a block diagram of a deployment apparatus of an applet package according to a sixth embodiment of the present application;
fig. 7 is a configuration diagram of a preview device of an applet package in a seventh embodiment of the present application;
fig. 8 is a block diagram of a platform server for implementing the deployment method of an applet package according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
For convenience of description of the embodiments of the present application, an application scenario of the embodiments of the present application is first introduced. FIG. 1a is a schematic diagram of a deployment and browsing architecture in an embodiment of the present application. As shown in fig. 1a, the whole process of publishing, deploying and downloading the applet package substantially includes the following subjects: the system comprises an applet development tool and a host application program which are deployed on a terminal, and a platform server, a package management server and a storage system which are deployed on a server side. In fig. 1a, the applet development tool and the host application may be deployed in different terminals, for example, the applet development tool is deployed in a desktop computer, and the host application is deployed in a mobile terminal, such as a mobile phone.
Specifically, the applet development tool provides a development interface, functions, environment, components, and the like of the applet package for a developer to develop the applet package. The platform server and the package management server are used for analyzing, encrypting, signing and other series of processing on the small program package, and deploying the small program package to a storage system for terminal downloading. And the terminal downloads the small program package from the storage system, and calls the small program corresponding to the small program package through the host application program to realize the preview of the small program.
The method provided by the embodiment of the present application is described in detail below with a platform server, a package management server, and a terminal as execution subjects.
Example one
Fig. 1b is a flowchart of a method for deploying an applet package in an embodiment of the present application, where the embodiment of the present application is applicable to a case where an applet package of a preview version for a developer to preview is deployed, and the method is executed by a deployment device of the applet package, where the deployment device is implemented by software and/or hardware and is specifically configured in a platform server with a certain data operation capability.
With reference to fig. 1a and fig. 1b, the method provided by this embodiment includes:
s110, acquiring the small program package to be issued, the information of the small program package and the call-up protocol of the small program package.
A developer develops a small program package called as a small program package to be issued by using a small program development tool, and sends the small program package, information of the small program package and a call-up protocol to a platform server through the small program development tool. Optionally, the applet development tool has a hypertext Transfer Protocol (HTTP) interface, and sends the applet package to the platform server through the HTTP interface.
The applet calling protocol is essentially a Uniform Resource locator (Uniform Resource L atom, UR L) of a Scheme (Scheme) protocol, and comprises parameters such as a prefix, an applet Identity, a unique identifier and a page path.
And S120, carrying out network deployment on the small program package to obtain the preview version network address of the small program package.
The platform server firstly analyzes the configuration file of the small program package, and directly and immediately performs network deployment on the analyzed small program package. The configuration file and the parsing process of the applet package refer to the prior art, and are not described herein again.
Network deployment refers to storing an applet package to a storage system. Optionally, in order to improve the Storage capability of the Storage system, the Storage system adopts a combined Storage mode of a Baidu Object Storage (BOS) service and a Content Delivery Network (CDN). Specifically, the small program package is deployed to a BOS service, the BOS service is used as a source station and distributed to a CDN node, and a CDN node address is used as a preview network address of the small program package. The combined storage mode provided by the embodiment can provide stable, safe, efficient and highly-extended storage services, and supports any type of data storage such as single-file maximum 5TB text, multimedia, binary and the like.
It should be noted that, in this embodiment, the applet package is directly deployed to the storage system from the platform server, and cannot be downloaded by an ordinary user without being checked. The embodiment provides a preview mode of an applet facing a developer, and the applet package which is not checked can be previewed by the developer, so that the developer can modify codes through an applet development tool according to a preview effect and upload the modified applet package to a platform server again. Therefore, for convenience of description and distinction, the network address of the applet package deployed by the platform server is referred to as a preview version network address, and the network address of the applet package passing the subsequent auditing is referred to as a formal version network address.
S130, providing the information of the small program package, the calling protocol and the network address of the preview version to the terminal so that the terminal can download the small program package according to the information of the small program package and the network address of the preview version and call the small program corresponding to the small program package according to the calling protocol.
And providing the information of the small program package, the call-up protocol and the network address of the preview version to a host application program of the terminal. Optionally, the preview-version two-dimensional code is generated according to the information of the applet package, the call-up protocol and the preview-version network address, specifically, the information of the applet package, the call-up protocol and the preview-version network address are encrypted, and the ciphertext is written into the two-dimensional code to generate the preview-version two-dimensional code. For convenience of description and distinction, the preview-version two-dimensional code is generated according to the two-dimensional code generated by the information of the small program package, the call-up protocol and the network address of the preview-version. And then, returning the preview two-dimensional code to the small program development tool, and displaying the preview two-dimensional code by the small program development tool. Therefore, only developers of the applets can see the development tools of the applets, and then see the preview two-dimensional codes.
The terminal obtains information of the small program package to be downloaded, a calling protocol of the small program package and a network address of a preview version of the small program package from the platform server, and specifically, the information, the calling protocol and the network address of the preview version of the small program package can be obtained by scanning a two-dimensional code of the preview version in a small program development tool through a host application program in the terminal.
Then, the terminal adds the information of the applet package and the network address of the preview version to the launch protocol, for example, adds the information of the applet package and the network address of the preview version as a suffix to the launch protocol. The added call-up protocol is sent to a Package management server, which runs a Package Management Service (PMS). The PMS runs in a System Server process, is an android System service, and is used for deploying and downloading the applet packages.
After receiving the calling protocol, the packet management server firstly judges whether the calling protocol comprises the information of the small program packet and the network address of the preview version of the small program packet, if the calling protocol comprises the information of the small program packet and the network address of the preview version, searches the small program packet according to the information of the small program packet and the network address of the preview version, and sends the searched small program packet to the terminal.
Specifically, the PMS in the packet management server checks that the call-up protocol has a suffix, and decrypts the suffix to obtain the information of the applet packet and the network address of the preview version. And sending the information of the small program package and the network address of the preview version to a storage system, and verifying whether the information of the small program package and the network address of the preview version exist or are legal by the storage system. And after the verification is passed, returning a message that the verification is passed to the package management server. And after receiving the message passing the verification, the package management server sends a downloading instruction to the storage system. And the storage system downloads the searched small program package to the terminal according to the downloading instruction.
The method comprises the steps that a terminal calls an applet corresponding to an applet package according to a calling protocol, specifically, the terminal identifies a scheme protocol, a host application program is opened, parameters such as a program identity identifier, a unique identifier and a page path of RU L are transmitted to the host application program, when the host application program identifies the applet identity identifier, an applet frame is called, the applet frame loads the applet package through the unique identifier, a specified applet is opened, and the applet renders a specific page according to the parameters such as the page path and loads page content.
In the embodiment, the small program package to be issued, the information of the small program package and the calling protocol of the small program package are obtained; the small program package is deployed in a network mode, the network address of the preview version of the small program package is obtained, and therefore the small program package is directly deployed through the platform server before the small program package is checked, the small program package can be immediately downloaded by a terminal to preview, a preview mode of the small program facing a developer is provided, and the problems that data flow is too long and time consumption is too long in the development process of the developer are effectively reduced. The development efficiency of developers can be greatly improved, and meanwhile, the deployment efficiency is improved; moreover, the platform server directly deploys the applet package without waiting for the verification to pass, so that a serial operation mode in the prior art is broken, the service stability and performance in the applet deployment process are improved, and good experience is brought to the use of an applet development tool by a developer.
Furthermore, the information, the call-up protocol and the network address of the preview version of the applet package are obtained by scanning the two-dimensional code in the applet development tool, so that the applet package can be downloaded conveniently, and the convenience and the safety of preview are improved.
Example two
Fig. 2 is a flowchart of a deployment method of an applet package in the second embodiment of the present application, and the second embodiment of the present application performs optimization based on the technical solutions of the foregoing embodiments.
Optionally, after the operation of "providing the information and the network address of the applet package to the terminal", the method further includes "asynchronously sending the information and the call-up protocol of the applet package and the applet package to the package management server, so that the package management server performs network deployment on the applet package to obtain a formal version network address of the applet package, and correspondingly storing the information, the call-up protocol and the formal version network address of the applet package" to provide a downloading mode of the applet for a common user.
With reference to fig. 1a and fig. 2, the method provided by this embodiment includes:
s210, acquiring the small program package to be issued, the information of the small program package and the call-up protocol of the small program package.
And S220, carrying out network deployment on the small program package to obtain the preview version network address of the small program package.
And S230, providing the information of the small program package, the calling protocol and the network address of the preview version to the terminal so that the terminal can download the small program package according to the information of the small program package and the network address of the preview version and call the small program corresponding to the small program package according to the calling protocol.
The details of S210-S230 are described in the above embodiments, and are not described herein.
S240, asynchronously sending the small program package, the information of the small program package and the calling protocol to a package management server so that the package management server can perform network deployment on the small program package to obtain a formal edition network address of the small program package, and correspondingly storing the information of the small program package, the calling protocol and the formal edition network address.
After receiving the applet package, the applet package information and the applet package call-up protocol, the platform server performs network deployment on the one hand and performs auditing on the other hand. And after the information passes the verification, sending the information to a packet management server. Because the auditing process takes longer time, generally 24 hours, the operation of sending the information to the packet management server is asynchronous with the operation of network deployment, and because the auditing process takes time, the delayed sending of the information is realized.
And the package management server receives the small program package, the information of the small program package and the call-up protocol of the small program package sent by the platform server, and performs network deployment on the small program package to obtain a formal version network address of the small program package. Similar to the deployment process of the platform server, the package management server also stores the applet package to the storage system, and uses the CDN node address as a formal version network address of the applet package. It should be noted that, after the applet package in this embodiment is approved, the package management server deploys the applet package to the storage system, and the applet package can be downloaded by an ordinary user. The embodiment provides an applet downloading mode oriented to a common user, and the common user can download the applet package in the network address of the formal version and use the applet package normally.
Then, the packet management server stores the information of the applet packet, the call-up protocol, and the formal version network address in association with each other, specifically, in an Application Programming Interface (API) of the PMS. The tune-up protocol is then provided to the terminal. Specifically, the calling protocol is used for generating a formal two-dimensional code, and for convenience of description and distinction, the two-dimensional code generated according to the calling protocol is called the formal two-dimensional code. And then, the package management server sends the formal two-dimensional code to the terminal for displaying, and the formal two-dimensional code is specifically displayed on a promotion page, an application store and the like. Therefore, common users can see formal two-dimensional codes. And scanning the formal two-dimensional code by the terminal to obtain a calling protocol of the small program package, and sending the calling protocol to the package management server.
The packet management server judges that the calling protocol does not contain the information of the small program packet and the network address of the preview version, determines the information of the small program packet and the network address of the formal version corresponding to the calling protocol, and searches the small program packet according to the information of the small program packet and the network address of the formal version; and sending the searched small program package to the terminal so that the terminal can call the small program corresponding to the small program package according to the call protocol. In particular, the method comprises the following steps of,
because the package management server stores the information, the calling protocol and the network address of the formal edition of the applet package in advance, if the calling protocol does not contain the information and the network address of the preview edition of the applet package, and the calling protocol is sent by a common user, the information and the network address of the formal edition of the applet package corresponding to the calling protocol are determined from a server interface of the PMS, and then the information and the network address of the preview edition of the applet package are sent to the storage system, and the storage system verifies whether the information and the network address of the formal edition of the applet package exist or not and are legal or not. And after the verification is passed, returning a message that the verification is passed to the package management server. And after receiving the message passing the verification, the package management server sends a downloading instruction to the storage system. And the storage system downloads the searched small program package to the terminal according to the downloading instruction. And the terminal calls the small program corresponding to the small program packet according to the call protocol.
In the embodiment, the information of the applet package and the call-up protocol are asynchronously sent to the package management server, so that the package management server can perform network deployment on the applet package to obtain a formal edition network address of the applet package, and correspondingly store the information of the applet package, the call-up protocol and the formal edition network address, so that a download mode of the applet facing a common user is provided, a preview mode and a download mode are considered, and conflict is avoided; meanwhile, the two modes can mutually backup each other, and the disaster tolerance capability of the service is improved.
Furthermore, the calling protocol is obtained by scanning the formal two-dimensional code so as to facilitate downloading of the small program package, and the downloading convenience is improved.
EXAMPLE III
Fig. 3 is a flowchart of a method for deploying an applet package in a third embodiment of the present application, where the third embodiment of the present application is applicable to a case where an applet package in a preview version for a developer to preview is deployed, and the method is executed by a device for deploying an applet package, where the device is implemented by software and/or hardware and is specifically configured in a package management server with a certain data operation capability.
With reference to fig. 1a and fig. 3, the method provided by this embodiment includes:
and S310, receiving a starting protocol of the small program package sent by the terminal.
And S320, judging whether the calling protocol contains the information of the small program package and the network address of the preview version of the small program package. If yes, jumping to S330; if not, it jumps to S340.
S330, searching the small program package according to the information of the small program package and the network address of the preview version. Execution continues with S350.
S340, determining the information and the network address of the formal version of the small program package corresponding to the starting protocol, and searching the small program package according to the information and the network address of the formal version of the small program package. Execution continues with S350.
And S350, issuing the searched small program package to the terminal so that the terminal can call the small program corresponding to the small program package according to the call protocol.
Optionally, before S310, the method further includes: receiving an applet package, information of the applet package and a call-up protocol of the applet package sent by a platform server; carrying out network deployment on the small program package to obtain a formal version network address of the small program package; correspondingly storing the information, the calling protocol and the formal edition network address of the small program package; and providing the calling protocol to the terminal so that the terminal can download the small program package according to the calling protocol and call the small program corresponding to the small program package.
In the embodiment, the package management server determines to download the applet package from the network address of the preview version or download the applet package from the network address of the formal version according to whether the calling protocol contains the information of the applet package and the network address of the preview version of the applet package, so that the preview mode and the download mode are considered and are not conflicted with each other; meanwhile, the downloading of the small program package can be realized and the disaster tolerance capability of the service is improved regardless of whether the calling protocol contains the information of the small program package and the network address of the preview version of the small program package.
Example four
Fig. 4 is a flowchart of a method for previewing an applet package according to a fourth embodiment of the present application, where the present application is applied to a case where a developer previews an uploaded applet package, and the method is executed by an applet package previewing apparatus, which is implemented by software and/or hardware and is specifically configured in a terminal having a certain data operation capability.
With reference to fig. 1a and fig. 4, the method provided by this embodiment includes:
s410, acquiring information of the small program package to be downloaded, a calling protocol of the small program package and a network address of a preview version of the small program package from the platform server, wherein the network address of the preview version is obtained by performing network deployment on the small program package after the platform server receives the small program package to be released.
Optionally, scanning a preview version two-dimensional code in the applet development tool to obtain information, a call-up protocol and a preview version network address of the applet package; the preview-version two-dimensional code is generated according to the information of the applet package, the call-up protocol and the preview-version network address, and is sent to the applet development tool by the platform server.
And S420, adding the information of the small program package and the network address of the preview version into the starting protocol.
And S430, sending the added calling protocol to a package management server so that the package management server can search the small program package according to the information of the small program package and the network address of the preview version and send the searched small program package to the terminal.
And S440, calling the small program corresponding to the small program package according to the calling protocol.
In the embodiment, the terminal acquires the information of the small program package to be downloaded, the call-up protocol of the small program package and the network address of the preview version of the small program package through the platform server, and then downloads the small program from the package management server, so that the small program package can be downloaded for previewing before the small program package is checked, a developer-oriented small program preview mode is provided, and the problems of long data flow and long time consumption of the developer in the development process are effectively solved. The development efficiency of developers can be greatly improved, and meanwhile, the deployment efficiency is improved; moreover, the platform server directly deploys the applet package without waiting for the verification to pass, so that a serial operation mode in the prior art is broken, the service stability and performance in the applet deployment process are improved, and good experience is brought to the use of an applet development tool by a developer.
Furthermore, the information, the call-up protocol and the network address of the preview version of the applet package are obtained by scanning the two-dimensional code in the applet development tool, so that the applet package can be downloaded conveniently, and the convenience and the safety of preview are improved.
EXAMPLE five
Fig. 5 is a structural diagram of an applet deployment apparatus in a fifth embodiment of the present application, where the fifth embodiment of the present application is applicable to a case where an applet preview for a developer is deployed, and the apparatus is implemented by software and/or hardware and is specifically configured in a platform server with a certain data operation capability.
An applet deploying apparatus 500 shown in fig. 5 includes: an acquisition module 501, a deployment module 502 and a providing module 503; wherein the content of the first and second substances,
an obtaining module 501, configured to obtain an applet package to be issued, information of the applet package, and a call-up protocol of the applet package;
a deployment module 502, configured to perform network deployment on the applet package to obtain a network address of a preview version of the applet package;
the providing module 503 is configured to provide the information of the applet package, the call protocol, and the network address of the preview version to the terminal, so that the terminal downloads the applet package according to the information of the applet package and the network address of the preview version, and calls the applet corresponding to the applet package according to the call protocol.
In the embodiment of the application, the small program package to be issued, the information of the small program package and the calling protocol of the small program package are obtained; the small program package is deployed in a network mode, the network address of the preview version of the small program package is obtained, and therefore the small program package is directly deployed through the platform server before the small program package is checked, the small program package can be immediately downloaded by a terminal to preview, a preview mode of the small program facing a developer is provided, and the problems that data flow is too long and time consumption is too long in the development process of the developer are effectively reduced. The development efficiency of developers can be greatly improved, and meanwhile, the deployment efficiency is improved; moreover, the platform server directly deploys the applet package without waiting for the verification to pass, so that a serial operation mode in the prior art is broken, the service stability and performance in the applet deployment process are improved, and good experience is brought to the use of an applet development tool by a developer.
Further, the device further comprises a sending module, which is used for asynchronously sending the applet package, the information of the applet package and the call-up protocol to the package management server, so that the package management server can perform network deployment on the applet package to obtain a formal edition network address of the applet package, and correspondingly storing the information of the applet package, the call-up protocol and the formal edition network address.
Further, the obtaining module 501 is specifically configured to receive an applet package to be issued, a start-up protocol of the applet package, and information of the applet package, which are sent by the applet development tool; the providing module 503 is specifically configured to generate a preview-version two-dimensional code according to the information of the applet package, the call-up protocol, and the preview-version network address; and returning the preview two-dimensional code to the small program development tool so that the terminal can obtain the information, the call-up protocol and the network address of the preview version by scanning the preview two-dimensional code in the small program development tool.
The deployment device of the applet package can execute the deployment method of the applet package provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of executing the deployment method of the applet package.
EXAMPLE six
Fig. 6 is a structural diagram of an applet deployment apparatus in a sixth embodiment of the present application, where the apparatus is implemented by software and/or hardware, and is specifically configured in a package management server with a certain data computation capability, and the apparatus is suitable for a case where an applet in a preview version for a developer to preview is deployed.
An applet deploying apparatus 600 shown in fig. 6 includes: the system comprises a receiving module 601, a judging module 602, a searching module 603 and a sending module 604; wherein the content of the first and second substances,
a receiving module 601, configured to receive a call-up protocol of an applet packet sent by a terminal;
a judging module 602, configured to judge whether the invoking protocol includes information of the applet package and a network address of a preview version of the applet package;
the searching module 603 is configured to search for the applet package according to the information of the applet package and the network address of the preview version if the invoking protocol includes the information of the applet package and the network address of the preview version;
the issuing module 604 is configured to issue the found applet package to the terminal, so that the terminal invokes the applet corresponding to the applet package according to the invoking protocol.
In the embodiment, the package management server determines to download the applet package from the network address of the preview version or download the applet package from the network address of the formal version according to whether the calling protocol contains the information of the applet package and the network address of the preview version of the applet package, so that the preview mode and the download mode are considered and are not conflicted with each other; meanwhile, the downloading of the small program package can be realized and the disaster tolerance capability of the service is improved regardless of whether the calling protocol contains the information of the small program package and the network address of the preview version of the small program package.
Further, the device also comprises an information receiving module, a deployment module, a storage module and a providing module. The information receiving module is used for receiving the small program package sent by the platform server, the information of the small program package and the starting protocol of the small program package; the deployment module is used for carrying out network deployment on the small program package to obtain a formal version network address of the small program package; the storage module is used for correspondingly storing the information, the calling protocol and the formal version network address of the small program package; the providing module is used for providing the calling protocol to the terminal so that the terminal can download the small program package according to the calling protocol and call the small program corresponding to the small program package.
Further, the device also comprises a determining module, which is used for determining the information and the network address of the formal version of the applet package corresponding to the starting protocol if the starting protocol does not contain the information and the network address of the preview version of the applet package; the system also comprises an applet packet searching module which is used for searching the applet packet according to the information of the applet packet and the network address of the formal version.
The deployment device of the applet package can execute the deployment method of the applet package provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of executing the deployment method of the applet package.
EXAMPLE seven
Fig. 7 is a structural diagram of an applet previewing apparatus in a seventh embodiment of the present application, which is implemented by software and/or hardware and is specifically configured in a terminal having a certain data computing capability, and is suitable for a developer to preview an uploaded applet.
A preview apparatus 700 of an applet package shown in fig. 7 includes: an obtaining module 701, an adding module 702, a sending module 703 and a calling module 704; wherein the content of the first and second substances,
an obtaining module 701, configured to obtain, from a platform server, information of an applet package to be downloaded, a call-up protocol of the applet package, and a preview version network address of the applet package, where the preview version network address is obtained by performing network deployment on the applet package after the platform server receives the applet package to be released;
an adding module 702, configured to add information of the applet package and the network address of the preview version to the invocation protocol;
a sending module 703, configured to send the added call-up protocol to the package management server, so that the package management server searches for the applet package according to the information of the applet package and the network address of the preview version, and sends the found applet package to the terminal;
and a calling module 704 for calling up the applet corresponding to the applet package according to the calling protocol.
In the embodiment, the terminal acquires the information of the small program package to be downloaded, the call-up protocol of the small program package and the network address of the preview version of the small program package through the platform server, and then downloads the small program from the package management server, so that the small program package can be downloaded for previewing before the small program package is checked, a developer-oriented small program preview mode is provided, and the problems of long data flow and long time consumption of the developer in the development process are effectively solved. The development efficiency of developers can be greatly improved, and meanwhile, the deployment efficiency is improved; moreover, the platform server directly deploys the applet package without waiting for the verification to pass, so that a serial operation mode in the prior art is broken, the service stability and performance in the applet deployment process are improved, and good experience is brought to the use of an applet development tool by a developer.
Further, the obtaining module 701 is specifically configured to: scanning a preview version two-dimensional code in an applet development tool to obtain information, a call-up protocol and a preview version network address of an applet package; the preview-version two-dimensional code is generated according to the information of the applet package, the call-up protocol and the preview-version network address, and is sent to the applet development tool by the platform server.
The device for previewing the small program package can execute the method for previewing the small program package provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the method for previewing the small program package.
Example eight
According to an embodiment of the present application, there are also provided a platform server, a package management server, a terminal, and a readable storage medium.
Fig. 8 is a block diagram of a platform server for implementing the deployment method of an applet package according to the embodiment of the present application. A platform server is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The platform server may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 8, the platform server includes: one or more processors 801, memory 802, and interfaces for connecting the various components, including a high speed interface and a low speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Fig. 8 illustrates an example of a processor 801.
The memory 802 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method for deploying an applet package provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the deployment method of the applet provided in the present application.
The memory 802, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method for deployment of a applet package in the embodiments of the application (e.g., including an acquisition module 501, a deployment module 502, and a provision module 503 shown in fig. 5). The processor 801 executes various functional applications of the platform server and data processing, i.e., a method of implementing the deployment of the applet package in the above-described method embodiments, by running the non-transitory software programs, instructions and modules stored in the memory 802.
The memory 802 may 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; the storage data area may store data created by use of a platform server that implements the deployment method of the applet package, and the like. Further, the memory 802 may include high speed random access memory and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 802 optionally includes memory located remotely from the processor 801, which may be connected over a network to an electronic device that performs the method of deploying the applet package. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The platform server that executes the deployment method of the applet package may further include: an input device 803 and an output device 804. The processor 801, the memory 802, the input device 803, and the output device 804 may be connected by a bus or other means, and are exemplified by a bus in fig. 8.
The input devices 803 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of a platform server performing the deployment method of the applet package, such as a touch screen, keypad, mouse, track pad, touch pad, pointer stick, one or more mouse buttons, track ball, joystick, etc. the output devices 804 may include a display device, auxiliary lighting devices (e.g., L ED), and tactile feedback devices (e.g., vibrating motors), etc.
The structure of the packet management server provided in this embodiment is shown in fig. 8, and specific structures and functions are described in detail in the above embodiment, which are not described herein again. Except that the memory 802 in the package management server is a non-transitory computer readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method for deploying a applet package in the embodiment of the present application (for example, the program instructions/modules shown in fig. 6 include a receiving module 601, a judging module 602, a searching module 603, and a issuing module 604). The processor 801 executes various functional applications of the package management server and data processing, i.e., a method of implementing the deployment of the applet package in the above-described method embodiments, by running the non-transitory software programs, instructions, and modules stored in the memory 802.
The structure of the terminal provided in this embodiment is shown in fig. 8, and specific structures and functions are described in detail in the above embodiments, which are not described again here. Except that memory 802 in the terminal serves as a non-transitory computer readable storage medium that may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method for previewing a applet package in embodiments of the present application (e.g., shown in fig. 7 as comprising an acquiring module 701, an adding module 702, a sending module 703, and a calling module 704). The processor 801 executes various functional applications and data processing of the terminal, i.e., a method of implementing a preview of the applet package in the above-described method embodiments, by running non-transitory software programs, instructions and modules stored in the memory 802.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable logic devices (P L D)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal.
The systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or L CD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer for providing interaction with the user.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., AN application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with AN implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (15)

1. A method for deploying an applet package, which is applicable to a platform server, includes:
acquiring an applet package to be issued, information of the applet package and a call-up protocol of the applet package;
carrying out network deployment on the small program package to obtain a network address of a preview version of the small program package;
and providing the information of the small program package, the calling protocol and the network address of the preview version to a terminal so that the terminal can download the small program package according to the information of the small program package and the network address of the preview version and call the small program corresponding to the small program package according to the calling protocol.
2. The method of claim 1, further comprising, after providing the information of the applet package and the network address to a terminal:
and asynchronously sending the applet package, the information of the applet package and the call-up protocol to a package management server so that the package management server can perform network deployment on the applet package to obtain a formal edition network address of the applet package, and correspondingly storing the information of the applet package, the call-up protocol and the formal edition network address.
3. The method according to claim 1 or 2, wherein the obtaining of the applet package to be issued, the invocation protocol of the applet package and the information of the applet package comprises:
receiving an applet package to be issued, a call-up protocol of the applet package and information of the applet package, which are sent by an applet development tool;
the providing the information of the applet package, the call-up protocol and the network address of the preview version to the terminal includes:
generating a preview two-dimensional code according to the information of the small program package, the calling protocol and the preview network address;
and returning the preview two-dimensional code to the applet development tool so that the terminal can obtain the information of the applet package, the call-up protocol and the preview network address by scanning the preview two-dimensional code in the applet development tool.
4. A deployment method of an applet package is suitable for a package management server, and comprises the following steps:
receiving a starting protocol of a small program packet sent by a terminal;
judging whether the calling protocol contains the information of the small program package and the network address of the preview version of the small program package;
if the calling protocol comprises the information of the small program package and the network address of the preview version, searching the small program package according to the information of the small program package and the network address of the preview version;
and sending the found small program package to the terminal so that the terminal can call the small program corresponding to the small program package according to the call protocol.
5. The method of claim 4, wherein before the receiving the start-up protocol of the applet package sent by the terminal, the method further comprises:
receiving an applet package, information of the applet package and a call-up protocol of the applet package sent by a platform server;
carrying out network deployment on the small program package to obtain a formal version network address of the small program package;
correspondingly storing the information of the small program package, the calling protocol and the formal version network address;
and providing the starting protocol to the terminal so that the terminal can download the small program package according to the starting protocol and start the small program corresponding to the small program package.
6. The method of claim 5, further comprising, after the determining whether the invoking protocol contains the information of the applet package and the network address of the preview version of the applet package:
if the starting protocol does not contain the information of the small program package and the network address of the preview version, determining the information of the small program package and the network address of the formal version corresponding to the starting protocol;
and searching the small program package according to the information of the small program package and the network address of the formal version.
7. A method for previewing an applet package is applicable to a terminal, and comprises the following steps:
acquiring information of an applet package to be downloaded, a calling protocol of the applet package and a network address of a preview version of the applet package from a platform server, wherein the network address of the preview version is obtained by performing network deployment on the applet package after the platform server receives the applet package to be issued;
adding the information of the small program package and the network address of the preview version into the starting protocol;
sending the added calling protocol to a package management server, so that the package management server searches the small program package according to the information of the small program package and the network address of the preview version and sends the searched small program package to a terminal;
and calling up the small program corresponding to the small program package according to the calling-up protocol.
8. The method of claim 7, wherein the obtaining information of the applet package to be downloaded, the invocation protocol of the applet package and the network address of the preview version of the applet package from the platform server comprises:
scanning a preview version two-dimensional code in an applet development tool to obtain information of the applet package, the call-up protocol and the preview version network address; and the preview-version two-dimensional code is generated according to the information of the applet package, the call-up protocol and the preview-version network address and is sent to an applet development tool by a platform server.
9. An applet deployment apparatus adapted for a platform server, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an applet packet to be issued, information of the applet packet and a starting protocol of the applet packet;
the deployment module is used for carrying out network deployment on the small program package to obtain a network address of a preview version of the small program package;
and the providing module is used for providing the information of the small program package, the calling protocol and the network address of the preview version to a terminal so that the terminal can download the small program package according to the information of the small program package and the network address of the preview version and call the small program corresponding to the small program package according to the calling protocol.
10. An applet deployment apparatus adapted to a package management server, comprising:
the receiving module is used for receiving a calling protocol of the small program package sent by the terminal;
the judging module is used for judging whether the calling protocol contains the information of the small program package and the network address of the preview version of the small program package;
the searching module is used for searching the small program package according to the information of the small program package and the network address of the preview version if the calling protocol contains the information of the small program package and the network address of the preview version;
and the issuing module is used for issuing the searched small program package to the terminal so that the terminal can invoke the small program corresponding to the small program package according to the invoking protocol.
11. An applet preview apparatus adapted for a terminal, comprising:
the system comprises an acquisition module, a distribution module and a distribution module, wherein the acquisition module is used for acquiring information of an applet package to be downloaded, a calling protocol of the applet package and a preview version network address of the applet package from a platform server, and the preview version network address is obtained by carrying out network deployment on the applet package after the platform server receives the applet package to be issued;
the adding module is used for adding the information of the applet package and the network address of the preview version into the starting protocol;
the sending module is used for sending the added calling protocol to a package management server so that the package management server can search the small program package according to the information of the small program package and the network address of the preview version and send the searched small program package to a terminal;
and the calling module is used for calling the small program corresponding to the small program package according to the calling protocol.
12. A platform server, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of deploying an applet package according to any one of claims 1-3.
13. A package management server, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of deploying an applet package according to any one of claims 4-6.
14. A terminal, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of deploying an applet package according to claim 7 or 8.
15. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of deploying a applet of claims 1 to 8.
CN202010251224.5A 2020-04-01 2020-04-01 Deployment and preview method and device of small program package Active CN111478956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010251224.5A CN111478956B (en) 2020-04-01 2020-04-01 Deployment and preview method and device of small program package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010251224.5A CN111478956B (en) 2020-04-01 2020-04-01 Deployment and preview method and device of small program package

Publications (2)

Publication Number Publication Date
CN111478956A true CN111478956A (en) 2020-07-31
CN111478956B CN111478956B (en) 2023-05-09

Family

ID=71749598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010251224.5A Active CN111478956B (en) 2020-04-01 2020-04-01 Deployment and preview method and device of small program package

Country Status (1)

Country Link
CN (1) CN111478956B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328333A (en) * 2020-10-27 2021-02-05 武汉联影医疗科技有限公司 Built-in program operation method and device, computer equipment and storage medium
CN112558985A (en) * 2021-02-23 2021-03-26 鲁班(北京)电子商务科技有限公司 Sub-application deployment method and device
CN112579092A (en) * 2020-12-07 2021-03-30 广东亿润网络技术有限公司 Multifunctional small program multi-end updating and publishing system
CN112631654A (en) * 2020-12-28 2021-04-09 厦门市美亚柏科信息股份有限公司 Program linkage method and system based on evidence obtaining platform
CN112650601A (en) * 2020-12-25 2021-04-13 百度在线网络技术(北京)有限公司 Cross-host applet opening method, apparatus, device, storage medium, and program
WO2023226338A1 (en) * 2022-05-26 2023-11-30 华为技术有限公司 Communication method, apparatus, and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160359692A1 (en) * 2015-06-02 2016-12-08 International Business Machines Corporation Deployment of enterprise applications
CN107809470A (en) * 2017-10-12 2018-03-16 北京京东尚科信息技术有限公司 The method and apparatus of application program automatically dispose
CN109948330A (en) * 2019-03-26 2019-06-28 百度在线网络技术(北京)有限公司 Implementation method, device, equipment and the storage medium of application management service
CN110309005A (en) * 2019-06-28 2019-10-08 百度在线网络技术(北京)有限公司 A kind of funcall method, apparatus, terminal device and storage medium
CN110795672A (en) * 2019-10-29 2020-02-14 百度在线网络技术(北京)有限公司 Method, device, equipment and medium for showing content of applet
CN110865855A (en) * 2019-11-18 2020-03-06 百度在线网络技术(北京)有限公司 Applet processing method and related device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160359692A1 (en) * 2015-06-02 2016-12-08 International Business Machines Corporation Deployment of enterprise applications
CN107809470A (en) * 2017-10-12 2018-03-16 北京京东尚科信息技术有限公司 The method and apparatus of application program automatically dispose
CN109948330A (en) * 2019-03-26 2019-06-28 百度在线网络技术(北京)有限公司 Implementation method, device, equipment and the storage medium of application management service
CN110309005A (en) * 2019-06-28 2019-10-08 百度在线网络技术(北京)有限公司 A kind of funcall method, apparatus, terminal device and storage medium
CN110795672A (en) * 2019-10-29 2020-02-14 百度在线网络技术(北京)有限公司 Method, device, equipment and medium for showing content of applet
CN110865855A (en) * 2019-11-18 2020-03-06 百度在线网络技术(北京)有限公司 Applet processing method and related device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328333A (en) * 2020-10-27 2021-02-05 武汉联影医疗科技有限公司 Built-in program operation method and device, computer equipment and storage medium
CN112579092A (en) * 2020-12-07 2021-03-30 广东亿润网络技术有限公司 Multifunctional small program multi-end updating and publishing system
CN112579092B (en) * 2020-12-07 2022-04-08 广东亿润网络技术有限公司 Multifunctional small program multi-end updating and publishing system
CN112650601A (en) * 2020-12-25 2021-04-13 百度在线网络技术(北京)有限公司 Cross-host applet opening method, apparatus, device, storage medium, and program
CN112650601B (en) * 2020-12-25 2023-08-11 百度在线网络技术(北京)有限公司 Method, apparatus, device, storage medium, and program for opening applet across hosts
CN112631654A (en) * 2020-12-28 2021-04-09 厦门市美亚柏科信息股份有限公司 Program linkage method and system based on evidence obtaining platform
CN112558985A (en) * 2021-02-23 2021-03-26 鲁班(北京)电子商务科技有限公司 Sub-application deployment method and device
CN112558985B (en) * 2021-02-23 2021-08-27 鲁班(北京)电子商务科技有限公司 Sub-application deployment method and device
WO2023226338A1 (en) * 2022-05-26 2023-11-30 华为技术有限公司 Communication method, apparatus, and system

Also Published As

Publication number Publication date
CN111478956B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN111478956A (en) Deployment and preview method and device of small program package
US11144711B2 (en) Webpage rendering method, device, electronic apparatus and storage medium
US10015226B2 (en) Methods for making AJAX web applications bookmarkable and crawlable and devices thereof
TW202006538A (en) Method and device for running program, calculating apparatus and storage medium
US11436066B2 (en) System for offline object based storage and mocking of rest responses
CN111090423B (en) Webhook framework system and method for realizing active calling and event triggering
CN111767069A (en) Applet processing method, server, device and storage medium
WO2016058488A1 (en) Method and device for providing sdk files
JP5936103B2 (en) System, computer, method and program for calling Java method on client
CN109462650A (en) Data file downloading method, device, computer equipment and storage medium
WO2022000869A1 (en) Batch processing method and apparatus for mini programs, and electronic device and readable storage medium
US20130304836A1 (en) Method and apparatus for processing micro web log messages
CN113312032B (en) Front-end project resource updating method and device, electronic equipment and storage medium
CN104811485A (en) Resource sharing method
CN110928571A (en) Business program development method and device
CN113873013B (en) Offline package reorganization method and system
CN113360377A (en) Test method and device
JP2005228183A (en) Program execution method and computer system for executing the program
WO2023169193A1 (en) Method and device for generating smart contract
KR20210091327A (en) Batch processing method, apparatus, electronic device and readable storage medium of applet
US10042521B1 (en) Emulation of control resources for use with converted content pages
CN113779122B (en) Method and device for exporting data
CN112565472B (en) Static resource processing method and device
CN114817794A (en) Webpage content control method, device, equipment and medium
CN113407339A (en) Resource request feedback method and device, readable storage medium and electronic equipment

Legal Events

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