Search

CN-115437722-B - Applet running method, system, device and medium

CN115437722BCN 115437722 BCN115437722 BCN 115437722BCN-115437722-B

Abstract

The application provides an applet running method, system, equipment and medium. In the method, after an operation event of an applet user is acquired, an applet logic execution interface is called, and then the applet logic execution interface and a target vehicle-mounted operating system are docked, so that the target vehicle-mounted operating system operates the applet according to the operation event, and corresponding application programming interface information is output. And calling an application programming interface corresponding to the application programming interface information, and interfacing the application programming interface with the target vehicle-mounted operating system so as to enable the target vehicle-mounted operating system to complete the operation event. According to the scheme, the small program logic execution interface is connected with the target vehicle-mounted operating system, the application programming interface is connected with the target vehicle-mounted operating system, compatibility of a small program operation method is improved, and development cost and maintenance cost are reduced.

Inventors

  • CHE HONG
  • ZHANG XIAOLE

Assignees

  • 斑马网络技术有限公司

Dates

Publication Date
20260508
Application Date
20221013

Claims (13)

  1. 1. A method of applet operation, comprising: calling an applet logic execution interface according to the acquired operation event of the applet user; interfacing the applet logic execution interface with the target vehicle-mounted operating system through an operating event-operating system interfacing interface corresponding to the target vehicle-mounted operating system, so that an applet running engine in the target vehicle-mounted operating system runs an applet according to the operating event, outputs application programming interface information corresponding to the operating event, and interfaces corresponding to different vehicle-mounted operating systems are different; determining an application programming interface corresponding to the application programming interface information according to the acquired application programming interface information; calling the application programming interface; And interfacing the application programming interface with the target vehicle-mounted operating system through an applet interface function-operating system interfacing interface corresponding to the target vehicle-mounted operating system so as to enable the target vehicle-mounted operating system to complete the operation event.
  2. 2. The method according to claim 1, wherein the method further comprises: Calling a rendering interface; And docking the rendering interface with the target vehicle-mounted operating system through a rendering function-operating system docking interface corresponding to the target vehicle-mounted operating system, so that a rendering engine in the target vehicle-mounted operating system renders the applet, the operation event completion interface is displayed, and the rendering function-operating system docking interfaces corresponding to different vehicle-mounted operating systems are different.
  3. 3. The method of claim 2, wherein before invoking the applet logic execution interface based on the acquired applet user operational event, the method further comprises: responding to the opening applet operation of the user, and calling a rendering interface; docking the rendering interface with the target vehicle-mounted operating system through the rendering function-operating system docking interface so that a rendering engine in the target vehicle-mounted operating system creates a local window; calling the small program logic execution interface; Interfacing the applet logic execution interface with the target vehicle-mounted operating system through the operation event-operating system interfacing interface so that an applet running engine in the target vehicle-mounted operating system runs the applet and outputs applet start rendering data; invoking the rendering interface; And docking the rendering interface with the target vehicle-mounted operating system through the rendering function-operating system docking interface so that a rendering engine in the target vehicle-mounted operating system can render and generate an applet starting interface according to the applet starting rendering data, wherein the applet starting interface is in the local window.
  4. 4. A method according to claim 3, wherein after said responding to a user's open applet operation, the method further comprises: and downloading, checking and installing the installation package of the applet.
  5. 5. The method according to claim 1, wherein after determining an application programming interface corresponding to the application programming interface information according to the acquired application programming interface information, the method further comprises: judging whether the application programming interface is a legal interface or not; Correspondingly, the calling the application programming interface comprises the following steps: and if the application programming interface is a legal interface, calling the application programming interface.
  6. 6. An applet operating system, comprising: The control module is used for calling the applet logic execution interface according to the acquired operation event of the applet user; The system adaptation module is used for interfacing the applet logic execution interface with the target vehicle-mounted operating system through an operating event-operating system interfacing interface corresponding to the target vehicle-mounted operating system so that an applet running engine in the target vehicle-mounted operating system runs an applet according to the operating event and outputs application programming interface information corresponding to the operating event, and the operating event-operating system interfacing interfaces corresponding to different vehicle-mounted operating systems are different; The resource module is used for determining an application programming interface corresponding to the application programming interface information according to the acquired application programming interface information; the control module is also used for calling the application programming interface; And the user interface function adapting module is used for interfacing the application programming interface with the target vehicle-mounted operating system through an applet interface function-operating system interfacing interface corresponding to the target vehicle-mounted operating system so as to enable the target vehicle-mounted operating system to complete the operating event.
  7. 7. The applet operating system of claim 6 wherein the control module is further configured to invoke a rendering interface; The system adaptation module is further configured to dock the rendering interface with the target vehicle-mounted operating system through a rendering function-operating system docking interface corresponding to the target vehicle-mounted operating system, so that a rendering engine in the target vehicle-mounted operating system renders the applet, displays the operation event completion interface, and the rendering function-operating system docking interfaces corresponding to different operating systems are different.
  8. 8. The applet operating system of claim 7 wherein said control module is further configured to: responding to the opening applet operation of the user, and calling a rendering interface; the system adaptation module is further used for docking the rendering interface with the target vehicle-mounted operating system through the rendering function-operating system docking interface so that a rendering engine in the target vehicle-mounted operating system creates a local window; the control module is also used for calling the small program logic execution interface; The system adaptation module is further used for interfacing the applet logic execution interface with the target vehicle-mounted operating system through the operation event-operating system interfacing interface so that an applet operation engine in the target vehicle-mounted operating system operates the applet and outputs applet starting rendering data; the control module is also used for calling the rendering interface; The system adaptation module is further used for docking the rendering interface with the target vehicle-mounted operating system through the rendering function-operating system docking interface, so that a rendering engine in the target vehicle-mounted operating system can render and generate an applet starting interface according to the applet starting rendering data, and the applet starting interface is in the local window.
  9. 9. The applet operating system according to claim 8 wherein the control module is further configured to download, check and install an installation package for the applet.
  10. 10. The applet operating system of claim 6 wherein said control module is further configured to: judging whether the application programming interface is a legal interface or not; and if the application programming interface is a legal interface, calling the application programming interface.
  11. 11. An electronic device, comprising: a processor, a memory, a communication interface; the memory is used for storing executable instructions of the processor; Wherein the processor is configured to perform the applet running method according to any one of claims 1 to 5 via execution of the executable instructions.
  12. 12. A readable storage medium having stored thereon a computer program, which when executed by a processor implements the applet operating method according to anyone of claims 1 to 5.
  13. 13. A computer program product comprising a computer program for implementing the applet-running method according to any one of claims 1 to 5 when executed by a processor.

