WO2021036877A1 - Information processing method, device, and computer storage medium - Google Patents
Information processing method, device, and computer storage medium Download PDFInfo
- Publication number
- WO2021036877A1 WO2021036877A1 PCT/CN2020/109954 CN2020109954W WO2021036877A1 WO 2021036877 A1 WO2021036877 A1 WO 2021036877A1 CN 2020109954 W CN2020109954 W CN 2020109954W WO 2021036877 A1 WO2021036877 A1 WO 2021036877A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- host application
- function
- information
- order
- host
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 11
- 230000010365 information processing Effects 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 claims abstract description 67
- 238000012795 verification Methods 0.000 claims description 18
- 238000009434 installation Methods 0.000 claims description 14
- 230000001960 triggered effect Effects 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 191
- 238000012545 processing Methods 0.000 description 15
- 230000008569 process Effects 0.000 description 10
- 230000003287 optical effect Effects 0.000 description 7
- 238000004590 computer program Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
- G06F9/4484—Executing subprograms
Definitions
- This application relates to the field of computer application technology, and in particular to an information processing method, equipment, and computer storage medium in a small program scenario.
- Mini Program is an application that can be used without installation, and it runs in the environment provided by the host application.
- the applet often uses some functions of the host application in the process of providing services. For example, when the applet triggers the payment function, the host application is required to provide a payment channel. However, if the host application where the applet is located does not have this function, the service of the applet will fail.
- this application provides an information processing method, device, and computer storage medium to facilitate solving the above-mentioned problems.
- this application provides an information processing method, which is executed by a first host application of a terminal device, and the method includes:
- the method further includes:
- the first host application determines the first host application by detecting whether information about the function exists in the installation package of the first host application or whether the package name of the first host application indicates that the function exists Whether it has the function; or,
- the first host application sends event information that triggers the function of the host application to the server end of the first host application, and the server end of the first host application determines whether the first host application has the function.
- the method further includes:
- the first host application enumerates the host application list of the terminal device, and detects whether there is information identifying the function in the installation package of each host application in the list or whether the package name of each host application indicates that the function exists , To determine the host application with the function in the terminal device; or,
- the first host application sends the enumerated host application list of the terminal device to the server end of the first host application, and the server end of the first host application determines that the host application list contains all The host application with the function, and the information of the host application with the function is returned to the first host application.
- the method further includes:
- the information of the multiple host applications with the function is displayed to the user, so that the user can select a host application from them as the second host application .
- sending the function parameters to the second host application with the function in the terminal device includes:
- sending the function parameters to the second host application with the function in the terminal device includes:
- Encrypting the function parameters by using a session key negotiated in advance by the first host application and the second host application, and sending the encrypted function parameters to the second host application;
- the execution result returned after receiving the second host application to execute the function includes:
- the function includes a payment function of a designated payment channel
- the function parameters include order information
- the execution result information includes: payment result.
- the obtaining of the event that the applet triggers the function of the host application includes: obtaining a request for the applet in the first host application to create an order, and the request includes order information;
- the order-related information includes: encrypted order information, encryption key information, and order reconciliation information;
- the function parameters include: the encrypted order information, the encryption key information, verification information, and a time stamp.
- the order-related information further includes order reconciliation information;
- the function parameters and execution result information also respectively include the order reconciliation information;
- the method also includes:
- the first host application sends the execution result information to the server of the first host application for storage, so that the server of the first host application uses the order reconciliation information to perform bill reconciliation.
- the function parameter is sent to the second host application with the function in the terminal device again, or the function The parameters are sent to other host applications that have the function in the terminal device.
- this application provides an information processing method, which is executed by a second host application of a terminal device, and the method includes:
- receiving the functional parameter sent by the first host application in the terminal device includes:
- Returning execution result information to the first host application includes:
- the execution result information is encrypted by using the session key, and the encrypted execution result information is returned to the first host application.
- the function includes a payment function of a designated payment channel
- the function parameters include order information
- the execution result information includes: payment result.
- the function parameters include: encrypted order information, encryption key information, order reconciliation information, verification information, and time stamp;
- the execution result information includes the payment result and the order reconciliation information
- the method further includes: sending the function parameters to the server of the second host application for storage, so that the server of the second host application uses the order reconciliation information to perform order reconciliation.
- using the function parameter to execute the function includes:
- this application provides an information processing method, which is executed by the server of the first host application, and the method includes:
- the function includes a payment function of a designated payment channel
- the obtaining of the event that the mini program triggers the function of the host application includes: obtaining a request for the mini program in the first host application to create an order, and the request includes order information;
- the method further includes: returning order-related information to the first host application, where the order-related information includes: encrypted order information, encryption key information, and order reconciliation information;
- the order reconciliation information is used for bill reconciliation.
- the present application provides a device, and the device includes:
- One or more processors are One or more processors;
- Storage device used to store one or more programs
- the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.
- the present application provides a storage medium containing computer-executable instructions, which are used to perform the above-mentioned method when executed by a computer processor.
- FIG. 1 is a schematic diagram of the system architecture involved in this application.
- FIG. 2 is a flowchart of processing executed by the host application 1 provided by an embodiment of the application;
- FIG. 3 is a flowchart of processing executed by the host application 2 provided by an embodiment of the application;
- Figure 4 is a flow chart of a method for implementing a payment function provided by an embodiment of the application
- FIG. 5 is a flowchart of a method for implementing a search function provided by an embodiment of the application
- Fig. 6 shows a block diagram of an exemplary computer system/server suitable for implementing the embodiments of the present application.
- the system architecture mainly includes a host application and a server side corresponding to the host application.
- the applet relies on the host application to run on the terminal device, and the environment in which the applet runs is provided by the host application.
- the terminal devices may include, but are not limited to, such as: smart mobile terminals, smart home devices, network devices, wearable devices, smart medical devices, PCs (personal computers), etc.
- smart mobile devices can include mobile phones, tablet computers, notebook computers, PDAs (personal digital assistants), Internet cars, and so on.
- Smart home devices may include smart home appliances, such as smart TVs, smart speakers, and so on.
- Network equipment may include, for example, switches, wireless APs, servers, and so on.
- Wearable devices may include, for example, smart watches, smart glasses, smart bracelets, virtual reality devices, augmented reality devices, mixed reality devices (that is, devices that can support virtual reality and augmented reality), and so on.
- the same terminal device may contain multiple host applications.
- the host application 1 and the host application 2 are taken as an example.
- a host application may also run multiple applets, and different host applications may run different applets or the same applet.
- the host application 1 runs the applet a1 and the applet b1
- the host application 2 runs the applet a2 and the applet b2.
- Each host application has a corresponding server side. As shown in FIG. 1, the host application 1 corresponds to the server side 1, and the host application 2 corresponds to the server side 2. Each host application can interact with its corresponding server. In the embodiment of the present application, data exchange can also be performed between different servers.
- Each server can be a single server or a server group composed of multiple servers. It should be understood that the numbers of terminal devices, host applications, applets, and servers in FIG. 1 are merely illustrative. According to implementation needs, there can be any number of terminal devices, host applications, applets, and servers.
- the core idea of this application is that when an applet triggers the function of the host application, if the host application where the applet is located does not have the function, the function parameters are sent to other host applications with the function in the same terminal device to perform the function on their behalf .
- the host application 1 obtains the event that the applet a1 triggers the function of the host application.
- the event that triggers the function of the host application is also different.
- the applet a1 needs to use a certain function of the host application 1, an event that triggers the function is generated.
- the host application 1 obtains the event, it can know that the function needs to be called.
- the host application 1 determines whether it has the function, if so, execute 203; otherwise, execute 204.
- the detection of whether the host application 1 has the function can be performed by the host application 1 itself, or can be performed by the server side 1 corresponding to the host application 1.
- the host application 1 can determine whether the host application 1 has the function by detecting whether information about the function exists in the installation package of the host application 1 or whether the package name of the host application 1 indicates that the function exists.
- the host application 1 may send the event information that the applet a1 triggers the function of the host application to the server side 1 of the host application 1, and the server side 1 determines whether the host application 1 has the function.
- whether the host application has a certain function is related to the development of the service provider, that is, whether the service provider integrates the function into the host application when developing this type of host application, and on the other hand, it is also related to the version of the host application 1.
- the server 1 can determine whether the host application 1 has the function according to the development configuration information and the version information of the host application 1, and feeds back the information indicating whether the host application 1 has the function to the host application 1.
- the host application 1 executes the function, and the process ends.
- the function can be executed in the manner in the prior art.
- the host application 1 determines the host application 2 that has the function in the terminal device.
- the installation package of the host application may be agreed in advance to set the information identifying a specific function in the installation package of the host application. If the host application has the specific function, the installation package will have the specific function to identify the specific function. Information.
- the package name of the host application can indicate that the host application has the specific function.
- the host application 1 can enumerate the host application list of the terminal device, and then detect whether there is information identifying the function in the installation package of each host application in the host application list, or detect the package of each host application Whether the name indicates that the function exists, so as to determine the host application that has the function in the terminal device.
- the server side 1 determines the host application that has the function in the terminal device. Specifically, the host application 1 may send the enumerated host application list of the terminal device to the server 1.
- the service providers can cooperate in advance on some specific functions, and the server 1 is configured with information of a host application with specific functions. After the server 1 receives the host application list sent by the host application 1, it determines the host application in the list that has the function corresponding to the event, and returns the information of the host application with the function corresponding to the event to the host application 1.
- the host application 1 can directly use the host application as the aforementioned host application 2. If multiple host applications with this function are determined, the host application 1 can select one of them as the host application 2 according to a preset rule. In addition, as a preferred implementation manner, the determined multiple host application information may be displayed to the user, so that the user can select a host application from them as the host application 2 described above.
- the host application 1 sends the function parameters to the host application 2 with the function in the terminal device.
- the host application 1 can call the corresponding function interface of the host application 2 and transfer function parameters through the Intent event.
- host application 1 When host application 1 sends functional parameters to host application 2, in order to ensure the security of information, host application 1 and host application 2 can negotiate the session key, and the information transmitted between host application 1 and host application 2 is required Use the session key for encryption. Then host application 1 encrypts the function parameters using the negotiated session key and sends them to host application 2, and host application 2 uses the session key to decrypt the received function parameters.
- the host application 1 After the host application 1 receives the execution result information, it can send the execution result information to the server 1 for storage.
- the host application 2 mainly executes the processing flow shown in Figure 3:
- the host application 2 receives the function parameters sent by the host application 1.
- the function parameters involved in this step can be encrypted function parameters.
- the host application 2 can use the session key negotiated with the host application 1 in advance to decrypt the encrypted function parameters.
- the host application 2 may send the function parameters to the server side 2, and the server side 2 processes the function parameters according to the function parameters.
- This step may be an existing function execution process, which is not described in detail here.
- the execution result information is returned to the host application 1.
- the host application 2 may send the execution result to the host application 1 after being encrypted with a pre-negotiated session key.
- the host application function involved in this application can be any function of the host application called during the use of the applet, such as search function, payment function, etc. The following is described in conjunction with the embodiments respectively.
- Fig. 4 is a flowchart of a method for implementing a payment function provided by an embodiment of the application. As shown in Fig. 4, the method may include the following steps:
- the host application 1 obtains the order creation request of the applet a1 in the host application 1.
- the user needs to call the payment function of the host application when creating an order.
- the order will also contain the information of the payment channel.
- the payment channel can be a payment channel designated by the service, or a payment channel selected by the user. Therefore, the order information contained in the order creation request contains the information of the payment channel, which triggers the calling of the payment function of the host application 1 using the payment channel.
- the host application 1 sends a request to create an order to its own server, that is, the server 1.
- the server 1 returns order-related information to the host application 1, where the order-related information includes encrypted order information, encryption key information, and order reconciliation information.
- the server side 1 determines that the host application 1 does not have the payment function of the payment channel and cannot directly perform payment processing. Therefore, the server side 1 returns the order-related information to the host application 1. After the host application 1 receives the order-related information, it can determine itself This payment function is not available.
- the order information contained in the order-related information is encrypted, and the encryption key information used is also included in the order-related information.
- the encryption key information may be symmetric key information or asymmetric key information, as long as the encryption key information can be used to decrypt the encrypted order information.
- the order reconciliation information is unique and unforgeable information generated by the server 1, which can uniquely identify the order and is difficult to be cracked by other devices.
- the order reconciliation information can be obtained by encrypting random information such as random numbers and timestamps with a key known only by the server 1; of course, other methods can also be used, as long as the uniqueness and unforgeability can be guaranteed.
- the host application 1 determines the host application 2 with the payment function in the terminal device.
- the host application 1 enumerates all host applications in the terminal device to obtain a host application list, detects whether there is a payment function that identifies the designated payment channel in the installation package of each host application in the list, and obtains a host application with the payment function of the designated payment channel. If multiple host applications are obtained, the multiple host applications can be displayed to the user in a manner such as a pop-up window, and the user selects a host application from them as the host application that performs the payment function. Assume that the user selects the host application 2.
- the server 1 can also use the host application list of the terminal device uploaded by the host application 1 to determine the host application in the terminal device that has the payment function of the specified payment channel, and return the information of these host applications to the host Application 1.
- the host application 1 may send the host application list together with the request in step 402, or send it separately after 403, or enumerate and upload the host application list to the server 1 after the host application 1 is started.
- the host application 1 and the host application 2 negotiate a session key.
- the session key negotiation between the host application 1 and the host application 2 may be performed in the embodiment of the present application.
- the negotiation method of the session key may adopt an existing negotiation method in the prior art, which is not described in detail here.
- the host application 1 uses the session key to encrypt the payment function parameters and sends them to the host application 2.
- the payment function parameters are obtained from the order-related information.
- the payment function parameters may also include verification information and time stamps.
- the verification information is used to verify the integrity of the payment function parameters, for example, it may be information obtained after hashing the encrypted order information, encryption key information, and time stamp.
- the payment function parameters can be sent to the host application 2 according to a preset data format.
- the host application 1 calls the payment function interface of the host application 2 through the Intent event and transmits the above payment function parameters.
- the host application 2 uses the session key to decrypt the payment function parameters.
- the host application 2 sends the payment function parameters to the server 2.
- the server 2 After the server 2 receives the payment function parameters, it uses the verification information to perform integrity verification, for example, after hashing the encrypted order information, encryption key information, and timestamp, the value obtained by the hash processing is combined with the verification The information is compared, and if they are consistent, the integrity check is passed, otherwise the integrity check fails.
- the order information After decrypting the encrypted order information using the encryption key information, the order information is obtained, and the subsequent payment processing is performed using the order information.
- the server 2 saves the correspondence between the order information and the order reconciliation information for subsequent order reconciliation.
- the server 2 returns to the host application 2 a payment interface containing the information of the designated payment channel.
- the order information includes designated payment channel information, payment amount, payee information, etc.
- the server uses this information to generate a payment interface and return it to the host application 2, and the host application 2 displays the payment interface to the user.
- the host application 2 sends the payment information input by the user on the payment interface to the server 2.
- the user can input payment information such as password, verification code, and biometric information on the payment interface, and the host application 2 sends the payment information to the server 2.
- the password can be a digital key, a gesture password, a voice password, and so on.
- the verification code can be an image verification code, an SMS verification code, and so on.
- the biometric information can be fingerprint, voiceprint, iris, face and other feature information.
- the server 2 can verify the payment information locally, or send the payment information to a third-party payment platform or banking system corresponding to the designated payment channel for verification. If the verification is passed, the payment is successful, otherwise the payment fails.
- the server 2 saves the payment result and order reconciliation information for subsequent order reconciliation processing.
- the above 409 to 411 are one of the implementation methods provided by this application, and for the server end 2, other payment processing methods can also be used. For example, if the user has previously set a password-free payment in the host application 2, the server 2 directly returns the payment success information to the host application 2.
- the host application 2 uses the session key to encrypt the execution result information and sends it to the host application 1.
- the execution result information includes payment result and order reconciliation information.
- the execution result information is sent to the server 1 for storage.
- the server 1 saves the correspondence between the payment result and the order reconciliation information.
- Fig. 5 is a flowchart of a method for implementing a search function provided by an embodiment of the application. As shown in Fig. 5, the method may include the following steps:
- the host application 1 obtains a search request for the applet b1 in the host application 1.
- the search request may include search keywords and may further include: search type information, such as a webpage Search, image search, map search, etc.
- the host application 1 determines the host application 2 in the terminal device that has the search function.
- the host application 1 can detect whether there is information identifying the search function in its own installation package, and if not, it can be considered to detect that it does not have the search function.
- the host application 1 enumerates the host application list in the terminal device, and determines the host application with the search function in the terminal device by detecting whether there is information identifying the search function in the installation package of each host application in the list. If there are multiple host applications with a search function, the information of the multiple host applications can be displayed to the user, and the user selects a host application from them, assuming that the host application 2 is selected.
- the host application 1 and the host application 2 negotiate a session key.
- the host application 1 uses the session key to encrypt the search function parameters and sends them to the host application 2.
- the search function parameters are obtained from the search request.
- the search function parameters can also include verification information, time stamps and other information.
- the search information can also be in an encrypted form.
- the search function parameters also include encryption key information.
- the host application 1 can call the search function interface of the host application 2 through the Intent event and pass the above search function parameters.
- the host application 2 uses the session key to decrypt the search function parameters.
- the host application 2 sends the search function parameters to the server 2.
- the server 2 After the server 2 receives the search function parameters, it uses the verification information to perform integrity verification. After decrypting the encrypted search information by using the encryption key information, the search information is obtained, and the search information is used for search processing.
- the server 2 returns the search result information to the host application 2.
- the address information such as the search result page can be sent to the host application 2.
- the host application 2 uses the session key to encrypt the search result information and sends it to the host application 1.
- the host application 1 uses the session key to decrypt the search result information, and then displays the search result.
- Figure 6 shows a block diagram of an exemplary computer system/server 012 suitable for implementing embodiments of the present application.
- the computer system/server 012 shown in FIG. 6 is only an example, and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
- the computer system/server 012 is in the form of a general-purpose computing device.
- the components of the computer system/server 012 may include, but are not limited to: one or more processors or processing units 016, a system memory 028, and a bus 018 connecting different system components (including the system memory 028 and the processing unit 016).
- the bus 018 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure among multiple bus structures.
- these architectures include, but are not limited to, industry standard architecture (ISA) bus, microchannel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and peripheral component interconnection ( PCI) bus.
- ISA industry standard architecture
- MAC microchannel architecture
- VESA Video Electronics Standards Association
- PCI peripheral component interconnection
- the computer system/server 012 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer system/server 012, including volatile and nonvolatile media, removable and non-removable media.
- the system memory 028 may include a computer system readable medium in the form of volatile memory, such as random access memory (RAM) 030 and/or cache memory 032.
- the computer system/server 012 may further include other removable/non-removable, volatile/nonvolatile computer system storage media.
- the storage system 034 can be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 6, and generally referred to as a "hard drive").
- a disk drive for reading and writing to a removable non-volatile disk such as a "floppy disk”
- a removable non-volatile optical disk such as CD-ROM, DVD-ROM
- each drive can be connected to the bus 018 through one or more data media interfaces.
- the memory 028 may include at least one program product, and the program product has a set (for example, at least one) program modules, and these program modules are configured to perform the functions of the embodiments of the present application.
- a program/utility tool 040 with a set of (at least one) program module 042 can be stored in, for example, the memory 028.
- Such program module 042 includes, but is not limited to, an operating system, one or more application programs, and other programs Modules and program data, each of these examples or some combination may include the realization of a network environment.
- the program module 042 generally executes the functions and/or methods in the embodiments described in this application.
- the computer system/server 012 can also communicate with one or more external devices 014 (such as a keyboard, pointing device, display 024, etc.).
- the computer system/server 012 communicates with an external radar device, and can also communicate with one or more external radar devices.
- I/O input/output
- the computer system/server 012 can also communicate with one or more networks (for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 020.
- networks for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet
- the network adapter 020 communicates with other modules of the computer system/server 012 through the bus 018.
- other hardware and/or software modules can be used in conjunction with the computer system/server 012, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems , Tape drives and data backup storage systems.
- the processing unit 016 executes various functional applications and data processing by running programs stored in the system memory 028, for example, to implement the method flow provided in the embodiments of the present application.
- the above-mentioned computer program may be set in a computer storage medium, that is, the computer storage medium is encoded with a computer program.
- the program When the program is executed by one or more computers, one or more computers can execute the operations shown in the above-mentioned embodiments of this application.
- the method flow and/or device operation For example, the process of the method provided in the embodiment of the present application is executed by the above-mentioned one or more processors.
- the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium.
- the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above.
- computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- RAM random access memory
- ROM read-only memory
- EPROM or flash memory Erasable programmable read-only memory
- CD-ROM compact disk read-only memory
- the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.
- the computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and computer-readable program code is carried therein. This propagated data signal can take many forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
- the computer-readable medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
- the program code contained on the computer-readable medium can be transmitted by any suitable medium, including, but not limited to, wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
- the computer program code used to perform the operations of the present application can be written in one or more programming languages or a combination thereof.
- the programming languages include object-oriented programming languages-such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language.
- the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
- the remote computer can be connected to the user's computer through any kind of network-including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connect to the user's computer) connection).
- LAN local area network
- WAN wide area network
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
Claims (20)
- 一种信息处理方法,由终端设备的第一宿主应用执行,其特征在于,该方法包括:An information processing method, executed by a first host application of a terminal device, characterized in that the method includes:获取到小程序触发宿主应用功能的事件后,若所述第一宿主应用不具备所述功能,则将功能参数发送给所述终端设备中具备所述功能的第二宿主应用;After obtaining the event that the applet triggers the function of the host application, if the first host application does not have the function, sending the function parameters to the second host application having the function in the terminal device;接收所述第二宿主应用执行所述功能后返回的执行结果信息。Receiving execution result information returned after the second host application executes the function.
- 根据权利要求1所述的方法,其特征在于,该方法还包括:The method according to claim 1, wherein the method further comprises:所述第一宿主应用通过检测所述第一宿主应用的安装包中是否存在所述功能的信息或者所述第一宿主应用的包名是否指示存在所述功能,来确定所述第一宿主应用是否具备所述功能;或者,The first host application determines the first host application by detecting whether information about the function exists in the installation package of the first host application or whether the package name of the first host application indicates that the function exists Whether it has the function; or,所述第一宿主应用将触发宿主应用功能的事件信息发送至所述第一宿主应用的服务器端,由所述第一宿主应用的服务器端确定所述第一宿主应用是否具备所述功能。The first host application sends event information that triggers the function of the host application to the server end of the first host application, and the server end of the first host application determines whether the first host application has the function.
- 根据权利要求1所述的方法,其特征在于,该方法还包括:The method according to claim 1, wherein the method further comprises:所述第一宿主应用通过枚举所述终端设备的宿主应用列表,并检测列表中各宿主应用的安装包中是否存在标识所述功能的信息或者各宿主应用的包名是否指示存在所述功能,来确定所述终端设备中具备所述功能的宿主应用;或者,The first host application enumerates the host application list of the terminal device, and detects whether there is information identifying the function in the installation package of each host application in the list or whether the package name of each host application indicates that the function exists , To determine the host application with the function in the terminal device; or,所述第一宿主应用将枚举得到的所述终端设备的宿主应用列表发送给所述第一宿主应用的服务器端,由所述第一宿主应用的服务器端确定所述宿主应用列表中具备所述功能的宿主应用,并将具备所述功能的宿主应用的信息返回给所述第一宿主应用。The first host application sends the enumerated host application list of the terminal device to the server end of the first host application, and the server end of the first host application determines that the host application list contains all The host application with the function, and the information of the host application with the function is returned to the first host application.
- 根据权利要求3所述的方法,其特征在于,该方法还包括:The method according to claim 3, wherein the method further comprises:若所述终端设备中存在多个具备所述功能的宿主应用,则将所述多个具备所述功能的宿主应用信息展示给用户,以供用户从中选择一个宿主应用作为所述第二宿主应用。If there are multiple host applications with the function in the terminal device, the information of the multiple host applications with the function is displayed to the user, so that the user can select a host application from them as the second host application .
- 根据权利要求1所述的方法,其特征在于,将功能参数发送给所述终端设备中具备所述功能的第二宿主应用包括:The method according to claim 1, wherein sending function parameters to a second host application with the function in the terminal device comprises:通过意图Intent事件调用所述第二宿主应用的所述功能的接口并传递所述功 能参数。The interface of the function of the second host application is invoked through the Intent event and the function parameter is transferred.
- 根据权利要求1所述的方法,其特征在于,将功能参数发送给所述终端设备中具备所述功能的第二宿主应用包括:The method according to claim 1, wherein sending function parameters to a second host application with the function in the terminal device comprises:利用所述第一宿主应用与所述第二宿主应用预先协商的会话密钥对所述功能参数进行加密,将加密后的功能参数发送给所述第二宿主应用;Encrypting the function parameters by using a session key negotiated in advance by the first host application and the second host application, and sending the encrypted function parameters to the second host application;接收所述第二宿主应用执行所述功能后返回的执行结果包括:The execution result returned after receiving the second host application to execute the function includes:接收所述第二宿主应用执行所述功能后返回的加密的执行结果,利用所述会话密钥对所述加密的执行结果进行解密。Receiving the encrypted execution result returned after the second host application executes the function, and decrypts the encrypted execution result by using the session key.
- 根据权利要求1所述的方法,其特征在于,所述功能包括指定支付通道的支付功能;The method according to claim 1, wherein the function includes a payment function of a designated payment channel;所述功能参数包括订单信息;The function parameters include order information;所述执行结果信息包括:支付结果。The execution result information includes: payment result.
- 根据权利要求7所述的方法,其特征在于,所述获取到小程序触发宿主应用功能的事件包括:获取到所述第一宿主应用中小程序创建订单的请求,所述请求中包含订单信息;The method according to claim 7, wherein the obtaining of the event that the applet triggers the function of the host application comprises: obtaining a request for the applet to create an order in the first host application, and the request includes order information;接收到第一宿主应用的服务器端返回的订单相关信息后,确定所述第一宿主应用不具备所述功能。After receiving the order-related information returned by the server of the first host application, it is determined that the first host application does not have the function.
- 根据权利要求8所述的方法,其特征在于,所述订单相关信息包括:加密的订单信息、加密密钥信息和订单对账信息;The method according to claim 8, wherein the order-related information comprises: encrypted order information, encryption key information, and order reconciliation information;所述功能参数包括:所述加密的订单信息、所述加密密钥信息、校验信息和时间戳。The function parameters include: the encrypted order information, the encryption key information, verification information, and a time stamp.
- 根据权利要求9所述的方法,其特征在于,所述订单相关信息还包括订单对账信息;所述功能参数和执行结果信息中也分别包含所述订单对账信息;The method according to claim 9, wherein the order-related information further includes order reconciliation information; the function parameters and execution result information also respectively include the order reconciliation information;该方法还包括:The method also includes:所述第一宿主应用将所述执行结果信息发送至所述第一宿主应用的服务器端保存,以便所述第一宿主应用的服务器端利用所述订单对账信息进行账单对账。The first host application sends the execution result information to the server of the first host application for storage, so that the server of the first host application uses the order reconciliation information to perform bill reconciliation.
- 根据权利要求1所述的方法,其特征在于,若所述执行结果信息包括执行失败的信息,则重新执行所述将功能参数发送给所述终端设备中具备所述功能的第二宿主应用,或者将所述功能参数发送给所述终端设备中具备所述功能的其他宿主 应用。The method according to claim 1, wherein if the execution result information includes execution failure information, re-execute the sending of the function parameters to the second host application with the function in the terminal device, Or send the function parameter to other host applications that have the function in the terminal device.
- 一种信息处理方法,由终端设备的第二宿主应用执行,其特征在于,该方法包括:An information processing method, executed by a second host application of a terminal device, characterized in that the method includes:接收所述终端设备中第一宿主应用发送的功能参数,所述功能参数是第一宿主应用获取到小程序触发宿主应用功能的事件且确定自身不具备所述功能后发送的;Receiving a function parameter sent by a first host application in the terminal device, where the function parameter is sent after the first host application obtains an event in which the applet triggers the function of the host application and determines that it does not have the function;利用所述功能参数执行所述功能;Execute the function using the function parameter;向所述第一宿主应用返回执行结果信息。Return execution result information to the first host application.
- 根据权利要求12所述的方法,其特征在于,接收所述终端设备中第一宿主应用发送的功能参数包括:The method according to claim 12, wherein receiving the function parameter sent by the first host application in the terminal device comprises:接收所述第一宿主应用发送的加密的功能参数,利用所述第一宿主应用与所述第二宿主应用预先协商的会话密钥,对所述加密的功能参数进行解密;Receiving an encrypted function parameter sent by the first host application, and decrypting the encrypted function parameter by using a session key negotiated in advance by the first host application and the second host application;向所述第一宿主应用返回执行结果信息包括:Returning execution result information to the first host application includes:利用所述会话密钥对所述执行结果信息进行加密,向所述第一宿主应用返回加密后的执行结果信息。The execution result information is encrypted by using the session key, and the encrypted execution result information is returned to the first host application.
- 根据权利要求12所述的方法,其特征在于,所述功能包括指定支付通道的支付功能;The method according to claim 12, wherein the function includes a payment function of a designated payment channel;所述功能参数包括订单信息;The function parameters include order information;所述执行结果信息包括:支付结果。The execution result information includes: payment result.
- 根据权利要求14所述的方法,其特征在于,所述功能参数包括:加密的订单信息、加密密钥信息、订单对账信息、校验信息和时间戳;The method according to claim 14, wherein the function parameters include: encrypted order information, encryption key information, order reconciliation information, verification information, and time stamp;所述执行结果信息包括支付结果和所述订单对账信息;The execution result information includes the payment result and the order reconciliation information;该方法还包括:将所述功能参数发送给所述第二宿主应用的服务器端保存,以便所述第二宿主应用的服务器端利用所述订单对账信息进行订单对账。The method further includes: sending the function parameters to the server of the second host application for storage, so that the server of the second host application uses the order reconciliation information to perform order reconciliation.
- 根据权利要求14所述的方法,其特征在于,利用所述功能参数执行所述功能包括:The method according to claim 14, wherein performing the function using the function parameter comprises:将所述功能参数发送至所述第二宿主应用的服务器端;Sending the function parameter to the server of the second host application;接收所述第二宿主应用的服务器端返回的包含指定支付通道信息的支付界面;Receiving the payment interface containing the designated payment channel information returned by the server of the second host application;将用户在所述支付界面上输入的支付信息发送给所述第二宿主应用的服务器 端;Sending the payment information entered by the user on the payment interface to the server of the second host application;接收所述第二宿主应用的服务器端返回的支付结果。Receiving the payment result returned by the server of the second host application.
- 一种信息处理方法,由第一宿主应用的服务器端执行,其特征在于,该方法包括:An information processing method, executed by the server of a first host application, characterized in that the method includes:接收所述第一宿主应用发送的小程序触发宿主应用功能的事件信息,以及所述第一宿主应用枚举得到的所述第一宿主应用所在终端设备的宿主应用列表;Receiving the event information sent by the first host application of the applet triggering the function of the host application, and the host application list of the terminal device where the first host application is enumerated by the first host application;确定所述宿主应用列表中具备所述功能的宿主应用,并将具备所述功能的宿主应用的信息返回给所述第一宿主应用,以便所述第一宿主应用将功能参数发送给具备所述功能的第二宿主应用来执行所述功能。Determine the host application with the function in the host application list, and return the information of the host application with the function to the first host application, so that the first host application sends the function parameters to the host application with the function The second host application of the function performs the function.
- 根据权利要求17所述的方法,其特征在于,所述功能包括指定支付通道的支付功能;The method according to claim 17, wherein the function includes a payment function of a designated payment channel;所述获取到小程序触发宿主应用功能的事件包括:获取到所述第一宿主应用中小程序创建订单的请求,所述请求中包含订单信息;The obtaining of the event that the mini program triggers the function of the host application includes: obtaining a request for the mini program in the first host application to create an order, and the request includes order information;该方法还包括:向所述第一宿主应用返回订单相关信息,所述订单相关信息包括:加密的订单信息、加密密钥信息和订单对账信息;The method further includes: returning order-related information to the first host application, where the order-related information includes: encrypted order information, encryption key information, and order reconciliation information;接收并保存所述第一宿主应用发送的支付结果和订单对账信息;Receiving and saving the payment result and order reconciliation information sent by the first host application;所述订单对账信息用于进行账单对账。The order reconciliation information is used for bill reconciliation.
- 一种设备,其特征在于,所述设备包括:A device, characterized in that the device includes:一个或多个处理器;One or more processors;存储装置,用于存储一个或多个程序,Storage device, used to store one or more programs,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-18中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-18.
- 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-18中任一所述的方法。A storage medium containing computer-executable instructions, which are used to execute the method according to any one of claims 1-18 when executed by a computer processor.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910782782.1A CN110515678B (en) | 2019-08-23 | 2019-08-23 | Information processing method, equipment and computer storage medium |
CN201910782782.1 | 2019-08-23 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021036877A1 true WO2021036877A1 (en) | 2021-03-04 |
Family
ID=68626431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/109954 WO2021036877A1 (en) | 2019-08-23 | 2020-08-19 | Information processing method, device, and computer storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110515678B (en) |
WO (1) | WO2021036877A1 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515678B (en) * | 2019-08-23 | 2021-03-19 | 上海连尚网络科技有限公司 | Information processing method, equipment and computer storage medium |
CN112835632B (en) * | 2019-11-06 | 2022-05-27 | 上海连尚网络科技有限公司 | Method and equipment for calling end capability and computer storage medium |
CN111476637B (en) * | 2020-04-07 | 2023-07-07 | 百度在线网络技术(北京)有限公司 | Commodity information management method, host platform and commodity information management component |
CN111475342B (en) * | 2020-04-15 | 2024-04-23 | 广州三星通信技术研究有限公司 | Application switching method and application switching device for electronic terminal |
CN111754269A (en) * | 2020-06-29 | 2020-10-09 | 嘉兴想天信息科技有限公司 | Short-speaking APP integrated community system |
CN114116037A (en) * | 2020-08-31 | 2022-03-01 | 支付宝实验室(新加坡)有限公司 | Method and system for launching small programs across sites |
CN112700238A (en) * | 2020-12-31 | 2021-04-23 | 车主邦(北京)科技有限公司 | Payment information processing method and device |
CN114531432A (en) * | 2022-02-14 | 2022-05-24 | 浙江吉利控股集团有限公司 | Cross-platform based service communication method and device |
CN114979300A (en) * | 2022-07-05 | 2022-08-30 | 北京一点数娱科技有限公司 | Multi-service communication method and device for client |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030033443A1 (en) * | 2001-03-01 | 2003-02-13 | Nikolay Igotti | Virtual machine integration application program interface |
CN104102537A (en) * | 2013-04-07 | 2014-10-15 | 华为技术有限公司 | Application calling method and user terminal |
CN110515678A (en) * | 2019-08-23 | 2019-11-29 | 上海连尚网络科技有限公司 | A kind of information processing method, equipment and computer storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8458656B1 (en) * | 2008-08-25 | 2013-06-04 | United Services Automobile Association (Usaa) | Systems and methods for providing mobile browser access to mobile device functionalities |
CN107957911B (en) * | 2016-10-18 | 2019-07-05 | 腾讯科技(深圳)有限公司 | Method and apparatus, the method and apparatus of module data processing of component call |
CN109933442B (en) * | 2019-03-04 | 2022-12-30 | 上海连尚网络科技有限公司 | Method, apparatus and computer storage medium for communication between small program platforms |
CN109976922B (en) * | 2019-03-04 | 2021-02-02 | 上海连尚网络科技有限公司 | Discovery method, device and computer storage medium between small program platforms |
-
2019
- 2019-08-23 CN CN201910782782.1A patent/CN110515678B/en active Active
-
2020
- 2020-08-19 WO PCT/CN2020/109954 patent/WO2021036877A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030033443A1 (en) * | 2001-03-01 | 2003-02-13 | Nikolay Igotti | Virtual machine integration application program interface |
CN104102537A (en) * | 2013-04-07 | 2014-10-15 | 华为技术有限公司 | Application calling method and user terminal |
CN110515678A (en) * | 2019-08-23 | 2019-11-29 | 上海连尚网络科技有限公司 | A kind of information processing method, equipment and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110515678B (en) | 2021-03-19 |
CN110515678A (en) | 2019-11-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021036877A1 (en) | Information processing method, device, and computer storage medium | |
US20210150506A1 (en) | Peer-to-peer payment systems and methods | |
US11727128B2 (en) | Method and apparatus for multi-channel secure communication and data transfer | |
US9799029B2 (en) | Securely receiving data input at a computing device without storing the data locally | |
US20180101850A1 (en) | User and device authentication for web applications | |
US8973123B2 (en) | Multifactor authentication | |
CN110826043B (en) | Digital identity application system and method, identity authentication system and method | |
EP3061025B1 (en) | Method and system for authenticating service | |
WO2020057628A1 (en) | Virtual item distribution method, virtual item dispensing method, and virtual item receiving method | |
WO2021088671A1 (en) | Method for calling terminal capability, device, and computer storage medium | |
JP2022525840A (en) | Systems and methods for pre-authentication of customer support calls | |
WO2023241060A1 (en) | Data access method and apparatus | |
CN111698312A (en) | Service processing method, device, equipment and storage medium based on open platform | |
CN110545542B (en) | Main control key downloading method and device based on asymmetric encryption algorithm and computer equipment | |
EP3754934B1 (en) | Authentication information transmission method, key management client and computer device | |
CN111461726B (en) | Secret payment-free signing method and device and electronic equipment | |
CN112711955A (en) | NFC information transmission method, NFC information transmission device and NFC terminal | |
CN112101922A (en) | Cloud payment method and device, cloud system, electronic device and storage medium | |
TWI691859B (en) | System for identifying according to instruction to execute service and method thereof | |
CN109525554B (en) | Financial data communication method, device, medium and electronic equipment | |
WO2021027145A1 (en) | Non-application payment method and apparatus, and computing device and storage medium | |
CN115796865A (en) | Transaction authentication method, device, equipment and readable medium | |
CN114640683A (en) | Block chain data processing method and device, electronic equipment and storage medium | |
JP2024029681A (en) | Trust service device, trust service method, program, and system | |
CN116560876A (en) | Application program interface identification method, device, system and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20858820 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20858820 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20858820 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 220523) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20858820 Country of ref document: EP Kind code of ref document: A1 |