CN110688124B - Applet processing method, apparatus, electronic device and computer readable storage medium - Google Patents

Applet processing method, apparatus, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN110688124B
CN110688124B CN201910785984.1A CN201910785984A CN110688124B CN 110688124 B CN110688124 B CN 110688124B CN 201910785984 A CN201910785984 A CN 201910785984A CN 110688124 B CN110688124 B CN 110688124B
Authority
CN
China
Prior art keywords
applet
virtual
service provider
interface key
navigation
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
CN201910785984.1A
Other languages
Chinese (zh)
Other versions
CN110688124A (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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910785984.1A priority Critical patent/CN110688124B/en
Publication of CN110688124A publication Critical patent/CN110688124A/en
Application granted granted Critical
Publication of CN110688124B publication Critical patent/CN110688124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to an applet processing method, an applet processing device, an electronic device and a computer readable storage medium. The method comprises the following steps: and receiving an interface key of the applet to be dispatched by using the applet distributing inlet, determining the applet to be the virtual applet if the interface key is the interface key used by the virtual applet, dispatching the virtual applet to a pre-constructed virtual applet engine according to a dispatching protocol used by a dispatching standard applet, and preparing a running environment to start the virtual applet. The embodiment of the invention uses the same dispatch protocol as the standard applet when dispatching the virtual applet, so that the entry forms of the virtual applet and the standard applet are consistent, the consistency of the whole interaction of the virtual applet and the standard applet is ensured when a user uses the virtual applet and the standard applet, the smooth switching of the entries can be facilitated, the uniform channel distribution of the applet can be realized, and conditions are provided for the possible subsequent conversion into the standard applet.

Description

Applet processing method, device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for processing an applet, an electronic device, and a computer-readable storage medium.
Background
Under the background that the traffic bonus period of the mobile internet is gradually ended, in order to reduce development cost and improve utilization efficiency of vertical or long tail traffic, small program development technologies are gradually introduced into various large applications (such as WeChat, paibao, the current headline and the like).
In the process of promoting the small program transformation, besides the implementation mode of switching the newly added service or part of the existing services to the small program, some existing services are not timely or temporarily changed into the implementation mode of the small program due to the reasons of workload or user experience, so that various problems of non-uniform small program overall interaction, non-uniform flow inlets and the like are caused, and the formation of uniform ecology of the small program is hindered.
Disclosure of Invention
In order to solve the technical problems described above or at least partially solve the technical problems, the invention provides an applet processing method, an applet processing apparatus, an electronic device and a computer-readable storage medium.
In a first aspect, the present invention provides an applet processing method, including:
receiving an interface key of the applet to be distributed by using the applet distribution inlet;
if the interface key is used by the virtual applet, determining the applet is the virtual applet;
dispatching the virtual applet to a pre-built virtual applet engine according to a dispatching protocol used by a dispatching standard applet, and preparing a running environment to start the virtual applet.
Optionally, the method further comprises:
judging whether the interface key meets a preset interface key coding rule corresponding to the virtual applet or not;
and if the interface key meets a preset interface key coding rule corresponding to the virtual applet, determining the interface key as the interface key used by the virtual applet.
Optionally, the method further comprises:
acquiring a page instance provided by a service provider through the virtual applet engine;
and injecting the page instance into a preset virtual small program container, and decorating the page instance by using the virtual small program container.
Optionally, acquiring, by the applet engine, a page instance provided by a service provider, includes:
registering a proxy object for the service provider in a preset virtual applet engine according to the interface key;
and if the proxy object is triggered by the service provider, acquiring the page instance by using the proxy object.
Optionally, the method further comprises:
sending the decorated page instance to the service provider by using the virtual applet container;
if the virtual applet engine receives navigation demand information returned by the service provider, judging whether the service provider needs to perform custom navigation or not through the virtual applet engine according to the navigation demand information;
and if the service provider does not need self-defined navigation, packaging the navigation station by using the virtual applet engine according to the context of the preset navigation action.
Optionally, the method further comprises:
if the service provider needs to perform customized navigation, obtaining the context of a customized navigation action from the service provider through the virtual applet engine;
and packaging the navigation station according to the self-defined context of the navigation action of the service provider.
Optionally, the virtual applet container or the virtual applet engine and the service provider perform information transfer in a data transparent transfer manner.
Optionally, the method further comprises:
and if the virtual applet exits, cleaning and maintaining the operating environment by using the virtual applet engine.
In a second aspect, the present invention provides an applet processing apparatus, comprising:
the system comprises a first acquisition module, a second acquisition module and a sending module, wherein the first acquisition module is used for receiving an interface key of an applet to be dispatched by using an applet distributing inlet;
a first determining module, configured to determine that the applet is the virtual applet if the interface key is an interface key used by the virtual applet;
and the dispatching module is used for dispatching the virtual applet to a pre-constructed virtual applet engine according to a dispatching protocol used by a dispatching standard applet and preparing a running environment so as to start the virtual applet.
Optionally, the apparatus further comprises:
the judging module is used for judging whether the interface key meets a preset interface key coding rule corresponding to the virtual applet or not;
and the second determining module is used for determining the interface key as the interface key used by the virtual applet if the interface key meets a preset interface key coding rule corresponding to the virtual applet.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring the page instance provided by the service provider through the virtual applet engine;
and the decoration module is used for injecting the page example into a preset virtual small program container and decorating the page example by using the virtual small program container.
Optionally, the second obtaining module includes:
a registration unit, configured to register a proxy object for the service provider in a preset virtual applet engine according to the interface key;
and the acquisition unit is used for acquiring the page instance by using the proxy object if the proxy object is triggered by the service provider.
Optionally, the apparatus further comprises:
the sending module is used for sending the decorated page instance to the service provider by using the virtual applet container;
the judging module is used for judging whether the service provider needs to perform custom navigation or not according to the navigation demand information by the virtual applet engine if the virtual applet engine receives the navigation demand information returned by the service provider;
and the first packaging module is used for packaging the navigation station by using the virtual applet engine according to the context of the preset navigation action if the service provider does not need custom navigation.
Optionally, the apparatus further comprises:
a third obtaining module, configured to obtain a context of a customized navigation action from the service provider through the applet engine if the service provider needs to customize navigation;
and the second packaging module is used for packaging the navigation station according to the context of the self-defined navigation action of the service provider.
Optionally, the virtual applet container or the virtual applet engine and the service provider perform information transmission in a data transparent transmission manner.
Optionally, the apparatus further comprises:
and the cleaning and maintaining module is used for cleaning and maintaining the operating environment by using the virtual applet engine if the virtual applet exits.
In a third aspect, the present invention provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor configured to implement the applet processing method according to any one of the first aspect when executing the program stored in the memory.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon a applet processing method program which, when executed by a processor, implements the steps of the applet processing method of any one of the first aspects.
Compared with the prior art, the technical scheme provided by the embodiment of the invention has the following advantages:
in the method provided by the embodiment of the present invention, an applet distributing entry is used to receive an interface key of an applet to be distributed, and if the interface key is an interface key used by a virtual applet, the applet is determined to be the virtual applet, and further the virtual applet can be distributed to a pre-constructed virtual applet engine according to a distribution protocol used by a distribution standard applet, and an operating environment is prepared to start the virtual applet.
The embodiment of the invention distinguishes the virtual applet and the standard applet through the interface key, and dispatches the virtual applet to the pre-constructed virtual applet engine according to the dispatching protocol used by the dispatching standard applet when determining that the applet to be distributed is the virtual applet.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic flow chart of an applet processing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram illustrating another applet processing method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an applet processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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.
As shown in fig. 1, an applet processing method provided in an embodiment of the present invention, as shown in fig. 1, may include the following steps:
step S101, receiving an interface key of an applet to be distributed by using an applet distribution inlet;
in this step, after receiving the data segment, the applet distribution entry may parse the data segment including the interface key to obtain the interface key, where the data segment at least includes: an interface key.
In the embodiment of the present invention, the applet is divided into a virtual applet and a standard applet, the virtual applet is an applet that is used to implement a service function that cannot be changed or cannot be changed into the applet temporarily due to a workload or a user experience, and the standard applet is an applet that has already implemented a service function switch, and an interface key encoding rule of the standard applet is different from an interface key encoding rule of the virtual applet.
After step S101, the method may further include the steps of:
judging whether the interface key meets a preset interface key coding rule corresponding to the virtual applet or not; and if the interface key meets a preset interface key coding rule corresponding to the virtual applet, determining the interface key as the interface key used by the virtual applet.
Because the interface key coding rule of the standard applet is different from the interface key coding rule of the virtual applet, whether the interface key is the interface key used by the virtual applet can be determined by judging whether the interface key meets the preset interface key coding rule corresponding to the virtual applet.
Step S102, if the interface key is used by the virtual applet, determining the applet is the virtual applet;
step S103, dispatching the virtual applet to a pre-constructed virtual applet engine according to a dispatching protocol used by a dispatching standard applet, and preparing a running environment to start the virtual applet.
In an embodiment of the present invention, the virtual applet engine is pre-built according to a parent sub-Controller mechanism (Controller) provided by the operating system.
And the virtual applet engine is used for supporting a business party to register an agent object according to appKey, and the agent object is responsible for processing unified life cycle management, stack switching, menu items, events and the like.
For example, preparing a runtime environment may refer to creating a top-level navigation container or the like, where the navigation container is used to accommodate multiple page instances and support subsequent navigation operations, such as push, pop, and the like.
The method comprises the steps of receiving an interface key of the applet to be dispatched by using an applet distributing inlet, determining the applet to be the virtual applet if the interface key is the interface key used by the virtual applet, dispatching the virtual applet to a pre-constructed virtual applet engine according to a dispatching protocol used by a dispatching standard applet, and preparing a running environment to start the virtual applet.
The embodiment of the invention distinguishes the virtual small program and the standard small program through the interface key, and dispatches the virtual small program to the pre-constructed virtual small program engine according to the dispatching protocol used by the dispatching standard small program when the small program to be distributed is determined to be the virtual small program.
In another embodiment of the present invention, as shown in fig. 2, the applet processing method may further include the steps of:
step S201, acquiring a page instance provided by a service provider through the virtual applet engine;
in this step, a proxy object may be registered for the service provider in a preset virtual applet engine according to the interface key, and if the proxy object is triggered by the service provider, the proxy object is used to obtain the page instance.
In the embodiment of the invention, the initial data of the page instance and the applet page can be dynamically acquired through the proxy object in the virtual applet engine, so that the effects of flexibility and decoupling are realized.
Step S202, the page instance is injected into a preset virtual small program container, and the page instance is decorated by the virtual small program container.
In an embodiment of the present invention, the virtual applet container may be pre-created according to a parent sub-controller mechanism, and the virtual applet container may wrap any business side page that meets the specification.
The page instance is decorated, for example, by: decoration navigation, decoration title, decoration button, decoration menu item, decoration various styles and the like.
In another embodiment of the present invention, after the step S202, the following steps may be further included:
and step S203, transmitting the decorated page instance to the service provider by using the virtual applet container.
Therefore, by providing the opportunity of customizing the requirements customized by the service party, the service party can customize the requirements customized by the service party, such as color, distance, file and the like.
And the virtual small program container and the service provider transmit information in a data transparent transmission mode.
Step S204, if the virtual small program engine receives the navigation demand information returned by the service provider, judging whether the service provider needs to define navigation by the virtual small program engine according to the navigation demand information;
in this step, the virtual applet container is returned by the service provider to the virtual applet engine as a wrapped controller (boxedVC).
And judging whether a service provider needs to define navigation by definition or not through the virtual applet engine according to the navigation demand information, wherein the navigation demand information can be embodied by a callback protocol.
And the virtual small program engine and the service provider transmit information in a data transparent transmission mode.
If the service provider does not need to define navigation by user, step S205 is executed.
Step S205, packaging the navigation station by the virtual small program engine according to the context of the preset navigation action;
if the service provider needs to customize navigation, step S206 is executed.
Step S206, obtaining the self-defined context of the navigation action from the service provider through the virtual applet engine;
and step S207, packaging the navigation station according to the context of the navigation action customized by the service provider.
The context of the customized navigation action is exemplary, and can be an action (displaying, closing, returning and the like), so that the context environment is completely the same as the context environment before the service function is switched into the virtual applet, and the service party can be conveniently adapted.
And step S208, if the virtual small program exits, cleaning and maintaining the running environment by using the virtual small program engine.
In the embodiment of the present invention, the virtual applet engine is used to clean and maintain the operating environment, for example, views and controllers can be cleaned, unnecessary memory objects can be released, and the like.
The embodiment of the invention can quickly and seamlessly bring the original functions into the category of the small program, obviously reduces the cost of the small program of each vertical service, and can ensure that each vertical service is quickly brought into the category of the small program.
In still another embodiment of the present invention, there is also provided an applet processing apparatus, as shown in fig. 3, including:
a first obtaining module 11, configured to receive, by using an applet distribution entry, an interface key of an applet to be distributed;
a first determining module 12, configured to determine that the applet is the virtual applet if the interface key is an interface key used by the virtual applet;
the dispatching module 13 is configured to dispatch the virtual applet to a pre-constructed virtual applet engine according to a dispatching protocol used by a dispatching standard applet, and prepare an operating environment to start the virtual applet.
The method comprises the steps of receiving an interface key of the applet to be dispatched by using an applet distributing inlet, determining that the applet is the virtual applet if the interface key is the interface key used by the virtual applet, dispatching the virtual applet to a pre-constructed virtual applet engine according to a dispatching protocol used by a dispatching standard applet, and preparing an operating environment to start the virtual applet.
The embodiment of the invention distinguishes the virtual small program and the standard small program through the interface key, and dispatches the virtual small program to the pre-constructed virtual small program engine according to the dispatching protocol used by the dispatching standard small program when the small program to be distributed is determined to be the virtual small program.
In yet another embodiment of the present invention, the apparatus further comprises:
the judging module is used for judging whether the interface key meets a preset interface key coding rule corresponding to the virtual applet or not;
and the second determining module is used for determining the interface key as the interface key used by the virtual applet if the interface key meets a preset interface key coding rule corresponding to the virtual applet.
In yet another embodiment of the present invention, the apparatus further comprises:
the second acquisition module is used for acquiring a page instance provided by a service provider through the virtual applet engine;
and the decoration module is used for injecting the page instance into a preset virtual small program container and decorating the page instance by using the virtual small program container.
In another embodiment of the present invention, the second obtaining module includes:
a registration unit, configured to register a proxy object for the service provider in a preset virtual applet engine according to the interface key;
and the acquisition unit is used for acquiring the page instance by using the proxy object if the proxy object is triggered by the service provider.
In yet another embodiment of the present invention, the apparatus further comprises:
the sending module is used for sending the decorated page instance to the service provider by utilizing the virtual applet container;
the judging module is used for judging whether the service provider needs to perform custom navigation or not according to the navigation demand information by the virtual applet engine if the virtual applet engine receives the navigation demand information returned by the service provider;
and the first packaging module is used for packaging the navigation station by using the virtual applet engine according to the context of the preset navigation action if the service provider does not need custom navigation.
In yet another embodiment of the present invention, the apparatus further comprises:
a third obtaining module, configured to obtain a context of a customized navigation action from the service provider through the virtual applet engine if the service provider needs customized navigation;
and the second packaging module is used for packaging the navigation station according to the context of the self-defined navigation action of the service provider.
In another embodiment of the present invention, the virtual applet container or the virtual applet engine and the service provider perform information transmission by data transparent transmission.
In yet another embodiment of the present invention, the apparatus further comprises:
and the cleaning and maintaining module is used for cleaning and maintaining the operating environment by using the virtual applet engine if the virtual applet exits.
In another embodiment of the present invention, an electronic device is further provided, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the small program processing method in the embodiment of the method when executing the program stored in the memory.
According to the electronic device provided by the embodiment of the invention, the processor realizes the playing operation of acquiring the video by executing the program stored in the memory, confirms the corresponding frame rate reduction strategy according to the playing operation, and plays the video after adjusting the frame data corresponding to the video data according to the frame rate reduction strategy, so that the playing device can play the video well.
The communication bus 1140 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices.
The memory 1130 may include a Random Access Memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The processor 1110 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer-readable storage medium having stored thereon an applet processing method program which, when executed by a processor, implements the steps of the applet processing method described in the aforementioned method embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are brought about in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid State Disks (SSDs)), among others.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (18)