Description

Applet running method, system, device and medium Technical Field The present application relates to the field of computers, and in particular, to a method, a system, an apparatus, and a medium for operating an applet. Background With the rapid development of technology, various applications have emerged. The user wants to use the application program, the application program can be used after the installation package of the application program is downloaded and installed, and the problem is solved by the presence of the applet, so that the applet can be used without downloading and installing the application program by the user. In the prior art, an applet operation system is needed when the applet is operated, and for the vehicle-mounted terminal, different applet operation systems are needed to be developed aiming at different operation systems due to different operation systems operated by different vehicle-mounted terminals. The applet operating system provides an applet operating method so that the operating methods corresponding to different operating systems are also different. In summary, the existing applet operating method needs to develop different systems for different operating systems, and use different operating methods to operate the applet, which results in lower compatibility of the applet operating method. Disclosure of Invention The embodiment of the application provides an applet operation method, an applet operation system, applet operation equipment and an applet operation medium, which are used for solving the problem that the existing applet operation method needs to develop different systems aiming at different operating systems respectively, and the applet operation method is low in compatibility due to the fact that the applet operation method is operated by using different operation methods. In a first aspect, an embodiment of the present application provides an applet operating method, including: calling an applet logic execution interface according to the acquired operation event of the applet user; interfacing the applet logic execution interface with the target vehicle-mounted operating system through an operating event-operating system interfacing interface corresponding to the target vehicle-mounted operating system, so that an applet running engine in the target vehicle-mounted operating system runs an applet according to the operating event, outputs application programming interface information corresponding to the operating event, and interfaces corresponding to different vehicle-mounted operating systems are different; determining an application programming interface corresponding to the application programming interface information according to the acquired application programming interface information; calling the application programming interface; And interfacing the application programming interface with the target vehicle-mounted operating system through an applet interface function-operating system interfacing interface corresponding to the target vehicle-mounted operating system so as to enable the target vehicle-mounted operating system to complete the operation event. In one embodiment, the method further comprises: Calling a rendering interface; And docking the rendering interface with the target vehicle-mounted operating system through a rendering function-operating system docking interface corresponding to the target vehicle-mounted operating system, so that a rendering engine in the target vehicle-mounted operating system renders the applet, the operation event completion interface is displayed, and the rendering function-operating system docking interfaces corresponding to different vehicle-mounted operating systems are different. In a specific embodiment, before the applet logic execution interface is invoked according to the acquired operation event of the user of the applet, the method further comprises: responding to the opening applet operation of the user, and calling a rendering interface; docking the rendering interface with the target vehicle-mounted operating system through the rendering function-operating system docking interface so that a rendering engine in the target vehicle-mounted operating system creates a local window; calling the small program logic execution interface; Interfacing the applet logic execution interface with the target vehicle-mounted operating system through the operation event-operating system interfacing interface so that an applet running engine in the target vehicle-mounted operating system runs the applet and outputs applet start rendering data; invoking the rendering interface; And docking the rendering interface with the target vehicle-mounted operating system through the rendering function-operating system docking interface so that a rendering engine in the target vehicle-mounted operating system can render and generate an applet starting interface according to the applet starting rendering data, wherein the apple