CN110377440B - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN110377440B
CN110377440B CN201910680834.4A CN201910680834A CN110377440B CN 110377440 B CN110377440 B CN 110377440B CN 201910680834 A CN201910680834 A CN 201910680834A CN 110377440 B CN110377440 B CN 110377440B
Authority
CN
China
Prior art keywords
applet
information
server
target
host application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910680834.4A
Other languages
Chinese (zh)
Other versions
CN110377440A (en
Inventor
苗景磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network 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 Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201910680834.4A priority Critical patent/CN110377440B/en
Publication of CN110377440A publication Critical patent/CN110377440A/en
Application granted granted Critical
Publication of CN110377440B publication Critical patent/CN110377440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application discloses an information processing method and device. One embodiment of the method comprises: in response to a target host application in the at least one host application detecting a start operation on the applet, acquiring a field generated in the target host application; analyzing the field, and determining a server indicated by a header in the field as a target server, wherein the target server is a server except a platform server of the applet running platform; sending an applet information request for an applet of the target host application to a target server; and receiving the applet information which is returned by the target server and aims at the target host application. According to the method and the device, the small program information request can be sent through the configuration of the host application, the communication of the terminal device between any host application and the server except the platform server of the small program running platform is achieved, and therefore the information of the small program hosted in the host application can be flexibly obtained from each server.

Description

Information processing method and device
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to the technical field of internet, and particularly relates to an information processing method and device.
Background
The applet running platform where the applet is located may obtain various information, such as running framework information or an extension package, from a platform server of the applet running platform. In the prior art, the same applet running platform can be hosted in multiple hosting applications.
In the related art, the terminal device cannot acquire the information from a server other than the platform server through the applet running platform of the different host applications, but can receive the information only through the platform server.
Disclosure of Invention
The embodiment of the application provides an information processing method and device.
In a first aspect, an embodiment of the present application provides an information processing method, which is used for a terminal device, where the terminal device installs at least one host application hosted by an applet running platform, and the method includes: in response to a target host application in the at least one host application detecting a start operation on the applet, obtaining a field generated in the target host application, wherein the field comprises a header of a specified protocol and an identification of the applet, and the header is configured in advance for the target host application; analyzing the field, and determining a server indicated by a header in the field as a target server, wherein the target server is a server except a platform server of the applet running platform; sending an applet information request for an applet of the target host application to a target server, wherein the applet information request includes an identification of the applet; and receiving the applet information which is returned by the target server and aims at the target host application.
In some embodiments, receiving applet information returned by the target server for the target host application includes: and receiving the applet information returned by the target server based on the applet information request through a package management service module of the target host application, wherein the applet information request is sent by the terminal equipment through the package management service module.
In some embodiments, sending an applet information request for an applet of a target hosted application to a target server includes: and calling a preset interface through a packet management service module, and sending an applet information request to a target server so that the server searches and returns applet information based on the applet identifier, wherein the root domain name of the preset interface is configured in advance for the target host application.
In some embodiments, obtaining the fields generated at the target host application includes: splicing the header and the identification of the small program into a field in the target host application, and initiating a processing request to a packet management service module by using the field; and analyzing the field, and determining a server indicated by a header in the field as a target server, wherein the steps of: and analyzing the field and determining a server indicated by a header in the field as a target server through a packet management service module.
In some embodiments, the method further comprises: and acquiring a public key corresponding to the target host application, wherein the applet information is the applet information obtained by encrypting the target server by using the public key.
In some embodiments, after receiving the applet information returned by the target server for the target host application, the method further comprises: decrypting the applet information by using the public key and carrying out integrity check on the applet information; and responding to the applet information passing the integrity check, storing the decryption result and operating the applet.
In some embodiments, sending an applet information request for an applet of a target hosted application to a target server includes: and calling a preset interface through the Software Development Kit (SDK) and sending the applet information request to the target server.
In some embodiments, the applet information request includes at least one of: applet version information, applet information category information.
In some embodiments, the applet information request further includes a request information type; the method further comprises the following steps: responding to the fact that the residual storage space corresponding to the small program is smaller than a preset threshold value, and generating a small program information request comprising the residual space information; and sending an applet information request for the applet of the target hosted application to the target server, comprising: and sending an applet information request to the target server so that the target server selects the applet information from the various types of information to be returned based on the space residual information and the selection priority of the different types of information, wherein the various types of information at least comprise information to be displayed and update information of the applet.
In a second aspect, an embodiment of the present application provides an information processing apparatus, configured to be used in a terminal device, where the terminal device installs at least one host application hosted by an applet running platform, and the apparatus includes: an obtaining unit configured to obtain a field generated in a target host application in response to a target host application in the at least one host application detecting a start operation on the applet, wherein the field includes a header specifying a protocol and an identifier of the applet, and the header is configured in advance for the target host application; the analysis unit is configured to analyze the field and determine that a server indicated by a header in the field is a target server, wherein the target server is a server except a platform server of the applet running platform; a sending unit configured to send an applet information request for an applet of a target hosted application to a target server, wherein the applet information request includes an identification of the applet; and the receiving unit is configured to receive the applet information which is returned by the target server and aims at the target host application.
In some embodiments, the receiving unit is configured to: and receiving the applet information returned by the target server based on the applet information request through a package management service module of the target host application, wherein the applet information request is sent by the terminal equipment through the package management service module.
In some embodiments, the sending unit is configured to: and calling a preset interface through a packet management service module, and sending an applet information request to a target server so that the server searches and returns applet information based on the applet identifier, wherein the root domain name of the preset interface is configured in advance for the target host application.
In some embodiments, the obtaining unit is further configured to: splicing the header and the identification of the small program into a field in the target host application, and initiating a processing request to a packet management service module by using the field; and the parsing unit is further configured to parse the field and determine the server indicated by the header in the field as the target server through the packet management service module.
In some embodiments, the apparatus further comprises: and the acquisition unit is configured to acquire a public key corresponding to the target host application, wherein the applet information is obtained by encrypting the applet information by using the public key by the target server.
In some embodiments, the apparatus further comprises: the decryption unit is configured to decrypt the applet information by using the public key and carry out integrity check on the applet information; and the storage unit is configured to respond to the small program information passing the integrity check, store the decryption result and operate the small program.
In some embodiments, the sending unit is further configured to: and calling a preset interface through the Software Development Kit (SDK) and sending the applet information request to the target server.
In some embodiments, the applet information request includes at least one of: applet version information, applet information category information.
In some embodiments, the applet information request further includes a request information type; the device still includes: the generating unit is configured to respond that the residual storage space corresponding to the small program is smaller than a preset threshold value, and generate a small program information request comprising the space residual information; and a transmitting unit further configured to: and sending an applet information request to the target server so that the target server selects the applet information from the various types of information to be returned based on the space residual information and the selection priority of the different types of information, wherein the various types of information at least comprise information to be displayed and update information of the applet.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device for storing one or more programs which, when executed by one or more processors, cause the one or more processors to implement a method as in any embodiment of the information processing method.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements a method as in any one of the embodiments of the information processing method.
In the information processing scheme provided in the embodiment of the present application, first, in response to a target host application in at least one host application detecting a start operation on an applet, a field generated in the target host application is obtained, where the field includes a header specifying a protocol and an identifier of the applet, and the header is configured in advance for the target host application. And then, analyzing the field, and determining that the server indicated by the header in the field is a target server, wherein the target server is a server except the platform server of the applet running platform. Then, an applet information request for the applet of the target host application is sent to the target server, wherein the applet information request includes an identification of the applet. And finally, receiving the applet information which is returned by the target server and aims at the target host application. According to the method and the device, the small program information request can be sent through the configuration of the host application, communication between the terminal device and the servers, except for the platform server of the small program running platform, through any host application is achieved, and therefore the information of the small program hosted in the host application can be flexibly obtained from each server. In addition, the terminal device accurately judges the target server by the header of the target host application in the field, thereby ensuring that the relevant information of the applet hosted by the target host application can be received from the target server.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of an information processing method according to the present application;
FIG. 3 is a flow diagram of yet another embodiment of an information processing method according to the present application;
FIG. 4 is a schematic block diagram of one embodiment of an information processing apparatus according to the present application;
FIG. 5 is a schematic block diagram of a computer system suitable for use in implementing an electronic device according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the information processing method or information processing apparatus of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various communication client applications, such as an information processing application, a video application, a live application, an instant messaging tool, a mailbox client, social platform software, and the like, may be installed on the terminal devices 101, 102, and 103.
Here, the terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for the terminal devices 101, 102, 103. The background server may analyze and otherwise process the received data such as the applet information request, and feed back a processing result (e.g., the applet information) to the terminal device.
It should be noted that the information processing method provided in the embodiment of the present application is generally executed by the terminal devices 101, 102, and 103, and accordingly, the information processing apparatus may be provided in the terminal devices 101, 102, and 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of an information processing method according to the present application is shown. The information processing method is used for a terminal device, wherein the terminal device is provided with at least one host application hosted by an applet running platform, and the method can comprise the following steps:
step 201, in response to a target host application in at least one host application detecting a start operation on an applet, acquiring a field generated in the target host application, wherein the field includes a header of a specified protocol and an identifier of the applet, and the header is configured in advance for the target host application.
In this embodiment, an execution subject of the information processing method (e.g., a terminal device shown in fig. 1) may acquire a field generated at a target host application from a local or other electronic device in response to detecting a start operation of an applet. The header may be previously configured by the terminal device or other electronic device for the target hosting application.
In practice, the executing entity may configure, i.e., determine configuration information, each host application of the applet running platform in advance. The configuration information is a header of a specific protocol, and the configuration information may further include a root domain name of a preset interface, and the configuration information of different host applications is different.
The applet running platform is used for providing a running environment for the applet in the host application, and is a necessary condition for the applet to be started and run in the host application. The applet running platform can provide the applet with templates of interfaces to be displayed, a browser and personalized services for different host applications or different operating systems.
Step 202, analyzing the field, and determining that the server indicated by the header in the field is a target server, wherein the target server is a server other than a platform server of the applet running platform.
In this embodiment, the execution body may parse the field to determine the header in the field, and determine the server indicated by the header. Here, since the header is previously configured for the target-hosting application, the server indicated by the header is a server for transceiving information related to the target-hosting application.
The platform server of the applet running platform refers to a server mainly or completely used for processing relevant information of the applet running platform. The target server is a server other than the platform server of the applet running platform, and the target server may also be configured to receive and send various pieces of information related to the applet of the applet running platform, and specifically may be a platform server of another applet running platform.
Step 203, sending an applet information request for the applet of the target host application to the target server, wherein the applet information request includes the identification of the applet.
In this embodiment, the execution agent may send an applet information request to the target server. Specifically, the applet hosts a target host application of the at least one host application. The applet information request here is for requesting the server to return the applet information related to the applet. The applet information may include the operating framework information of the applet, and may also include update information, such as an extension packet of the applet. Alternatively, the applet information may also include a message to be displayed. The above-mentioned specified protocol may refer to a communication protocol for the terminal device and the server to communicate.
In some optional implementations of this embodiment, step 201 may include: and calling a preset interface through the Software Development Kit (SDK) and sending the applet information request to the target server.
In these optional implementation manners, the execution main body may call a preset interface through an SDK of the terminal device to implement sending of the applet information request. These implementations enable efficient and accurate delivery of applet information requests via the SDK.
In some optional implementations of this embodiment, the applet information request includes at least one of: applet version information, applet information category information.
In these alternative implementations, the applet may exist in a plurality of different versions, and the applet version information may be used to indicate the version of the applet hosted by the target host application. The applet information category information is information indicating a category of the applet information. For example, the category information of the applet information may include update information, a message to be displayed to the user, and the like. The terminal device may send an applet information request requesting that the target server only return an applet information of a certain category. For example, in the case where the remaining storage space of the terminal device is insufficient, the type of applet information requested by the terminal device may be a message to be displayed.
In these implementations, the target server can utilize the uploaded version information to more accurately return applet information applicable to the applet of the target host application. In addition, the target server can return the applet information which meets the specific conditions of the terminal equipment according to the requirements of the terminal equipment through the uploaded applet information category information.
In some optional implementations of this embodiment, the applet information request further includes a request information type; the method further comprises the following steps: responding to the fact that the information residual storage space of the small program is smaller than a preset threshold value, and generating a small program information request comprising space residual information; and step 201, may include: and sending an applet information request to the target server so that the target server selects the applet information from the various types of information to be returned based on the space residual information and the selection priority of the different types of information, wherein the various types of information at least comprise information to be displayed and update information of the applet.
In these optional implementation manners, the execution main body may generate an applet information request including the space remaining information when the remaining storage space corresponding to the applet is smaller than a preset threshold. Specifically, the remaining storage space corresponding to the applet refers to a storage space in the terminal device for storing the applet information of the applet. The space remaining information is used to indicate the remaining storage space.
In practice, the amount of space that different types of applet information need to occupy is different. For example, the message to be displayed needs to occupy less space than the updated information of the applet. For each type of applet information, the smaller the memory space required to be occupied is, the higher the selection priority of the type of applet information is.
Specifically, the target server may select the applet information in a variety of ways. For example, the target server may select the applet information with the highest priority when the remaining space of the applet information indicated by the space remaining information is smaller than a preset first value. And when the residual space of the small program information is only smaller than a preset second value, selecting the small program information with the highest priority and the small program information with the second highest priority. Where the second value is greater than the first value. In addition, the execution main body can also compare the residual space with the sum of the storage space occupied by the applet information to be returned. If the remaining space of the applet information is large (including equal), all the applet information to be returned is returned. And if the residual space of the small program information is smaller, determining the sum of the storage spaces occupied by the small program information except the lowest priority, and judging the size between the residual space and the sum. By analogy, the target server can remove the size of the storage space occupied by the applet information from the sum of the storage spaces occupied by all the applet information to be returned according to the sequence of the priorities from low to high until the obtained removal result is smaller than the residual space. Then, the target server may use the applet information corresponding to the removal result as the selected applet information.
The execution main body can send the space surplus information under the condition that the storage space surplus of the applet information in the terminal equipment is insufficient, so that the target server gives consideration to the storage space and returns the information with higher priority. Therefore, the implementation modes avoid the problem that the target server returns all the applet information and the terminal equipment cannot receive the applet information due to insufficient storage space of the terminal equipment.
And 202, receiving the applet information which is returned by the target server and aims at the target host application.
In this embodiment, the execution agent may receive the applet information returned by the target server. Specifically, the returned applet information is the above applet feedback information of the target server for the target host application.
In some optional implementations of this embodiment, the method may further include: and acquiring a public key corresponding to the target host application, wherein the applet information is the applet information obtained by encrypting the target server by using the public key.
In these alternative implementations, the execution body may also obtain a public key. Specifically, the public key corresponds to the target host application, and is used for encrypting and decrypting the related information of the target host application. The applet information is obtained by encrypting the target server by using a public key.
These implementations may utilize the public key to achieve data isolation between the target host application and other host applications, preventing information transceived at the target host application from being used for other host applications.
In some optional application scenarios of these implementations, after step 202, the method may further include: decrypting the applet information by using the public key and carrying out integrity check on the applet information; and responding to the applet information passing the integrity check, storing the decryption result and operating the applet.
In these alternative application scenarios, the execution subject may decrypt the encrypted applet information with the public key after receiving the applet information returned by the target server. And, the execution subject can also carry out integrity check on the received applet information. The integrity check here refers to checking the applet information to determine whether the applet information is complete, that is, whether the applet information is complete information capable of implementing a predetermined function. If the applet information is determined to be complete, the executing entity may store the decrypted result. And, the execution main body may start to run the applet if the preparation process is completed.
The method provided by the above embodiment of the present application can send the applet information request through the configuration of the host application, and implement communication between any host application and a server other than the platform server of the applet running platform by the terminal device, so that the information of the applet hosted by the host application can be flexibly acquired from each server. In addition, the terminal device accurately judges the target server by the header of the target host application in the field, thereby ensuring that the relevant information of the applet hosted by the target host application can be received from the target server.
With further reference to FIG. 3, a flow 300 of yet another embodiment of an information processing method is shown. The process 300 of the information processing method includes the following steps:
step 301, in response to a target host application in at least one host application detecting a start operation on an applet, acquiring a field generated in the target host application, wherein the field includes a header specifying a protocol and an identification of the applet, and the header is configured in advance for the target host application.
In this embodiment, an execution subject of the information processing method (e.g., a terminal device shown in fig. 1) may acquire a field generated at a target host application from a local or other electronic device in response to detecting a start operation of an applet. The header may be previously configured by the terminal device or other electronic device for the target hosting application.
And step 302, analyzing the field, and determining that the server indicated by the header in the field is a target server, wherein the target server is a server except for a platform server of the applet running platform.
In this embodiment, the execution body may parse the field to determine the header in the field, and determine the server indicated by the header. Here, since the header is previously configured for the target-hosting application, the server indicated by the header is a server for transceiving information related to the target-hosting application.
Step 303, sending an applet information request for the applet of the target host application to the target server, wherein the applet information request includes an identification of the applet.
In this embodiment, the execution agent may send an applet information request to the target server. Specifically, the applet hosts a target host application of the at least one host application. The applet information request here is for requesting the server to return the applet information related to the applet. The applet information may include the operating framework information of the applet and may also include the update information.
And step 304, receiving the applet information returned by the target server based on the applet information request through the package management service module of the target host application, wherein the applet information request is sent by the terminal device through the package management service module.
In this embodiment, the execution agent may receive the applet information returned by the target server through the package management service module of the target host application. Specifically, the applet information is information that the target server requests to return based on the applet information. The applet information request is sent by the terminal device through the packet management service module of the target host application. The applet information herein may include the operating framework information of the applet. The applet information may also include update information, such as extension packets for the applet. Alternatively, the applet information may also include messages that need to be presented to the user.
In some optional implementations of this embodiment, step 301 may include: splicing the header and the small program identification into a field in the target host application, and initiating a processing request to a packet management service module of the target host application by using the field; and step 302 may include: and analyzing the field and determining a server indicated by a header in the field as a target server through a packet management service module.
In this embodiment, an execution subject of the information processing method (for example, the terminal device shown in fig. 1) may, in response to detection of a start operation on the applet by a target host application among the at least one host application, splice a header of the specified protocol and an identifier of the applet into a spliced field in the target host application. For example, the header is XX, the identity of the applet is yy, and the concatenation field may be XX _ yy. The execution main body may initiate a processing request to a Packet Management Service (PMS) module of the target host application, so that the packet management Service module processes the spliced fields.
After the packet management service module receives the processing request, the execution main body can analyze the field through the packet management service module and analyze the server indicated by the header.
The implementation modes can reduce the byte number of the small program information request through splicing the fields, thereby reducing the storage space occupied by the small program information request on the terminal equipment and the target server.
In some optional implementations of this embodiment, step 303 may include: and calling a preset interface through a packet management service module, and sending an applet information request to a target server so that the server searches and returns applet information based on the applet identifier, wherein the root domain name of the preset interface is configured in advance for the target host application.
In these optional implementation manners, the execution main body may invoke a preset interface configured in advance for the target host application through the packet management service module, so that the execution main body can communicate with the target server through the packet management service module of the host application.
After the execution main body finds the related information including the applet information through the identification of the applet, the related information can be screened to obtain the applet information, and then packaging and the like can be carried out, so that the applet information to be returned is finally obtained.
The implementation modes can utilize the preset interface configured to the target host application in advance to better realize the communication between the packet management service module of the target host application and the target server.
The embodiment can realize the communication between the packet management service module of the target host application and the target server through the packet management service module of the target host application, and further can realize the communication between different host applications hosted by the applet and each server by utilizing the scheme.
With further reference to fig. 4, as an implementation of the method shown in the above figures, the present application provides an embodiment of an information processing apparatus, which corresponds to the embodiment of the method shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 4, the information processing apparatus 400 of the present embodiment includes: acquisition section 401, analysis section 402, transmission section 403, and reception section 404. The acquiring unit 401 is configured to acquire a field generated in a target host application in response to a target host application in at least one host application detecting a start operation on an applet, where the field includes a header of a specified protocol and an identifier of the applet, and the header is configured in advance for the target host application; the analysis unit 402 is configured to analyze the field and determine that a server indicated by a header in the field is a target server, wherein the target server is a server other than a platform server of the applet running platform; a sending unit 403 configured to send an applet information request for an applet of the target host application to the target server, wherein the applet information request includes an identification of the applet; a receiving unit 404 configured to receive the applet information for the target host application returned by the target server.
In some embodiments, the obtaining unit 401 of the information processing apparatus 400 may obtain the field generated at the target host application from a local or other electronic device in response to detecting a start operation of the applet. The header may be previously configured by the terminal device or other electronic device for the target hosting application.
In some embodiments, parsing unit 402 may parse the field to determine the header in the field and determine the server indicated by the header. Here, since the header is previously configured for the target-hosting application, the server indicated by the header is a server for transceiving information related to the target-hosting application.
In some embodiments, the sending unit 403 may send an applet information request to the target server. Specifically, the applet hosts a target host application of the at least one host application. The applet information request here is for requesting the server to return the applet information related to the applet.
In some embodiments, the receiving unit 404 may receive the applet information returned by the target server. Specifically, the returned applet information is the above applet feedback information of the target server for the target host application.
In some optional implementations of this embodiment, the receiving unit is configured to: and receiving the applet information returned by the target server based on the applet information request sent by the terminal equipment through the packet management service module of the target host application.
In some optional implementations of this embodiment, the sending unit is configured to: and calling a preset interface through a packet management service module, and sending an applet information request to a target server so that the server searches and returns applet information based on the applet identifier, wherein the root domain name of the preset interface is configured in advance for the target host application.
In some optional implementations of this embodiment, the obtaining unit is further configured to: splicing the header and the identification of the small program into a field in the target host application, and initiating a processing request to a packet management service module by using the field; and the parsing unit is further configured to parse the field and determine the server indicated by the header in the field as the target server through the packet management service module.
In some optional implementations of this embodiment, the apparatus further includes: and the acquisition unit is configured to acquire a public key corresponding to the target host application, wherein the applet information is obtained by encrypting the applet information by using the public key by the target server.
In some optional implementations of this embodiment, the apparatus further includes: the decryption unit is configured to decrypt the applet information by using the public key and carry out integrity check on the applet information; and the storage unit is configured to respond to the small program information passing the integrity check, store the decryption result and operate the small program.
In some optional implementations of this embodiment, the sending unit is further configured to: and calling a preset interface through the Software Development Kit (SDK) and sending the applet information request to the target server.
In some optional implementations of this embodiment, the applet information request includes at least one of: applet version information, applet information category information.
In some optional implementations of this embodiment, the applet information request further includes a request information type; the device still includes: the generating unit is configured to respond that the residual storage space corresponding to the small program is smaller than a preset threshold value, and generate a small program information request comprising the space residual information; and a transmitting unit further configured to: and sending an applet information request to the target server so that the target server selects the applet information from the various types of information to be returned based on the space residual information and the selection priority of the different types of information, wherein the various types of information at least comprise information to be displayed and update information of the applet.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 5 may represent one device or may represent multiple devices as desired.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program, when executed by the processing device 501, performs the above-described functions defined in the methods of embodiments of the present disclosure. It should be noted that the computer readable medium of the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having 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. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a parsing unit, a transmission unit, and a reception unit. Where the names of these units do not in some cases constitute a limitation on the unit itself, for example, a receiving unit may also be described as a "unit that receives applet information returned by a target server for a target hosting application".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: in response to a target host application in the at least one host application detecting a start operation on the applet, obtaining a field generated in the target host application, wherein the field comprises a header of a specified protocol and an identification of the applet, and the header is configured in advance for the target host application; analyzing the field, and determining a server indicated by a header in the field as a target server, wherein the target server is a server except a platform server of the applet running platform; sending an applet information request for an applet of the target host application to a target server, wherein the applet information request includes an identification of the applet; and receiving the applet information which is returned by the target server and aims at the target host application.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (11)

1. An information processing method for a terminal device, the terminal device having installed at least one hosted application hosted by an applet running platform, the method comprising:
in response to a target host application in the at least one host application detecting a start-up operation on an applet, obtaining a field generated at the target host application, wherein the field includes a header specifying a protocol and an identification of the applet, the header being previously configured for the target host application;
analyzing the field, and determining that a server indicated by the header in the field is a target server, wherein the target server is a server other than a platform server of the applet running platform, the target server is a platform server of other applet running platforms, the target server is used for receiving and sending various information related to the applet, and the platform server of the applet running platform is a server used for processing the related information of the applet running platform;
sending an applet information request for the applet of the target host application to the target server, wherein the applet information request includes an identification of the applet;
receiving applet information returned by the target server and aiming at the target host application, wherein the applet information comprises at least one of the following items: the method comprises the steps of running framework information of the small program, updating information of the small program and information needing displaying.
2. The method of claim 1, wherein the receiving applet information returned by the target server for the target host application comprises:
and receiving the applet information returned by the target server based on the applet information request through a package management service module of the target host application, wherein the applet information request is sent by the terminal equipment through the package management service module.
3. The method of claim 2, wherein the sending, to the target server, an applet information request for the applet of the target host application comprises:
and calling a preset interface through the packet management service module, and sending the applet information request to the target server so as to enable the server to search and return the applet information based on the identifier of the applet, wherein the root domain name of the preset interface is previously configured for the target host application.
4. The method of claim 2, wherein the obtaining fields generated at the target host application comprises:
splicing the header and the identification of the applet into the field in the target host application, and initiating a processing request to the packet management service module by using the field; and
the parsing the field and determining that the server indicated by the header in the field is a target server includes:
and analyzing the field and determining the server indicated by the header in the field as the target server through the packet management service module.
5. The method of claim 1, wherein the method further comprises:
and acquiring a public key corresponding to the target host application, wherein the applet information is the applet information obtained by encrypting the target server by using the public key.
6. The method of claim 5, wherein after the receiving applet information returned by the target server for the target host application, the method further comprises:
decrypting the applet information by using the public key and carrying out integrity check on the applet information;
and responding to the applet information passing the integrity check, storing a decryption result and operating the applet.
7. The method of claim 1, wherein the sending an applet information request for the applet of the target host application to a target server comprises:
and calling the preset interface through a Software Development Kit (SDK) and sending the applet information request to the target server.
8. The method of claim 1, wherein the applet information request comprises at least one of: applet version information, applet information category information.
9. The method of claim 1, wherein the applet information request further comprises a request information type;
the method further comprises the following steps:
responding to the fact that the residual storage space corresponding to the small program is smaller than a preset threshold value, and generating a small program information request comprising space residual information; and
the sending an applet information request for the applet of the target hosted application to a target server, comprising:
and sending the applet information request to the target server so that the target server selects the applet information from the information of various types to be returned based on the space residual information and the selection priority of the information of different types, wherein the information of various types at least comprises the information to be displayed and the update information of the applet.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-9.
11. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1-9.
CN201910680834.4A 2019-07-26 2019-07-26 Information processing method and device Active CN110377440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910680834.4A CN110377440B (en) 2019-07-26 2019-07-26 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910680834.4A CN110377440B (en) 2019-07-26 2019-07-26 Information processing method and device

Publications (2)

Publication Number Publication Date
CN110377440A CN110377440A (en) 2019-10-25
CN110377440B true CN110377440B (en) 2021-10-15

Family

ID=68256324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910680834.4A Active CN110377440B (en) 2019-07-26 2019-07-26 Information processing method and device

Country Status (1)

Country Link
CN (1) CN110377440B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928706B (en) * 2019-10-30 2023-01-10 北京奇艺世纪科技有限公司 Applet interaction method and device, electronic equipment and storage medium
CN110865855B (en) * 2019-11-18 2023-10-27 百度在线网络技术(北京)有限公司 Applet processing method and related equipment
CN112148345B (en) * 2020-09-28 2023-07-25 北京百度网讯科技有限公司 Method, device, electronic equipment and computer readable medium for transmitting small program package
CN112416613B (en) * 2020-10-23 2022-09-20 腾讯科技(深圳)有限公司 Application data processing method, device, equipment and medium
CN112817656B (en) * 2021-01-29 2024-01-09 北京百度网讯科技有限公司 Applet running method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408696A (en) * 2018-09-30 2019-03-01 上海掌门科技有限公司 It is a kind of for search for boarding program method and apparatus
CN109933442A (en) * 2019-03-04 2019-06-25 上海连尚网络科技有限公司 The means of communication, equipment and computer storage medium between small routine platform
CN109976832A (en) * 2019-03-28 2019-07-05 上海连尚网络科技有限公司 It is a kind of that the method and apparatus of boarding program is provided

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955705B (en) * 2011-08-26 2015-08-19 腾讯科技(深圳)有限公司 A kind of method and system realizing starting mutually between program
CN109271239A (en) * 2018-08-10 2019-01-25 北京达佳互联信息技术有限公司 Method, apparatus, system, equipment and the medium of data processing
CN109491672A (en) * 2018-10-23 2019-03-19 平安普惠企业管理有限公司 Implementation method, device, computer equipment and the storage medium of financial small routine
CN109768961A (en) * 2018-12-12 2019-05-17 平安科技(深圳)有限公司 Wechat small routine login method, device and the storage medium led to based on an account

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408696A (en) * 2018-09-30 2019-03-01 上海掌门科技有限公司 It is a kind of for search for boarding program method and apparatus
CN109933442A (en) * 2019-03-04 2019-06-25 上海连尚网络科技有限公司 The means of communication, equipment and computer storage medium between small routine platform
CN109976832A (en) * 2019-03-28 2019-07-05 上海连尚网络科技有限公司 It is a kind of that the method and apparatus of boarding program is provided

Also Published As

Publication number Publication date
CN110377440A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN110377440B (en) Information processing method and device
CN109995877B (en) Information pushing method and device
CN110007936B (en) Data processing method and device
US20220043898A1 (en) Methods and apparatuses for acquiring information
CN110098998B (en) Method and apparatus for processing information
CN110321738A (en) Information processing method and device
CN111930709B (en) Data storage method, apparatus, electronic device, and computer readable medium
CN108549586B (en) Information processing method and device
CN110753020A (en) Network request processing method and device
CN111435380B (en) Page cross-domain interaction method, system, device and storage device
CN109471713B (en) Method and device for inquiring information
CN112732547B (en) Service testing method and device, storage medium and electronic equipment
CN111787041A (en) Method and apparatus for processing data
CN112257039B (en) Identity attribute adding method and device and electronic equipment
CN114398035A (en) Method, apparatus, device and computer readable medium for providing service using component
CN111367592B (en) Information processing method and device
CN111831530A (en) Test method and device
CN110929233B (en) Information processing method and device
CN113472785B (en) Data processing method and device, electronic equipment and readable storage medium
CN111831531B (en) Test method and device
CN111125676B (en) Joint authorization method and device
CN108811036A (en) Method and apparatus for showing wireless access point information
CN111291199B (en) Information query method and device
CN111835846B (en) Information updating method and device and electronic equipment
CN114513548B (en) Directional call information processing 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
GR01 Patent grant
GR01 Patent grant