CN112131024A - Multifunctional jump method and device for light application, electronic equipment and storage medium - Google Patents

Multifunctional jump method and device for light application, electronic equipment and storage medium Download PDF

Info

Publication number
CN112131024A
CN112131024A CN202011034269.3A CN202011034269A CN112131024A CN 112131024 A CN112131024 A CN 112131024A CN 202011034269 A CN202011034269 A CN 202011034269A CN 112131024 A CN112131024 A CN 112131024A
Authority
CN
China
Prior art keywords
light application
application
light
configuration file
user
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.)
Pending
Application number
CN202011034269.3A
Other languages
Chinese (zh)
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.)
Ping An International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City 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 Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202011034269.3A priority Critical patent/CN112131024A/en
Publication of CN112131024A publication Critical patent/CN112131024A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Abstract

The invention relates to a multifunctional jump method and device for light application, electronic equipment and a storage medium. The method comprises the following steps: receiving a login request of a first user, and receiving a configuration file of a plurality of light applications set by the first user, wherein the configuration file comprises attribute parameters of each light application and a jump mode for jumping from the light application to a target application; responding to a request for loading a certain light application initiated by a second user, reading a configuration file of the light application, and loading and analyzing the configuration file to create and display a shortcut identifier of the light application on a display device; and responding to the triggering operation of the second user on the displayed light application, determining a target application and a skipping mode associated with the light application according to the configuration file of the light application, and skipping to the target application in the skipping mode. The light application of the invention can set different jump modes, thus improving the expansibility, compatibility and stability of the light application.

Description

