CN112738329B - Data interaction method, device and storage medium - Google Patents
Data interaction method, device and storage medium Download PDFInfo
- Publication number
- CN112738329B CN112738329B CN202011595053.4A CN202011595053A CN112738329B CN 112738329 B CN112738329 B CN 112738329B CN 202011595053 A CN202011595053 A CN 202011595053A CN 112738329 B CN112738329 B CN 112738329B
- Authority
- CN
- China
- Prior art keywords
- quick application
- calling terminal
- running
- called number
- quick
- 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
- 238000000034 method Methods 0.000 title claims abstract description 53
- 230000003993 interaction Effects 0.000 title claims abstract description 47
- 230000001960 triggered effect Effects 0.000 claims abstract description 7
- 230000008569 process Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 6
- 230000004044 response Effects 0.000 claims description 3
- 238000012546 transfer Methods 0.000 claims description 3
- 238000009434 installation Methods 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 6
- 239000000284 extract Substances 0.000 description 4
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008094 contradictory effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/141—Systems for two-way working between two video terminals, e.g. videophone
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例涉及信息交互技术领域,特别涉及一种数据交互方法、装置及存储介质,通过主叫终端的拨号程序即可触发快应用程序,简单快捷,无需用户使用额外的APP,且无需用户主动查找、搜索小程序,只需正常拨打某个被叫号码,即可自动触发该被叫号码对应的快应用程序,通过加载该快应用程序的运行代码,即可实现主叫终端与快应用程序的数据交互,无须下载安装包到主叫终端后安装运行,无须进行界面或App跳转,而是即时从快应用平台加载快应用程序X的运行文件/代码,直接在主叫终端内进行解析展示和运行,以与所述快应用程序进行数据交互。
The embodiments of the present invention relate to the technical field of information interaction, and in particular, to a data interaction method, device and storage medium. A quick application program can be triggered through a dialing program of a calling terminal, which is simple and fast, does not require a user to use an additional APP, and does not require a user Actively find and search the applet, just dial a called number normally, the quick application corresponding to the called number can be automatically triggered, and by loading the running code of the quick application, the calling terminal and the quick application can be realized. The data interaction of the program does not need to download the installation package to the calling terminal to install and run, and does not need to perform interface or App jump, but immediately loads the running file/code of the quick application X from the quick application platform, and executes it directly in the calling terminal Parse display and run for data interaction with the quick application.
Description
技术领域technical field
本申请实施例涉及信息交互技术领域,特别涉及一种数据交互方法、装置及存储介质。The embodiments of the present application relate to the technical field of information interaction, and in particular, to a data interaction method, device, and storage medium.
背景技术Background technique
快应用一般指微信、支付宝、百度等App提供的内置“小程序”,用户通过在上述App内搜索运行小程序,获取服务。“小程序”需要用户首先安装能提供小程序服务的App(例如微信、百度、支付宝)并且注册运行,然后搜索第三方小程序名称后才能运行,同时,用户还必须知道存在的小程序的名称,对于部分不了解App下载安装应用,以及不知道小程序名称的用户来说,需要花费较长时间完成下载、安装、注册后才能使用,应用效率较低。Quick apps generally refer to the built-in "mini-programs" provided by apps such as WeChat, Alipay, and Baidu. Users can obtain services by searching and running the mini-programs in the above-mentioned apps. "Mini Programs" require users to first install an app that can provide Mini Program services (such as WeChat, Baidu, Alipay) and register to run, and then search for the name of a third-party Mini Program before it can be run. At the same time, the user must also know the name of the existing Mini Program. , For some users who do not know the app download and install application, and do not know the name of the applet, it takes a long time to complete the download, installation, and registration before they can be used, and the application efficiency is low.
另一方面,在现有技术中,通过手机等通信终端实现拨号通话通常采用如下方式:直接通过手机“拨号”呼叫指定号码后,接通为语音电话或视频电话,在通话中进行基础的语音、视频交流沟通,这种通信模式不能支持更丰富的交互式指令触发(如查看文字、图片、资讯,访问多媒体信息、运行游戏等),这大大限制了拨打号码能获取的产品/服务范围。On the other hand, in the prior art, a dial-up call is usually implemented through a communication terminal such as a mobile phone in the following manner: after calling a designated number directly through the mobile phone "dial-up", the connection is made as a voice call or a video call, and basic voice calls are made during the call. , video communication, this communication mode cannot support richer interactive command triggers (such as viewing text, pictures, information, accessing multimedia information, running games, etc.), which greatly limits the range of products/services that can be obtained by dialing a number.
发明内容SUMMARY OF THE INVENTION
本发明实施方式的目的在于提供一种数据交互方法、装置及存储介质,使用主叫终端的拨号程序即可触发快应用程序,实现各种数据共享功能,具有提高用户操作效率和提升用户体验的技术效果。The purpose of the embodiments of the present invention is to provide a data interaction method, device and storage medium, which can trigger the quick application program by using the dialing program of the calling terminal, realize various data sharing functions, and have the advantages of improving user operation efficiency and user experience. technical effect.
为实现上述技术效果,第一方面,本发明的实施方式提供了一种数据交互方法,应用于主叫终端,包括:In order to achieve the above technical effects, in the first aspect, embodiments of the present invention provide a data interaction method, which is applied to a calling terminal, including:
在主叫终端输入被叫号码确认呼叫后,向快应用平台发送网络接口请求,所述网络接口请求中包括被叫号码;After the calling terminal inputs the called number to confirm the call, sends a network interface request to the quick application platform, where the network interface request includes the called number;
接收所述快应用平台返回的快应用程序的运行代码,所述快应用程序为快应用平台根据预先存储的被叫号码与快应用程序的对应关系,在快应用程序数据库中匹配得到的;Receive the running code of the quick application program returned by the quick application platform, and the quick application program is obtained by matching the quick application program in the quick application program database according to the pre-stored correspondence between the called number and the quick application program;
主叫终端运行所述运行代码,以与所述快应用程序进行数据交互。The calling terminal runs the running code to perform data interaction with the quick application.
第二方面,本发明的实施方式提供了一种数据交互方法,应用于快应用平台,包括:In the second aspect, an embodiment of the present invention provides a data interaction method, which is applied to a quick application platform, including:
接收主叫终端发送的网络接口请求,所述网络接口请求中包括被叫号码;receiving a network interface request sent by the calling terminal, where the network interface request includes the called number;
根据预先存储的被叫号码与快应用程序的对应关系,在快应用程序数据库中匹配得到被叫号码对应的快应用程序,提取所述快应用程序的运行代码,将所述运行代码发送至所述主叫终端。According to the pre-stored correspondence between the called number and the quick application, the quick application corresponding to the called number is matched in the quick application database, the running code of the quick application is extracted, and the running code is sent to the the calling terminal.
第三方面,本发明实施例提供了一种数据交互装置,应用于主叫终端,包括:In a third aspect, an embodiment of the present invention provides a data interaction device, which is applied to a calling terminal, including:
呼叫模块,用于在输入被叫号码确认呼叫后,向快应用平台发送网络接口请求,所述网络接口请求中包括被叫号码;a calling module, configured to send a network interface request to the quick application platform after inputting the called number to confirm the call, where the network interface request includes the called number;
接收模块,用于接收所述快应用平台返回的快应用程序的运行代码,所述快应用程序为快应用平台根据预先存储的被叫号码与快应用程序的对应关系,在快应用程序数据库中匹配得到的;The receiving module is used to receive the running code of the quick application program returned by the quick application platform, and the quick application program is the quick application program stored in the quick application program database according to the pre-stored correspondence between the called number and the quick application program. matched;
数据交互模块,用于运行所述运行代码,以与所述快应用程序进行数据交互。A data interaction module, configured to run the running code to perform data interaction with the quick application.
第四方面,本发明实施例提供了一种数据交互装置,应用于快应用平台,包括:In a fourth aspect, an embodiment of the present invention provides a data interaction device, which is applied to a quick application platform, including:
接收模块,用于接收主叫终端发送的网络接口请求,所述网络接口请求中包括被叫号码;a receiving module, configured to receive a network interface request sent by the calling terminal, where the network interface request includes the called number;
匹配模块,用于根据预先存储的被叫号码与快应用程序的对应关系,在快应用程序数据库中匹配得到被叫号码对应的快应用程序,提取所述快应用程序的运行代码,将所述运行代码发送至所述主叫终端。The matching module is used to obtain the quick application corresponding to the called number by matching in the quick application database according to the pre-stored correspondence between the called number and the quick application, extract the running code of the quick application, The running code is sent to the calling terminal.
第五方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如本发明第一方面实施例所述数据交互方法或如本发明第二方面实施例所述数据交互方法。In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the data interaction method described in the embodiment of the first aspect of the present invention or the method as described in the first aspect of the present invention. The data interaction method according to the embodiment of the second aspect of the present invention.
本发明实施方式相对于现有技术而言,通过主叫终端的拨号程序即可触发快应用程序,简单快捷,无需用户使用额外的APP,且无需用户主动查找、搜索小程序,只需正常拨打某个被叫号码,即可自动触发该被叫号码对应的快应用程序,通过加载该快应用程序的运行代码,即可实现主叫终端与快应用程序的数据交互,大幅降低操作成本,使得任何一个被叫号码都可以自主开发快应用程序。Compared with the prior art, the embodiment of the present invention can trigger the quick application program through the dialing program of the calling terminal, which is simple and fast, does not require the user to use an additional APP, and does not require the user to actively search and search for the applet, and only needs to dial normally. A called number can automatically trigger the quick application corresponding to the called number. By loading the running code of the quick application, the data interaction between the calling terminal and the quick application can be realized, which greatly reduces the operation cost and makes Any called number can independently develop a quick application.
另外,所述向快应用平台发送网络接口请求后,还包括:In addition, after the network interface request is sent to the quick application platform, the method further includes:
若接收到所述快应用平台返回的未匹配到与所述被叫号码对应的快应用程序的消息,或在设定时间内未接收到所述快应用平台返回的快应用程序的运行代码,则拨打所述被叫号码进行音视频通话。If receiving the message returned by the quick application platform that does not match the quick application program corresponding to the called number, or not receiving the running code of the quick application program returned by the quick application platform within the set time, Then dial the called number to make an audio and video call.
具体地,快应用平台收到主叫终端发送的网络接口请求后,需要从快应用程序数据库中进行对比查找,判断出该被叫号码在快应用平台是否已经部署运行了指定的快应用程序,则将该信息返回主叫终端,主叫终端自动触发按照传统拨号方式与被呼叫方进行音视频通话,同时,为了避免用户通话呼叫等待时间过长,若快应用平台在设定时间内未匹配到被叫号码对应的快应用程序,同时未返回匹配失败的信息,此时,主叫终端自动触发按照传统拨号方式与被呼叫方进行音视频通话。Specifically, after receiving the network interface request sent by the calling terminal, the quick application platform needs to compare and search from the quick application database to determine whether the called number has already deployed and run the specified quick application on the quick application platform. Then the information is returned to the calling terminal, and the calling terminal automatically triggers an audio and video call with the called party according to the traditional dialing method. Go to the quick application corresponding to the called number, and at the same time, no matching failure information is returned. At this time, the calling terminal automatically triggers an audio and video call with the called party according to the traditional dialing method.
另外,所述向快应用平台发送网络接口请求后,还包括:In addition, after the network interface request is sent to the quick application platform, the method further includes:
在主叫终端弹窗询问是否进行音视频通话;A pop-up window on the calling terminal asks whether to make an audio and video call;
若接收到进行音视频通话的响应指令,则拨打所述被叫号码进行音视频通话。If a response instruction for making an audio and video call is received, the called number is dialed to make an audio and video call.
通过弹窗询问是否进行传统的音视频通话,能够满足用户的不同需求,该弹窗询问可以在接收快应用程序的运行代码的过程中,也可以是在运行该运行代码的过程,若用户只想直接拨号与被呼叫方通信,则可以在主叫终端界面生成一拨号快捷方式,用户可基于该拨号快捷方式直接拨打被叫号码进行传统通话。The pop-up window asking whether to make a traditional audio and video call can meet the different needs of users. If you want to dial directly to communicate with the called party, you can generate a dialing shortcut on the calling terminal interface, and the user can directly dial the called number to make a traditional call based on the dialing shortcut.
另外,所述以与所述快应用程序进行数据交互,具体包括:In addition, the data interaction with the quick application specifically includes:
在所述主叫终端的显示界面展示所述快应用程序的运行界面,并根据所述运行界面接收到的数据共享指令与所述快应用平台中运行的快应用程序相互传送共享文件,根据所述运行界面接收到的权限共享指令向所述快应用平台中运行的所述快应用程序发送用户信息和设备硬件数据。Display the running interface of the quick application program on the display interface of the calling terminal, and transfer shared files with the quick application running in the quick application platform according to the data sharing instruction received on the running interface. The permission sharing instruction received by the running interface sends user information and device hardware data to the quick application running in the quick application platform.
另外,所述共享文件包括文本、图片、音频和视频;所述用户信息包括手机号、联系地址,所述设备硬件数据包括摄像头信息、麦克风信息、陀螺仪信息、光线传感器信息、距离传感器信息、红外传感器信息和定位信息。In addition, the shared file includes text, pictures, audio and video; the user information includes mobile phone number, contact address, and the device hardware data includes camera information, microphone information, gyroscope information, light sensor information, distance sensor information, Infrared sensor information and positioning information.
另外,所述接收主叫终端发送的网络接口请求后,还包括:In addition, after receiving the network interface request sent by the calling terminal, the method further includes:
若判断在所述快应用程序数据库中没有与所述被叫号码对应的快应用程序,或在设定时间内未匹配到与所述被叫号码对应的快应用程序,则生成匹配失败消息,将所述匹配失败消息返回至所述主叫终端。If it is determined that there is no quick application corresponding to the called number in the quick application database, or no quick application corresponding to the called number is matched within the set time, a matching failure message is generated, The matching failure message is returned to the calling terminal.
附图说明Description of drawings
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplifications do not constitute limitations of the embodiments, and elements with the same reference numerals in the drawings are denoted as similar elements, Unless otherwise stated, the figures in the accompanying drawings do not constitute a scale limitation.
图1是根据本发明第一实施例的一种数据交互方法流程图;1 is a flowchart of a data interaction method according to a first embodiment of the present invention;
图2是根据本发明实施例的数据交互方法实际应用时主叫终端的操作显示流程图;Fig. 2 is the operation display flow chart of the calling terminal when the data interaction method according to the embodiment of the present invention is actually applied;
图3是根据本发明第二实施例的一种数据交互方法流程图。FIG. 3 is a flowchart of a data interaction method according to the second embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本发明的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。In order to make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can appreciate that, in the various embodiments of the present invention, many technical details are set forth in order for the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be realized. The following divisions of the various embodiments are for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention, and the various embodiments may be combined with each other and referred to each other on the premise of not contradicting each other.
本申请实施例中的术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。本申请的描述中,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列部件或单元的系统、产品或设备没有限定于已列出的部件或单元,而是可选地还包括没有列出的部件或单元,或可选地还包括对于这些产品或设备固有的其它部件或单元。本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。The terms "first" and "second" in the embodiments of the present application are only used for the purpose of description, and cannot be understood as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In the description of this application, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a system, product or device comprising a series of components or units is not limited to the listed components or units, but may optionally also include components or units not listed, or Other parts or units inherent in the equipment. In the description of the present application, "a plurality of" means at least two, such as two, three, etc., unless otherwise expressly and specifically defined.
快应用一般指微信、支付宝、百度等App提供的内置“小程序”,用户通过在上述App内搜索运行小程序,获取服务,这类快应用需要用户先安装能提供小程序服务的APP并且注册运行,然后搜索快应用小程序的名称后才能运行,这对于一部分用户来说提高了使用门槛,需要花费较长时间来完成下载、安装、注册的过程,效率低下,且需要用户预先知道快应用小程序的名称;另一方面,通过手机等通信终端实现拨号通话通常采用如下方式:直接通过手机“拨号”呼叫指定号码后,接通为语音电话或视频电话,在通话中进行基础的语音、视频交流沟通,这种通信模式不能支持更丰富的交互式指令触发(如查看文字、图片、资讯,访问多媒体信息、运行游戏等),这大大限制了拨打号码能获取的产品/服务范围。Quick apps generally refer to the built-in "mini-programs" provided by apps such as WeChat, Alipay, and Baidu. Users can obtain services by searching and running the mini-programs in the above-mentioned apps. This type of quick-applying requires users to first install an APP that can provide mini-program services and register. Run, and then search for the name of the quick application applet before it can be run, which raises the threshold for some users, and it takes a long time to complete the process of downloading, installing, and registering, which is inefficient and requires users to know the quick application in advance. The name of the applet; on the other hand, the dial-up call through a communication terminal such as a mobile phone usually adopts the following method: after calling the designated number directly through the mobile phone "dial-up", it is connected to a voice call or video call, and basic voice and video calls are made during the call. Video communication, this communication mode cannot support richer interactive command triggers (such as viewing text, pictures, information, accessing multimedia information, running games, etc.), which greatly limits the range of products/services that can be obtained by dialing a number.
因此,本发明实施例通过主叫终端的拨号程序即可触发快应用程序,简单快捷,无需用户使用额外的APP,且无需用户主动查找、搜索小程序,只需正常拨打某个被叫号码,即可自动触发该被叫号码对应的快应用程序,通过加载该快应用程序的运行代码,即可实现主叫终端与快应用程序的数据交互。以下将通过多个实施例进行展开说明和介绍。Therefore, in this embodiment of the present invention, the quick application program can be triggered through the dialing program of the calling terminal, which is simple and fast, does not require the user to use an additional APP, and does not require the user to actively search and search for the applet, and only needs to dial a certain called number normally. The quick application program corresponding to the called number can be automatically triggered, and the data interaction between the calling terminal and the quick application program can be realized by loading the running code of the quick application program. The following will expand the description and introduction through multiple embodiments.
本发明的第一实施例涉及一种数据交互方法,应用于主叫终端,具体流程如图1中所示,包括:The first embodiment of the present invention relates to a data interaction method, which is applied to a calling terminal. The specific process is shown in FIG. 1 , including:
步骤S11、在主叫终端输入被叫号码确认呼叫后,向快应用平台发送网络接口请求,所述网络接口请求中包括被叫号码;Step S11, after the calling terminal inputs the called number to confirm the call, sends a network interface request to the quick application platform, where the network interface request includes the called number;
S111、主叫用户A在主叫终端拨号,并输入被叫号码B,并点击呼叫;S111, the calling user A dials on the calling terminal, inputs the called number B, and clicks to call;
S112、主叫终端内置的拨号程序在接收到上述呼叫指令后,首先向快应用平台发送一个网络接口请求,该网络接口请求中附带有本次拨号呼叫的主叫号码和被叫号码。S112. After receiving the above call instruction, the built-in dialing program of the calling terminal first sends a network interface request to the quick application platform, and the network interface request is accompanied by the calling number and called number of the dialing call.
步骤S12、接收所述快应用平台返回的快应用程序的运行代码,所述快应用程序为快应用平台根据预先存储的被叫号码与快应用程序的对应关系,在快应用程序数据库中匹配得到的;Step S12: Receive the running code of the quick application program returned by the quick application platform, where the quick application program is obtained by matching the quick application program in the quick application program database according to the pre-stored correspondence between the called number and the quick application program. of;
具体地,本实施例中,需要预先搭建一个快应用平台,用于连接开发者、主叫终端、普通用户和运营商,以打造一个良性的开发者生态,由快应用平台、主叫终端、运营商共同建立一套标准,该标准包括主叫终端能力、开发者文档、代码格式、拨号流程等,使得本实施例的方法能够顺利推行。Specifically, in this embodiment, a quick application platform needs to be built in advance to connect developers, calling terminals, ordinary users and operators, so as to create a benign developer ecosystem, which consists of the quick application platform, calling terminal, The operators jointly establish a set of standards, which include calling terminal capabilities, developer documents, code formats, dialing procedures, etc., so that the method in this embodiment can be implemented smoothly.
在该快应用平台中包括一个快应用程序数据库,该快应用程序数据库中预先部署有多个快应用程序,每个快应用程序与一个唯一的被叫号码对应,根据快应用程序与被叫号码的对应关系,快应用平台可以根据网络接口请求中携带的被叫号码,立即从快应用数据库中进行比对查询,判断出该被叫号码在快应用平台是否已经部署运行了指定快应用程序,如果该被叫号码在快应用平台已经部署了快应用程序X,则快应用平台向主叫方A的终端返回快应用程序X的运行代码/文件;The quick application platform includes a quick application database, a plurality of quick applications are pre-deployed in the quick application database, each quick application corresponds to a unique called number, according to the quick application and the called number The quick application platform can immediately compare and query from the quick application database according to the called number carried in the network interface request to determine whether the called number has been deployed and run the specified quick application program on the quick application platform, If a quick application X has been deployed on the quick application platform for the called number, the quick application platform returns the running code/file of the quick application X to the terminal of the calling party A;
步骤S13、主叫终端运行所述运行代码,以与所述快应用程序进行数据交互。Step S13, the calling terminal runs the running code to perform data interaction with the quick application.
具体地,主叫方A的主叫终端收到快应用程序X的运行文件/代码后,无须下载安装包到主叫终端后安装运行,而是即时从快应用平台加载快应用程序X的运行文件/代码,无须进行界面或App跳转,直接在主叫终端内进行解析展示和运行,以与所述快应用程序进行数据交互。Specifically, after the calling terminal of the calling party A receives the running file/code of the quick application X, it does not need to download the installation package to the calling terminal to install and run it, but immediately loads the running of the quick application X from the quick application platform The files/codes can be parsed, displayed and run directly in the calling terminal without performing interface or App jumping, so as to perform data interaction with the quick application.
在上述实施例的基础上,作为一种优选的实施方式,所述向快应用平台发送网络接口请求后,还包括:On the basis of the above embodiment, as a preferred implementation manner, after the network interface request is sent to the quick application platform, the method further includes:
若接收到所述快应用平台返回的未匹配到与所述被叫号码对应的快应用程序的消息,或在设定时间内未接收到所述快应用平台返回的快应用程序的运行代码,则拨打所述被叫号码进行音视频通话。If receiving the message returned by the quick application platform that does not match the quick application program corresponding to the called number, or not receiving the running code of the quick application program returned by the quick application platform within the set time, Then dial the called number to make an audio and video call.
具体地,快应用平台收到主叫终端发送的网络接口请求后,需要从快应用程序数据库中进行对比查找,判断出该被叫号码B在快应用平台是否已经部署运行了指定的快应用程序,则将该信息返回主叫终端,主叫终端自动触发拨打被叫号码B进行传统的音视频通话,同时,为了避免用户通话呼叫等待时间过长,若快应用平台在设定时间(如100ms)内未匹配到被叫号码B对应的快应用程序,同时未返回匹配失败的信息,此时,主叫终端自动触发拨打被叫号码B进行传统的音视频通话。Specifically, after receiving the network interface request sent by the calling terminal, the quick application platform needs to compare and search from the quick application database to determine whether the called number B has already deployed and run the specified quick application on the quick application platform. , then the information is returned to the calling terminal, and the calling terminal automatically triggers the call to dial the called number B for a traditional audio and video call. ) does not match the quick application corresponding to the called number B, and at the same time, no matching failure information is returned. At this time, the calling terminal automatically triggers the dialing of the called number B for a traditional audio and video call.
在上述各实施例的基础上,作为一种优选的实施方式,所述向快应用平台发送网络接口请求后,还包括:On the basis of the above embodiments, as a preferred implementation manner, after the network interface request is sent to the quick application platform, the method further includes:
在主叫终端弹窗询问是否进行音视频通话;A pop-up window on the calling terminal asks whether to make an audio and video call;
若接收到进行音视频通话的响应指令,则拨打所述被叫号码进行音视频通话。If a response instruction for making an audio and video call is received, the called number is dialed to make an audio and video call.
具体地,在上述主叫用户A在主叫终端接收和运行快应用程序X的运行文件/代码过程中,如果主叫方A只想直接拨打号码B,则在主叫终端的显示界面内能够提供一个弹窗询问的快捷方式,能够让主叫方A直接拨打被叫号码B进行传统通话。Specifically, in the process of the above-mentioned calling user A receiving and running the running file/code of the quick application X on the calling terminal, if the calling party A only wants to dial the number B directly, it can be displayed on the display interface of the calling terminal. Provides a shortcut to ask in a pop-up window, which enables caller A to directly dial called number B to make a traditional call.
在上述各实施例的基础上,作为一种优选的实施方式,所述以与所述快应用程序进行数据交互,具体包括:On the basis of the above embodiments, as a preferred implementation manner, the data interaction with the quick application program specifically includes:
在所述主叫终端的显示界面展示所述快应用程序的运行界面,并根据所述运行界面接收到的数据共享指令与所述快应用平台中运行的快应用程序相互传送共享文件,根据所述运行界面接收到的权限共享指令向所述快应用平台中运行的所述快应用程序发送用户信息和设备硬件数据。Display the running interface of the quick application program on the display interface of the calling terminal, and transfer shared files with the quick application running in the quick application platform according to the data sharing instruction received on the running interface. The permission sharing instruction received by the running interface sends user information and device hardware data to the quick application running in the quick application platform.
在快应用程序X运行过程中,主叫方A可以和快应用程序X进行数据共享和权限共享,快应用程序的一些个性化服务需要获取主叫终端、主叫用户的信息,这些信息需要用户授予权限才能够共享,因此,若所述运行界面接收到的权限共享指令,所述主叫终端根据所述运行代码向所述快应用平台中运行的所述快应用程序发送用户信息和设备硬件数据;用户信息(即主叫用户的个人信息)包括手机号、联系地址;所述设备硬件数据包括摄像头信息、麦克风信息、陀螺仪信息、光线传感器信息、距离传感器信息、红外传感器信息和GPS定位信息;During the running process of the quick application X, the calling party A can share data and permissions with the quick application X. Some personalized services of the quick application need to obtain the information of the calling terminal and the calling user, which requires the user The sharing can only be achieved by granting permissions. Therefore, if the operating interface receives the permission sharing instruction, the calling terminal sends user information and device hardware to the quick application running in the quick application platform according to the operating code. Data; user information (that is, the personal information of the calling user) includes mobile phone number and contact address; the device hardware data includes camera information, microphone information, gyroscope information, light sensor information, distance sensor information, infrared sensor information and GPS positioning information;
所述主叫终端根据所述运行代码与所述快应用程序相互传送共享文件,所述共享文件包括文本、图片、音频和视频。The calling terminal and the quick application program mutually transmit a shared file according to the running code, and the shared file includes text, pictures, audio and video.
在本实施例中,以拨打10086为被叫号码做示例,假设被叫号码10086在快应用平台已经预先部署了“中国移动”的快应用程序,则主叫方在手机终端的操作流程如图2中所示,主叫方在手机终端输入被叫号码10086并点击拨打,手机终端的拨号程序向快应用平台发送一个网络接口请求,快应用平台根据被叫号码10086匹配到中国移动的快应用程序,并将中国移动的运行代码返回至手机终端,手机终端在加载中国移动快应用时,在界面弹窗询问是否直接呼叫10086,同时,在运行中国移动的运行代码过程中,也会提供界面弹窗询问是否直接呼叫10086,如图中右上角出的拨打命令符。In this embodiment, taking dialing 10086 as the called number as an example, assuming that the called
本发明的第二实施例涉及一种数据交互方法,应用于快应用平台,如图3中所示,包括:The second embodiment of the present invention relates to a data interaction method, which is applied to a quick application platform, as shown in FIG. 3 , including:
步骤S21、接收主叫终端发送的网络接口请求,所述网络接口请求中包括被叫号码,所述网络接口请求是主叫终端在输入被叫号码确认呼叫后向快应用平台发送的;Step S21, receiving a network interface request sent by the calling terminal, where the network interface request includes the called number, and the network interface request is sent by the calling terminal to the quick application platform after inputting the called number to confirm the call;
具体地,上述网络接口请求是主叫终端内置的拨号程序在确定呼叫被叫号码后触发的,该网络接口请求中包括被叫号码和主叫号码;Specifically, the above-mentioned network interface request is triggered by the built-in dialing program of the calling terminal after determining that the called number is called, and the network interface request includes the called number and the calling number;
步骤S22、根据预先存储的被叫号码与快应用程序的对应关系,在快应用程序数据库中匹配得到被叫号码对应的快应用程序,提取所述快应用程序的运行代码,将所述运行代码发送至所述主叫终端。Step S22, according to the pre-stored correspondence between the called number and the quick application, match the quick application corresponding to the called number in the quick application database, extract the running code of the quick application, and use the running code sent to the calling terminal.
具体地,本实施例中,需要预先搭建一个快应用平台,用于连接开发者、主叫终端、普通用户和运营商,以打造一个良性的开发者生态,由快应用平台、主叫终端、运营商共同建立一套标准,该标准包括主叫终端能力、开发者文档、代码格式、拨号流程等,使得本实施例的方法能够顺利推行。Specifically, in this embodiment, a quick application platform needs to be built in advance to connect developers, calling terminals, ordinary users and operators, so as to create a benign developer ecosystem, which consists of the quick application platform, calling terminal, The operators jointly establish a set of standards, which include calling terminal capabilities, developer documents, code formats, dialing procedures, etc., so that the method in this embodiment can be implemented smoothly.
在该快应用平台中包括一个快应用程序数据库,该快应用程序数据库中预先部署有多个快应用程序,每个快应用程序与一个唯一的被叫号码对应,根据快应用程序与被叫号码的对应关系,快应用平台可以根据网络接口请求中携带的被叫号码,立即从快应用数据库中进行比对查询,判断出该被叫号码在快应用平台是否已经部署运行了指定快应用程序,如果该被叫号码在快应用平台已经部署了快应用程序,则快应用平台向主叫方的终端返回快应用程序X的运行代码/文件。The quick application platform includes a quick application database, a plurality of quick applications are pre-deployed in the quick application database, each quick application corresponds to a unique called number, according to the quick application and the called number The quick application platform can immediately compare and query from the quick application database according to the called number carried in the network interface request to determine whether the called number has been deployed and run the specified quick application program on the quick application platform, If a quick application has been deployed on the quick application platform for the called number, the quick application platform returns the running code/file of the quick application X to the calling party's terminal.
在上述实施例的基础上,作为一种优选的实施方式,所述接收主叫终端发送的网络接口请求后,还包括:On the basis of the above embodiment, as a preferred implementation manner, after receiving the network interface request sent by the calling terminal, the method further includes:
若判断在所述快应用程序数据库中没有与所述被叫号码对应的快应用程序,或在设定时间内未匹配到与所述被叫号码对应的快应用程序,则生成匹配失败消息,将所述匹配失败消息返回至所述主叫终端。If it is determined that there is no quick application corresponding to the called number in the quick application database, or no quick application corresponding to the called number is matched within the set time, a matching failure message is generated, The matching failure message is returned to the calling terminal.
具体地,快应用平台收到主叫终端发送的网络接口请求后,需要从快应用程序数据库中进行对比查找,判断出该被叫号码B在快应用平台是否已经部署运行了指定的快应用程序,则将该信息返回主叫终端,主叫终端自动触发拨打被叫号码B进行传统的音视频通话,同时,为了避免用户通话呼叫等待时间过长,若快应用平台在设定时间(如100ms)内未匹配到被叫号码B对应的快应用程序,同时未返回匹配失败的信息。Specifically, after receiving the network interface request sent by the calling terminal, the quick application platform needs to compare and search from the quick application database to determine whether the called number B has already deployed and run the specified quick application on the quick application platform. , then the information is returned to the calling terminal, and the calling terminal automatically triggers the call to dial the called number B for a traditional audio and video call. ) is not matched to the quick application corresponding to the called number B, and no matching failure information is returned.
在上述实施例的基础上,作为一种优选的实施方式,所述网络接口请求中还包括主叫号码;On the basis of the above embodiment, as a preferred implementation manner, the network interface request further includes the calling number;
所述将所述运行代码发送至所述主叫终端后,还包括:After sending the running code to the calling terminal, the method further includes:
所述快应用程序根据所述运行代码与所述主叫终端相互传送共享文件,所述共享文件包括文本、图片、音频和视频;The quick application program and the calling terminal mutually transmit a shared file according to the running code, and the shared file includes text, pictures, audio and video;
所述快应用程序接收所述主叫终端发送的用户信息和设备硬件数据,用户信息包括手机号、联系地址;所述设备硬件数据包括摄像头信息、麦克风信息、陀螺仪信息、光线传感器信息、距离传感器信息、红外传感器信息和GPS定位信息;基于所述用户信息和所述设备硬件数据为所述主叫终端推送个性化服务。The quick application program receives user information and device hardware data sent by the calling terminal, the user information includes mobile phone number, contact address; the device hardware data includes camera information, microphone information, gyroscope information, light sensor information, distance sensor information, infrared sensor information and GPS positioning information; push personalized services for the calling terminal based on the user information and the device hardware data.
本发明第三实施例涉及一种数据交互方法,包括:The third embodiment of the present invention relates to a data interaction method, including:
步骤S1、在主叫终端输入被叫号码确认呼叫后,向快应用平台发送网络接口请求,所述网络接口请求中包括被叫号码;Step S1, after the calling terminal inputs the called number to confirm the call, sends a network interface request to the quick application platform, where the network interface request includes the called number;
步骤S2、快应用平台接收主叫终端发送的网络接口请求,根据预先存储的被叫号码与快应用程序的对应关系,在快应用程序数据库中匹配得到被叫号码对应的快应用程序,提取所述快应用程序的运行代码,将所述运行代码发送至所述主叫终端;Step S2, the quick application platform receives the network interface request sent by the calling terminal, and according to the pre-stored correspondence between the called number and the quick application, matches the quick application in the quick application database to obtain the quick application corresponding to the called number, and extracts the corresponding quick application. Describe the running code of the quick application, and send the running code to the calling terminal;
步骤S3、主叫终端运行所述运行代码,以与所述快应用程序进行数据交互。Step S3, the calling terminal runs the running code to perform data interaction with the quick application.
本实施例数据交互方法是在主叫中单、快应用平台、快应用程序之间的,其是本发明第一实施例和第二实施例的结合,因此具体细节不在赘述。The data interaction method in this embodiment is between the calling center order, the quick application platform, and the quick application program, which is a combination of the first embodiment and the second embodiment of the present invention, so the specific details will not be repeated.
本发明第四实施例涉及一种数据交互装置,应用于主叫终端,基于本发明第一实施的一种数据交互方法,包括:The fourth embodiment of the present invention relates to a data interaction device, which is applied to a calling terminal. Based on a data interaction method implemented in the first embodiment of the present invention, the method includes:
呼叫模块,用于在输入被叫号码确认呼叫后,向快应用平台发送网络接口请求,所述网络接口请求中包括被叫号码;a calling module, configured to send a network interface request to the quick application platform after inputting the called number to confirm the call, where the network interface request includes the called number;
接收模块,用于接收所述快应用平台返回的快应用程序的运行代码,所述快应用程序为快应用平台根据预先存储的被叫号码与快应用程序的对应关系,在快应用程序数据库中匹配得到的;The receiving module is used to receive the running code of the quick application program returned by the quick application platform, and the quick application program is the quick application program stored in the quick application program database according to the pre-stored correspondence between the called number and the quick application program. matched;
数据交互模块,用于运行所述运行代码,以与所述快应用程序进行数据交互。A data interaction module, configured to run the running code to perform data interaction with the quick application.
本发明第五实施例涉及一种数据交互装置,应用于快应用平台,基于本发明第二实施的一种数据交互方法,包括:The fifth embodiment of the present invention relates to a data interaction device, which is applied to a fast application platform, and a data interaction method based on the second implementation of the present invention includes:
接收模块,用于接收主叫终端发送的网络接口请求,所述网络接口请求中包括被叫号码;a receiving module, configured to receive a network interface request sent by the calling terminal, where the network interface request includes the called number;
匹配模块,用于根据预先存储的被叫号码与快应用程序的对应关系,在快应用程序数据库中匹配得到被叫号码对应的快应用程序,提取所述快应用程序的运行代码,将所述运行代码发送至所述主叫终端。The matching module is used to obtain the quick application corresponding to the called number by matching in the quick application database according to the pre-stored correspondence between the called number and the quick application, extract the running code of the quick application, The running code is sent to the calling terminal.
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The steps of the above various methods are divided only for the purpose of describing clearly. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as the same logical relationship is included, they are all within the protection scope of this patent. ;Adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.
本发明第六实施例涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现如上述各实施例所述数据交互方法的步骤。例如包括:The sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. When the computer program is executed by the processor, the steps of the data interaction method described in the above embodiments are implemented. Examples include:
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMe mory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium and includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .
本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。Those skilled in the art can understand that the above-mentioned embodiments are specific examples for realizing the present invention, and in practical applications, various changes in form and details can be made without departing from the spirit and the spirit of the present invention. scope.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011595053.4A CN112738329B (en) | 2020-12-29 | 2020-12-29 | Data interaction method, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011595053.4A CN112738329B (en) | 2020-12-29 | 2020-12-29 | Data interaction method, device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112738329A CN112738329A (en) | 2021-04-30 |
| CN112738329B true CN112738329B (en) | 2022-07-01 |
Family
ID=75609948
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011595053.4A Active CN112738329B (en) | 2020-12-29 | 2020-12-29 | Data interaction method, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112738329B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115037830A (en) * | 2022-05-13 | 2022-09-09 | 上海祺康科技有限公司 | A method for intelligent terminal to access enterprise information service |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1285120A (en) * | 1997-12-19 | 2001-02-21 | 艾利森公司 | Architecture independent application invocation over telephony network |
| CN101925030A (en) * | 2010-08-13 | 2010-12-22 | 辜进荣 | Information display system and method based on short messages of broadband network information terminal |
| CN108429671A (en) * | 2018-02-27 | 2018-08-21 | 北京安云世纪科技有限公司 | The recommendation method, device and mobile terminal applied in circle of friends |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101505809B1 (en) * | 2013-10-25 | 2015-03-25 | 주식회사 인포존 | Method for for transmitting broadcast message using wireless data netwonk and public network |
-
2020
- 2020-12-29 CN CN202011595053.4A patent/CN112738329B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1285120A (en) * | 1997-12-19 | 2001-02-21 | 艾利森公司 | Architecture independent application invocation over telephony network |
| CN101925030A (en) * | 2010-08-13 | 2010-12-22 | 辜进荣 | Information display system and method based on short messages of broadband network information terminal |
| CN108429671A (en) * | 2018-02-27 | 2018-08-21 | 北京安云世纪科技有限公司 | The recommendation method, device and mobile terminal applied in circle of friends |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112738329A (en) | 2021-04-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7089313B2 (en) | Protocol independent communication system for mobile devices | |
| US8175651B2 (en) | Devices and methods for automating interactive voice response system interaction | |
| US20060099931A1 (en) | Automatic phone number to website linking system and method | |
| CN101553051B (en) | Portable device and information management method | |
| US9160827B2 (en) | Automatically adjusting country and area codes when doing a business card or telephone number exchange | |
| US7613448B2 (en) | Web access providing system | |
| CN1969587A (en) | Method for handling location access requests | |
| CN106201610A (en) | Web application accesses the method and device of the primary function of terminal | |
| JPH11232193A (en) | Information processing apparatus and method, information processing system, and providing medium | |
| CN112738329B (en) | Data interaction method, device and storage medium | |
| RU2008120636A (en) | ACCESS TO TELECOMMUNICATION DEVICES USING MOBILE PHONE NUMBERS | |
| AU2003262322B2 (en) | Permission Token Management System, Permission Token Management Method, Program and Recording Medium | |
| CN113596226B (en) | Interface display method, electronic device and readable storage medium | |
| CN113810535B (en) | Information processing method and electronic device | |
| CN112954103B (en) | A calling method, device, storage medium and fixed telephone | |
| JP2016086261A (en) | Information processing system | |
| WO2013185722A1 (en) | Calling number enquiring method and system | |
| KR100608150B1 (en) | Wireless Content Download System and Method for Wireless Internet Service System | |
| JP2002291045A (en) | Data management device, data management system, data management method, program and recording medium therefor for mobile terminal device | |
| JP4088598B2 (en) | Menu information management method | |
| JP2011035811A (en) | Storage system, access management apparatus, data transfer method and program | |
| KR20090106122A (en) | Web site bookmark registration, access method and terminal device implementing the same in mobile communication network | |
| JP5976974B1 (en) | Information processing apparatus and program | |
| KR100674179B1 (en) | Method and device for displaying caller details | |
| CN1998147A (en) | e.g. call intercept method for customer self support on mobile devices |
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 |