Search

CA-3281848-C - CONSTRUCTION METHOD, RUN METHOD, AND APPARATUS FOR APPLICATION

CA3281848CCA 3281848 CCA3281848 CCA 3281848CCA-3281848-C

Abstract

A constructing method, a running method and an apparatus for application are disclosed. The constructing method includes: acquiring construction information of the application; arranging the construction information into a preset card-type structure; and adding run logic and rendering effects to the application, and building connection between the application and a service end. The running method includes: transmitting a service request from a user to the service end, and receiving a result returned by the service end; building WebSocket connection with a channel server at the service end, transmitting real-time data to the channel server through a WebSocket; and building connection with a data source server at the service end through a http interface, and transmitting non-real-time data to the data source server through the http interface. The application so constructed helps shorten loading time and reduce run stuck.

Inventors

  • Ping Zhang
  • HONGMEI BEN
  • Sijia Chen

Assignees

  • 10353744 CANADA LTD.

Dates

Publication Date
20260505
Application Date
20200730
Priority Date
20191022

Claims (20)

  1. Claims: 1. An apparatus comprising: an information acquiring module, configured to acquire a construction information of an application; a card-forming module, configured to arrange the construction information into a preset cardtype structure, wherein the application is set in a master application and displayed as the cardtype structure, and the card-type structure includes a title name, a detail page entrance, and a core information display area; an application constructing module, configured to add run logic and rendering effects to the application; a connection building module, configured to build connection between the application and a service end wherein the service end includes a data source server and a channel server; and a connection constructing module configured to: build WebSocket connection with the channel server; use the channel server to realize transmission of real-time data between the data source server and the application through the WebSocket connection; build connection with the data source server through a http interface; and realize transmission of non-real-time data between the data source server and the application through the http interface.
  2. 2. The apparatus of claim 1, wherein the information acquiring module further comprises: a communication module, configured to receive a constructing request for the application; a native application looking-up module, configured to look up a corresponding native application according to the constructing request for the application, wherein the native16 application includes a browser application, a functional application built in the master application, and a third-party application; and a construction information extracting module, configured to extract core information of a native application as the construction information of the application.
  3. 3. The apparatus of claim 1, wherein the information acquiring module further comprises: an application function acquiring module, configured to acquire application functions users pay attention to with reference to big data; and a construction information extracting module, configured to extract or create core information of the application functions as the construction information of the application.
  4. 4. The apparatus of any one of claims 1 to 3, wherein the information acquiring module transmits the construction information it acquires to the card-forming module, wherein the card-forming module uses the construction information together with the card-type structure to form the form for displaying the application and wherein the application constructing module open functions to the application, for the application has operatable meaning.
  5. 5. A system comprising: an information acquiring module, configured to acquire a construction information of an application; a card-forming module, configured to arrange the construction information into a preset cardtype structure, wherein the application is set in a master application and displayed as the cardtype structure, and the card-type structure includes a title name, a detail page entrance, and a core information display area; an application constructing module, configured to add run logic and rendering effects to the application; a connection building module, configured to build connection between the application and a17 service end, wherein the service end includes a data source server and a channel server; and a connection constructing module configured to: build WebSocket connection with the channel server; use the channel server to realize transmission of real-time data between the data source server and the application through the WebSocket connection; build connection with the data source server through a http interface; and realize transmission of non-real-time data between the data source server and the application through the http interface.
  6. 6. The system of claim 5, wherein the information acquiring module further comprises: a communication module, configured to receive a constructing request for the application; a native application looking-up module, configured to look up a corresponding native application according to the constructing request for the application, wherein the native application includes a browser application, a functional application built in the master application, and a third-party application; and a construction information extracting module, configured to extract core information of a native application as the construction information of the application.
  7. 7. The system of claim 5, wherein the information acquiring module further comprises: an application function acquiring module, configured to acquire application functions users pay attention to with reference to big data; and a construction information extracting module, configured to extract or create core information of the application functions as the construction information of the application.
  8. 8. The system of any one of claims 5 to 7, wherein the information acquiring module transmits the construction information it acquires to the card-forming module, wherein the card-forming18 module uses the construction information together with the card-type structure to form the form for displaying the application and wherein the application constructing module open functions to the application, for the application has operatable meaning.
  9. 9. A method comprising: acquiring a construction information of an application; arranging the construction information into a preset card-type structure, wherein the application is set in a master application and displayed as the card-type structure, wherein the card-type structure includes a title name, a detail page entrance, and a core information display area; adding run logic and rendering effects to the application; building connection between the application and a service end, wherein the service end includes a data source server and a channel server, and building connection between a portable card; and wherein the service end includes: building WebSocket connection with the channel server; using the channel server to realize transmission of real-time data between the data source server and the application through the WebSocket connection; building connection with the data source server through a http interface; and realizing transmission of non-real-time data between the data source server and the application through the http interface.
  10. 10. The method of claim 9, wherein acquiring the construction information of the application comprises: receiving a constructing request for the application;19 looking up a native application corresponding to the constructing request for the application; and extracting core information of the native application as the construction information for the application.
  11. 11. The method of claim 10, wherein the native application comprises any of applications including a browser application, a functional application built in the master application, and a third-party application.
  12. 12. The method of claim 9, wherein acquiring the construction information of the application comprises: acquiring application functions users pay attention to with reference to big data; and extracting or creating core information of the application functions as the construction information of the application.
  13. 13. An electronic equipment comprising: one or more processors; a memory, associated with the one or more processors and used for storing a program instruction; the program instruction executed by the one or more processors configured to: acquire a construction information of an application; arrange the construction information into a preset card-type structure, wherein the application is set in a master application and displayed as the card-type structure, wherein the card-type structure includes a title name, a detail page entrance, and a core information display area; add run logic and rendering effects to the application;20 build connection between the application and a service end, wherein the service end includes a data source server and a channel server, and building connection between a portable card; and wherein the service end includes: building WebSocket connection with the channel server; using the channel server to realize transmission of real-time data between the data source server and the application through the WebSocket connection; building connection with the data source server through a http interface; and realizing transmission of non-real-time data between the data source server and the application through the http interface.
  14. 14. The equipment of claim 13, wherein acquiring the construction information of the application comprises: receiving a constructing request for the application; looking up a native application corresponding to the constructing request for the application; and extracting core information of the native application as the construction information for the application.
  15. 15. The equipment of claim 14, wherein the native application comprises any of applications including a browser application, a functional application built in the master application, and a third-party application.
  16. 16. The equipment of claim 13, wherein acquiring the construction information of the application comprises: acquiring application functions users pay attention to with reference to big data; and21 extracting or creating core information of the application functions as the construction information of the application.
  17. 17. A computer readable storage medium having stored thereon computer executable instructions for execution by a computer configured to : acquire a construction information of an application; arrange the construction information into a preset card-type structure, wherein the application is set in a master application and displayed as the card-type structure, wherein the card-type structure includes a title name, a detail page entrance, and a core information display area; add run logic and rendering effects to the application; build connection between the application and a service end, wherein the service end includes a data source server and a channel server, and building connection between a portable card; and wherein the service end includes: building WebSocket connection with the channel server; using the channel server to realize transmission of real-time data between the data source server and the application through the WebSocket connection; building connection with the data source server through a http interface; and realizing transmission of non-real-time data between the data source server and the application through the http interface.
  18. 18. The storage medium of claim 17, wherein acquiring the construction information of the application comprises: receiving a constructing request for the application; looking up a native application corresponding to the constructing request for the application;22 and extracting core information of the native application as the construction information for the application.
  19. 19. The storage medium of claim 18, wherein the native application comprises any of applications including a browser application, a functional application built in the master application, and a third-party application.
  20. 20. The storage medium of claim 17, wherein acquiring the construction information of the application comprises: acquiring application functions users pay attention to with reference to big data; and extracting or creating core information of the application functions as the construction information of the application.

