CN110377440A - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN110377440A
CN110377440A CN201910680834.4A CN201910680834A CN110377440A CN 110377440 A CN110377440 A CN 110377440A CN 201910680834 A CN201910680834 A CN 201910680834A CN 110377440 A CN110377440 A CN 110377440A
Authority
CN
China
Prior art keywords
small routine
information
server
destination server
target host
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.)
Granted
Application number
CN201910680834.4A
Other languages
Chinese (zh)
Other versions
CN110377440B (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

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 present application discloses information processing method and device.One specific embodiment of this method includes: to detect start-up operation to small routine in response to the target host application at least one host application, obtains the field generated in target host application;Field is parsed, determines that the server that header indicates in field is destination server, wherein destination server is the server other than the Platform Server of small routine operation platform;The small routine information request for the small routine applied for target host is sent to destination server;Receive the small routine information for target host application that destination server returns.The embodiment of the present application can be by the configuration applied to host, send small routine information request, terminal device is realized in any host using the communication between the server other than the Platform Server with small routine operation platform, so as to neatly get the information for the small routine for being hosted by host's application from each server.

Description

Information processing method and device
Technical field
The invention relates to field of computer technology, and in particular at Internet technical field more particularly to information Manage method and apparatus.
Background technique
Small routine operation platform where small routine can obtain various from the Platform Server of the small routine operation platform Information, for example, operation frame information or expanding packet etc..In the prior art, the same small routine operation platform can be parasitic In multiple hosts application.
In the related art, terminal device cannot be by the small routine operation platform that different hosts are applied from Platform Server Other servers in addition get above- mentioned information, but can only receive information by Platform Server.
Summary of the invention
The embodiment of the present application proposes information processing method and device.
In a first aspect, the embodiment of the present application provides a kind of information processing method, it to be used for terminal device, installing terminal equipment At least one host application that small routine operation platform is lodged, method include: in response at least one host application Target host application detect the start-up operation to small routine, obtain the field generated in target host application, wherein field The mark of header and small routine including specified protocol, header are formerly configured to target host application;Field is carried out Parsing determines that the server that header indicates in field is destination server, wherein destination server is small routine operation platform Server other than Platform Server;The small routine information for sending the small routine applied for target host to destination server is asked It asks, wherein small routine information request includes the mark of small routine;Receive destination server return is directed to what target host was applied Small routine information.
In some embodiments, the small routine information for target host application that destination server returns is received, comprising: The packet management services module applied by target host receives the small routine that destination server is returned based on small routine information request Information, wherein small routine information request is that terminal device is sent by packet management services module.
In some embodiments, it is asked to the small routine information that destination server sends the small routine applied for target host It asks, comprising: by packet management services module, call preset interface, send small routine information request to destination server, so that clothes Business identifier lookup of the device based on small routine simultaneously returns to small routine information, wherein the rhizosphere name of preset interface is answered target host With what is formerly configured.
In some embodiments, the field generated in target host application is obtained, comprising: in target host application, will report The mark of head and small routine is spliced into field, and utilizes field, initiates processing request to packet management services module;And it is right Field is parsed, and determines that the server that header in field indicates is destination server, comprising: by packet management services module, The server for parse and determine to field header instruction in field is destination server.
In some embodiments, method further include: obtain target host and apply corresponding public key, wherein small routine information It is the small routine information that destination server is encrypted using public key.
In some embodiments, receive destination server return for target host application small routine information it Afterwards, method further include: small routine information is decrypted using public key, and completeness check is carried out to small routine information;It rings Decrypted result, and operation small routine should be stored in small routine information by completeness check.
In some embodiments, it is asked to the small routine information that destination server sends the small routine applied for target host It asks, comprising: preset interface is called by Software Development Kit SDK, sends small routine information request to destination server.
In some embodiments, small routine information request includes at least one of following: small routine version information, small routine letter Cease classification information.
In some embodiments, small routine information request further includes solicited message type;Method further include: in response to little Cheng The corresponding residual memory space of sequence is less than preset threshold, generates the small routine information request including Spatial Residual information;And to Destination server sends the small routine information request of the small routine for target host application, comprising: sends to destination server Small routine information request, so that selection priority of the destination server based on Spatial Residual information and different types of information, from Small routine information is chosen in all types of information to be returned, wherein all types of information includes at least message to be shown and small The more new information of program.
Second aspect, the embodiment of the present application provide a kind of information processing unit, are used for terminal device, installing terminal equipment At least one host application that small routine operation platform is lodged, device includes: acquiring unit, be configured in response to extremely Target host application in few host application detects the start-up operation to small routine, obtains and generates in target host application Field, wherein field includes the header of specified protocol and the mark of small routine, and header is formerly matched to target host application It sets;Resolution unit is configured to parse field, determines that the server that header indicates in field is destination server, Wherein, destination server is the server other than the Platform Server of small routine operation platform;Transmission unit is configured to mesh Mark the small routine information request for the small routine that server is sent for target host application, wherein small routine information request includes The mark of small routine;Receiving unit is configured to receive the small routine letter for target host application of destination server return Breath.
In some embodiments, receiving unit is configured to: the packet management services module applied by target host receives The small routine information that destination server is returned based on small routine information request, wherein small routine information request is that terminal device is logical Cross the transmission of packet management services module.
In some embodiments, transmission unit is configured to: by packet management services module, preset interface is called, to mesh It marks server and sends small routine information request, so as to identifier lookup of the server based on small routine and small routine information is returned to, In, the rhizosphere name of preset interface is formerly configured to target host application.
In some embodiments, acquiring unit is further configured to: in target host application, by header and small routine Mark be spliced into field, and utilize field, processing request initiated to packet management services module;And resolution unit is further It is configured to parse and determine that field, the server of header instruction in field is target by packet management services module Server.
In some embodiments, device further include: acquiring unit is configured to obtain target host using corresponding public affairs Key, wherein small routine information is the small routine information that destination server is encrypted using public key.
In some embodiments, device further include: decryption unit is configured to solve small routine information using public key It is close, and completeness check is carried out to small routine information;Storage unit is configured in response to small routine information and passes through integrality Verification stores decrypted result, and operation small routine.
In some embodiments, transmission unit is further configured to: being called by Software Development Kit SDK default Interface sends small routine information request to destination server.
In some embodiments, small routine information request includes at least one of following: small routine version information, small routine letter Cease classification information.
In some embodiments, small routine information request further includes solicited message type;Device further include: generation unit, The corresponding residual memory space of small routine is configured in response to less than preset threshold, generates the little Cheng including Spatial Residual information Sequence information request;And transmission unit, it is further configured to: small routine information request is sent to destination server, so that mesh Selection priority of the server based on Spatial Residual information and different types of information is marked, from all types of information to be returned Choose small routine information, wherein all types of information includes at least the more new information of message to be shown and small routine.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress It sets, for storing one or more programs, when one or more programs are executed by one or more processors, so that one or more A processor realizes the method such as any embodiment in information processing method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the method such as any embodiment in information processing method when the program is executed by processor.
Information processing scheme provided by the embodiments of the present application, firstly, in response to the target at least one host application Host's application detects the start-up operation to small routine, obtains the field generated in target host application, wherein field includes referring to Determine the header of agreement and the mark of small routine, header is formerly configured to target host application.Later, field is solved Analysis determines that the server that header indicates in field is destination server, wherein destination server is the flat of small routine operation platform Server other than platform server.Then, the small routine letter for the small routine applied for target host is sent to destination server Breath request, wherein small routine information request includes the mark of small routine.Finally, reception destination server return is directed to target The small routine information of host's application.The embodiment of the present application can send small routine information request by the configuration applied to host, Terminal device is realized to apply between the server other than the Platform Server of small routine operation platform by any host Communication, so as to neatly get the information for the small routine for being hosted by host's application from each server.In addition, terminal is set The standby header by applying in field for target host accurately judges destination server, so that it is guaranteed that from destination server The relevant information for being hosted by the small routine of target host application can be received.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the information processing method of the application;
Fig. 3 is the flow chart according to another embodiment of the information processing method of the application;
Fig. 4 is the structural schematic diagram according to one embodiment of the information processing unit of the application;
Fig. 5 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the exemplary system of the embodiment of the information processing method or information processing unit of the application System framework 100.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications can be installed on terminal device 101,102,103, such as information processing application, Video class application, live streaming application, instant messaging tools, mailbox client, social platform software etc..
Here terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102, 103 be hardware when, can be the various electronic equipments with display screen, including but not limited to smart phone, tablet computer, electronics Book reader, pocket computer on knee and desktop computer etc..It, can be with when terminal device 101,102,103 is software It is mounted in above-mentioned cited electronic equipment.Multiple softwares or software module may be implemented into (such as providing distribution in it The multiple softwares or software module of formula service), single software or software module also may be implemented into.It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as provide support to terminal device 101,102,103 Background server.Background server can carry out the data such as the small routine information request received the processing such as analyzing, and will Processing result (such as small routine information) feeds back to terminal device.
It should be noted that information processing method provided by the embodiment of the present application generally by terminal device 101,102, 103 execute, and correspondingly, information processing unit can be set in terminal device 101,102,103.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process 200 of one embodiment of the information processing method according to the application is shown.The letter Processing method is ceased, terminal device is used for, at least one host application that installing terminal equipment small routine operation platform is lodged, This method may comprise steps of:
Step 201, the starting to small routine is detected in response to the target host application at least one host application Operation obtains the field generated in target host application, wherein field includes the header of specified protocol and the mark of small routine Know, header is formerly configured to target host application.
In the present embodiment, the executing subject (such as terminal device shown in FIG. 1) of information processing method can be in response to It detects the start-up operation to small routine, the field generated in target host application is obtained from local or other electronic equipments.On Stating header can be what the terminal device or other electronic equipments formerly configured target host application.
In practice, above-mentioned executing subject can formerly to above-mentioned small routine operation platform each host application match It sets, that is, determines configuration information.Here configuration information is the header of specified protocol, in addition, configuration information can also include default The configuration information of the rhizosphere name of interface, different host's applications is different.
Above-mentioned small routine operation platform is used to for small routine provide running environment in host's application, is that small routine can be The necessary condition started and run in host's application.Small routine operation platform can provide the mould at interface to be shown to small routine Plate, browser and for different hosts application or different operating system personalized service.
Step 202, field is parsed, determines that the server that header indicates in field is destination server, wherein mesh Mark the server other than the Platform Server that server is small routine operation platform.
In the present embodiment, above-mentioned executing subject can parse above-mentioned field, above-mentioned in field to determine Header, and determine the server of header instruction.Herein, because header is formerly configured to target host application, header The server of instruction is the server for receiving and dispatching target host application related information.
The Platform Server of small routine operation platform refers to mainly or entirely for handling the correlation of the small routine operation platform The server of information.Above-mentioned destination server is the server other than the Platform Server of small routine operation platform, destination service Device can be used for sending and receiving various information relevant to the small routine of above-mentioned small routine operation platform, specifically can be it The Platform Server of his small routine operation platform.
Step 203, the small routine information request for the small routine applied for target host is sent to destination server, In, small routine information request includes the mark of small routine.
In the present embodiment, above-mentioned executing subject can send small routine information request to destination server.Specifically, on State the target host application that small routine is hosted by above-mentioned at least one host application.Here small routine information request is for asking Server is asked to return to small routine information relevant to above-mentioned small routine.Here small routine information may include the operation of small routine Frame information can also include more new information, such as the expanding packet of small routine.Alternatively, small routine information can also include to aobvious Show message.Above-mentioned specified protocol can refer to the communication protocol that terminal device and server are communicated.
In some optional implementations of the present embodiment, step 201 may include: to pass through Software Development Kit SDK calls preset interface, sends small routine information request to destination server.
In these optional implementations, above-mentioned executing subject can call default connect by the SDK of terminal device Mouthful, it realizes and sends small routine information request.These implementations can be realized by SDK and effectively and accurately send small routine Information request.
In some optional implementations of the present embodiment, small routine information request includes at least one of following: little Cheng Sequence version information, small routine information category information.
In these optional implementations, above-mentioned small routine may exist multiple and different versions, small routine version letter Breath can serve to indicate that the version for being hosted by the small routine of above-mentioned target host application.Small routine information category information is that instruction is small The information of the classification of program information.For example, the classification information of small routine information may include more new information, and up for display To the message to be shown etc. of user.Terminal device can send small routine information request, and request target server is returned only to some The small routine information of classification.For example, in the insufficient situation of the residual memory space of terminal device, premises equipment requests Small routine information type can be message to be shown.
In these implementations, the version information that destination server can use upload, which more accurately returns, is suitable for target The small routine information of the small routine of host's application.In addition, by the small routine information category information uploaded, destination server can be with The demand of terminal device is answered, the small routine information for meeting terminal device concrete condition is returned.
In some optional implementations of the present embodiment, small routine information request further includes solicited message type;Side Method further include: be less than preset threshold in response to the remnant information memory space of small routine, generating includes the small of Spatial Residual information Program information request;And step 201, it may include: to send small routine information request to destination server, so that destination service Selection priority of the device based on Spatial Residual information and different types of information, chooses small from all types of information to be returned Program information, wherein all types of information includes at least the more new information of message to be shown and small routine.
In these optional implementations, above-mentioned executing subject can be less than in the corresponding residual memory space of small routine In the case where preset threshold, the small routine information request including Spatial Residual information is generated.Specifically, the corresponding residue of small routine Memory space refers in above-mentioned terminal device, the memory space of the small routine information for storing above-mentioned small routine.Above-mentioned space is surplus Remaining information is used to indicate above-mentioned residual memory space.
In practice, different types of small routine information needs the space occupied size to be different.For example, to be shown disappear Breath needs more new information of the space occupied less than small routine.For all types of small routine information, the storage for needing to occupy is empty Between it is smaller, then the selection priority of the small routine information of the type is higher.
Specifically, above-mentioned destination server can use various ways, choose small routine information.For example, above-mentioned target clothes When the remaining space for device small routine information indicated by Spatial Residual information of being engaged in is less than default first numerical value, highest is chosen The small routine information of priority.And when the above-mentioned remaining space of small routine information is only smaller than default second value, highest is chosen The small routine information of priority and the small routine information of secondary high priority.Here second value is greater than the first numerical value.In addition, The memory space summation that above-mentioned executing subject can also need to occupy above-mentioned remaining space and small routine information to be returned carries out Compare.If the remaining space of small routine information is larger (including equal), all small routine information to be returned is returned.If small The remaining space of program information is smaller, it is determined that the sum of occupied memory space of small routine information other than lowest priority, And judge remaining space and should and between size.And so on, destination server can be according to priority from low to high suitable Sequence, the storage that removal small routine information need to occupy from the memory space summation that small routine information all to be returned need to occupy are empty Between size, until obtain go division result be less than remaining space.Later, this can be gone division result corresponding by destination server Small routine information is as the small routine information chosen.
Above-mentioned executing subject can be sent in the remaining insufficient situation of the memory space of small program information in terminal device Spatial Residual information makes destination server take into account memory space, and returns to the higher information of priority.To these realizations Mode avoids the memory space inadequate due to terminal device, caused by destination server return to whole small routine information and terminal The problem of equipment can not receive.
Step 202, the small routine information for target host application that destination server returns is received.
In the present embodiment, above-mentioned executing subject can receive the small routine information that above-mentioned destination server returns.Specifically Ground, the small routine information of return are information of the destination server for the above-mentioned small routine feedback of target host application.
In some optional implementations of the present embodiment, the above method can also include: to obtain target host application Corresponding public key, wherein small routine information is the small routine information that destination server is encrypted using public key.
In these optional implementations, above-mentioned executing subject can also obtain public key.Specifically, above-mentioned public key and mesh Host is marked using corresponding, the relevant information for applying to the target host is encrypted and decrypted.Above-mentioned small routine information It is to be obtained after destination server is encrypted using public key.
These implementations can use public key, realize target host apply the data between other hosts application every From, prevent target host application transmitting-receiving information be used in other hosts application.
In some optional application scenarios of these implementations, after step 202, method can also include: benefit Small routine information is decrypted with public key, and completeness check is carried out to small routine information;It is logical in response to small routine information Completeness check is crossed, decrypted result, and operation small routine are stored.
In these optional application scenarios, above-mentioned executing subject can be in the small routine for receiving destination server return After information, encrypted small routine information is decrypted using public key.Also, above-mentioned executing subject can also be to receiving Small routine information carry out completeness check.Here completeness check, which refers to, verifies small routine information, to determine little Cheng Whether sequence information is completely, i.e., whether to be that by the complete information of certain preset function.If it is determined that small routine information is Completely, then above-mentioned executing subject can store the decrypted result that decryption obtains.If also, the above-mentioned preparation process that is finished, Above-mentioned executing subject can bring into operation above-mentioned small routine.
The method provided by the above embodiment of the application can be sent small routine information and be asked by the configuration applied to host It asks, realizes terminal device in any host using between the server other than the Platform Server with small routine operation platform Communication, so as to neatly get the information for the small routine for being hosted by host's application from each server.In addition, terminal is set The standby header by applying in field for target host accurately judges destination server, so that it is guaranteed that from destination server The relevant information for being hosted by the small routine of target host application can be received.
With further reference to Fig. 3, it illustrates the processes 300 of another embodiment of information processing method.The information processing The process 300 of method, comprising the following steps:
Step 301, the starting to small routine is detected in response to the target host application at least one host application Operation obtains the field generated in target host application, wherein field includes the header of specified protocol and the mark of small routine Know, header is formerly configured to target host application.
In the present embodiment, the executing subject (such as terminal device shown in FIG. 1) of information processing method can be in response to It detects the start-up operation to small routine, the field generated in target host application is obtained from local or other electronic equipments.On Stating header can be what the terminal device or other electronic equipments formerly configured target host application.
Step 302, field is parsed, determines that the server that header indicates in field is destination server, wherein mesh Mark the server other than the Platform Server that server is small routine operation platform.
In the present embodiment, above-mentioned executing subject can parse above-mentioned field, above-mentioned in field to determine Header, and determine the server of header instruction.Herein, because header is formerly configured to target host application, header The server of instruction is the server for receiving and dispatching target host application related information.
Step 303, the small routine information request for the small routine applied for target host is sent to destination server, In, small routine information request includes the mark of small routine.
In the present embodiment, above-mentioned executing subject can send small routine information request to destination server.Specifically, on State the target host application that small routine is hosted by above-mentioned at least one host application.Here small routine information request is for asking Server is asked to return to small routine information relevant to above-mentioned small routine.Here small routine information may include the operation of small routine Frame information can also include more new information.
Step 304, the packet management services module applied by target host receives destination server and is based on small routine information Request the small routine information returned, wherein small routine information request is that terminal device is sent by packet management services module.
In the present embodiment, the packet management services module that above-mentioned executing subject can be applied by above-mentioned target host, connects Receive the small routine information that above-mentioned destination server returns.Specifically, small routine information is that destination server is based on small routine information Request the information returned.Small routine information request is that terminal device is sent by the packet management services module that target host is applied 's.Here small routine information may include the operation frame information of small routine.Small routine information can also include more new information, Such as the expanding packet of small routine.Alternatively, small routine information can also include the message for needing to show user.
In some optional implementations of the present embodiment, step 301 may include: that will report in target host application The mark of head and small routine is spliced into field, and utilizes field, initiates the packet management services module of target host application Processing request;And step 302 may include: parse to field and determine in field by packet management services module The server of header instruction is destination server.
In the present embodiment, the executing subject (such as terminal device shown in FIG. 1) of information processing method can be in response to Target host application at least one host application detects the start-up operation to above-mentioned small routine, answers in target host With the mark of the header of above-mentioned specified protocol and above-mentioned small routine is spliced into splicing field.For example, above-mentioned header is XX, Small routine is identified as yy, and splicing field can be XX_yy.Above-mentioned executing subject can be applied to it in target host and assure reason It services (Package Manager Service, PMS) module and initiates processing request, so that packet management services module is to splicing word Duan Jinhang processing.
Above-mentioned executing subject packet management services module receive processing request after, can by packet management services module, Field is parsed, and parses the server of above-mentioned header instruction.
These implementations can reduce the byte number of small routine information request, to reduce small by the splicing of field Program information is requested in terminal device and the occupied memory space of destination server.
In some optional implementations of the present embodiment, step 303 may include: by packet management services module, Preset interface is called, small routine information request is sent to destination server, so that identifier lookup of the server based on small routine is simultaneously Return to small routine information, wherein the rhizosphere name of preset interface is formerly configured to target host application.
In these optional implementations, above-mentioned executing subject can be called by packet management services module to target place It is main to apply the preset interface formerly configured, to realize the packet management service mould that above-mentioned executing subject can be applied by host Block is communicated with destination server.
It, can be to this after the identifier lookup to the relevant information including small routine information that above-mentioned executing subject passes through small routine Relevant information is screened to obtain small routine information, can also be packaged etc. later, and small routine to be returned is finally obtained Information.
These implementations can use formerly to the preset interface of target host application configuration, and target place is better achieved Communication between the packet management services module and destination server of main application.
The packet management services module that the present embodiment can be applied by target host, that realizes target host application assures reason Communication between service module and destination server, and then the different hosts application that small routine is lodged may be implemented using the program With the communication between each server.
With further reference to Fig. 4, as the realization to method shown in above-mentioned each figure, this application provides a kind of information processing apparatus The one embodiment set, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to respectively In kind electronic equipment.
As shown in figure 4, the information processing unit 400 of the present embodiment includes: acquiring unit 401, resolution unit 402, sends Unit 403 and receiving unit 404.Wherein, acquiring unit 401, the mesh being configured in response at least one host applies Mark host's application detects start-up operation to small routine, obtains the field generated in target host application, wherein field includes The header of specified protocol and the mark of small routine, header are formerly configured to target host application;Resolution unit 402, quilt It is configured to parse field, determines that the server that header in field indicates is destination server, wherein destination server is Server other than the Platform Server of small routine operation platform;Transmission unit 403 is configured to send needle to destination server To the small routine information request of the small routine of target host application, wherein small routine information request includes the mark of small routine;It connects Unit 404 is received, is configured to receive the small routine information for target host application of destination server return.
In some embodiments, the acquiring unit 401 of information processing unit 400 can be in response to detecting to small routine Start-up operation obtains the field generated in target host application from local or other electronic equipments.Above-mentioned header can be the end What end equipment or other electronic equipments formerly configured target host application.
In some embodiments, resolution unit 402 can parse above-mentioned field, above-mentioned in field to determine Header, and determine the server of header instruction.Herein, because header is formerly configured to target host application, header The server of instruction is the server for receiving and dispatching target host application related information.
In some embodiments, transmission unit 403 can send small routine information request to destination server.Specifically, Above-mentioned small routine is hosted by the target host application in above-mentioned at least one host application.Here small routine information request is used for Request server returns to small routine information relevant to above-mentioned small routine.
In some embodiments, receiving unit 404 can receive the small routine information that above-mentioned destination server returns.Specifically Ground, the small routine information of return are information of the destination server for the above-mentioned small routine feedback of target host application.
In some optional implementations of the present embodiment, receiving unit is configured to: being applied by target host Packet management services module is received destination server and is asked based on the small routine information that terminal device is sent by packet management services module Seek the small routine information of return.
In some optional implementations of the present embodiment, transmission unit is configured to: by packet management services module, Preset interface is called, small routine information request is sent to destination server, so that identifier lookup of the server based on small routine is simultaneously Return to small routine information, wherein the rhizosphere name of preset interface is formerly configured to target host application.
In some optional implementations of the present embodiment, acquiring unit is further configured to: being answered in target host With the mark of header and small routine being spliced into field, and utilize field, is asked to packet management services module initiation processing It asks;And resolution unit is further configured to parse to field and determine in field by packet management services module The server of header instruction is destination server.
In some optional implementations of the present embodiment, device further include: acquiring unit is configured to obtain target Host applies corresponding public key, wherein small routine information is that destination server is believed using the small routine that public key is encrypted Breath.
In some optional implementations of the present embodiment, device further include: decryption unit is configured to utilize public key Small routine information is decrypted, and completeness check is carried out to small routine information;Storage unit is configured in response to small Program information stores decrypted result, and operation small routine by completeness check.
In some optional implementations of the present embodiment, transmission unit is further configured to: passing through software development Kit SDK calls preset interface, sends small routine information request to destination server.
In some optional implementations of the present embodiment, small routine information request includes at least one of following: little Cheng Sequence version information, small routine information category information.
In some optional implementations of the present embodiment, small routine information request further includes solicited message type;Dress It sets further include: generation unit is configured in response to the corresponding residual memory space of small routine less than preset threshold, and generation includes The small routine information request of Spatial Residual information;And transmission unit, it is further configured to: sending little Cheng to destination server Sequence information request, so that selection priority of the destination server based on Spatial Residual information and different types of information, from wait return Small routine information is chosen in all types of information returned, wherein all types of information includes at least message to be shown and small routine More new information.
As shown in figure 5, electronic equipment 500 may include processing unit (such as central processing unit, graphics processor etc.) 501, random access can be loaded into according to the program being stored in read-only memory (ROM) 502 or from storage device 508 Program in memory (RAM) 503 and execute various movements appropriate and processing.In RAM 503, it is also stored with electronic equipment Various programs and data needed for 500 operations.Processing unit 501, ROM 502 and RAM503 are connected with each other by bus 504. Input/output (I/O) interface 505 is also connected to bus 504.
In general, following device can connect to I/O interface 505: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 506 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 507 of dynamic device etc.;Storage device 508 including such as tape, hard disk etc.;And communication device 509.Communication device 509, which can permit electronic equipment 500, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 5 shows tool There is the electronic equipment 500 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.Each box shown in Fig. 5 can represent a device, can also root According to needing to represent multiple devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 509, or from storage device 508 It is mounted, or is mounted from ROM 502.When the computer program is executed by processing unit 501, the implementation of the disclosure is executed The above-mentioned function of being limited in the method for example.It should be noted that the computer-readable medium of embodiment of the disclosure can be meter Calculation machine readable signal medium or computer readable storage medium either the two any combination.Computer-readable storage Medium for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, Or any above combination.The more specific example of computer readable storage medium can include but is not limited to: have one Or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light Memory device, magnetic memory device or above-mentioned any appropriate combination.In embodiment of the disclosure, computer-readable to deposit Storage media can be any tangible medium for including or store program, which can be commanded execution system, device or device Part use or in connection.And in embodiment of the disclosure, computer-readable signal media may include in base band In or as carrier wave a part propagate data-signal, wherein carrying computer-readable program code.This propagation Data-signal can take various forms, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Meter Calculation machine readable signal medium can also be any computer-readable medium other than computer readable storage medium, which can Read signal medium can be sent, propagated or be transmitted for being used by instruction execution system, device or device or being tied with it Close the program used.The program code for including on computer-readable medium can transmit with any suitable medium, including but not It is limited to: electric wire, optical cable, RF (radio frequency) etc. or above-mentioned any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include acquiring unit, resolution unit, transmission unit and receiving unit.Wherein, the title of these units not structure under certain conditions The restriction of the pairs of unit itself, for example, receiving unit is also described as, " receive destination server return is directed to target The unit of the small routine information of host's application ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should Device: the start-up operation to small routine is detected in response to the target host application at least one host application, is obtained The field that target host application generates, wherein field includes the header of specified protocol and the mark of small routine, and header is to mesh Mark host's application formerly configures;Field is parsed, determines that the server that header indicates in field is destination server, In, destination server is the server other than the Platform Server of small routine operation platform;It is sent to destination server and is directed to mesh Mark the small routine information request of the small routine of host's application, wherein small routine information request includes the mark of small routine;Receive mesh Mark the small routine information for target host application that server returns.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (11)

1. a kind of information processing method, it is used for terminal device, what installing terminal equipment small routine operation platform was lodged At least one host application, which comprises
The start-up operation to small routine is detected in response to the target host application at least one described host application, is obtained In the field that target host application generates, wherein the field includes the header and the small routine of specified protocol Mark, the header are formerly configured to target host application;
The field is parsed, determines that the server of the instruction of header described in the field is destination server, wherein institute State the server other than the Platform Server that destination server is the small routine operation platform;
The small routine information request for the small routine applied for the target host is sent to the destination server, In, the small routine information request includes the mark of the small routine;
Receive the small routine information for target host application that the destination server returns.
2. according to the method described in claim 1, wherein, what the reception destination server returned is directed to the target place The small routine information of main application, comprising:
The packet management services module applied by the target host receives the destination server and is based on the small routine information Request the small routine information returned, wherein the small routine information request is that the terminal device assures reason described in What service module was sent.
3. according to the method described in claim 2, wherein, described send to the destination server is answered for the target host The small routine information request of the small routine, comprising:
By the packet management services module, preset interface is called, Xiang Suoshu destination server sends the small routine information and asks It asks, so as to identifier lookup of the server based on the small routine and return to the small routine information, wherein described default to connect The rhizosphere name of mouth is formerly configured to target host application.
4. according to the method described in claim 2, wherein, the acquisition is in the target host using the field generated, comprising:
In the target host application, the mark of the header and the small routine is spliced into the field, and utilize The field initiates processing request to the packet management services module;And
It is described that the field is parsed, determine that the server of the instruction of header described in the field is destination server, packet It includes:
By the packet management services module, the field is carried out to parse and determine the instruction of header described in the field Server is the destination server.
5. according to the method described in claim 1, wherein, the method also includes:
The target host is obtained using corresponding public key, wherein the small routine information is that the destination server utilizes institute State the small routine information that public key is encrypted.
6. according to the method described in claim 5, wherein, being directed to the target what the reception destination server returned After the small routine information of host's application, the method also includes:
The small routine information is decrypted using the public key, and completeness check is carried out to the small routine information;
In response to the small routine information by the completeness check, decrypted result, and the operation small routine are stored.
7. according to the method described in claim 1, wherein, described send to destination server is directed to what the target host was applied The small routine information request of the small routine, comprising:
The preset interface is called by Software Development Kit SDK, Xiang Suoshu destination server sends the small routine information Request.
8. according to the method described in claim 1, wherein, the small routine information request includes at least one of following: small routine Version information, small routine information category information.
9. according to the method described in claim 1, wherein, the small routine information request further includes solicited message type;
The method also includes:
It is less than preset threshold in response to the corresponding residual memory space of the small routine, generates the little Cheng including Spatial Residual information Sequence information request;And
The small routine information request that the small routine applied for the target host is sent to destination server, packet It includes:
The small routine information request is sent to the destination server, so that the destination server is based on the Spatial Residual The selection priority of information and different types of information chooses small routine information from all types of information to be returned, wherein The all types of information includes at least the more new information of message to be shown and small routine.
10. a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-9.
11. a kind of computer readable storage medium, is stored thereon with computer program, wherein when the program is executed by processor Realize the method as described in any in claim 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 true CN110377440A (en) 2019-10-25
CN110377440B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865855A (en) * 2019-11-18 2020-03-06 百度在线网络技术(北京)有限公司 Applet processing method and related device
CN110928706A (en) * 2019-10-30 2020-03-27 北京奇艺世纪科技有限公司 Applet interaction method and device, electronic equipment and storage medium
CN112148345A (en) * 2020-09-28 2020-12-29 北京百度网讯科技有限公司 Applet package transmitting method, apparatus, electronic device and computer readable medium
CN112416613A (en) * 2020-10-23 2021-02-26 腾讯科技(深圳)有限公司 Application data processing method, device, equipment and medium
CN112817656A (en) * 2021-01-29 2021-05-18 北京百度网讯科技有限公司 Applet running method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140181942A1 (en) * 2011-08-26 2014-06-26 Tencent Technology (Shenzhen) Company Limited Startup method and apparatus, startup-acceptance method and apparatus, and mutual-startup method and system
CN109271239A (en) * 2018-08-10 2019-01-25 北京达佳互联信息技术有限公司 Method, apparatus, system, equipment and the medium of data processing
CN109408696A (en) * 2018-09-30 2019-03-01 上海掌门科技有限公司 It is a kind of for search for boarding program method and apparatus
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
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140181942A1 (en) * 2011-08-26 2014-06-26 Tencent Technology (Shenzhen) Company Limited Startup method and apparatus, startup-acceptance method and apparatus, and mutual-startup method and system
CN109271239A (en) * 2018-08-10 2019-01-25 北京达佳互联信息技术有限公司 Method, apparatus, system, equipment and the medium of data processing
CN109408696A (en) * 2018-09-30 2019-03-01 上海掌门科技有限公司 It is a kind of for search for boarding program method and apparatus
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
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

Cited By (9)

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

Also Published As

Publication number Publication date
CN110377440B (en) 2021-10-15

Similar Documents

Publication Publication Date Title
CN110377440A (en) Information processing method and device
CN104137520B (en) A kind of information push method and device
CN109995877A (en) Information-pushing method and device
CN110119294A (en) The generation method of menu page, apparatus and system
CN109992732A (en) Information sharing method, device, electronic equipment and storage medium
CN109639636A (en) Business datum forwarding, business data processing method, device and electronic equipment
CN110321738A (en) Information processing method and device
CN109769127A (en) Audio video synchronization dissemination method, device, electronic equipment and readable storage medium storing program for executing
CN109815105A (en) Applied program testing method and device based on Btrace
CN109510881A (en) Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files
CN110007936A (en) Data processing method and device
CN110209315A (en) The display methods of character, device, electronic equipment and storage medium in user interface
CN110069919A (en) Information acquisition method and device
CN110516678A (en) Image processing method and device
CN110391938A (en) Method and apparatus for deployment services
CN109992406A (en) The method and client that picture requesting method, response picture are requested
CN108933695A (en) Method and apparatus for handling information
CN106549989A (en) A kind of data transmission method and its system, user terminal, application server
CN109005208A (en) Method and apparatus for pushed information
CN108549586A (en) Information processing method and device
CN109218041A (en) Request processing method and device for server system
CN109819042A (en) For providing the method and apparatus of Software Development Kit
CN110336592A (en) It is applicable in the data transmission method and electronic equipment of Bluetooth card reader
CN110134480A (en) Processing method, device, electronic equipment and the storage medium of user's trigger action
CN110046000A (en) Small routine operation 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