CN110515678B - Information processing method, equipment and computer storage medium - Google Patents
Information processing method, equipment and computer storage medium Download PDFInfo
- Publication number
- CN110515678B CN110515678B CN201910782782.1A CN201910782782A CN110515678B CN 110515678 B CN110515678 B CN 110515678B CN 201910782782 A CN201910782782 A CN 201910782782A CN 110515678 B CN110515678 B CN 110515678B
- Authority
- CN
- China
- Prior art keywords
- host application
- function
- information
- order
- 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.)
- Active
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 11
- 238000003672 processing method Methods 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 claims abstract description 62
- 230000001960 triggered effect Effects 0.000 claims abstract description 3
- 230000006870 function Effects 0.000 claims description 242
- 238000012795 verification Methods 0.000 claims description 18
- 238000009434 installation Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 description 15
- 230000008569 process Effects 0.000 description 10
- 230000003287 optical effect Effects 0.000 description 6
- 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
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 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
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 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
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
【技术领域】【Technical field】
本申请涉及计算机应用技术领域,特别涉及一种小程序场景下的信息处理方法、设备和计算机存储介质。The present application relates to the technical field of computer applications, and in particular, to an information processing method, device and computer storage medium in a small program scenario.
【背景技术】【Background technique】
本部分旨在为权利要求书中陈述的本申请的实施方式提供背景或上下文。此处的描述不因为包括在本部分中就被认为是现有技术。This section is intended to provide a background or context for the embodiments of the application that are recited in the claims. The descriptions herein are not admitted to be prior art by inclusion in this section.
小程序(Mini Program)是一种不需要安装即可使用的应用,其运行于宿主应用提供的环境下。小程序在提供服务的过程中往往会使用到宿主应用的一些功能,例如小程序触发支付功能时,需要宿主应用来提供支付通道。但如果小程序所在的宿主应用不具备该功能,则会导致该小程序的服务失败。A Mini Program is an application that can be used without installation, and runs in the environment provided by the host application. In the process of providing services, the applet often uses some functions of the host application. For example, when the applet triggers the payment function, the host application needs to provide the payment channel. However, if the host application where the applet is located does not have this function, the service of the applet will fail.
【发明内容】[Content of the invention]
有鉴于此,本申请提供了一种信息处理方法、设备和计算机存储介质,以便于解决上述问题。In view of this, the present application provides an information processing method, device and computer storage medium, so as to solve the above problems.
具体技术方案如下:The specific technical solutions are as follows:
第一方面,本申请提供了一种信息处理方法,由终端设备的第一宿主应用执行,该方法包括:In a first aspect, the present application provides an information processing method, which is executed by a first host application of a terminal device, and the method includes:
获取到小程序触发宿主应用功能的事件后,若所述第一宿主应用不具备所述功能,则将功能参数发送给所述终端设备中具备所述功能的第二宿主应用;After acquiring the event that the applet triggers the function of the host application, if the first host application does not have the function, send the function parameter to the second host application with the function in the terminal device;
接收所述第二宿主应用执行所述功能后返回的执行结果信息。Receive execution result information returned after the second host application executes the function.
根据本申请一优选实施方式,该方法还包括:According to a preferred embodiment of the present application, the method further includes:
所述第一宿主应用通过检测所述第一宿主应用的安装包中是否存在所述功能的信息或者所述第一宿主应用的包名是否指示存在所述功能,来确定所述第一宿主应用是否具备所述功能;或者,The first host application determines the first host application by detecting whether the information of the function exists in the installation package of the first host application or whether the package name of the first host application indicates the existence of the function whether it has the function described; or,
所述第一宿主应用将触发宿主应用功能的事件信息发送至所述第一宿主应用的服务器端,由所述第一宿主应用的服务器端确定所述第一宿主应用是否具备所述功能。The first host application sends event information that triggers the function of the host application to the server side of the first host application, and the server side of the first host application determines whether the first host application has the function.
根据本申请一优选实施方式,该方法还包括:According to a preferred embodiment of the present application, 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 side of the first host application, and the The server side of the first host application determines the host application with the function in the host application list, and returns the information of the host application with the function to the first host application.
根据本申请一优选实施方式,该方法还包括:According to a preferred embodiment of the present application, the method further includes:
若所述终端设备中存在多个具备所述功能的宿主应用,则将所述多个具备所述功能的宿主应用信息展示给用户,以供用户从中选择一个宿主应用作为所述第二宿主应用。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 one host application as the second host application. .
根据本申请一优选实施方式,将功能参数发送给所述终端设备中具备所述功能的第二宿主应用包括:According to a preferred embodiment of the present application, sending the function parameter to the second host application with the function in the terminal device includes:
通过意图Intent事件调用所述第二宿主应用的所述功能的接口并传递所述功能参数。The interface of the function of the second host application is called through an intent Intent event and the function parameter is passed.
根据本申请一优选实施方式,将功能参数发送给所述终端设备中具备所述功能的第二宿主应用包括:According to a preferred embodiment of the present application, sending the function parameter to the second host application with the function in the terminal device includes:
利用所述第一宿主应用与所述第二宿主应用预先协商的会话密钥对所述功能参数进行加密,将加密后的功能参数发送给所述第二宿主应用;Encrypt the function parameter by using the session key negotiated in advance between the first host application and the second host application, and send the encrypted function parameter to the second host application;
接收所述第二宿主应用执行所述功能后返回的执行结果包括:The execution result returned after receiving the second host application after executing the function includes:
接收所述第二宿主应用执行所述功能后返回的加密的执行结果,利用所述会话密钥对所述加密的执行结果进行解密。The encrypted execution result returned after the second host application executes the function is received, and the encrypted execution result is decrypted by using the session key.
根据本申请一优选实施方式,所述功能包括指定支付通道的支付功能;According to a preferred embodiment of the present application, the function includes a payment function of a designated payment channel;
所述功能参数包括订单信息;The functional parameters include order information;
所述执行结果信息包括:支付结果。The execution result information includes: payment result.
根据本申请一优选实施方式,所述获取到小程序触发宿主应用功能的事件包括:获取到所述第一宿主应用中小程序创建订单的请求,所述请求中包含订单信息;According to a preferred embodiment of the present application, the obtaining the event that the applet triggers the function of the host application includes: obtaining a request for creating an order by the applet 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.
根据本申请一优选实施方式,所述订单相关信息包括:加密的订单信息、加密密钥信息和订单对账信息;According to a preferred embodiment of the present application, the order-related information includes: encrypted order information, encrypted key information, and order reconciliation information;
所述功能参数包括:所述加密的订单信息、所述加密密钥信息、校验信息和时间戳。The functional parameters include: the encrypted order information, the encrypted key information, the verification information and the time stamp.
根据本申请一优选实施方式,所述订单相关信息还包括订单对账信息;所述功能参数和执行结果信息中也分别包含所述订单对账信息;According to a preferred embodiment of the present application, the order-related information further includes order reconciliation information; the functional parameters and execution result information also include the order reconciliation information respectively;
该方法还包括:The method also includes:
所述第一宿主应用将所述执行结果信息发送至所述第一宿主应用的服务器端保存,以便所述第一宿主应用的服务器端利用所述订单对账信息进行账单对账。The first host application sends the execution result information to the server side of the first host application for storage, so that the server side of the first host application uses the order reconciliation information to perform bill reconciliation.
根据本申请一优选实施方式,若所述执行结果信息包括执行失败的信息,则重新执行所述将功能参数发送给所述终端设备中具备所述功能的第二宿主应用,或者将所述功能参数发送给所述终端设备中具备所述功能的其他宿主应用。According to a preferred embodiment of the present application, if the execution result information includes execution failure information, the sending the function parameter to the second host application with the function in the terminal device is re-executed, or the function is sent to the second host application. The parameters are sent to other host applications with the function in the terminal device.
第二方面,本申请提供了一种信息处理方法,由终端设备的第二宿主应用执行,该方法包括:In a second aspect, the present application provides an information processing method, which is executed by a second host application of a terminal device, and the method includes:
接收所述终端设备中第一宿主应用发送的功能参数,所述功能参数是第一宿主应用获取到小程序触发宿主应用功能的事件且确定自身不具备所述功能后发送的;Receive function parameters sent by the first host application in the terminal device, where the function parameters are sent after the first host application obtains the event that the applet triggers the function of the host application and determines that it does not have the function;
利用所述功能参数执行所述功能;performing the function using the function parameter;
向所述第一宿主应用返回执行结果信息。Return execution result information to the first host application.
根据本申请一优选实施方式,接收所述终端设备中第一宿主应用发送的功能参数包括:According to a preferred embodiment of the present application, receiving the function parameters sent by the first host application in the terminal device includes:
接收所述第一宿主应用发送的加密的功能参数,利用所述第一宿主应用与所述第二宿主应用预先协商的会话密钥,对所述加密的功能参数进行解密;receiving the encrypted function parameter sent by the first host application, and decrypting the encrypted function parameter by using the session key negotiated in advance between 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.
根据本申请一优选实施方式,所述功能包括指定支付通道的支付功能;According to a preferred embodiment of the present application, the function includes a payment function of a designated payment channel;
所述功能参数包括订单信息;The functional parameters include order information;
所述执行结果信息包括:支付结果。The execution result information includes: payment result.
根据本申请一优选实施方式,所述功能参数包括:加密的订单信息、加密密钥信息、订单对账信息、校验信息和时间戳;According to a preferred embodiment of the present application, the functional parameters include: encrypted order information, encrypted key information, order reconciliation information, verification information and timestamp;
所述执行结果信息包括支付结果和所述订单对账信息;The execution result information includes payment results and the order reconciliation information;
该方法还包括:将所述功能参数发送给所述第二宿主应用的服务器端保存,以便所述第二宿主应用的服务器端利用所述订单对账信息进行订单对账。The method further includes: sending the function parameters to the server side of the second host application for storage, so that the server side of the second host application uses the order reconciliation information to perform order reconciliation.
根据本申请一优选实施方式,利用所述功能参数执行所述功能包括:According to a preferred embodiment of the present application, using the function parameter to perform the function includes:
将所述功能参数发送至所述第二宿主应用的服务器端;sending the functional parameters to the server side of the second host application;
接收所述第二宿主应用的服务器端返回的包含指定支付通道信息的支付界面;Receive the payment interface that includes the specified payment channel information returned by the server of the second host application;
将用户在所述支付界面上输入的支付信息发送给所述第二宿主应用的服务器端;sending the payment information input by the user on the payment interface to the server side of the second host application;
接收所述第二宿主应用的服务器端返回的支付结果。Receive the payment result returned by the server of the second host application.
第三方面,本申请提供了一种信息处理方法,由第一宿主应用的服务器端执行,该方法包括:In a third aspect, the present application provides an information processing method, which is executed by the server side of the first host application, and the method includes:
接收所述第一宿主应用发送的小程序触发宿主应用功能的事件信息,以及所述第一宿主应用枚举得到的所述第一宿主应用所在终端设备的宿主应用列表;Receive the event information sent by the first host application that the applet triggers the host application function, and the host application list of the terminal device where the first host application is located and obtained by the first host application enumeration;
确定所述宿主应用列表中具备所述功能的宿主应用,并将具备所述功能的宿主应用的信息返回给所述第一宿主应用,以便所述第一宿主应用将功能参数发送给具备所述功能的第二宿主应用来执行所述功能。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 parameter to the host application with the function A second host application for the function to perform the function.
根据本申请一优选实施方式,所述功能包括指定支付通道的支付功能;According to a preferred embodiment of the present application, the function includes a payment function of a designated payment channel;
所述获取到小程序触发宿主应用功能的事件包括:获取到所述第一宿主应用中小程序创建订单的请求,所述请求中包含订单信息;The obtaining the event that the applet triggers the function of the host application includes: obtaining a request for creating an order by the applet in the first host application, where 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, encrypted key information, and order reconciliation information;
接收并保存所述第一宿主应用发送的支付结果和订单对账信息;Receive and save the payment result and order reconciliation information sent by the first host application;
所述订单对账信息用于进行账单对账。The order reconciliation information is used for bill reconciliation.
第四方面,本申请提供了一种设备,所述设备包括:In a fourth aspect, the present application provides a device, the device comprising:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序,storage means for storing one or more programs,
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上所述的方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described above.
第五方面,本申请提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如上所述的方法。In a fifth aspect, the present application provides a storage medium containing computer-executable instructions for performing the method as described above when executed by a computer processor.
由以上技术方案可以看出,通过本申请使得用户在使用第一宿主应用的小程序的过程中,如果第一宿主应用不具备小程序所触发的宿主应用功能,仍能够通过终端设备中具备该功能的第二宿主应用来实现该功能,从而保证小程序成功提供服务。It can be seen from the above technical solutions that, through the present application, in the process of using the applet of the first host application, if the first host application does not have the host application function triggered by the applet, the terminal device can still have the function of the host application. The second host application of the function implements the function, thereby ensuring that the applet successfully provides services.
【附图说明】【Description of drawings】
图1为本申请所涉及的系统架构示意图;FIG. 1 is a schematic diagram of the system architecture involved in the application;
图2为本申请实施例提供的宿主应用1执行的处理流程图;FIG. 2 is a flowchart of a process performed by the host application 1 provided by the embodiment of the present application;
图3为本申请实施例提供的宿主应用2执行的处理流程图;FIG. 3 is a flowchart of a process performed by the host application 2 provided by the embodiment of the present application;
图4为本申请实施例提供的一个实现支付功能的方法流程图;4 is a flowchart of a method for implementing a payment function provided by an embodiment of the present application;
图5为本申请实施例提供的一个实现搜索功能的方法流程图;5 is a flowchart of a method for implementing a search function provided by an embodiment of the present application;
图6示出了适于用来实现本申请实施方式的示例性计算机系统/服务器的框图。Figure 6 shows a block diagram of an exemplary computer system/server suitable for use in implementing embodiments of the present application.
【具体实施方式】【Detailed ways】
为了使本申请的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本申请进行详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in detail below with reference to the accompanying drawings and specific embodiments.
为了方便对本申请的理解,首先对本申请所涉及的系统架构以及主要概念进行描述。如图1中所示,该系统架构主要包括宿主应用和宿主应用对应的服务器端。In order to facilitate the understanding of this application, the system architecture and main concepts involved in this application are first described. As shown in FIG. 1 , the system architecture mainly includes a host application and a server side corresponding to the host application.
小程序依托宿主应用在终端设备上运行,小程序运行所在的环境是宿主应用提供的。其中终端设备可以包括但不限于诸如:智能移动终端、智能家居设备、网络设备、可穿戴式设备、智能医疗设备、PC(个人计算机)等。其中智能移动设备可以包括诸如手机、平板电脑、笔记本电脑、PDA(个人数字助理)、互联网汽车等。智能家居设备可以包括智能家电设备,诸如智能电视、智能音箱等。网络设备可以包括诸如交换机、无线AP、服务器等。可穿戴式设备可以包括诸如智能手表、智能眼镜、智能手环、虚拟现实设备、增强现实设备、混合现实设备(即可以支持虚拟现实和增强现实的设备)等等。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), and the like. The smart mobile devices may include mobile phones, tablet computers, notebook computers, PDAs (personal digital assistants), Internet cars, and the like. Smart home devices may include smart home appliances, such as smart TVs, smart speakers, and the like. Network devices may include, for example, switches, wireless APs, servers, and the like. Wearable devices may include, for example, smart watches, smart glasses, smart bracelets, virtual reality devices, augmented reality devices, mixed reality devices (ie, devices that can support both virtual reality and augmented reality), and the like.
同一终端设备上可能包含多个宿主应用,图1中以包含宿主应用1和宿主应用2为例。一个宿主应用中也可能运行多个小程序,且不同宿主应用可能运行不同的小程序,也可能运行相同的小程序。如图1中所示,宿主应用1中运行小程序a1和小程序b1,宿主应用2中运行小程序a2和小程序b2。The same terminal device may contain multiple host applications. In FIG. 1, 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 may run the same applet. As shown in FIG. 1 , the applet a1 and the applet b1 are run in the host application 1 , and the applet a2 and the applet b2 are run in the host application 2 .
每个宿主应用都存在对应的服务器端,如图1中所示,宿主应用1对应服务器端1,宿主应用2对应服务器端2。每个宿主应用均可以与其对应的服务器端进行交互,在本申请实施例中,不同的服务器端之间也可以进行数据交互。Each host application has a corresponding server side. As shown in FIG. 1 , host application 1 corresponds to server side 1 , and host application 2 corresponds to server side 2 . Each host application can interact with its corresponding server, and in this embodiment of the present application, data can also be exchanged between different servers.
各服务器端可以是单一服务器,也可以是多个服务器构成的服务器群组。应该理解,图1中的终端设备、宿主应用、小程序、服务器端的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、宿主应用、小程序、服务器端。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 may be any number of terminal devices, host applications, small programs, and servers.
本申请的核心思想在于,当小程序触发宿主应用功能时,若该小程序所在宿主应用不具备该功能,则将功能参数发送给同一终端设备中具备该功能的其他宿主应用来代为执行该功能。The core idea of this application is that when the 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 .
本申请后续实施例中假设用户在图1所示系统架构的宿主应用1中使用小程序a1,小程序a1需要调用宿主应用1的功能。那么宿主应用1主要执行如图2中所示处理流程:In subsequent embodiments of the present application, it is assumed that the user uses the applet a1 in the host application 1 of the system architecture shown in FIG. 1 , and the applet a1 needs to call the function of the host application 1 . Then the host application 1 mainly executes the processing flow shown in Figure 2:
在201中,宿主应用1获取到小程序a1触发宿主应用功能的事件。In 201, the host application 1 acquires the event that the applet a1 triggers the function of the host application.
根据具体功能的不同,触发宿主应用功能的事件也不同。当小程序a1需要使用宿主应用1的某项功能时,会产生触发该功能的事件,当宿主应用1获取到该事件时,就能够获知该功能需要被调用。Depending on the specific function, the events that trigger the function of the host application are different. When the applet a1 needs to use a certain function of the host application 1, an event that triggers the function will be generated, and when the host application 1 obtains the event, it can know that the function needs to be called.
在202中,宿主应用1确定自身是否具备该功能,如果是,执行203;否则,执行204。In 202, the host application 1 determines whether it has the function, and if so, executes 203; otherwise, executes 204.
在本申请的实施例中,宿主应用1是否具备该功能的检测可以由宿主应用1自己执行,也可以通过宿主应用1对应的服务器端1来执行。In the embodiment of the present application, the detection of whether the host application 1 has this function may be performed by the host application 1 itself, or may be performed by the server side 1 corresponding to the host application 1 .
在本申请实施例中,可以预先约定将标识特定功能的信息设置于宿主应用的安装包中,如果宿主应用具备该特定功能,则其安装包中就具备标识该特定功能的信息。也可以预先针对特定功能指定宿主应用的包名,如果宿主应用具备该特定功能,则通过其包名能够指示宿主应用存在该特定功能。因此,宿主应用1可以通过检测宿主应用1的安装包中是否存在该功能的信息或者宿主应用1的包名是否指示存在该功能,来确定宿主应用1是否具备该功能。In this embodiment of the present application, information identifying a specific function may be pre-agreed in the installation package of the host application. If the host application has the specific function, the installation package contains the information identifying the specific function. The package name of the host application can also be specified in advance for a specific function. If the host application has the specific function, the host application can be indicated by the package name to indicate that the specific function exists. Therefore, the host application 1 can determine whether the host application 1 has the function by detecting whether the information of 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.
或者,宿主应用1可以将小程序a1触发宿主应用功能的事件信息发送至宿主应用1的服务器端1,由服务器端1确定宿主应用1是否具备该功能。一方面,宿主应用是否具备某种功能是与服务商的开发相关的,即服务商是否在开发该类宿主应用时将该功能集成于该宿主应用中,另一方面也与宿主应用1的版本相关,有可能存在高版本具备该功能,而低版本不具备该功能。总之,服务器端1能够依据开发配置信息以及宿主应用1的版本信息等确定宿主应用1是否具备该功能的,并将指示宿主应用1是否具备该功能的信息反馈给宿主应用1。Alternatively, the host application 1 can 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. On the one hand, 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. Related, it is possible that a higher version has this function, but a lower version does not have this function. In short, 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, etc., and feed back the information indicating whether the host application 1 has the function to the host application 1.
在203中,由宿主应用1执行该功能,结束流程。In 203, the host application 1 executes the function, and the process ends.
如果宿主应用1自身具备该功能,则按照现有技术中的方式执行该功能即可。If the host application 1 itself has this function, the function can be executed according to the method in the prior art.
在204中,宿主应用1确定终端设备中具备该功能的宿主应用2。In 204, the host application 1 determines the host application 2 that has the function in the terminal device.
上面已经提及了,在本申请实施例中,可以预先约定将标识特定功能的信息设置于宿主应用的安装包中,如果宿主应用具备该特定功能,则其安装包中就具备标识该特定功能的信息。As mentioned above, in this embodiment of the present application, it is possible to pre-agreed that the information identifying a specific function is set in the installation package of the host application. If the host application has the specific function, the installation package has the specific function to identify the specific function. Information.
也可以预先针对特定功能指定宿主应用的包名,如果宿主应用具备该特定功能,则通过其包名能够指示宿主应用存在该特定功能。The package name of the host application can also be specified in advance for a specific function. If the host application has the specific function, the host application can be indicated by the package name to indicate that the specific function exists.
因此,作为其中一种实现方式,宿主应用1可以枚举终端设备的宿主应用列表,然后检测宿主应用列表中各宿主应用的安装包中是否存在标识该功能的信息,或者检测各宿主应用的包名是否指示存在该功能,从而确定终端设备中具备该功能的宿主应用。Therefore, as one of the implementation manners, 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 with the function in the terminal device.
除了上述实现方式之外,还存在另外一种实现方式,即由服务器端1确定终端设备中具备该功能的宿主应用。具体地,宿主应用1可以将枚举得到的终端设备的宿主应用列表发送给服务器端1。服务商之间可以预先就一些特定的功能进行合作,在服务器端1配置有具备特定功能的宿主应用的信息。服务器端1接收到宿主应用1发送的宿主应用列表后,确定该列表中具备上述事件所对应功能的宿主应用,并将具备上述事件所对应功能的宿主应用的信息返回给宿主应用1。In addition to the above implementation manner, there is another implementation manner, that is, the server side 1 determines a host application having this 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 on some specific functions in advance, and the server side 1 is configured with the information of the host application with the specific functions. After receiving the host application list sent by the host application 1, the server side 1 determines the host applications in the list with the functions corresponding to the above events, and returns the host application information with the functions corresponding to the above events to the host application 1.
如果仅确定出一个具备该功能的宿主应用,则宿主应用1可以直接将该宿主应用作为上述宿主应用2。如果确定出多个具备该功能的宿主应用,则宿主应用1可以依据预设的规则从中选择一个作为上述宿主应用2。另外,作为一种优选的实施方式,可以将确定出的多个宿主应用信息展示给用户,以供用户从中选择一个宿主应用作为上述宿主应用2。If only one host application with this function is determined, the host application 1 can directly use the host application as the above-mentioned host application 2 . If multiple host applications with this function are determined, the host application 1 may select one of them as the host application 2 according to a preset rule. In addition, as a preferred embodiment, the determined multiple host application information may be displayed to the user, so that the user can select one host application as the host application 2 above.
在205中,宿主应用1将功能参数发送给终端设备中具备该功能的宿主应用2。In 205, the host application 1 sends the function parameter to the host application 2 having the function in the terminal device.
本步骤中,宿主应用1可以通过Intent(意图)事件调用宿主应用2的相应功能接口并传递功能参数。In this step, the host application 1 may call the corresponding functional interface of the host application 2 through the Intent (intent) event and pass the functional parameters.
宿主应用1在发送功能参数给宿主应用2时,为了保证信息的安全性,宿主应用1和宿主应用2可以进行会话密钥的协商,宿主应用1与宿主应用2之间的传递的信息都需要利用会话密钥进行加密。然后宿主应用1利用协商得到的会话密钥对功能参数进行加密后发送给宿主应用2,宿主应用2利用会话密钥对接收到的功能参数进行解密。When host application 1 sends function parameters to host application 2, in order to ensure the security of information, host application 1 and host application 2 can negotiate session keys, and the information transmitted between host application 1 and host application 2 needs to be Encrypted with session key. Then, the host application 1 encrypts the function parameter using the negotiated session key and sends it to the host application 2, and the host application 2 decrypts the received function parameter using the session key.
在206中,接收宿主应用2执行该功能后返回的执行结果信息。In 206, the execution result information returned after the host application 2 executes the function is received.
宿主应用1接收到执行结果信息后,可以将执行结果信息发送至服务器端1进行保存。After receiving the execution result information, the host application 1 can send the execution result information to the server 1 for saving.
宿主应用2主要执行如图3中所示的处理流程:The host application 2 mainly executes the processing flow shown in Figure 3:
在301中,宿主应用2接收宿主应用1发送的功能参数。In 301 , the host application 2 receives the function parameter sent by the host application 1 .
同样,本步骤中涉及的功能参数可以加密的功能参数。宿主应用2可以利用预先与宿主应用1协商的会话密钥对加密的功能参数进行解密。Likewise, the functional parameters involved in this step can be encrypted functional parameters. The host application 2 can decrypt the encrypted function parameters by using the session key negotiated with the host application 1 in advance.
在302中,利用该功能参数执行相应的功能。In 302, a corresponding function is performed using the function parameter.
本步骤中,宿主应用2可以将功能参数发送给服务器端2,由服务器端2依据功能参数进行处理,该步骤可以是现有的功能执行流程,在此不做详述。In this step, the host application 2 may send the function parameters to the server end 2, and the server end 2 performs processing according to the function parameters. This step may be an existing function execution flow, which will not be described in detail here.
在303中,向宿主应用1返回执行结果信息。In 303, the execution result information is returned to the host application 1.
本步骤中,宿主应用2可以将执行结果采用预先协商的会话密钥进行加密后发送给宿主应用1。In this step, the host application 2 may encrypt the execution result using the pre-negotiated session key and send it to the host application 1 .
本申请中涉及的宿主应用功能可以是小程序在使用过程中调用的宿主应用的任意功能,例如搜索功能、支付功能等。下面分别结合实施例进行描述。The host application function involved in this application may be any function of the host application called by the applet during use, such as a search function, a payment function, and the like. The following descriptions are respectively combined with the embodiments.
图4为本申请实施例提供的一个实现支付功能的方法流程图,如图4中所示,该方法可以包括以下步骤:FIG. 4 is a flowchart of a method for realizing a payment function provided by an embodiment of the present application. As shown in FIG. 4 , the method may include the following steps:
在401中,宿主应用1获取到宿主应用1中小程序a1的创建订单的请求。In 401, the host application 1 obtains a request for creating an order from the applet a1 in the host application 1.
用户通过宿主应用1使用小程序a1的过程中,在创建订单时需要调用宿主应用的支付功能。通常在创建订单时,除了包含订单编号、订单内容等信息之外,订单中还会包含支付通道的信息。该支付通道可以是服务指定的支付通道,也可以是用户选择的支付通道。因此,该创建订单的请求所包含的订单信息中包含有支付通道的信息,从而触发调用宿主应用1的采用该支付通道的支付功能。During the process of using the applet a1 through the host application 1, the user needs to call the payment function of the host application when creating an order. Usually, when an order is created, in addition to the order number, order content and other information, the order also includes payment channel information. The payment channel can be the payment channel designated by the service, or the payment channel selected by the user. Therefore, the order information included in the request for creating an order includes the information of the payment channel, thereby triggering the invocation of the payment function of the host application 1 using the payment channel.
在402中,宿主应用1将创建订单的请求发送给自身的服务器端即服务器端1。In 402 , the host application 1 sends a request for creating an order to its own server side, that is, the server side 1 .
在403中,服务器端1返回订单相关信息给宿主应用1,其中订单相关信息包括加密的订单信息、加密密钥信息和订单对账信息。In 403, the server side 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.
服务器端1确定宿主应用1不具备该支付通道的支付功能,无法直接进行支付处理,因此服务器端1向宿主应用1返回订单相关信息,宿主应用1接收到该订单相关信息后,就能够确定自身不具备该支付功能。Server 1 determines that host application 1 does not have the payment function of the payment channel and cannot directly perform payment processing. Therefore, server 1 returns order-related information to host application 1. After receiving the order-related information, host application 1 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 it uses 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 encrypted order information can be decrypted by using the encryption key information.
其中订单对账信息是服务器端1生成的具备唯一性和不可伪造性的信息,能够唯一标识订单,且难以被其他设备破解。订单对账信息可以采用只有服务器端1知晓的密钥对诸如随机数、时间戳等随机信息进行加密处理后得到,当然也可以采用其他方式,只要能够保证唯一性和不可伪造性即可。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 to the server side 1. Of course, other methods can also be used, as long as the uniqueness and unforgeability can be guaranteed.
在404中,宿主应用1确定终端设备中具备支付功能的宿主应用2。In 404, the host application 1 determines the host application 2 with the payment function in the terminal device.
宿主应用1枚举终端设备中的所有宿主应用得到宿主应用列表,检测列表中各宿主应用的安装包中是否存在标识采用指定支付通道的支付功能,得到具有指定支付通道的支付功能的宿主应用。若得到多个宿主应用,可以将该多个宿主应用通过诸如弹窗的方式显示给用户,由用户从中选择一个宿主应用作为执行支付功能的宿主应用。假设用户选择的是宿主应用2。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 specified payment channel in the installation package of each host application in the list, and obtains a host application with the payment function of the specified payment channel. If multiple host applications are obtained, the multiple host applications may be displayed to the user in a manner such as a pop-up window, and the user selects one host application as the host application for performing the payment function. Suppose the user selects host application 2.
除了该方式之外,也可以由服务器端1利用宿主应用1上传的终端设备的宿主应用列表,从中确定终端设备中具备指定支付通道的支付功能的宿主应用,将这些宿主应用的信息返回给宿主应用1。其中宿主应用1可以将宿主应用列表连同步骤402中的请求一起发送,也可以在403之后单独发送,还可以在宿主应用1启动后就进行宿主应用列表的枚举和上传给服务器端1。In addition to this method, the server 1 can also use the host application list of the terminal device uploaded by the host application 1 to determine the host applications in the terminal device that have 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 may send it separately after 403 , or enumerate the host application list and upload it to the server 1 after the host application 1 is started.
在405中,宿主应用1与宿主应用2之间协商会话密钥。In 405, a session key is negotiated between host application 1 and host application 2.
为了保证信息安全性,防止信息伪造和信息拦截,本申请实施例中可以进行宿主应用1和宿主应用2之间会话密钥的协商。会话密钥的协商方式可以采用现有技术中已有的协商方式,在此不做详述。In order to ensure information security and prevent information forgery and information interception, in this embodiment of the present application, session key negotiation between host application 1 and host application 2 may be performed. The negotiation mode of the session key may adopt the existing negotiation mode in the prior art, which will not be described in detail here.
在406中,宿主应用1利用会话密钥对支付功能参数进行加密后发送给宿主应用2。In 406, the host application 1 encrypts the payment function parameters with the session key and sends the encrypted payment function parameters to the host application 2.
支付功能参数由订单相关信息得到。其中支付功能参数除了包括加密的订单信息、加密密钥信息和订单对账信息之外,还可以包括校验信息和时间戳。其中,校验信息用于对支付功能参数进行完整性校验,例如可以是对加密的订单信息、加密密钥信息、时间戳进行哈希处理后得到的信息。Payment function parameters are obtained from order-related information. The payment function parameters may include verification information and timestamp in addition to encrypted order information, encryption key information and order reconciliation information. The verification information is used to check the integrity of the payment function parameters, for example, it may be information obtained by hashing the encrypted order information, encryption key information, and timestamp.
另外,由于不同宿主应用在执行支付功能的处理时,需求的信息不尽相同,因此需要根据执行支付功能的宿主应用进行支付功能参数的数据适配。例如可以按照预先设置的数据格式,向宿主应用2发送支付功能参数。In addition, since different host applications require different information when processing the payment function, it is necessary to perform data adaptation of the payment function parameters according to the host application executing the payment function. For example, the payment function parameters may be sent to the host application 2 according to a preset data format.
本步骤中,宿主应用1通过Intent事件调用宿主应用2的支付功能接口并传递上述支付功能参数。In this step, the host application 1 invokes the payment function interface of the host application 2 through the Intent event and transmits the above payment function parameters.
在407中,宿主应用2利用会话密钥对支付功能参数进行解密。In 407, the host application 2 decrypts the payment function parameters using the session key.
在408中,宿主应用2将支付功能参数发送给服务器端2。In 408 , the host application 2 sends the payment function parameters to the server 2 .
服务器端2接收到支付功能参数后,利用校验信息进行完整性校验,例如对加密的订单信息、加密密钥信息、时间戳进行哈希处理后,将哈希处理得到的值与校验信息进行比对,如果一致,则通过完整性校验,否完整性校验失败。After receiving the payment function parameters, the server 2 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 compared with the verification information. The information is compared, and if they are consistent, the integrity check is passed, otherwise the integrity check fails.
利用其中的加密密钥信息对加密的订单信息进行解密后,得到订单信息,利用订单信息执行后续的支付处理。After decrypting the encrypted order information by using the encryption key information therein, the order information is obtained, and subsequent payment processing is performed by using the order information.
服务器端2保存订单信息与订单对账信息之间的对应关系,以便后续进行订单对账。The server side 2 saves the correspondence between the order information and the order reconciliation information, so that the order reconciliation can be performed subsequently.
在409中,服务器端2向宿主应用2返回包含指定支付通道信息的支付界面。In 409, the server end 2 returns the payment interface containing the information of the specified payment channel to the host application 2.
订单信息中包含有指定的支付通道信息、支付金额、收款方信息等,服务器端利用这些信息生成支付界面返回给宿主应用2,由宿主应用2将支付界面展示给用户。The order information includes the specified 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.
在410中,宿主应用2将用户在支付界面输入的支付信息发送给服务器端2。In 410 , the host application 2 sends the payment information input by the user on the payment interface to the server 2 .
用户可以在支付界面上输入诸如密码、验证码、生物特征信息等支付信息,宿主应用2将支付信息发送给服务器端2。其中,密码可以是数字密钥、手势密码、语音密码等。验证码可以是图片类验证码、短信验证码等等。生物特征信息可以是指纹、声纹、虹膜、人脸等特征信息。The user can input payment information such as password, verification code, biometric information, etc. on the payment interface, and the host application 2 sends the payment information to the server 2 . The password may be a digital key, a gesture password, a voice password, or the like. The verification code can be an image verification code, an SMS verification code, etc. The biometric information can be fingerprint, voiceprint, iris, face and other characteristic information.
在411中,服务器端2对支付信息进行处理后,向宿主应用2返回执行结果信息。In 411, after the server 2 processes the payment information, it returns the execution result information to the host application 2.
服务器端2可以在本地对支付信息进行验证,也可以将支付信息发送给与指定支付通道对应的第三方支付平台或者银行系统等进行验证。如果验证通过,则支付成功,否则支付失败。The server end 2 can verify the payment information locally, and can also send the payment information to a third-party payment platform or a banking system corresponding to the designated payment channel for verification. If the verification is passed, the payment is successful, otherwise the payment fails.
另外,服务器端2会对支付结果和订单对账信息进行保存,以便后续进行订单对账处理。In addition, the server 2 will save the payment result and order reconciliation information for subsequent order reconciliation processing.
需要说明的是,上述409~411是本申请提供的其中一种实现方式,对于服务器端2而言,还可以采用其他的支付处理方式。例如,若用户预先在宿主应用2设置了免密支付,则服务器端2直接向宿主应用2返回支付成功的信息。It should be noted that the above 409 to 411 are one of the implementation manners provided by this application, and other payment processing manners may also be used for the server side 2 . For example, if the user has set password-free payment in the host application 2 in advance, the server end 2 directly returns the payment success information to the host application 2 .
在412中,宿主应用2利用会话密钥对执行结果信息进行加密后发送给宿主应用1。In 412, the host application 2 encrypts the execution result information by using the session key and sends it to the host application 1.
执行结果信息包括支付结果和订单对账信息。The execution result information includes payment results and order reconciliation information.
在413中,宿主应用1利用会话密钥对执行结果信息进行解密后,将执行结果信息发送给服务器端1进行保存。In 413, after the host application 1 decrypts the execution result information by using the session key, the execution result information is sent to the server side 1 for storage.
服务器端1保存支付结果与订单对账信息之间的对应关系。The server side 1 saves the correspondence between the payment result and the order reconciliation information.
如果后续需要针对本次交易进行对账,则可以在414中,由服务器端1和服务器端2利用各自保存的订单信息、支付结果与订单对账信息之间的对应关系,进行订单对账处理。If reconciliation for this transaction is required in the future, in 414, the server side 1 and the server side 2 can use the corresponding relationship between the order information, payment results and order reconciliation information saved respectively to perform order reconciliation processing .
图5为本申请实施例提供的一个实现搜索功能的方法流程图,如图5中所示,该方法可以包括以下步骤:FIG. 5 is a flowchart of a method for implementing a search function provided by an embodiment of the present application. As shown in FIG. 5 , the method may include the following steps:
在501中,宿主应用1获取的宿主应用1中小程序b1的搜索请求。In 501, the host application 1 obtains a search request for the applet b1 in the host application 1.
用户通过宿主应用1在使用小程序b1的过程中,需要调用宿主应用的搜索功能,则会发送搜索请求,该搜索请求中可以包括搜索关键词,还可以进一步包括:搜索类型信息,例如是网页搜索、图片搜索、地图搜索等。In the process of using the applet b1 through the host application 1, if the user needs to call the search function of the host application, a search request will be sent. The search request may include search keywords, and may further include: search type information, such as web pages Search, image search, map search, etc.
在502中,宿主应用1检测出自身不具备搜索功能后,确定终端设备中具备搜索功能的宿主应用2。In 502, after the host application 1 detects that it does not have the search function, it determines the host application 2 that has the search function in the terminal device.
宿主应用1可以检测自身安装包中是否存在标识搜索功能的信息,如果否,则可以认为检测出自身不具备搜索功能。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 that it has detected that it does not have the search function.
除了这种方式之外,也可以采用图4所示支付实施例中将搜索请求发送给宿主应用1的服务器端1,由服务器端1来确定宿主应用1是否具备搜索功能的方式。In addition to this method, the method of sending the search request to the server side 1 of the host application 1 in the payment embodiment shown in FIG. 4 can also be used, and the server side 1 determines whether the host application 1 has a search function.
宿主应用1枚举终端设备中的宿主应用列表,通过检测列表中各宿主应用的安装包中是否存在标识搜索功能的信息,来确定终端设备中具备搜索功能的宿主应用。如果存在多个具备搜索功能的宿主应用,则可以将该多个宿主应用的信息显示给用户,由用户从中选择一个宿主应用,假设选择的是宿主应用2。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 can select one host application from them, assuming that the host application 2 is selected.
在503中,宿主应用1与宿主应用2之间协商会话密钥。In 503, a session key is negotiated between host application 1 and host application 2.
在504中,宿主应用1利用会话密钥对搜索功能参数进行加密后发送给宿主应用2。In 504, the host application 1 encrypts the search function parameter with the session key and sends it to the host application 2.
搜索功能参数由搜索请求得到。其中搜索功能参数除了包括搜索关键词、搜索类型等搜索信息之外,还可以包括校验信息、时间戳等信息。其中,搜索信息也可以采用加密的形式,这种情况下,搜索功能参数还包括加密密钥信息。Search function parameters are obtained from the search request. The search function parameters may include, in addition to search information such as search keywords and search types, information such as verification information, time stamps, and the like. The search information may also be in an encrypted form. In this case, the search function parameter also includes encryption key information.
本步骤中,宿主应用1可以通过Intent事件调用宿主应用2的搜索功能接口并传递上述搜索功能参数。In this step, the host application 1 may call the search function interface of the host application 2 through the Intent event and pass the above search function parameters.
在505中,宿主应用2利用会话密钥对搜索功能参数进行解密。In 505, the host application 2 decrypts the search function parameters using the session key.
在506中,宿主应用2将搜索功能参数发送给服务器端2。In 506 , the host application 2 sends the search function parameters to the server side 2 .
服务器端2接收到搜索功能参数后,利用校验信息进行完整性校验。利用其中的加密密钥信息对加密的搜索信息进行解密后,得到搜索信息,利用搜索信息进行搜索处理。After receiving the search function parameters, the server end 2 uses the verification information to perform integrity verification. After decrypting the encrypted search information by using the encryption key information therein, the search information is obtained, and the search process is performed by using the search information.
在507中,服务器端2返回搜索结果信息给宿主应用2。In 507 , the server 2 returns the search result information to the host application 2 .
在执行搜索后,可以将诸如搜索结果页面的地址信息发送给宿主应用2。After the search is performed, address information such as the search result page may be sent to the host application 2 .
在508中,宿主应用2利用会话密钥对搜索结果信息进行加密后发送给宿主应用1。In 508 , the host application 2 encrypts the search result information by using the session key and sends it to the host application 1 .
在509中,宿主应用1利用会话密钥对搜索结果信息进行解密后,对搜索结果进行展现。In 509, the host application 1 presents the search result after decrypting the search result information by using the session key.
图6示出了适于用来实现本申请实施方式的示例性计算机系统/服务器012的框图。图6显示的计算机系统/服务器012仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Figure 6 shows a block diagram of an exemplary computer system/
如图6所示,计算机系统/服务器012以通用计算设备的形式表现。计算机系统/服务器012的组件可以包括但不限于:一个或者多个处理器或者处理单元016,系统存储器028,连接不同系统组件(包括系统存储器028和处理单元016)的总线018。As shown in FIG. 6, computer system/
总线018表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。
计算机系统/服务器012典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机系统/服务器012访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Computer system/
系统存储器028可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)030和/或高速缓存存储器032。计算机系统/服务器012可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统034可以用于读写不可移动的、非易失性磁介质(图6未显示,通常称为“硬盘驱动器”)。尽管图6中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线018相连。存储器028可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本申请各实施例的功能。
具有一组(至少一个)程序模块042的程序/实用工具040,可以存储在例如存储器028中,这样的程序模块042包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块042通常执行本申请所描述的实施例中的功能和/或方法。A program/
计算机系统/服务器012也可以与一个或多个外部设备014(例如键盘、指向设备、显示器024等)通信,在本申请中,计算机系统/服务器012与外部雷达设备进行通信,还可与一个或者多个使得用户能与该计算机系统/服务器012交互的设备通信,和/或与使得该计算机系统/服务器012能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口022进行。并且,计算机系统/服务器012还可以通过网络适配器020与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器020通过总线018与计算机系统/服务器012的其它模块通信。应当明白,尽管图6中未示出,可以结合计算机系统/服务器012使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The computer system/
处理单元016通过运行存储在系统存储器028中的程序,从而执行各种功能应用以及数据处理,例如实现本申请实施例所提供的方法流程。The
上述的计算机程序可以设置于计算机存储介质中,即该计算机存储介质被编码有计算机程序,该程序在被一个或多个计算机执行时,使得一个或多个计算机执行本申请上述实施例中所示的方法流程和/或装置操作。例如,被上述一个或多个处理器执行本申请实施例所提供的方法流程。The above-mentioned computer program can be provided in a computer storage medium, that is, the computer storage medium is encoded with a computer program, which, when executed by one or more computers, causes one or more computers to execute the programs shown in the above-mentioned embodiments of the present application. The method flow and/or device operation. For example, the method process provided by the embodiments of the present application is executed by the above-mentioned one or more processors.
随着时间、技术的发展,介质含义越来越广泛,计算机程序的传播途径不再受限于有形介质,还可以直接从网络下载等。可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。With the development of time and technology, the meaning of media has become more and more extensive, and the dissemination of computer programs is no longer limited to tangible media, and can also be downloaded directly from the network. Any combination of one or more computer-readable media may be employed. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (a non-exhaustive list) of computer readable storage media include: electrical connections having 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 devices, magnetic storage devices, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may 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 may be connected to an external computer (eg, using an Internet service provider through the Internet connect).
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the present application. within the scope of protection.
Claims (20)
Priority Applications (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 |
PCT/CN2020/109954 WO2021036877A1 (en) | 2019-08-23 | 2020-08-19 | Information processing method, device, and computer storage medium |
Applications Claiming Priority (1)
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 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110515678A CN110515678A (en) | 2019-11-29 |
CN110515678B true CN110515678B (en) | 2021-03-19 |
Family
ID=68626431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910782782.1A Active CN110515678B (en) | 2019-08-23 | 2019-08-23 | Information processing method, equipment 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 | 上海连尚网络科技有限公司 | A terminal capability calling method, device 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 |
CN114116037B (en) * | 2020-08-31 | 2024-12-31 | 先进新星技术(新加坡)控股有限公司 | A method and system for delivering mini-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 |
CN114979300B (en) * | 2022-07-05 | 2024-06-04 | 北京弥特信息科技有限公司 | Multi-service communication method and device for client |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030033443A1 (en) * | 2001-03-01 | 2003-02-13 | Nikolay Igotti | Virtual machine integration application program interface |
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 |
CN104102537B (en) * | 2013-04-07 | 2017-09-29 | 华为技术有限公司 | A kind of application call method and user terminal |
CN107957911B (en) * | 2016-10-18 | 2019-07-05 | 腾讯科技(深圳)有限公司 | Method and apparatus, the method and apparatus of module data processing of component call |
CN109976922B (en) * | 2019-03-04 | 2021-02-02 | 上海连尚网络科技有限公司 | Discovery method, device and computer storage medium between applet platforms |
CN109933442B (en) * | 2019-03-04 | 2022-12-30 | 上海连尚网络科技有限公司 | Method, apparatus and computer storage medium for communication between small program platforms |
CN110515678B (en) * | 2019-08-23 | 2021-03-19 | 上海连尚网络科技有限公司 | Information processing method, equipment and computer storage medium |
-
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
Also Published As
Publication number | Publication date |
---|---|
WO2021036877A1 (en) | 2021-03-04 |
CN110515678A (en) | 2019-11-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110515678B (en) | Information processing method, equipment and computer storage medium | |
US12125016B2 (en) | Peer-to-peer payment systems and methods | |
US9799029B2 (en) | Securely receiving data input at a computing device without storing the data locally | |
US9652610B1 (en) | Hierarchical data security measures for a mobile device | |
CN110826043B (en) | Digital identity application system and method, identity authentication system and method | |
US20180101850A1 (en) | User and device authentication for web applications | |
WO2016110101A1 (en) | Fingerprint authentication method and device, intelligent terminal, and computer storage medium | |
US20130276087A1 (en) | Multifactor authentication | |
US10733594B1 (en) | Data security measures for mobile devices | |
CN103617394A (en) | SDK providing and invoking method and associated device | |
WO2023241060A1 (en) | Data access method and apparatus | |
CN115001714A (en) | Resource access method and device, electronic equipment and storage medium | |
CN113918904A (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
JP2015531501A (en) | Managing digital receipts | |
CN111404706B (en) | Application download method, secure element, client device and service management device | |
CN109949150A (en) | A scenario-based user credit authorization method, device, server and storage medium | |
CN112835632B (en) | A terminal capability calling method, device and computer storage medium | |
CN110545542B (en) | Main control key downloading method and device based on asymmetric encryption algorithm and computer equipment | |
CN112711955A (en) | NFC information transmission method, NFC information transmission device and NFC terminal | |
CN113783835B (en) | Password sharing method, device, equipment and storage medium | |
CN115455448A (en) | Signature method, signature device, electronic device and storage medium | |
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 | |
US20220051092A1 (en) | System and methods for translating error messages |
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 | ||
CP03 | Change of name, title or address |
Address after: 200120 2, building 979, Yun Han Road, mud town, Pudong New Area, Shanghai Patentee after: Shanghai Lianshang Network Technology Group Co.,Ltd. Country or region after: China Address before: 200120 2, building 979, Yun Han Road, mud town, Pudong New Area, Shanghai Patentee before: SHANGHAI LIANSHANG NETWORK TECHNOLOGY Co.,Ltd. Country or region before: China |