Description

1 CONSTRUCTION METHOD, RUN METHOD, AND APPARATUS FOR APPLICATION BACKGROUND OF THE INVENTION Technical Field [0001] The present invention relates to the technical field of computer, and more particularly to a constructing method, running method and apparatus for an application. Description of Related Art [0002] In the prior art, most applications require a user to launch first before the related functions can be used. However, with enrichment of application functions, there are more and more integrated functional sub-modules, making applications increasingly grow in size. As a result, the loading process before launch of an application or during change of pages is more timeconsuming, which means a long wait time before a user can enter and operate the application and is adverse to user experience. For an application itself, excessive function modules and frequent operation also bring about a heavy run load. Hence, how to simplify an application, and how to allow a user to access functions provided by an application in a more intuitive manner are issues to be addressed in the progress of integration of applications. SUMMARY OF THE INVENTION [0003] To address the issues of the prior art, the present invention provides a constructing method, a running method, and an apparatus for an application. The technical schemes are described below. [0004] In a first aspect, the present invention provides a constructing method for an application. The method comprises: [0005] acquiring construction information of the application;2 [0006] arranging the construction information into a preset card-type structure, in which the application is set in a master application and displayed as the card-type structure, and the cardtype structure at least includes: a title name, a detail page entrance, and a core information display area; and [0007] adding run logic and rendering effects to the application, and building connection between the application and a service end. [0008] Further, the step of acquiring the construction information of the application comprises: [0009] receiving a constructing request for the application; [0010] looking up a native application corresponding to the constructing request for the application; and [0011] extracting core information of the native application as the construction information of the application. [0012] Further, the native application comprises any of applications of: [0013] a browser application, a functional application built in the master application, and a third-party application. [0014] Further, the step of acquiring the construction information of the application comprises: [0015] acquiring application functions users pay attention to with reference to big data; and [0016] extracting or creating core information of the application functions as the construction information of the application. [0017] Further, the construction information at least includes: an application name, an application link, and core function information. [0018] Further, the service end comprises: a data source server and a channel server, and the step of building connection between the portable card and the service end comprises: [0019] building WebSocket connection with the channel server, and using the channel server to realize transmission of real-time data between the data source server and the application through the WebSocket connection; and [0020] building connection with the data source server through the http interface, and realizing3 transmission of non-real-time data between the data source server and the application through the http interface. [0021] In a second aspect, based on the foregoing method, the present invention further provides an apparatus for constructing an application. The apparatus comprises: [0022] an information-acquiring module, for acquiring a construction information of the application; [0023] a card-forming module, for arranging the construction information into a preset cardtype structure, in which the application is set in a master application and displayed as the card-type structure, and the card-type structure at least includes: a title name, a detail page entrance, and a core information display area; and [0024] an application-constructing module, for adding run logic and rendering effects to the application; and [0025] a connection-building module, for building connection between the application and a service end. [0026] Further, the service end comprises: a data source server and a channel server; and [0027] the connection constructing module is particularly for: [0028] building WebSocket connection with the channel server, and using the channel server to realize transmission of real-time data between the data source server and the application through the WebSocket connection; and [0029] building connection with the data source server through the http interface, and realizing transmission of non-real-time data between the data source server and the application through the