1. An applet processing method, comprising:
receiving an interface key of the applet to be dispatched by using the applet distributing entrance;
if the interface key is used by the virtual applet, determining that the applet is the virtual applet, wherein the virtual applet is the applet which does not change the service function of the applet;
and dispatching the virtual applet to a pre-constructed virtual applet engine according to a dispatching protocol used by dispatching a standard applet, and preparing an operating environment to start the virtual applet, wherein the standard applet refers to the applet which realizes service function switching, an interface key coding rule of the standard applet is different from an interface key coding rule of the virtual applet, and the virtual applet engine is pre-constructed according to a parent sub-controller mechanism provided by an operating system.
2. The applet processing method according to claim 1, characterized in that the method further comprises:
judging whether the interface key meets a preset interface key coding rule corresponding to the virtual applet or not;
and if the interface key meets a preset interface key coding rule corresponding to the virtual applet, determining the interface key as the interface key used by the virtual applet.
3. The applet processing method according to claim 1, characterized in that the method further comprises:
acquiring a page instance provided by a service provider through the virtual applet engine;
and injecting the page instance into a preset virtual small program container, and decorating the page instance by using the virtual small program container.
4. The applet processing method according to claim 3, in which the obtaining of the instance of the page provided by the service provider by the virtual applet engine comprises:
registering a proxy object for the service provider in a preset virtual applet engine according to the interface key;
and if the proxy object is triggered by the service provider, acquiring the page instance by using the proxy object.
5. The applet processing method according to claim 3, characterized in that the method further comprises:
sending the decorated page instance to the service provider by using the virtual applet container;
if the virtual applet engine receives navigation demand information returned by the service provider, judging whether the service provider needs to perform custom navigation or not through the virtual applet engine according to the navigation demand information;
and if the service provider does not need self-defined navigation, packaging the navigation station by using the virtual applet engine according to the context of the preset navigation action.
6. The applet processing method according to claim 5, characterized in that the method further comprises:
if the service provider needs to define navigation by user, obtaining the context of a defined navigation action from the service provider through the virtual applet engine;
and packaging the navigation station according to the self-defined context of the navigation action of the service provider.
7. The applet processing method according to claim 5 or 6, wherein the virtual applet container or the virtual applet engine communicates with the service provider in a data transparent manner.
8. The applet processing method according to claim 3, characterized in that the method further comprises:
and if the virtual small program exits, cleaning and maintaining the running environment by using the virtual small program engine.
9. An applet processing apparatus, characterized in that the apparatus comprises:
the system comprises a first acquisition module, a second acquisition module and a sending module, wherein the first acquisition module is used for receiving an interface key of an applet to be dispatched by using an applet distributing inlet;
a first determining module, configured to determine that the applet is a virtual applet if the interface key is an interface key used by the virtual applet, where the virtual applet refers to an applet that does not change a service function of the applet;
and the dispatching module is used for dispatching the virtual applet to a pre-constructed virtual applet engine according to a dispatching protocol used by dispatching a standard applet, and preparing an operating environment to start the virtual applet, wherein the standard applet refers to the applet which realizes service function switching, an interface key coding rule of the standard applet is different from an interface key coding rule of the virtual applet, and the virtual applet engine is pre-constructed according to a parent sub-controller mechanism provided by an operating system.
10. The applet processing apparatus according to claim 9, characterized in that the apparatus further comprises:
the judging module is used for judging whether the interface key meets a preset interface key coding rule corresponding to the virtual applet or not;
and the second determining module is used for determining the interface key as the interface key used by the virtual applet if the interface key meets a preset interface key coding rule corresponding to the virtual applet.
11. The applet processing apparatus according to claim 9, characterized in that the apparatus further comprises:
the second acquisition module is used for acquiring a page instance provided by a service provider through the virtual applet engine;
and the decoration module is used for injecting the page instance into a preset virtual small program container and decorating the page instance by using the virtual small program container.
12. The applet processing apparatus according to claim 11, characterized in that the second acquisition module comprises:
a registration unit, configured to register a proxy object for the service provider in a preset virtual applet engine according to the interface key;
and the acquisition unit is used for acquiring the page instance by using the proxy object if the proxy object is triggered by the service provider.
13. The applet processing apparatus according to claim 11, characterized in that the apparatus further comprises:
the sending module is used for sending the decorated page instance to the service provider by utilizing the virtual applet container;
the judging module is used for judging whether the service provider needs to perform custom navigation or not according to the navigation demand information by the virtual applet engine if the virtual applet engine receives the navigation demand information returned by the service provider;
and the first packaging module is used for packaging the navigation station by using the virtual applet engine according to the context of the preset navigation action if the service provider does not need custom navigation.
14. The applet processing apparatus according to claim 13, characterized in that the apparatus further comprises:
a third obtaining module, configured to obtain a context of a customized navigation action from the service provider through the virtual applet engine if the service provider needs customized navigation;
and the second packaging module is used for packaging the navigation station according to the context of the self-defined navigation action of the service provider.
15. The applet processing device according to claim 13 or 14, wherein the virtual applet container or the virtual applet engine communicates with the service provider in a data transparent manner.
16. The applet processing device according to claim 11, characterized in that the device further comprises:
and the cleaning and maintaining module is used for cleaning and maintaining the operating environment by using the virtual applet engine if the virtual applet exits.
17. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the applet processing method according to any one of claims 1 to 8 when executing the program stored in the memory.
18. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a applet processing method program, which when executed by a processor implements the steps of the applet processing method according to any one of claims 1-8.
CN201910785984.1A 2019-08-23 2019-08-23 Applet processing method, apparatus, electronic device and computer readable storage medium Active CN110688124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910785984.1A CN110688124B (en) 2019-08-23 2019-08-23 Applet processing method, apparatus, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910785984.1A CN110688124B (en) 2019-08-23 2019-08-23 Applet processing method, apparatus, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110688124A CN110688124A (en) 2020-01-14
CN110688124B true CN110688124B (en) 2023-03-17

