CN112650601B - Method, apparatus, device, storage medium, and program for opening applet across hosts - Google Patents
Method, apparatus, device, storage medium, and program for opening applet across hosts Download PDFInfo
- Publication number
- CN112650601B CN112650601B CN202011561687.8A CN202011561687A CN112650601B CN 112650601 B CN112650601 B CN 112650601B CN 202011561687 A CN202011561687 A CN 202011561687A CN 112650601 B CN112650601 B CN 112650601B
- Authority
- CN
- China
- Prior art keywords
- applet
- protocol
- parameter information
- basic parameter
- server
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
- G06F9/548—Object oriented; Remote method invocation [RMI]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/544—Remote
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure discloses a method, a device, electronic equipment, a storage medium and a computer program for opening an applet across hosts, and relates to the field of mobile terminal equipment, in particular to the field of applets. The specific implementation scheme is as follows: the method comprises the steps that a development end sends basic parameter information of a calling protocol of a generated applet to a server, and after the basic parameter information is verified by the server, protocol content beginning with a preset applet mark is generated and sent to the development end. And the development terminal issues the protocol content for the user terminal to access. The user side identifies the text content by clicking a text protocol or a scanning code identification two-dimensional code picture of the applet in the host, and if the text content starts with a preset applet identification, the applet SDK is used for transmitting the text content to the server. And the server inquires basic parameter information according to the text content and returns the basic parameter information to the user side. And the user downloads the program package according to the basic parameter information. This embodiment enables cross-host invocation of applets.
Description
Technical Field
The present disclosure relates to the field of mobile terminal devices, and in particular, to the field of applet technology.
Background
An applet is an application that can be used without downloading an installation, and can run in different application environments (i.e., hosts), such as a web browser application (App), instant messaging App, and the like. The cross-host open functionality needs to be supported when the same applet Software Development Kit (SDK) is integrated into different hosts.
Some applet tuning protocols currently require explicit specification of a host (schema), applet identification (fixed swan), applet application identification (AppKey), open path (page), open parameters (query) in order to align with the standard HTTP protocol. However, because the Scheme is different, the applet protocol B host under the a host cannot be identified, so that the same applet calling protocol cannot be opened across hosts and cannot be reused.
Disclosure of Invention
The present disclosure provides a method, apparatus, device, and storage medium for cross-host opening of applets.
According to a first aspect of the present disclosure, there is provided a method of opening an applet across hosts, comprising: and sending basic parameter information of the calling protocol of the generated applet to the server. And receiving the protocol content of the applet returned by the server. And publishing the protocol content for access by the user side.
According to a second aspect of the present disclosure, there is provided a method of opening an applet across hosts, comprising: and receiving basic parameter information of a calling protocol of the generated applet, which is sent by a development terminal. And verifying the basic parameter information. If the basic parameter information passes the verification, generating unique protocol content beginning with a preset applet identification according to the basic parameter information, and storing the unique protocol content in a database. And sending the protocol content to the development terminal.
According to a third aspect of the present disclosure, there is provided a method of opening an applet across hosts, comprising: and identifying the text content in response to detecting that the text protocol or the scanning code of the applet is clicked in the host to identify the two-dimensional code picture. If the text content starts with a predetermined applet identification, the applet SDK is invoked to send the text content to the server. And receiving basic parameter information of an applet calling protocol returned by the server. And calling the applet SDK to download the applet package according to the basic parameter information.
According to a fourth aspect of the present disclosure, there is provided an apparatus for opening an applet across hosts, comprising: and a first transmission unit configured to transmit basic parameter information of a call-up protocol of the generated applet to the server. The first receiving unit is configured to receive protocol content of the applet returned by the server. And the release unit is configured to release the protocol content for access by the user side.
According to a fifth aspect of the present disclosure, there is provided an apparatus for opening an applet across hosts, comprising: and the second receiving unit is configured to receive basic parameter information of the calling protocol of the generation applet, which is sent by the development end. And a verification unit configured to verify the basic parameter information. And the generation unit is configured to generate unique protocol content beginning with a preset applet identification according to the basic parameter information and store the unique protocol content in the database if the basic parameter information passes the verification. And the second sending unit is configured to send the protocol content to the originating terminal.
According to a sixth aspect of the present disclosure, there is provided an apparatus for opening an applet across hosts, comprising: and the identification unit is configured to identify the text content in response to detecting that the text protocol or the code scanning identification two-dimensional code picture of the applet is clicked in the host. And a third transmitting unit configured to invoke the applet SDK to transmit the text content to the server if the text content starts with a predetermined applet identification. And the third receiving unit is configured to receive basic parameter information of an applet calling protocol returned by the server. And the downloading unit is configured to call the applet SDK to download the applet package according to the basic parameter information.
According to a seventh aspect of the present disclosure, there is provided an electronic device for opening an applet across hosts, comprising: at least one processor. And a memory communicatively coupled to the at least one processor. Wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the first to third aspects.
According to an eighth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of any one of the first to third aspects.
According to a ninth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of any one of the first to third aspects.
According to the embodiment of the application, the applet of the same calling protocol can be identified and opened across hosts, the host calling applet logic is unified, and the applet calling protocol is simplified.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;
FIG. 2 is a flow diagram of one embodiment of a method of cross-host opening an applet as applied to a developer in accordance with the present disclosure;
FIG. 3 is a flow chart of one embodiment of a method of cross-hosting an open applet as applied to a server according to the present disclosure;
FIG. 4 is a flow chart of one embodiment of a method of cross-host opening an applet as applied to a client according to the present disclosure;
FIG. 5 is a schematic illustration of one application scenario of a method of cross-host opening an applet in accordance with the present disclosure;
FIG. 6 is a schematic diagram of an embodiment of an apparatus for cross-host opening an applet in accordance with the present disclosure applied to a developer;
FIG. 7 is a schematic diagram of an embodiment of an apparatus for cross-hosting an open applet in accordance with the present disclosure applied to a server;
FIG. 8 is a schematic diagram of an embodiment of an apparatus for cross-host opening an applet according to the present disclosure applied to a client;
FIG. 9 is a block diagram of an electronic device for implementing a method of cross-host opening an applet in an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
FIG. 1 illustrates an exemplary system architecture 100 of an embodiment of a cross-host applet opening method or device to which the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include an originating terminal 101, a server 102, a client 103, and a network platform 104. The network platform 104 may communicate with each other through a wired network or a wireless network, which is not limited herein, by the originating terminal 101, the server 102, and the client terminal 103.
The developer uses the development end to develop the applet, and then sends the basic parameter information of the call-up protocol of the applet to the server. The server generates the protocol content (text protocol or two-dimension code picture) of the applet and returns the protocol content to the development terminal. The initiator publishes the protocol content of the applet on the network platform 104. For example, in certain web pages.
The user terminal 103 may have various communication client applications installed thereon, such as an applet SDK, a web browser application, a shopping class application, a search class application, an instant messaging tool, a mailbox client, social platform software, and the like. The user can click the link of the text protocol or scan the two-dimension code picture to identify the header of the protocol content through the user terminal, if the protocol header is the preset content, the user terminal sends the protocol content to the server for analysis, and the server returns the analyzed complete basic parameter information to the user terminal. The SDK of the user terminal can call the applet according to the complete basic parameter information.
The server may be hardware or software. When the server is hardware, the server may be implemented as a distributed server cluster formed by a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules (e.g., a plurality of software or software modules for providing distributed services), or as a single software or software module. The present application is not particularly limited herein. The server may also be a server of a distributed system or a server that incorporates a blockchain. The server can also be a cloud server, or an intelligent cloud computing server or an intelligent cloud host with artificial intelligence technology.
It should be noted that, the method for opening the applet across hosts provided in the embodiments of the present disclosure is generally executed by the development end 101, the server 102, and the user end 103, and accordingly, the devices for opening the applet across hosts are generally disposed in the development end 101, the server 102, and the user end 103.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. Any number of developing terminals, servers and clients can be provided according to the implementation requirements.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method of cross-host opening an applet as applied to a developer in accordance with the present disclosure is shown. The method for opening the applet across hosts comprises the following steps:
step 201, basic parameter information of a calling protocol of a generated applet is sent to a server.
In this embodiment, the execution body (for example, the development end shown in fig. 1) of the method for opening the applet across hosts may send basic parameter information of the call-up protocol of the applet to the server through a wired connection manner or a wireless connection manner. The basic parameter information is used to represent the source address of the applet and is represented by a set of character strings.
Alternatively, the basic parameter information may be composed of three parts: applet application identification, open path, and open parameters. As shown in fig. 1, the applet application identifier is AppKey, the open path is page, and the open parameter is query. Therefore, transcoding can be carried out aiming at different components, so that the transcoding process is more standard, the decoding time is reduced, and the efficiency of generating a protocol is improved.
Step 202, receiving the protocol content of the applet returned by the server.
In this embodiment, the server executes steps 301 and 302 after receiving the basic parameter information, and generates protocol contents. The protocol content may include at least one of the following forms: text protocol, two-dimensional code picture. The text protocol is a set of character strings after converting basic parameter information. And converting the text protocol into a two-dimensional code picture through the prior art. Protocol contents in various formats are supported, so that the access of a user terminal is facilitated.
And 203, publishing the protocol content for access by the user side.
In this embodiment, the protocol content may be published to a platform such as a web page or public number, and accessed by the user. The method can be accessed by clicking a text protocol link or by scanning a two-dimensional code picture.
The method provided by the embodiment of the disclosure can convert the basic parameter information of the calling protocol of the applet into the protocol content which can be identified by various hosts, and the applet can be normally called in any host.
With continued reference to FIG. 3, a flow 300 of one embodiment of a method of cross-hosting an open applet applied to a server according to the present disclosure is shown. The method for opening the applet across hosts comprises the following steps:
step 301, receiving basic parameter information of a calling protocol of a generating applet sent by a development terminal.
In this embodiment, the execution body (for example, the server shown in fig. 1) of the method for opening the applet across hosts may receive, by a wired connection manner or a wireless connection manner, the basic parameter information of the call-up protocol of the applet sent by the development terminal. The basic parameter information is used to represent the source address of the applet and is represented by a set of character strings.
Alternatively, the basic parameter information may be composed of three parts: applet application identification, open path, and open parameters. As shown in fig. 1, the applet application identifier is AppKey, the open path is page, and the open parameter is query.
Step 302, the basic parameter information is verified.
In this embodiment, the validity of the basic parameter may be verified, for example, to verify whether the developer has development authority of AppKey. And verifying whether the page really exists, verifying the validity of the query and the like.
Step 303, if the basic parameter information passes the verification, generating unique protocol content beginning with a predetermined applet identification according to the basic parameter information, and storing the unique protocol content in a database.
In this embodiment, if the basic parameter information passes the verification, it is indicated that the development end has authority to generate the protocol content. The protocol content is a text protocol, originally in the form of a string, with a predetermined applet identification added to the basic parameter information. For example, the protocol header may be swan:///. The protocol content is stored in a database of the server to facilitate subsequent queries.
Alternatively, the server may convert the generated text protocol into a two-dimensional code picture. And storing the two-dimensional code pictures in a database.
Alternatively, if the length of the basic parameter information is greater than a predetermined threshold, the basic parameter information may be converted into a unique short parameter having a length smaller than the predetermined threshold, and the parameter mapping relation before and after the conversion may be saved. The conversion process may be a random generation of unique short parameters, e.g., converting a very long AppKey into a 4 byte short parameter. Short parameters may also be generated according to a certain rule, for example, long parameters are converted into short parameters by using a coding manner. This shortens the tune-up protocol, which is not only aesthetically pleasing, but also prevents exceeding the maximum length of the HTTP standard (e.g., IE browser URL limit length 2083).
And step 304, transmitting the protocol content to the development terminal.
In this embodiment, the protocol content generated in step 303 is sent to the initiator. For release by the development terminal. The server can directly send the text protocol and the two-dimension code picture. Alternatively, in order to alleviate the processing pressure of the server, the server may generate only the text protocol, directly send the text protocol to the development terminal, and the development terminal itself converts the text protocol into the two-dimensional code picture.
In some optional implementations of the present embodiment, the method further includes: receiving text content sent by an applet SDK of a user; inquiring basic parameter information of a calling protocol of the applet from a database according to the text content; and returning the basic parameter information to the user side. When the user side accesses the protocol of the applet, the original basic parameter information can be obtained by analyzing the protocol through a server. When the server generates the protocol content, the corresponding relation between the original basic parameter information and the protocol content is stored in a database, and when the text content of the user side needs to be analyzed, the basic parameter information corresponding to the text content is directly matched and inquired from the database. And then returning the basic parameter information to the user side. Therefore, the analysis of text content accessed by the user side is realized, the protocol of the applet can be identified no matter what host is, and the function of opening the applet across hosts is realized.
The method provided by the embodiment of the disclosure can convert the basic parameter information of the calling protocol of the applet into the protocol content which can be identified by various hosts, and the applet can be normally called in any host. And can prevent the excessive long protocol of tuning up, unable to use normally.
With continued reference to fig. 4, a flow 400 of one embodiment of a method of cross-host opening an applet as applied to a client according to the present disclosure is shown. The method for opening the applet across hosts comprises the following steps:
in step 401, text content is identified in response to detecting that a text protocol or a scan code of an applet is clicked in a host to identify a two-dimensional code picture.
In this embodiment, the user may access the protocol content published by the development end through the execution body of the method of opening the applet across hosts (e.g., the user end shown in fig. 1). Two-dimensional code pictures can be identified by clicking on the text protocol or the scan code of the applet in the host. The host refers to a member in the applet source opening alliance, is accessed to the applet SDK, and can support iOS or Android application of normally opening hundred intelligent applets. Clicking the text protocol can identify a group of character strings as text content, scanning the two-dimensional code picture, and converting the two-dimensional code into the character strings as text content.
In step 402, if the text content starts with a predetermined applet identification, the applet SDK is invoked to send the text content to the server.
In this embodiment, the text content is character string matched from scratch with a predetermined applet identification, and if a complete match is made, it is interpreted that the text content is server-generated protocol content. The parsing by the server is required. The host invokes the applet SDK to send the text content to the server.
Step 403, receiving basic parameter information of an applet calling protocol returned by the server.
In this embodiment, when the server generates the protocol content, the corresponding relation between the original basic parameter information and the protocol content is stored in the database, and when the text content to be analyzed sent by the user terminal is received, the basic parameter information corresponding to the text content is directly matched and queried from the database. And then returning the basic parameter information to the user side.
And step 404, calling the applet SDK to download the applet package according to the basic parameter information.
In this embodiment, the basic parameter information is full path information of the applet, and the applet SDK is called to access the applet package server through the full path information. And acquiring the information of the small program package, downloading and opening the small program package.
The method of the embodiment realizes the analysis of the text content accessed by the user side, so that the protocol of the applet can be identified no matter what host is, and the function of opening the applet across hosts is realized.
With continued reference to fig. 5, fig. 5 is a schematic diagram of an application scenario of the method of opening an applet across hosts according to the present embodiment. In the application scenario of fig. 5, the following is explained in detail in the flowchart:
1. noun interpretation:
1. AppKey, page, query: applet application identification (AppKey), open path (source), open parameter (query)
2. Applet initiation protocol generation service: the function service under the applet platform is responsible for generating an applet calling protocol and ensuring that the generated text protocol is globally unique.
3. Host App: the members in the applet source alliance are connected with the applet SDK, so that the iOS or Android application of the applet can be supported to be normally opened.
4. Applet SDK: applet core framework SDK.
5. Applet initiation protocol identification service: the function service under the applet platform is responsible for identifying and resolving the applet initiation protocol.
6. The applet package service: and the function service under the applet platform is responsible for issuing the applet package information.
2. The steps are as follows:
1. the developer provides basic parameter information needed to generate the call-up protocol, including: appKey, page, query, to applet call protocol generation service.
2. The applet invoking protocol generation service will do the following according to the parameter information: appKey authentication, path verification, query verification, generation of unique protocol content, storage and warehousing, and return to the protocol content (including text protocol and two-dimension code pictures) of the developer.
3. After the developer obtains the protocol content and the two-dimensional code, the developer can generate materials to be put on the market.
4. The user clicks the applet text protocol or the code scanning identification applet two-dimensional code in the host App.
5. After the host App recognizes that the text content starts with a swan:// protocol, the API in the applet SDK is called.
6. The applet SDK provides protocol text to the applet to call a protocol identification service, and the identification service returns the applet full path information after analysis.
7. The applet SDK accesses the applet package service through the applet full path information, acquires the applet package information, downloads and opens the applet package.
8. According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
With further reference to fig. 6, as an implementation of the method shown in the foregoing figures, the present disclosure provides an embodiment of an apparatus for opening an applet across hosts, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied in various electronic devices.
As shown in fig. 6, the apparatus 600 for opening an applet across hosts of the present embodiment includes: a first transmitting unit 601, a first receiving unit 602, and a publishing unit 603. Wherein the first sending unit 601 is configured to send basic parameter information of a tune-up protocol of the generated applet to the server. The first receiving unit 602 is configured to receive the protocol content of the applet returned by the server. The publishing unit 603 is configured to publish the protocol content for access by the user side.
In some optional implementations of this embodiment, the basic parameter information includes: applet application identification, open path, and open parameters.
In some optional implementations of the present embodiment, the protocol content includes text protocols and/or two-dimensional code pictures.
With further reference to fig. 7, as an implementation of the method shown in the foregoing figures, the present disclosure provides an embodiment of an apparatus for opening an applet across hosts, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 3, and the apparatus may be specifically applied in various electronic devices.
As shown in fig. 7, the apparatus 700 for opening an applet across hosts of the present embodiment includes: a second receiving unit 701, an authentication unit 702, a generating unit 703, and a second transmitting unit 704. The second receiving unit 701 is configured to receive basic parameter information of a calling protocol of the generating applet sent by the development end. The verification unit 702 is configured to verify the basic parameter information. The generating unit 703 is configured to generate unique protocol content beginning with a predetermined applet identification based on the basic parameter information and store the unique protocol content in the database if the basic parameter information passes the verification. The second transmitting unit 704 is configured to transmit the protocol content to the originating terminal.
In some optional implementations of the present embodiment, the generating unit 703 is further configured to: and converting the basic parameter information into a unique short parameter with the length smaller than a preset threshold value, and storing the parameter mapping relation before and after conversion. After adding a predetermined applet identification as a protocol header before the short parameters, a unique protocol content is generated.
In some optional implementations of the present embodiment, the apparatus 700 further includes a query unit (not shown in the drawings) configured to: and receiving text content sent by the applet SDK of the user. And inquiring basic parameter information of the calling protocol of the applet from the database according to the text content. And returning the basic parameter information to the user side.
With further reference to fig. 8, as an implementation of the method shown in the foregoing figures, the present disclosure provides an embodiment of an apparatus for opening an applet across hosts, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 4, and the apparatus may be specifically applied in various electronic devices.
As shown in fig. 8, the apparatus 800 for opening an applet across hosts of the present embodiment includes: an identification unit 801, a third transmission unit 802, a third reception unit 803, and a download unit 804. Wherein, the identifying unit 801 is configured to identify the text content in response to detecting that the text protocol or the scan code of the applet is clicked in the host identifies the two-dimensional code picture. The third sending unit 802 is configured to invoke the applet SDK to send the text content to the server if the text content starts with a predetermined applet identification. And a third receiving unit 803 configured to receive basic parameter information of the calling protocol of the applet returned by the server. And a downloading unit 804 configured to invoke the applet SDK to download the applet package according to the basic parameter information.
Fig. 9 shows a schematic block diagram of an example electronic device 900 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 9, the apparatus 900 includes a computing unit 901 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 902 or a computer program loaded from a storage unit 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other by a bus 904. An input/output (I/O) interface 905 is also connected to the bus 904.
Various components in device 900 are connected to I/O interface 905, including: an input unit 906 such as a keyboard, a mouse, or the like; an output unit 907 such as various types of displays, speakers, and the like; a storage unit 908 such as a magnetic disk, an optical disk, or the like; and a communication unit 909 such as a network card, modem, wireless communication transceiver, or the like. The communication unit 909 allows the device 900 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunications networks.
The computing unit 901 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 901 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 performs the various methods and processes described above, such as method opening an applet across hosts. For example, in some embodiments, the method cross-host opening applet may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 908. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 900 via the ROM 902 and/or the communication unit 909. When the computer program is loaded into RAM 903 and executed by the computing unit 901, one or more steps of the method described above to open an applet across hosts may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to execute the method cross-host open applet by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a server of a distributed system or a server that incorporates a blockchain. The server can also be a cloud server, or an intelligent cloud computing server or an intelligent cloud host with artificial intelligence technology. The server may be a server of a distributed system or a server that incorporates a blockchain. The server can also be a cloud server, or an intelligent cloud computing server or an intelligent cloud host with artificial intelligence technology.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.
Claims (12)
1. A method for opening an applet across hosts, applied to a server, comprising:
basic parameter information of a calling protocol of a generated applet, which is sent by a development terminal, is received;
verifying the basic parameter information;
if the basic parameter information passes the verification, generating unique protocol content beginning with a preset applet mark according to the basic parameter information, and storing the unique protocol content into a database;
transmitting the protocol content to the development terminal;
receiving text content sent by an applet SDK of a user;
inquiring basic parameter information of a calling protocol of an applet from the database according to the text content;
returning the basic parameter information to the user side, wherein the original basic parameter information can be obtained only by analyzing the basic parameter information through a server when the user side accesses the protocol of the applet, the server stores the corresponding relation between the original basic parameter information and the protocol content in a database when generating the protocol content, and the basic parameter information corresponding to the text content is directly matched and inquired from the database when the text content of the user side needs to be analyzed;
wherein the generating unique protocol content starting with a predetermined applet identification according to the basic parameter information comprises:
converting the basic parameter information into a unique short parameter with the length smaller than a preset threshold value, and storing the parameter mapping relation before and after conversion;
and adding a preset applet identification as a protocol header before the short parameter to generate unique protocol content.
2. A method for opening an applet across hosts, applied to a development terminal, comprising:
transmitting basic parameter information of a call-up protocol of a generated applet to a server, so that the server generates protocol contents of the applet according to the method of claim 1;
receiving protocol content of an applet returned by the server;
and publishing the protocol content for access by the user side.
3. The method of claim 2, wherein the basic parameter information comprises: applet application identification, open path, and open parameters.
4. The method of claim 2, wherein the protocol content comprises a text protocol and/or a two-dimensional code picture.
5. A method for opening an applet across hosts is applied to a user side and comprises the following steps:
identifying a two-dimensional code picture in response to detecting a text protocol or a scanning code of clicking an applet in a host, and identifying text content;
if the text content starts with a preset applet identification, calling an applet SDK to send the text content to a server, so that the server queries basic parameter information of an applet calling protocol according to the method of claim 1;
basic parameter information of an applet calling protocol returned by the server is received;
and calling an applet SDK to download an applet package according to the basic parameter information.
6. An apparatus for opening an applet across hosts, applied to a server, comprising:
the second receiving unit is configured to receive basic parameter information of a calling protocol of the generation applet, which is sent by the development terminal;
a verification unit configured to verify the basic parameter information;
a generation unit configured to generate unique protocol content starting with a predetermined applet identification according to the basic parameter information if the basic parameter information passes verification, and store the unique protocol content in a database;
a second transmitting unit configured to transmit the protocol content to the development terminal;
the apparatus further comprises a querying unit configured to:
receiving text content sent by an applet SDK of a user;
inquiring basic parameter information of a calling protocol of an applet from the database according to the text content;
returning the basic parameter information to the user side, wherein the original basic parameter information can be obtained only by analyzing the basic parameter information through a server when the user side accesses the protocol of the applet, the server stores the corresponding relation between the original basic parameter information and the protocol content in a database when generating the protocol content, and the basic parameter information corresponding to the text content is directly matched and inquired from the database when the text content of the user side needs to be analyzed;
wherein the generating unit is further configured to:
converting the basic parameter information into a unique short parameter with the length smaller than a preset threshold value, and storing the parameter mapping relation before and after conversion;
and adding a preset applet identification as a protocol header before the short parameter to generate unique protocol content.
7. An apparatus for opening an applet across hosts, applied to a development terminal, comprising:
a first transmitting unit configured to transmit basic parameter information of a call-up protocol of a generated applet to a server, so that the server generates protocol contents of the applet according to the method of claim 1;
the first receiving unit is configured to receive the protocol content of the applet returned by the server;
and the release unit is configured to release the protocol content for access by the user side.
8. The apparatus of claim 7, wherein the basic parameter information comprises: applet application identification, open path, and open parameters.
9. The apparatus of claim 7, wherein the protocol content comprises a text protocol and/or a two-dimensional code picture.
10. An apparatus for opening an applet across hosts, applied to a user side, comprises:
an identification unit configured to identify a two-dimensional code picture in response to detecting a text protocol or a scan code of clicking an applet in a host, identifying text content;
a third transmitting unit configured to invoke an applet SDK to transmit the text content to a server if the text content starts with a predetermined applet identification, so that the server inquires basic parameter information of an call-up protocol of an applet according to the method of claim 1;
the third receiving unit is configured to receive basic parameter information of an invoking protocol of the applet returned by the server;
and the downloading unit is configured to call the applet SDK to download the applet package according to the basic parameter information.
11. An electronic device for opening an applet across hosts, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011561687.8A CN112650601B (en) | 2020-12-25 | 2020-12-25 | Method, apparatus, device, storage medium, and program for opening applet across hosts |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011561687.8A CN112650601B (en) | 2020-12-25 | 2020-12-25 | Method, apparatus, device, storage medium, and program for opening applet across hosts |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112650601A CN112650601A (en) | 2021-04-13 |
CN112650601B true CN112650601B (en) | 2023-08-11 |
Family
ID=75362956
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011561687.8A Active CN112650601B (en) | 2020-12-25 | 2020-12-25 | Method, apparatus, device, storage medium, and program for opening applet across hosts |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112650601B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007172098A (en) * | 2005-12-20 | 2007-07-05 | Hitachi Information Systems Ltd | Information processing system and information processing server device |
CN109086097A (en) * | 2018-07-03 | 2018-12-25 | 百度在线网络技术(北京)有限公司 | A kind of starting method, apparatus, server and the storage medium of small routine |
CN111176752A (en) * | 2019-12-20 | 2020-05-19 | 汪佐怀 | Method and device for embedding window applet in browser page |
CN111400722A (en) * | 2020-03-25 | 2020-07-10 | 深圳市腾讯网域计算机网络有限公司 | Method, apparatus, computer device and storage medium for scanning small program |
CN111478956A (en) * | 2020-04-01 | 2020-07-31 | 百度在线网络技术(北京)有限公司 | Deployment and preview method and device of small program package |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040255289A1 (en) * | 2003-06-11 | 2004-12-16 | Citycites.Com Corp. | Remote access software solution for rapidly deploying a desktop |
US9002993B2 (en) * | 2011-03-28 | 2015-04-07 | Greenwave Systems Pte. Ltd. | Dynamic configuration of a client-server relationship |
-
2020
- 2020-12-25 CN CN202011561687.8A patent/CN112650601B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007172098A (en) * | 2005-12-20 | 2007-07-05 | Hitachi Information Systems Ltd | Information processing system and information processing server device |
CN109086097A (en) * | 2018-07-03 | 2018-12-25 | 百度在线网络技术(北京)有限公司 | A kind of starting method, apparatus, server and the storage medium of small routine |
CN111176752A (en) * | 2019-12-20 | 2020-05-19 | 汪佐怀 | Method and device for embedding window applet in browser page |
CN111400722A (en) * | 2020-03-25 | 2020-07-10 | 深圳市腾讯网域计算机网络有限公司 | Method, apparatus, computer device and storage medium for scanning small program |
CN111478956A (en) * | 2020-04-01 | 2020-07-31 | 百度在线网络技术(北京)有限公司 | Deployment and preview method and device of small program package |
Non-Patent Citations (1)
Title |
---|
基于iOS平台手机客户端与服务器通信的研究;朱佰泽;梁卫;卜庆凯;王正彦;;青岛大学学报(工程技术版)(第03期);65-69 * |
Also Published As
Publication number | Publication date |
---|---|
CN112650601A (en) | 2021-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113364853B (en) | Business service system, business request method and gateway equipment | |
CN107360261B (en) | HTTP request processing method and device and electronic equipment | |
CN111045833B (en) | Interface calling method and device | |
CN109815107B (en) | Method and device for automatic testing | |
CN112507005B (en) | Method and device for processing message | |
CN110471848B (en) | Method and device for dynamically returning message | |
CN110704200B (en) | Method and device for converting calling interface | |
CN110109983B (en) | Method and device for operating Redis database | |
CN108363588B (en) | Method for realizing interaction between web and native function, electronic device and readable storage medium | |
CN109739872B (en) | Implementation method, system and operation method for SQL sentence processing | |
CN103873918A (en) | Picture processing method, device and terminal | |
CN113973139B (en) | Message processing method and device | |
CN113076153B (en) | Interface calling method and device | |
CN113806104A (en) | Interface access request processing method, API gateway, server and system | |
CN117850753B (en) | Method, device, equipment and medium for generating interface code based on someip matrix | |
CN113076294A (en) | Information sharing method and device | |
CN105847319A (en) | Mobile terminal network request method and system | |
CN114979295A (en) | Gateway management method and device | |
CN113326060A (en) | Service request processing method, device and system and service configuration method and device | |
CN112650601B (en) | Method, apparatus, device, storage medium, and program for opening applet across hosts | |
CN116561013B (en) | Test methods, devices, electronic equipment and media based on the target service framework | |
CN113779018B (en) | A data processing method and device | |
CN113760343A (en) | Method and device for processing service request | |
CN115883676A (en) | A data packet transmission method, device, electronic equipment and storage medium | |
CN114924881A (en) | Method and device for querying state data result |
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 |