Multifunctional jump method and device for light application, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for skipping light applications, electronic equipment and a storage medium.
Background
Along with the popularization of the mobile internet, mobile office gradually moves to the public, and the mobile office is the demand of scientific and technological development and is also the product of the development of the times. The light application platform for mobile office in the market is various, but most of core function points are similar, and the core functions mainly comprise an operation interface, an address list, a public number, personal information, IM (instant messaging) chat and the like.
By embedding different types of light applications in the light application platform, various different types of services and customer requirements are met. For example, some users can add Banner on the client front page of the light application platform to highlight activity information; some are implanted with different H5 links, so that flexible access is facilitated; there is also a shortcut portal that adds multiple office systems or functional services at the client of the light application platform.
The current problems are: with the increasingly vigorous business requirements of mobile office, the number of light applications in the light application platform is increased, so that the light application platform is large in engineering code amount and is relatively overstaffed; in addition, the existing light application platform function interaction jumps to each subsystem in a Webview or Android Activity mode, the jump mode is single, and the compatibility and the expansibility of different services are not good.
Disclosure of Invention
In view of the above, the present invention provides a multifunctional jump method, an apparatus, an electronic device and a storage medium for a light application, and aims to solve the problems of a single jump mode for the light application in a light application platform and poor compatibility and expansibility for different services.
In order to achieve the above object, the present invention provides a multifunctional jump method for light applications, which applies an electronic terminal, and comprises:
receiving a login request of a first user, and receiving a configuration file of a plurality of light applications set by the first user, wherein the configuration file comprises attribute parameters of each light application and a jump mode for jumping from the light application to a target application;
responding to a request for loading a certain light application initiated by a second user, reading a configuration file of the light application, and loading and analyzing the configuration file to create and display a shortcut identifier of the light application on a display device;
and responding to the triggering operation of the second user on the displayed light application, determining a target application and a skipping mode associated with the light application according to the configuration file of the light application, and skipping to the target application by adopting the skipping mode.
Preferably, the target application is any one of an external system, an internal system, an IM chat interface and a download interface which have a link relationship with the light application; the method for jumping the light application to the target application comprises the following steps: WebView mode, routing mode, startActivity mode and apk installation package mode.
Preferably, the method for skipping the light application is set according to the target application, and includes:
if the target application is an external system, setting the skipping mode of the light application as a WebView mode;
if the target application is an internal system, setting the skipping mode of the light application as a routing mode;
if the target application is an IM chat interface, setting the skipping mode of the light application as a startActivity mode;
and if the target application is a downloading interface, setting the jump mode of the light application as an apk installation package mode.
Preferably, before setting the configuration file, the method further includes:
acquiring a language frame of a target source code corresponding to the light application from a preset database;
extracting a configuration file contained in the target source code according to the language framework; and
and converting the format of the configuration file into a specified format.
Preferably, the language framework for obtaining the target source code corresponding to the light application includes:
determining the language framework according to the acquired language framework identification of the target light application; and/or
And scanning the reference description information corresponding to the target source code, and determining the language framework according to the reference description information.
Preferably, the specified format is any one of a JSON format, a TEXT format, and a custom HTML5 format.
Preferably, the attribute parameters include an icon, a name, and whether visible.
In order to achieve the above object, the present invention also provides a multifunctional jump apparatus for light application, the apparatus comprising:
setting a module: the system comprises a configuration file, a first user and a second user, wherein the configuration file is used for receiving a login request of the first user and receiving a plurality of light applications set by the first user, and comprises attribute parameters of each light application and a jump mode for jumping from the light application to a target application;
loading a module: the system comprises a first user, a second user and a display device, wherein the first user is used for responding to a request initiated by the second user for loading a certain light application, reading a configuration file of the light application, and loading and analyzing the configuration file to create and display a shortcut identifier of the light application on the display device;
a skip module: and the system is used for responding to the triggering operation of the second user on the displayed light application, determining a target application and a skipping mode associated with the light application according to the configuration file of the light application, and skipping to the target application by adopting the skipping mode.
In order to achieve the above object, the present invention further provides an electronic device, which includes a memory and a processor, wherein the memory stores a multifunctional jump program of a light application, and the multifunctional jump program of the light application is executed by the processor, and the electronic device implements the following steps:
receiving a login request of a first user, and receiving a configuration file of a plurality of light applications set by the first user, wherein the configuration file comprises attribute parameters of each light application and a jump mode for jumping from the light application to a target application;
responding to a request for loading a certain light application initiated by a second user, reading a configuration file of the light application, and loading and analyzing the configuration file to create and display a shortcut identifier of the light application on a display device;
and responding to the triggering operation of the second user on the displayed light application, determining a target application and a skipping mode associated with the light application according to the configuration file of the light application, and skipping to the target application by adopting the skipping mode.
To achieve the above object, the present invention also provides a computer-readable storage medium including a multi-function jump program of a light application, which when executed by a processor, implements any of the steps in the multi-function jump method of the light application as above.
According to the multifunctional jump method and device for the light application, the electronic equipment and the storage medium, the light application in the light application platform can be provided with different jump modes according to the target application, and various jump modes of different types are realized, so that the expansibility, the compatibility and the stability of the light application are improved, and most external systems and external applications can be easily connected through the method. In addition, in the aspect of engineering codes, the code quantity and the coupling degree of the service codes of the light application platform are reduced in a structuring mode, so that the robustness and the universality of the service codes are improved.
Drawings
FIG. 1 is a diagram of an electronic device according to a preferred embodiment of the present invention;
FIG. 2 is a block diagram of a preferred embodiment of the multi-functional jump device of the light application of FIG. 1;
FIG. 3 is a flow chart of a preferred embodiment of the multi-function jump method of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Some terms in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art:
1. light application platform: generally refers to an application with a web browsing function, such as a browser, a microblog, a WeChat, etc.
2. The application (App:) generally refers to an application installed locally or used online in a mobile phone and a tablet computer, and generally has a visual client operation interface for interacting with a user during running, and light applications for respectively realizing different functions are usually displayed on the client operation interface.
3. Light application: the light application is a full-function application which can be used for searching without downloading, has user experience which is comparable to or even superior to that of a local application program, has the characteristics of being searched and intelligently distributed of a Web application program, and can effectively solve the problem of butt joint of high-quality application and service with the requirements of mobile users. Taking a daily taxi taking as an example, the traditional mode is 'triggering a demand-searching an application-downloading an application-installing an application-starting an application', while a light application directly 'searching a demand-meeting a demand', so that the cost of searching a service by a user is greatly reduced.
In brief, the following: the Light App is a functional program application embedded in an application (App), for example, a wechat public number (such as dribble trip, life payment, medical health, and the like) embedded in a wechat App, and a functional program application (such as a proxy, conference management, and official inquiry) in a government affairs App.
Fig. 1 is a schematic diagram of an electronic device 1 according to a preferred embodiment of the invention.
The electronic device 1 includes but is not limited to: memory 11, processor 12, display 13, and network interface 14. The electronic device 1 is connected to a network through a network interface 14 to obtain raw data. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System for Mobile communications (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, or a communication network.
The memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 11 may be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like equipped with the electronic device 1. Of course, the memory 11 may also comprise both an internal memory unit and an external memory device of the electronic device 1. In this embodiment, the memory 11 is generally used for storing an operating system installed in the electronic device 1 and various types of application software, such as program codes of the multi-function jump program 10 for light applications. Further, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 12 is typically used for controlling the overall operation of the electronic device 1, such as performing data interaction or communication related control and processing. In this embodiment, the processor 12 is configured to run a program code stored in the memory 11 or process data, such as a program code of the multi-function jump 10 running a light application.
The display 13 may be referred to as a display screen or display unit. In some embodiments, the display 13 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch screen, or the like. The display 13 is used for displaying information processed in the electronic device 1 and for displaying a visual work interface, for example displaying application icons.
The network interface 14 may optionally comprise a standard wired interface, a wireless interface (e.g. WI-FI interface), the network interface 14 typically being used for establishing a communication connection between the electronic device 1 and other electronic devices.
Fig. 1 shows only the electronic device 1 with components 11-14 and a light-application multifunction jump program 10, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
Optionally, the electronic device 1 may further comprise a user interface, the user interface may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further comprise a standard wired interface and a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch screen, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
The electronic device 1 may further include a Radio Frequency (RF) circuit, a sensor, an audio circuit, and the like, which are not described in detail herein.
In the above embodiment, the processor 12, when executing the multifunctional jump program 10 of the light application stored in the memory 11, may implement the following steps:
receiving a login request of a first user, and receiving a configuration file of a plurality of light applications set by the first user, wherein the configuration file comprises attribute parameters of each light application and a jump mode for jumping from the light application to a target application;
responding to a request for loading a certain light application initiated by a second user, reading a configuration file of the light application, and loading and analyzing the configuration file to create and display a shortcut identifier of the light application on a display device;
and responding to the triggering operation of the second user on the displayed light application, determining a target application and a skipping mode associated with the light application according to the configuration file of the light application, and skipping to the target application by adopting the skipping mode.
The storage device may be the memory 11 of the electronic device 1, or may be another storage device communicatively connected to the server 1.
It should be noted that the first user refers to a developer or a service provider of the light application, and the second user refers to a user of the light application.
For detailed description of the above steps, please refer to the following description of a block diagram of an embodiment of the multifunctional jump apparatus 100 for light applications in fig. 2 and a flowchart of an embodiment of the multifunctional jump method for light applications in fig. 3.
In other embodiments, the light-application multifunctional jump apparatus 100 can be divided into a plurality of modules, which are stored in the memory 12 and executed by the processor 13 to accomplish the present invention. The modules referred to herein are referred to as a series of computer program instruction segments capable of performing specified functions.
Referring to fig. 2, a block diagram of an embodiment of a multifunctional jump device 100 for light application is shown. In this embodiment, the multifunctional jump apparatus 100 for light application may be divided into: a setup module 110, a load module 120, and a jump module 130.
The configuration module 110 is configured to receive a login request of a first user, and receive a configuration file of a plurality of light applications set by the first user, where the configuration file includes attribute parameters of each light application and a skip mode for skipping from the light application to a target application.
It should be noted that the processing module 110 only needs to perform setting on the configuration file once, and the setting is maintained after the setting is completed.
In this embodiment, the target application is any one of an external system, an internal system, an IM chat interface, and a download interface having a link relationship with the light application; the method for jumping the light application to the target application comprises the following steps: WebView mode, routing mode, startActivity mode and apk installation package mode.
It is worth mentioning that the jump mode of the light application is set according to the target application, for example: if the target application is an external system, setting the skipping mode of the light application as a WebView mode; the web address of an external system or external application can be directly configured through the skip mode, a large amount of unnecessary information interaction is not needed, the data transmission efficiency is improved, and most of the external system and the external application can be loosely connected; specifically, the external system is a third-party user system or application, such as an H5 interface or an H5 subsystem corresponding to a specified URL address;
if the target application is an internal system, setting the skipping mode of the light application as a routing mode; the internal system is a functional service system of a local end of the light application platform, such as a conference management system, and can directly integrate a third-party plug-in ARouter in Ali by only skipping inside the light application platform and directly skip to the conference management system by a route skipping mode;
if the target application is an IM chat interface, setting the skipping mode of the light application as a startActivity mode; the skipping mode can directly acquire and store the name of the IM chat interface to be started and the information content required for skipping from the configuration file, and can effectively realize the convenience of parameter transmission when a page is started;
and if the target application is a downloading interface, setting the jump mode of the light application as an apk installation package mode. The skipping mode can directly acquire the website of the download interface, the volume of the light application platform installation package cannot be increased by using the skipping mode, the flow loss of a user is further reduced, and meanwhile the installation utilization rate of the apk is improved.
Specifically, before the processing module 110 performs the above steps, the following steps are also performed:
acquiring a language frame of a target source code corresponding to the light application from a preset database;
extracting a configuration file contained in the target source code according to the language framework; and
and converting the format of the configuration file into a specified format.
Further, the obtaining the language framework of the target source code corresponding to the light application includes: determining the language framework according to the acquired language framework identification of the target light application; and/or scanning reference description information corresponding to the target source code, and determining the language framework according to the reference description information.
It should be noted that the target source code may be uploaded by the light application developer or a service provider, or may be obtained by analyzing a configuration file corresponding to the light application. The language framework is a development framework based on a certain development language used in light application development, and the development language may be, for example, HTML5 (5 th version hypertext markup language), JavaScript (transliterated scripting language), or the like. Different lightweight application platforms support different language frameworks, for example, some browsers support a weex-based language framework (a development framework supporting development based on JavaScript \ HTML5\ CSS language), or some browser-like applications such as facebook-supported ReactNative-based language framework (a development framework based on JavaScript language). The light application developed by a service provider or a developer based on a certain light application platform must be developed based on a corresponding language framework to obtain source codes conforming to the language framework.
In a specific example, when uploading a target source code corresponding to a light application, a service provider or a developer may set a language framework identifier by sending a message to a device implementing the embodiment or inputting or clicking a selection on an input box provided on an interface of the device to indicate a language framework of the target source code, for example, a weex-based language framework or a reactive-native-based language framework, and thus, the step of obtaining the language framework of the target source code corresponding to the light application may include: and determining the language framework according to the acquired language framework identification of the target light application.
Of course, the language framework for obtaining the target source code may also be automatically detected by scanning the target source code, and specifically, the step of obtaining the language framework for the target source code corresponding to the light application may include: and scanning the target source code to obtain corresponding reference description information, and determining the language framework according to the reference description information. For example, the light application usually exists in the form of a compressed file, there are multiple files containing target source codes in the compressed file, usually there are entry files containing reference description information like index files in these files, and the reference description information usually describes the corresponding light application to reference the file or object providing the application service, for example, for a weex-based language framework, we will refer to the file with the suffix of.we, and for a real-native based language framework, we will use the require ('real-native') to obtain the real correspondence, so that scanning the target source codes to obtain the corresponding reference description information, and the language framework can be determined according to the reference description information.
In this embodiment, the specified format is a JSON format, where: json (javascript Object notification) is a lightweight data exchange format that is easy for people to read and write. Of course, without limitation, the configuration file may be stored in any one of an XML format, an EXT format, and a custom HTML5 format, wherein the custom HTML5 format employs custom content tags.
In this embodiment, the attribute parameters include an icon, a name, and whether the attribute is visible.
In this embodiment, four different types of jump modes are provided for the light application to select, which are respectively: the WebView mode, the routing mode, the startActivity and the apk installation package set different jump modes according to the target application, and realize various jump modes of different types, so that the expansibility, the compatibility and the stability of the light application are improved, and most external systems and external applications can be easily docked by the method. In addition, in the aspect of engineering codes, the code quantity and the coupling degree of the service codes of the light application platform are reduced in a structuring mode, so that the robustness and the universality of the service codes are improved.
The loading module 120 is configured to respond to a request initiated by a second user to load a certain light application, read a configuration file of the light application, and load and parse the configuration file to create and display a shortcut identifier of the light application on a display device.
Specifically, the step of executing by the loading module 120 further includes: acquiring attribute parameters of the light application by analyzing the configuration file; according to the attribute parameters, creating a shortcut identifier of the corresponding light application; and displaying the quick identification of the light application through a display device so that a user can select the light application service meeting the requirement.
Further, in this embodiment, the configuration file further defines a location layout of the light application shortcut identifier, and after the configuration file is read, the location layout of the light application shortcut identifier is analyzed from the configuration file, and the light application shortcut identifier is laid out on the display device according to the analyzed content.
And the skipping module 130 is configured to respond to a triggering operation of the second user on the displayed light application, determine a target application and a skipping manner associated with the light application according to the configuration file of the light application, and skip to the target application in the skipping manner.
In addition, the present invention further provides a multi-function jump method for a light application, which is applied to an electronic terminal, such as a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like, having multiple application functions in this embodiment, but is not limited thereto.
Referring to fig. 3, a method flow diagram of an embodiment of the multifunctional jump method for light application of the present invention is shown, where the multifunctional jump method for light application includes the following steps:
step S1: the method comprises the steps of receiving a login request of a first user, and receiving a configuration file of a plurality of light applications set by the first user, wherein the configuration file comprises attribute parameters of each light application and a jump mode for jumping from the light application to a target application.
It should be noted that the setting of the configuration file in step S1 only needs to be performed once and is maintained after the setting is completed. Namely, the multifunctional jump method for the light application provided by the invention is executed only from step 1 during the first operation, and the step 1 does not need to be executed every time during the subsequent operation.
In this embodiment, the target application is any one of an external system, an internal system, an IM chat interface, and a download interface having a link relationship with the light application; the method for jumping the light application to the target application comprises the following steps: WebView mode, routing mode, startActivity mode and apk installation package mode.
It is worth mentioning that the jump mode of the light application is set according to the target application, for example: if the target application is an external system, setting the skipping mode of the light application as a WebView mode; the web address of an external system or external application can be directly configured through the skip mode, a large amount of unnecessary information interaction is not needed, the data transmission efficiency is improved, and most of the external system and the external application can be loosely connected; specifically, the external system is a third-party user system or application, such as an H5 interface or an H5 subsystem corresponding to a specified URL address;
if the target application is an internal system, setting the skipping mode of the light application as a routing mode; the internal system is a functional service system of a local end of the light application platform, such as a conference management system, and can directly integrate a third-party plug-in ARouter in Ali by only skipping inside the light application platform and directly skip to the conference management system by a route skipping mode;
if the target application is an IM chat interface, setting the skipping mode of the light application as a startActivity mode; the skipping mode can directly acquire and store the name of the IM chat interface to be started and the information content required for skipping from the configuration file, and can effectively realize the convenience of parameter transmission when a page is started;
and if the target application is a downloading interface, setting the jump mode of the light application as an apk installation package mode. The skipping mode can directly acquire the website of the download interface, the volume of the light application platform installation package cannot be increased by using the skipping mode, the flow loss of a user is further reduced, and meanwhile the installation utilization rate of the apk is improved.
Specifically, before the setting the configuration file, the method further includes:
acquiring a language frame of a target source code corresponding to the light application from a preset database;
extracting a configuration file contained in the target source code according to the language framework; and
and converting the format of the configuration file into a specified format.
Further, the obtaining the language framework of the target source code corresponding to the light application includes: determining the language framework according to the acquired language framework identification of the target light application; and/or scanning reference description information corresponding to the target source code, and determining the language framework according to the reference description information.
It should be noted that the target source code may be uploaded by the light application developer or a service provider, or may be obtained by analyzing a configuration file corresponding to the light application. The language framework is a development framework based on a certain development language used in light application development, and the development language may be, for example, HTML5 (5 th version hypertext markup language), JavaScript (transliterated scripting language), or the like. Different lightweight application platforms support different language frameworks, for example, some browsers support a weex-based language framework (a development framework supporting development based on JavaScript \ HTML5\ CSS language), or some browser-like applications such as facebook-supported ReactNative-based language framework (a development framework based on JavaScript language). The light application developed by a service provider or a developer based on a certain light application platform must be developed based on a corresponding language framework to obtain source codes conforming to the language framework.
In a specific example, when uploading a target source code corresponding to a light application, a service provider or a developer may set a language framework identifier by sending a message to a device implementing the embodiment or inputting or clicking a selection on an input box provided on an interface of the device to indicate a language framework of the target source code, for example, a weex-based language framework or a reactive-native-based language framework, and thus, the step of obtaining the language framework of the target source code corresponding to the light application may include: and determining the language framework according to the acquired language framework identification of the target light application.
Of course, the language framework for obtaining the target source code may also be automatically detected by scanning the target source code, and specifically, the step of obtaining the language framework for the target source code corresponding to the light application may include: and scanning the target source code to obtain corresponding reference description information, and determining the language framework according to the reference description information. For example, the light application usually exists in the form of a compressed file, there are multiple files containing target source codes in the compressed file, usually there are entry files containing reference description information like index files in these files, and the reference description information usually describes the corresponding light application to reference the file or object providing the application service, for example, for a weex-based language framework, we will refer to the file with the suffix of.we, and for a real-native based language framework, we will use the require ('real-native') to obtain the real correspondence, so that scanning the target source codes to obtain the corresponding reference description information, and the language framework can be determined according to the reference description information.
In this embodiment, the specified format is a JSON format, where: json (javascript Object notification) is a lightweight data exchange format that is easy for people to read and write. Of course, without limitation, the configuration file may be stored in any one of an XML format, an EXT format, and a custom HTML5 format, wherein the custom HTML5 format employs custom content tags.
In this embodiment, the attribute parameters include an icon, a name, and whether the attribute is visible.
Step S2, responding to a request initiated by a second user to load a certain light application, reading a configuration file of the light application, and loading and parsing the configuration file to create and display a shortcut identifier of the light application on a display device.
Specifically, the step S2 further includes: acquiring attribute parameters of the light application by analyzing the configuration file; according to the attribute parameters, creating a shortcut identifier of the corresponding light application; and displaying the quick identification of the light application through a display device so that a user can select the light application service meeting the requirement.
Further, in this embodiment, the configuration file further defines a location layout of the light application shortcut identifier, and after the configuration file is read, the location layout of the light application shortcut identifier is analyzed from the configuration file, and the light application shortcut identifier is laid out on the display device according to the analyzed content.
Step S3: and responding to the triggering operation of the second user on the displayed light application, determining a target application and a skipping mode associated with the light application according to the configuration file of the light application, and skipping to the target application by adopting the skipping mode.
Furthermore, the embodiment of the present invention also provides a computer-readable storage medium, which may be any one or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a portable compact disc read only memory (CD-ROM), a USB memory, and the like. The computer readable storage medium includes the multi-function jump program 10 of the light application, and the multi-function jump program 10 of the light application when executed by a processor implements the steps of the multi-function jump method of the light application as described above.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the above-mentioned light application multi-function jump method, and will not be described herein again.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A multifunctional jump method of light application, which applies an electronic terminal, is characterized in that the method comprises the following steps:
receiving a login request of a first user, and receiving a configuration file of a plurality of light applications set by the first user, wherein the configuration file comprises attribute parameters of each light application and a jump mode for jumping from the light application to a target application;
responding to a request for loading a certain light application initiated by a second user, reading a configuration file of the light application, and loading and analyzing the configuration file to create and display a shortcut identifier of the light application on a display device;
and responding to the triggering operation of the second user on the displayed light application, determining a target application and a skipping mode associated with the light application according to the configuration file of the light application, and skipping to the target application by adopting the skipping mode.
2. The multifunctional jump method of a light application according to claim 1, wherein the target application is any one of an external system, an internal system, an IM chat interface, and a download interface having a link relation with the light application; the method for jumping the light application to the target application comprises the following steps: WebView mode, routing mode, startActivity mode and apk installation package mode.
3. The multifunctional jump method of a light application according to claim 2, wherein the jump manner of the light application is set according to the target application, comprising:
if the target application is an external system, setting the skipping mode of the light application as a WebView mode;
if the target application is an internal system, setting the skipping mode of the light application as a routing mode;
if the target application is an IM chat interface, setting the skipping mode of the light application as a startActivity mode;
and if the target application is a downloading interface, setting the jump mode of the light application as an apk installation package mode.
4. The light application multifunctional jump method of claim 1, further comprising, prior to setting the configuration file:
acquiring a language frame of a target source code corresponding to the light application from a preset database;
extracting a configuration file contained in the target source code according to the language framework; and
and converting the format of the configuration file into a specified format.
5. The multi-function jump method of a light application of claim 4, wherein said obtaining a language framework of target source code corresponding to the light application comprises:
determining the language framework according to the acquired language framework identification of the target light application; and/or
And scanning the reference description information corresponding to the target source code, and determining the language framework according to the reference description information.
6. The multifunctional jump method for light applications according to claim 4, wherein the specified format is any one of a JSON format, a TEXT format, and a custom HTML5 format.
7. The multifunctional jump method for light applications of claim 1, characterized in that said attribute parameters comprise an icon, a name and whether it is visible or not.
8. A multifunctional jump device for light applications, the device comprising:
setting a module: the system comprises a configuration file, a first user and a second user, wherein the configuration file is used for receiving a login request of the first user and receiving a plurality of light applications set by the first user, and comprises attribute parameters of each light application and a jump mode for jumping from the light application to a target application;
loading a module: the system comprises a first user, a second user and a display device, wherein the first user is used for responding to a request initiated by the second user for loading a certain light application, reading a configuration file of the light application, and loading and analyzing the configuration file to create and display a shortcut identifier of the light application on the display device;
a skip module: and the system is used for responding to the triggering operation of the second user on the displayed light application, determining a target application and a skipping mode associated with the light application according to the configuration file of the light application, and skipping to the target application by adopting the skipping mode.
9. An electronic device, comprising a memory and a processor, wherein the memory stores a multi-function jump program of a light application, and the multi-function jump program of the light application is executed by the processor, and the following steps are implemented:
receiving a login request of a first user, and receiving a configuration file of a plurality of light applications set by the first user, wherein the configuration file comprises attribute parameters of each light application and a jump mode for jumping from the light application to a target application;
responding to a request for loading a certain light application initiated by a second user, reading a configuration file of the light application, and loading and analyzing the configuration file to create and display a shortcut identifier of the light application on a display device;
and responding to the triggering operation of the second user on the displayed light application, determining a target application and a skipping mode associated with the light application according to the configuration file of the light application, and skipping to the target application by adopting the skipping mode.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium includes a multi-function jump program of a light application, which when executed by a processor implements the steps of the multi-function jump method of the light application according to any one of claims 1 to 7.
CN202011034269.3A 2020-09-27 2020-09-27 Multifunctional jump method and device for light application, electronic equipment and storage medium Pending CN112131024A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011034269.3A CN112131024A (en) 2020-09-27 2020-09-27 Multifunctional jump method and device for light application, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011034269.3A CN112131024A (en) 2020-09-27 2020-09-27 Multifunctional jump method and device for light application, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112131024A true CN112131024A (en) 2020-12-25

Family

ID=73840831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011034269.3A Pending CN112131024A (en) 2020-09-27 2020-09-27 Multifunctional jump method and device for light application, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112131024A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117216439A (en) * 2023-09-11 2023-12-12 北京有竹居网络技术有限公司 Method, device, electronic equipment and medium for determining downloading source of application

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117216439A (en) * 2023-09-11 2023-12-12 北京有竹居网络技术有限公司 Method, device, electronic equipment and medium for determining downloading source of application

Similar Documents

Publication Publication Date Title
US9372885B2 (en) System and methods thereof for dynamically updating the contents of a folder on a device
US20230308504A9 (en) Method and system of application development for multiple device client platforms
CN111104635B (en) Method and device for generating form webpage
US10853319B2 (en) System and method for display of document comparisons on a remote device
EP3273362A1 (en) Webpage access method, apparatus, device and non-volatile computer storage medium
CN102937999A (en) Dynamic browser icon
CN103645951A (en) Cross-platform mobile data management system and method
CN102196037A (en) Method and apparatus for accessing services of a device
US9307010B2 (en) Data upload method using shortcut
CN110941779B (en) Page loading method and device, storage medium and electronic equipment
US10270860B2 (en) Increased interoperability between web-based applications and hardware functions
CN113076294A (en) Information sharing method and device
CN108319474B (en) Page information generation method, device and equipment
CN101876998B (en) Method and system for editing data
CN112131024A (en) Multifunctional jump method and device for light application, electronic equipment and storage medium
CN114756228A (en) Page processing method, device, equipment and storage medium
CN111158777B (en) Component calling method, device and computer readable storage medium
CN109446451B (en) Webpage display method, device, medium and computing equipment
CN111666074B (en) Web application customization method, related device and system
CN113220381A (en) Click data display method and device
CN107391132B (en) Method, device and equipment for target App to execute preset action
US20130332568A1 (en) Method of data processing by a navigation module
CN114090066A (en) User interface card view generation method and device, computer equipment and medium
CN110309454B (en) Interface display method, device, equipment and storage medium
CN112486484A (en) Webpage version generation method and device

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