Family

ID=69108649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910785984.1A Active CN110688124B (en) 2019-08-23 2019-08-23 Applet processing method, apparatus, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110688124B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708990A (en) * 2020-05-15 2020-09-25 支付宝(杭州)信息技术有限公司 Applet starting method, signature method, device, server and medium
CN111752587B (en) * 2020-06-28 2024-05-10 北京百度网讯科技有限公司 Batch processing method and device for small programs, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483509A (en) * 2017-10-09 2017-12-15 武汉斗鱼网络科技有限公司 A kind of auth method, server and readable storage medium storing program for executing
CN108845806A (en) * 2018-07-03 2018-11-20 百度在线网络技术(北京)有限公司 Small routine distribution method, device, server and storage medium
CN109522726A (en) * 2018-10-16 2019-03-26 平安万家医疗投资管理有限责任公司 Method for authenticating, server and the computer readable storage medium of small routine
CN109918166A (en) * 2019-03-12 2019-06-21 天津字节跳动科技有限公司 Applet process method, apparatus and electronic equipment
CN109960541A (en) * 2019-03-15 2019-07-02 上海连尚网络科技有限公司 Start method, equipment and the computer storage medium of small routine
CN110046000A (en) * 2019-04-24 2019-07-23 上海连尚网络科技有限公司 Small routine operation method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10554789B2 (en) * 2016-11-14 2020-02-04 Coupa Software Incorporated Key based authorization for programmatic clients

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483509A (en) * 2017-10-09 2017-12-15 武汉斗鱼网络科技有限公司 A kind of auth method, server and readable storage medium storing program for executing
CN108845806A (en) * 2018-07-03 2018-11-20 百度在线网络技术(北京)有限公司 Small routine distribution method, device, server and storage medium
CN109522726A (en) * 2018-10-16 2019-03-26 平安万家医疗投资管理有限责任公司 Method for authenticating, server and the computer readable storage medium of small routine
CN109918166A (en) * 2019-03-12 2019-06-21 天津字节跳动科技有限公司 Applet process method, apparatus and electronic equipment
CN109960541A (en) * 2019-03-15 2019-07-02 上海连尚网络科技有限公司 Start method, equipment and the computer storage medium of small routine
CN110046000A (en) * 2019-04-24 2019-07-23 上海连尚网络科技有限公司 Small routine operation method and device

Also Published As

Publication number Publication date
CN110688124A (en) 2020-01-14

Similar Documents

Publication Publication Date Title
US9985917B2 (en) Managing notification messages
CN102255934B (en) Cloud service dissemination method and cloud service intermediary
CN104301373B (en) Via the synchronous sending out notice of file-sharing service
JP2018531436A5 (en) Method, apparatus and system for managing data flow of processing nodes in autonomous vehicles
US9661064B2 (en) Systems and methods for deploying legacy software in the cloud
CN109542614B (en) Resource allocation method, device, terminal and storage medium
CN110688124B (en) Applet processing method, apparatus, electronic device and computer readable storage medium
US10897500B2 (en) Synchronizing a device using push notifications
JP2015515660A (en) Multiple media devices accessing cloud computing service storage via a gateway server or service
WO2021135255A1 (en) Message queue-based method for managing row and column permissions, and related device
KR20130109229A (en) Message push notification client improvements for multi-user devices
TW201235072A (en) Method and apparatus for gaming based on mobile terminal
CN110650203B (en) Data transmission method, device and system, computer storage medium and electronic equipment
KR102601628B1 (en) Resource processing methods and systems, storage media, electronic devices
CN103618758B (en) Web server and system resource access control method thereof
CN106954191B (en) Broadcast transmission method, apparatus and terminal device
CN100414993C (en) Method for realizing IGRS AV server device
CN113127923A (en) Method and device for managing authority
CN107306290B (en) Session sharing method and application server
CN114726657A (en) Method and device for interrupt management and data receiving and sending management and intelligent network card
WO2020173345A1 (en) Method for service decision distribution among multiple terminal devices and system
CN103368988A (en) Resource sharing method, resource sharing system and resource sharing apparatus
CN103685680A (en) Mobile phone state displaying method, system and server
US11823233B2 (en) Real-time consumer interaction via media broadcast with automated callback handling during media playback
CN110314374A (en) A kind of game processing method, device, electronic equipment and medium

Legal Events

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