+

CN109976551A - Phrase entering method, device, computer equipment and computer readable storage medium - Google Patents

Phrase entering method, device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN109976551A
CN109976551A CN201910122476.5A CN201910122476A CN109976551A CN 109976551 A CN109976551 A CN 109976551A CN 201910122476 A CN201910122476 A CN 201910122476A CN 109976551 A CN109976551 A CN 109976551A
Authority
CN
China
Prior art keywords
terminal
input
server
user
name
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.)
Pending
Application number
CN201910122476.5A
Other languages
Chinese (zh)
Inventor
刘真
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910122476.5A priority Critical patent/CN109976551A/en
Publication of CN109976551A publication Critical patent/CN109976551A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • G06F21/6254Protecting personal data, e.g. for financial or medical purposes by anonymising data, e.g. decorrelating personal data from the owner's identification
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种词组输入方法、装置、计算机设备及计算机可读存储介质,涉及文字输入技术领域,可以由服务器根据待查询号码确定目标人名词组,并在该待查询号码的第二终端授权的情况下,直接将目标人名词组返回给第一终端进行显示,自动匹配目标人名词组进行输入,无需用户手动输入,提高了词组的输入效率,降低输入的错误率,避免造成社交尴尬,智能性较好。所述方法包括:当检测到用户请求输入人名词组时,获取用户在号码输入框中输入的待查询号码,将待查询号码传输至服务器;如果接收到服务器返回的成功响应,则在成功响应中提取目标人名词组,目标人名词组由服务器根据待查询号码确定;确定人名输入框,将目标人名词组输入至人名输入框。

The invention discloses a phrase input method, device, computer equipment and computer-readable storage medium, and relates to the technical field of text input. In the case of authorization, the target person's noun group is directly returned to the first terminal for display, and the target person's noun group is automatically matched for input, without the user's manual input, which improves the efficiency of phrase input, reduces the input error rate, and avoids social embarrassment. , better intelligence. The method includes: when it is detected that the user requests to input a person-noun group, acquiring the number to be inquired entered by the user in the number input box, and transmitting the number to be inquired to the server; The target person noun group is extracted from the server, and the target person noun group is determined by the server according to the number to be queried; the person name input box is determined, and the target person noun group is input into the person name input box.

Description

词组输入方法、装置、计算机设备及计算机可读存储介质Phrase input method, apparatus, computer device, and computer-readable storage medium

技术领域technical field

本发明涉及文字输入技术领域,特别是涉及一种词组输入方法、装置、计算机设备及计算机可读存储介质。The present invention relates to the technical field of text input, and in particular, to a method, device, computer equipment and computer-readable storage medium for inputting a phrase.

背景技术Background technique

在移动互联网生活越来越丰富的今天,手机、平板电脑等终端依赖于先进的文字输入技术,早已代替纸质的电话簿,成为了人们主要记录联系人信息的工具。使用终端的用户通过输入法在终端的电话簿应用中输入联系人信息,完成联系人信息的记录。输入法是一种用户将词组输入终端中的必要工具,运行于终端所搭载的操作系统,能够将通过键盘输入的编码或通过其他非键盘输入的媒体数据转换成词组显示给用户。目前,输入法可分为键盘输入和非键盘输入两种,其中,技术最为成熟的,使用最为广泛的为基于键盘输入的输入法。In today's increasingly rich mobile Internet life, mobile phones, tablet computers and other terminals rely on advanced text input technology, which has long replaced the paper phone book and become the main tool for people to record contact information. The user using the terminal inputs the contact information in the phonebook application of the terminal through the input method to complete the record of the contact information. The input method is a necessary tool for the user to input phrases into the terminal. It runs on the operating system installed in the terminal and can convert codes input through the keyboard or media data input through other non-keyboards into phrases and display them to the user. At present, input methods can be divided into two types: keyboard input and non-keyboard input. Among them, the most mature technology and the most widely used input method is the keyboard-based input method.

相关技术中,输入法的输入功能是基于词库实现的,用户采用输入法按照一定的编码规则输入字符,以便在词库中根据用户输入的字符提取用户输入的词组进行显示。In the related art, the input function of the input method is implemented based on a thesaurus. The user uses the input method to input characters according to certain coding rules, so that the phrase input by the user is extracted and displayed in the thesaurus according to the characters input by the user.

在实现本发明的过程中,发明人发现相关技术至少存在以下问题:In the process of realizing the present invention, the inventor found that the related art has at least the following problems:

用户在日常使用输入法的过程中会需要输入名字,而名字是一个代称,其组词并不存在语言逻辑上意义,这就需要用户手动一个一个字选择,形成人名词组,将人名词组录入词库,下次才能直接组词为人名词组输出,不仅降低了词组的输入效率,还可能写错对方的名字,造成社交尴尬,智能性较差。In the process of daily use of the input method, the user will need to enter a name, and the name is a pronoun, and the group of words has no logical meaning in the language. After entering the thesaurus, you can directly form words for the output of human noun groups next time, which not only reduces the input efficiency of phrases, but also may write the other party's name incorrectly, causing social embarrassment and poor intelligence.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明提供了一种词组输入方法、装置、计算机设备及计算机可读存储介质,主要目的在于解决目前降低了词组的输入效率,还可能写错对方的名字,造成社交尴尬,智能性较差的问题。In view of this, the present invention provides a phrase input method, device, computer equipment and computer-readable storage medium, the main purpose of which is to solve the problem that the input efficiency of phrases is currently reduced, and the name of the other party may be wrongly written, causing social embarrassment and intelligent Sexual issues.

依据本发明第一方面,提供了一种词组输入方法,该方法包括:According to the first aspect of the present invention, a method for inputting a phrase is provided, the method comprising:

当检测到用户请求输入人名词组时,获取所述用户在号码输入框中输入的待查询号码,将所述待查询号码传输至服务器;When detecting that the user requests to input a person-noun group, obtain the number to be inquired entered by the user in the number input box, and transmit the number to be inquired to the server;

如果接收到所述服务器返回的成功响应,则在所述成功响应中提取目标人名词组,所述目标人名词组由服务器根据所述待查询号码确定;If a successful response returned by the server is received, a target person noun group is extracted from the successful response, and the target person noun group is determined by the server according to the number to be queried;

确定人名输入框,将所述目标人名词组输入至所述人名输入框。A person name input box is determined, and the target person noun group is input into the person name input box.

在另一个实施例中,所述当检测到用户请求输入人名词组时,获取所述用户在号码输入框中输入的待查询号码,将所述待查询号码传输至服务器之前,包括:In another embodiment, when it is detected that the user requests to input a person-noun group, acquiring the number to be queried input by the user in the number input box, and before transmitting the number to be queried to the server, includes:

读取第一终端的待收录号码,接收所述用户输入的待收录姓名;Read the number to be included in the first terminal, and receive the name to be included entered by the user;

将所述待收录号码以及所述待收录姓名绑定,并将绑定后的所述待收录号码以及所述待收录姓名传输至所述服务器。The number to be recorded and the name to be recorded are bound, and the bound number to be recorded and the name to be recorded are transmitted to the server.

在另一个实施例中,所述当检测到用户请求输入人名词组时,获取所述用户在号码输入框中输入的待查询号码,将所述待查询号码传输至服务器之后,所述方法还包括:In another embodiment, when it is detected that the user requests to input a person-noun group, the number to be inquired entered by the user in the number input box is acquired, and after the number to be inquired is transmitted to the server, the method further includes: include:

如果接收到所述服务器返回的失败响应,则生成失败字符,将所述失败字符输入至所述人名输入框;If a failure response returned by the server is received, a failure character is generated, and the failure character is input into the name input box;

当接收到所述用户在所述人名输入框中输入目标字符时,在所述人名输入框中显示所述目标字符。When receiving a target character input by the user in the person name input box, the target character is displayed in the person name input box.

依据本发明第二方面,提供了一种词组输入方法,该方法包括:According to a second aspect of the present invention, a method for inputting a phrase is provided, the method comprising:

当接收到第一终端发送的待查询号码时,确定所述待查询号码指示的第二终端,向所述第二终端发送授权请求;When receiving the number to be queried sent by the first terminal, determine the second terminal indicated by the number to be queried, and send an authorization request to the second terminal;

如果接收到所述第二终端返回的同意授权响应,则在人名映射表中提取所述待查询号码对应的目标人名词组,所述人名映射表记录了号码与人名之间的对应关系;If the consent authorization response returned by the second terminal is received, extract the target person noun group corresponding to the number to be queried in the person name mapping table, and the person name mapping table records the correspondence between the number and the person name;

生成携带所述目标人名词组的成功响应,将所述成功响应返回给所述第一终端。A successful response carrying the target person noun group is generated, and the successful response is returned to the first terminal.

在另一个实施例中,所述方法还包括:In another embodiment, the method further includes:

接收所述第一终端传输的待收录号码以及待收录姓名,所述待收录号码为所述第一终端的号码,所述待收录姓名为所述第一终端的用户的姓名;receiving the number to be recorded and the name to be recorded transmitted by the first terminal, the number to be recorded is the number of the first terminal, and the name to be recorded is the name of the user of the first terminal;

将所述待收录号码与所述待收录姓名对应存储至所述人名映射表中。The number to be recorded and the name to be recorded are stored in the person name mapping table correspondingly.

在另一个实施例中,所述方法还包括:In another embodiment, the method further includes:

如果接收到所述第二终端返回的拒绝授权响应,则生成失败响应,将所述失败响应传输至所述第一终端。If an authorization rejection response returned by the second terminal is received, a failure response is generated, and the failure response is transmitted to the first terminal.

依据本发明第三方面,提供了一种词组输入方法,该方法包括:According to a third aspect of the present invention, a phrase input method is provided, the method comprising:

当接收到服务器发送的授权请求时,将所述授权请求展示给用户,所述授权请求由所述服务器在接收到第一终端的待查询号码时生成并发送;When an authorization request sent by the server is received, the authorization request is displayed to the user, and the authorization request is generated and sent by the server upon receiving the number to be queried of the first terminal;

如果检测到用户同意授权,则生成同意授权响应,将所述同意授权响应传输至所述服务器;If it is detected that the user agrees to the authorization, generating an consent authorization response, and transmitting the consent authorization response to the server;

如果检测到用户拒绝授权,则生成拒绝授权响应,将所述拒绝授权响应传输至所述服务器。If it is detected that the user denies authorization, a denial of authorization response is generated and transmitted to the server.

依据本发明第四方面,提供了一种词组输入装置,该装置包括:According to a fourth aspect of the present invention, a phrase input device is provided, the device comprising:

获取模块,用于当检测到用户请求输入人名词组时,获取所述用户在号码输入框中输入的待查询号码,将所述待查询号码传输至服务器;an acquisition module, configured to acquire the number to be inquired entered by the user in the number input box when it is detected that the user requests to input a person-noun group, and transmit the number to be inquired to the server;

提取模块,用于如果接收到所述服务器返回的成功响应,则在所述成功响应中提取目标人名词组,所述目标人名词组由服务器根据所述待查询号码确定;an extraction module, configured to extract a target person noun group from the successful response if a successful response returned by the server is received, and the target person noun group is determined by the server according to the number to be queried;

输入模块,用于确定人名输入框,将所述目标人名词组输入至所述人名输入框。The input module is used for determining a person name input box, and inputting the target person name group into the person name input box.

在另一个实施例中,所述装置还包括:In another embodiment, the apparatus further includes:

读取模块,用于读取第一终端的待收录号码,接收所述用户输入的待收录姓名;a reading module, configured to read the number to be included in the first terminal, and receive the name to be included entered by the user;

传输模块,用于将所述待收录号码以及所述待收录姓名绑定,并将绑定后的所述待收录号码以及所述待收录姓名传输至所述服务器。A transmission module, configured to bind the number to be recorded and the name to be recorded, and transmit the bound number to be recorded and the name to be recorded to the server.

在另一个实施例中,所述装置还包括:In another embodiment, the apparatus further includes:

生成模块,用于如果接收到所述服务器返回的失败响应,则生成失败字符,将所述失败字符输入至所述人名输入框;a generating module, configured to generate a failure character if a failure response returned by the server is received, and input the failure character into the name input box;

所述输入模块,还用于当接收到所述用户在所述人名输入框中输入目标字符时,在所述人名输入框中显示所述目标字符。The input module is further configured to display the target character in the person name input box when receiving the target character input by the user in the person name input box.

依据本发明第五方面,提供了一种词组输入装置,该装置包括:According to a fifth aspect of the present invention, a phrase input device is provided, the device comprising:

确定模块,用于当接收到第一终端发送的待查询号码时,确定所述待查询号码指示的第二终端,向所述第二终端发送授权请求;a determining module, configured to determine a second terminal indicated by the number to be queried when receiving the number to be queried sent by the first terminal, and send an authorization request to the second terminal;

提取模块,用于如果接收到所述第二终端返回的同意授权响应,则在人名映射表中提取所述待查询号码对应的目标人名词组,所述人名映射表记录了号码与人名之间的对应关系;The extraction module is configured to extract the target person noun group corresponding to the number to be queried in the person name mapping table, if the consent authorization response returned by the second terminal is received, and the person name mapping table records the relationship between the number and the person name. the corresponding relationship;

生成模块,用于生成携带所述目标人名词组的成功响应,将所述成功响应返回给所述第一终端。The generating module is configured to generate a successful response carrying the target person noun group, and return the successful response to the first terminal.

在另一个实施例中,所述装置还包括:In another embodiment, the apparatus further includes:

接收模块,用于接收所述第一终端传输的待收录号码以及待收录姓名,所述待收录号码为所述第一终端的号码,所述待收录姓名为所述第一终端的用户的姓名;A receiving module, configured to receive the number to be recorded and the name to be recorded transmitted by the first terminal, the number to be recorded is the number of the first terminal, and the name to be recorded is the name of the user of the first terminal ;

存储模块,用于将所述待收录号码与所述待收录姓名对应存储至所述人名映射表中。A storage module, configured to store the number to be recorded and the name to be recorded in the person name mapping table correspondingly.

在另一个实施例中,所述生成模块,还用于如果接收到所述第二终端返回的拒绝授权响应,则生成失败响应,将所述失败响应传输至所述第一终端。In another embodiment, the generating module is further configured to generate a failure response if an authorization rejection response returned by the second terminal is received, and transmit the failure response to the first terminal.

依据本发明第六方面,提供了一种词组输入装置,该装置包括:According to a sixth aspect of the present invention, a phrase input device is provided, the device comprising:

展示模块,用于当接收到服务器发送的授权请求时,将所述授权请求展示给用户,所述授权请求由所述服务器在接收到第一终端的待查询号码时生成并发送;a display module, configured to display the authorization request to the user when receiving the authorization request sent by the server, and the authorization request is generated and sent by the server when receiving the number to be queried of the first terminal;

第一生成模块,用于如果检测到用户同意授权,则生成同意授权响应,将所述同意授权响应传输至所述服务器;a first generation module, configured to generate an consent authorization response if it is detected that the user agrees to the authorization, and transmit the consent authorization response to the server;

第二生成模块,用于如果检测到用户拒绝授权,则生成拒绝授权响应,将所述拒绝授权响应传输至所述服务器。The second generating module is configured to generate an authorization rejection response if it is detected that the user refuses authorization, and transmit the authorization rejection response to the server.

依据本发明第七方面,提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述第一方面、第二方面和第三方面所述方法的步骤。According to a seventh aspect of the present invention, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the first aspect, the second aspect and the third aspect when the processor executes the computer program. The steps of the method of the aspect.

依据本发明第八方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面、第二方面和第三方面所述的方法的步骤。According to an eighth aspect of the present invention, there is provided a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the methods described in the first aspect, the second aspect and the third aspect A step of.

借由上述技术方案,本发明提供的一种词组输入方法、装置、计算机设备及计算机可读存储介质,与目前用户手动输入的方式相比,本发明当检测到用户请求输入人名词组时,将用户输入的待查询号码传输给服务器,由服务器根据待查询号码确定目标人名词组,并在该待查询号码的第二终端授权的情况下,服务器直接将目标人名词组返回给第一终端进行显示,可以自动匹配用户输入的待查询号码对应的目标人名词组进行输入,无需第一终端的用户手动输入人名词组,提高了词组的输入效率,降低用户在输入人名词组时的错误率,避免造成社交尴尬,智能性较好。With the above technical solutions, the present invention provides a phrase input method, device, computer equipment and computer-readable storage medium. Compared with the current manual input method by users, when the present invention detects that the user requests to input a person noun group, The number to be queried input by the user is transmitted to the server, the server determines the target person noun group according to the number to be queried, and under the authorization of the second terminal of the number to be queried, the server directly returns the target person noun group to the first terminal. For display, it can automatically match the target person noun group corresponding to the number to be queried input by the user for input, and it is not necessary for the user of the first terminal to manually input the person noun group, which improves the input efficiency of the phrase and reduces the user's mistakes when inputting the person noun group. rate, avoid social embarrassment, and have better intelligence.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:

图1A示出了本发明实施例提供的一种词组输入方法流程示意图;1A shows a schematic flowchart of a method for inputting a phrase provided by an embodiment of the present invention;

图1B示出了本发明实施例提供的一种词组输入方法流程示意图;FIG. 1B shows a schematic flowchart of a phrase input method provided by an embodiment of the present invention;

图1C示出了本发明实施例提供的一种词组输入方法流程示意图;1C shows a schematic flowchart of a method for inputting a phrase provided by an embodiment of the present invention;

图2A示出了本发明实施例提供的一种词组输入方法流程示意图;2A shows a schematic flowchart of a phrase input method provided by an embodiment of the present invention;

图2B示出了本发明实施例提供的一种词组输入方法的示意图;2B shows a schematic diagram of a phrase input method provided by an embodiment of the present invention;

图2C示出了本发明实施例提供的一种词组输入方法的示意图;2C shows a schematic diagram of a phrase input method provided by an embodiment of the present invention;

图2D示出了本发明实施例提供的一种词组输入方法的示意图;FIG. 2D shows a schematic diagram of a phrase input method provided by an embodiment of the present invention;

图2E示出了本发明实施例提供的一种词组输入方法的示意图;FIG. 2E shows a schematic diagram of a phrase input method provided by an embodiment of the present invention;

图3A示出了本发明实施例提供的一种词组输入装置的结构示意图;3A shows a schematic structural diagram of a phrase input device provided by an embodiment of the present invention;

图3B示出了本发明实施例提供的一种词组输入装置的结构示意图;3B shows a schematic structural diagram of a phrase input device provided by an embodiment of the present invention;

图3C示出了本发明实施例提供的一种词组输入装置的结构示意图;3C shows a schematic structural diagram of a phrase input device provided by an embodiment of the present invention;

图4A示出了本发明实施例提供的一种词组输入装置的结构示意图;4A shows a schematic structural diagram of a phrase input device provided by an embodiment of the present invention;

图4B示出了本发明实施例提供的一种词组输入装置的结构示意图;4B shows a schematic structural diagram of a phrase input device provided by an embodiment of the present invention;

图5示出了本发明实施例提供的一种词组输入装置的结构示意图;5 shows a schematic structural diagram of a phrase input device provided by an embodiment of the present invention;

图6示出了本发明实施例提供的一种计算机设备的装置结构示意图。FIG. 6 shows a schematic diagram of an apparatus structure of a computer device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present invention will be more thoroughly understood, and will fully convey the scope of the present invention to those skilled in the art.

本发明实施例提供了一种词组输入方法,可以当检测到用户请求输入人名词组时,将用户输入的待查询号码传输给服务器,由服务器根据待查询号码确定目标人名词组,并在该待查询号码的第二终端授权的情况下,服务器直接将目标人名词组返回给第一终端进行显示,可以自动匹配用户输入的待查询号码对应的目标人名词组进行输入,达到了无需第一终端的用户手动输入人名词组,提高了词组的输入效率,降低用户在输入人名词组时的错误率,避免造成社交尴尬,智能性较好的目的,如图1A所示,该方法应用于第一终端,包括:The embodiment of the present invention provides a phrase input method, which can transmit the number to be queried input by the user to the server when it is detected that the user requests to input a person noun group, and the server determines the target person noun group according to the number to be queried, and then in the In the case of authorization by the second terminal of the number to be queried, the server directly returns the target person noun group to the first terminal for display, which can automatically match the target person noun group corresponding to the number to be queried input by the user for input. The user of the terminal manually inputs the person-noun group, which improves the input efficiency of the phrase, reduces the error rate when the user enters the person-noun group, avoids social embarrassment, and has better intelligence. As shown in Figure 1A, the method is applied to The first terminal, including:

101、当第一终端检测到用户请求输入人名词组时,获取用户在号码输入框中输入的待查询号码,将待查询号码传输至服务器。101. When the first terminal detects that the user requests to input a person-noun group, obtain the number to be queried input by the user in the number input box, and transmit the number to be queried to the server.

在本发明实施例中,当第一终端检测到用户请求输入人名词组时,由于人名词组所指示的姓名是与号码相关联的,因此,第一终端获取用户在号码输入框中输入的待查询号码,并将该待查询号码传输给服务器,以便服务器为第一终端提供待查询号码对应的人名词组。In this embodiment of the present invention, when the first terminal detects that the user requests to input a person-noun group, since the name indicated by the person-noun group is associated with a number, the first terminal obtains the information entered by the user in the number input box. The number to be queried, and the number to be queried is transmitted to the server, so that the server provides the first terminal with a person-noun group corresponding to the number to be queried.

102、如果第一终端接收到服务器返回的成功响应,则在成功响应中提取目标人名词组,目标人名词组由服务器根据待查询号码确定。102. If the first terminal receives a successful response returned by the server, extract the target person noun group from the successful response, and the target person noun group is determined by the server according to the number to be queried.

在本发明实施例中,如果第一终端接收到服务器返回的成功响应,则表示服务器已经成功为第一终端提供了待查询号码对应的人名词组,此时,第一终端便可以在成功响应中提取到目标人名词组,并在后续将目标人名词组输入至人名输入框中。In this embodiment of the present invention, if the first terminal receives a successful response returned by the server, it means that the server has successfully provided the first terminal with a person noun group corresponding to the number to be queried, and at this time, the first terminal can successfully respond The target person noun group is extracted from , and the target person noun group is input into the person name input box later.

103、第一终端确定人名输入框,将目标人名词组输入至人名输入框。103. The first terminal determines a person name input box, and inputs the target person noun group into the person name input box.

在本发明实施例中,当第一终端获取到目标人名词组后,便可以确定人名输入框,并将目标人名词组输入至人名输入框中,从而实现人名的输入。In the embodiment of the present invention, after the first terminal obtains the target person noun group, it can determine the person name input box, and input the target person name group into the person name input box, thereby realizing the input of person name.

本发明实施例提供的方法,可以当检测到用户请求输入人名词组时,将用户输入的待查询号码传输给服务器,由服务器根据待查询号码确定目标人名词组,并在该待查询号码的第二终端授权的情况下,服务器直接将目标人名词组返回给第一终端进行显示,可以自动匹配用户输入的待查询号码对应的目标人名词组进行输入,达到了无需第一终端的用户手动输入人名词组,提高了词组的输入效率,降低用户在输入人名词组时的错误率,避免造成社交尴尬,智能性较好。In the method provided by the embodiment of the present invention, when it is detected that the user requests to input a person noun group, the number to be queried input by the user is transmitted to the server, and the server determines the target person noun group according to the number to be queried, and the number of the person to be queried. In the case of authorization from the second terminal, the server directly returns the target person noun group to the first terminal for display, which can automatically match the target person noun group corresponding to the number to be queried input by the user for input. Entering person noun groups improves the efficiency of phrase input, reduces the error rate of users when inputting person noun groups, avoids social embarrassment, and has better intelligence.

本发明实施例提供了一种词组输入方法,可以当检测到用户请求输入人名词组时,将用户输入的待查询号码传输给服务器,由服务器根据待查询号码确定目标人名词组,并在该待查询号码的第二终端授权的情况下,服务器直接将目标人名词组返回给第一终端进行显示,可以自动匹配用户输入的待查询号码对应的目标人名词组进行输入,达到了无需第一终端的用户手动输入人名词组,提高了词组的输入效率,降低用户在输入人名词组时的错误率,避免造成社交尴尬,智能性较好的目的,如图1B所示,该方法应用于服务器,包括:The embodiment of the present invention provides a phrase input method, which can transmit the number to be queried input by the user to the server when it is detected that the user requests to input a person noun group, and the server determines the target person noun group according to the number to be queried, and then in the In the case of authorization by the second terminal of the number to be queried, the server directly returns the target person noun group to the first terminal for display, which can automatically match the target person noun group corresponding to the number to be queried input by the user for input. The user of the terminal manually inputs the person-noun group, which improves the input efficiency of the phrase, reduces the error rate when the user enters the person-noun group, avoids social embarrassment, and has better intelligence. As shown in Figure 1B, this method is applied to server, including:

104、当服务器接收到第一终端发送的待查询号码时,确定待查询号码指示的第二终端,向第二终端发送授权请求。104. When the server receives the number to be queried sent by the first terminal, it determines the second terminal indicated by the number to be queried, and sends an authorization request to the second terminal.

在本发明实施例中,当服务器接收到第一终端发送的待查询号码时,可以确定第一终端希望获取到待查询号码对应的人名词组,因此,服务器为了得到第二终端你得允许,向第二终端发送授权请求,从而确定第二终端是否允许将自己的用户姓名的人名词组提供给第一终端。In this embodiment of the present invention, when the server receives the number to be queried sent by the first terminal, it can be determined that the first terminal wishes to obtain the person noun group corresponding to the number to be queried. Therefore, in order to obtain the second terminal, the server must allow An authorization request is sent to the second terminal, thereby determining whether the second terminal is allowed to provide the personal noun group of its own user name to the first terminal.

105、如果服务器接收到第二终端返回的同意授权响应,则在人名映射表中提取待查询号码对应的目标人名词组,人名映射表记录了号码与人名之间的对应关系。105. If the server receives the consent authorization response returned by the second terminal, extract the target person noun group corresponding to the number to be queried in the person name mapping table, and the person name mapping table records the correspondence between the number and the person name.

在本发明实施例中,如果服务器接收到第二终端返回的同意授权响应,则表示第二终端允许服务器将自己的用户姓名的人名词组提供给第一终端,因此,服务器在记录了号码与人名之间的对应关系的人名映射表中提取待查询号码对应的目标人名词组,以便在后续将目标人名词组返回给第一终端。In this embodiment of the present invention, if the server receives the consent authorization response returned by the second terminal, it means that the second terminal allows the server to provide the personal noun group of its own user name to the first terminal. The target person noun group corresponding to the number to be queried is extracted from the person name mapping table of the correspondence between person names, so that the target person noun group is returned to the first terminal subsequently.

106、服务器生成携带目标人名词组的成功响应,将成功响应返回给第一终端。106. The server generates a successful response carrying the target person-noun group, and returns the successful response to the first terminal.

在本发明实施例中,当服务器在人名映射表中提取待查询号码对应的目标人名词组后,服务器便可以生成携带目标人名词组的成功响应,并将成功响应返回给第一终端,以便第一终端将目标人名词组输入至人名输入框中。In the embodiment of the present invention, after the server extracts the target person noun group corresponding to the number to be queried in the person name mapping table, the server can generate a successful response carrying the target person noun group, and return the successful response to the first terminal, so that the The first terminal inputs the target person noun group into the person name input box.

本发明实施例提供的方法,可以服务器根据待查询号码确定目标人名词组,并在该待查询号码的第二终端授权的情况下,服务器直接将目标人名词组返回给第一终端进行显示,可以自动匹配用户输入的待查询号码对应的目标人名词组进行输入,达到了无需第一终端的用户手动输入人名词组,提高了词组的输入效率,降低用户在输入人名词组时的错误率,避免造成社交尴尬,智能性较好。In the method provided by the embodiment of the present invention, the server can determine the target person noun group according to the number to be queried, and when the second terminal of the to-be-queried number is authorized, the server directly returns the target person noun group to the first terminal for display, It can automatically match the target person-noun group corresponding to the number to be queried input by the user for input, so that the user of the first terminal does not need to manually input the person-noun group, which improves the input efficiency of the phrase and reduces the error rate when the user inputs the person-noun group. , to avoid social embarrassment, better intelligence.

本发明实施例提供了一种词组输入方法,可以当检测到用户请求输入人名词组时,将用户输入的待查询号码传输给服务器,由服务器根据待查询号码确定目标人名词组,并在该待查询号码的第二终端授权的情况下,服务器直接将目标人名词组返回给第一终端进行显示,可以自动匹配用户输入的待查询号码对应的目标人名词组进行输入,达到了无需第一终端的用户手动输入人名词组,提高了词组的输入效率,降低用户在输入人名词组时的错误率,避免造成社交尴尬,智能性较好的目的,如图1C所示,该方法应用于第二终端,包括:The embodiment of the present invention provides a phrase input method, which can transmit the number to be queried input by the user to the server when it is detected that the user requests to input a person noun group, and the server determines the target person noun group according to the number to be queried, and then in the In the case of authorization by the second terminal of the number to be queried, the server directly returns the target person noun group to the first terminal for display, which can automatically match the target person noun group corresponding to the number to be queried input by the user for input. The user of the terminal manually inputs the person-noun group, which improves the input efficiency of the phrase, reduces the error rate when the user enters the person-noun group, avoids social embarrassment, and has better intelligence. As shown in Figure 1C, this method is applied to A second terminal, including:

107、当第二终端接收到服务器发送的授权请求时,将授权请求展示给用户,授权请求由服务器在接收到第一终端的待查询号码时生成并发送。107. When the second terminal receives the authorization request sent by the server, the authorization request is displayed to the user, and the authorization request is generated and sent by the server upon receiving the number to be queried of the first terminal.

在本发明实施例中,当第二终端接收到服务器发送的授权请求时,表示第一终端希望获取到第二终端的用户姓名的人名词组,因此,第二终端将授权请求展示给用户,以便基于该授权请求来确定第二终端的用户是否允许授权。In this embodiment of the present invention, when the second terminal receives the authorization request sent by the server, it indicates that the first terminal wishes to obtain the person-noun group of the user name of the second terminal. Therefore, the second terminal displays the authorization request to the user, In order to determine whether the user of the second terminal allows authorization based on the authorization request.

108、如果第二终端检测到用户同意授权,则生成同意授权响应,将同意授权响应传输至服务器。108. If the second terminal detects that the user agrees to the authorization, it generates an authorization authorization response, and transmits the authorization authorization response to the server.

在本发明实施例中,如果第二终端检测到用户同意授权,则表示第二终端的用户同意将自己的用户姓名的人名词组提供给第一终端,因此,第二终端生成同意授权响应,将同意授权响应传输至服务器。In this embodiment of the present invention, if the second terminal detects that the user agrees to authorize, it means that the user of the second terminal agrees to provide the person-noun group of his user name to the first terminal. Therefore, the second terminal generates an authorization response, The consent authorization response is transmitted to the server.

109、如果第二终端检测到用户拒绝授权,则生成拒绝授权响应,将拒绝授权响应传输至服务器。109. If the second terminal detects that the user refuses the authorization, it generates an authorization rejection response, and transmits the authorization rejection response to the server.

在本发明实施例中,如果第二终端检测到用户拒绝授权,则表示第二终端的用户不同意将自己的用户姓名的人名词组提供给第一终端,因此,第二终端生成拒绝授权响应,将拒绝授权响应传输至服务器。In this embodiment of the present invention, if the second terminal detects that the user refuses to authorize, it means that the user of the second terminal does not agree to provide the person-noun group of his own user name to the first terminal. Therefore, the second terminal generates a refusal of authorization response , which transmits an authorization denied response to the server.

本发明实施例提供的方法,可以第二终端可以在接收到服务器的授权请求时,对服务器进行授权,使得服务器根据待查询号码确定目标人名词组,并直接将目标人名词组返回给第一终端进行显示,可以自动匹配用户输入的待查询号码对应的目标人名词组进行输入,达到了无需第一终端的用户手动输入人名词组,提高了词组的输入效率,降低用户在输入人名词组时的错误率,避免造成社交尴尬,智能性较好。In the method provided by the embodiment of the present invention, the second terminal can authorize the server when receiving the authorization request from the server, so that the server determines the target person noun group according to the number to be queried, and directly returns the target person noun group to the first terminal. The terminal displays, and can automatically match the target person noun group corresponding to the number to be queried input by the user for input, so that the user of the first terminal does not need to manually input the person noun group, which improves the efficiency of phrase input, and reduces the need for users to input the person noun group. Time error rate, avoid social embarrassment, and have better intelligence.

本发明实施例提供了一种词组输入方法,可以当检测到用户请求输入人名词组时,将用户输入的待查询号码传输给服务器,由服务器根据待查询号码确定目标人名词组,并在该待查询号码的第二终端授权的情况下,服务器直接将目标人名词组返回给第一终端进行显示,可以自动匹配用户输入的待查询号码对应的目标人名词组进行输入,达到了无需第一终端的用户手动输入人名词组,提高了词组的输入效率,降低用户在输入人名词组时的错误率,避免造成社交尴尬,智能性较好的目的,如图2A所示,该方法包括:The embodiment of the present invention provides a phrase input method, which can transmit the number to be queried input by the user to the server when it is detected that the user requests to input a person noun group, and the server determines the target person noun group according to the number to be queried, and then in the In the case of authorization by the second terminal of the number to be queried, the server directly returns the target person noun group to the first terminal for display, which can automatically match the target person noun group corresponding to the number to be queried input by the user for input. The user of the terminal manually inputs the person-noun group, which improves the input efficiency of the phrase, reduces the error rate when the user inputs the person-noun group, avoids social embarrassment, and has better intelligence. As shown in Figure 2A, the method includes:

201、第一终端读取第一终端的待收录号码,接收用户输入的待收录姓名,将待收录号码以及待收录姓名绑定,并将绑定后的待收录号码以及待收录姓名传输至服务器。201. The first terminal reads the number to be recorded of the first terminal, receives the name to be recorded entered by the user, binds the number to be recorded and the name to be recorded, and transmits the bound number to be recorded and the name to be recorded to the server .

在本发明实施例中,发明人认识到,目前国家规定的电话卡要实名制,也即要求号码与实际使用人必须一一对应,因此,可以建立号码与人名之间的对应关系,从而在后续用户输入号码时,可以自动为用户匹配人名,无需用户手动输入,避免输入生僻的人名。其中,为了可以收录大量号码与其对应的人名,终端可以将自身的号码以及用户的姓名上传给服务器,以便服务器将接收到的号码和姓名进行整理,从而在后续提供人名词组输入的服务。In the embodiment of the present invention, the inventor realizes that the current state-specified calling card requires a real-name system, that is, the number and the actual user must be in a one-to-one correspondence. Therefore, the corresponding relationship between the number and the person's name can be established. When entering a number, the user's name can be automatically matched, without the need for the user to manually input it, avoiding the input of uncommon names. Among them, in order to record a large number of numbers and their corresponding names, the terminal can upload its own number and the user's name to the server, so that the server can organize the received numbers and names, so as to provide the service of inputting the personal noun group later.

以第一终端将自身的待收录号码以及待收录姓名上传至服务器中进行说明,第一终端在首次使用服务器提供的词组输入服务之前,自动读取自身的号码作为待收录号码,并要求用户手动输入自己的姓名作为待收录姓名,在检测到用户填写姓名完毕后,将用户填写的姓名作为待收录姓名。考虑到服务器可能会在同一时间接收到大量终端传输的姓名以及号码,因此,第一终端在将待收录姓名以及待收录号码传输至服务器之间,先将待收录号码与待收录姓名进行绑定,并将绑定后的待收录号码与待收录姓名传输给服务器,从而将待收录号码与待收录姓名与其他终端上传的号码和姓名进行区分。The first terminal uploads its own number to be recorded and the name to be recorded to the server for illustration. Before the first terminal uses the phrase input service provided by the server for the first time, it automatically reads its own number as the number to be recorded, and requires the user to manually Enter your own name as the name to be included, and after detecting that the user has filled in the name, take the name filled in by the user as the name to be included. Considering that the server may receive a large number of names and numbers transmitted by the terminal at the same time, the first terminal first binds the number to be recorded and the name to be recorded before transmitting the name to be recorded and the number to be recorded to the server. , and transmit the bound number and name to be recorded to the server, so as to distinguish the number and name to be recorded from the numbers and names uploaded by other terminals.

需要说明的是,本发明实施例中涉及有第一终端和第二终端,第一终端和第二终端在首次进行号码查询或者被查询时,均需要执行上述过程,将自身的号码和姓名传输给服务器,以便服务器实现对号码以及人名的收录。It should be noted that the embodiment of the present invention involves a first terminal and a second terminal, and both the first terminal and the second terminal need to perform the above process when performing a number query or being queried for the first time, and transmit their own numbers and names. Give it to the server, so that the server can record the number and person's name.

202、服务器接收第一终端传输的待收录号码以及待收录姓名,将待收录号码与待收录姓名对应存储至人名映射表中。202. The server receives the number to be recorded and the name to be recorded transmitted by the first terminal, and stores the number to be recorded and the name to be recorded in a person name mapping table correspondingly.

在本发明实施例中,当服务器接收到第一终端传输的待收录号码以及待收录姓名后,便可以将待收录号码与待收录姓名对应存储。其中,服务器在存储待收录号码以及待收录姓名时,可以生成如表1所示的人名映射表,基于该人名映射表存储接收到的大量终端传输的待收录号码以及待收录姓名。In the embodiment of the present invention, after the server receives the number to be recorded and the name to be recorded transmitted by the first terminal, it can store the number to be recorded and the name to be recorded correspondingly. When storing numbers and names to be recorded, the server can generate a name mapping table as shown in Table 1, and store a large number of received numbers and names to be recorded transmitted by terminals based on the personal name mapping table.

表1Table 1

姓名Name 号码Number 张三Zhang San 139xxxxxxxx139xxxxxxxx 李四Li Si 138aaaaaaaa138aaaaaaaa ….…. ….….

需要说明的是,考虑到有些用户可能会注册有多个号码,因此,在人名映射表中,一个姓名可以对应多个号码,本发明实施例对姓名对应的号码数量不进行具体限定。It should be noted that, considering that some users may register multiple numbers, in the person name mapping table, one name may correspond to multiple numbers, and the embodiment of the present invention does not specifically limit the number of numbers corresponding to a name.

203、当第一终端检测到用户请求输入人名词组时,获取用户在号码输入框中输入的待查询号码,将待查询号码传输至服务器。203. When the first terminal detects that the user requests to input a person-noun group, obtain the number to be queried input by the user in the number input box, and transmit the number to be queried to the server.

在本发明实施例中,由于服务器中收录了大量号码与姓名之间的对应关系,因此,终端可以在检测到用户请求输入人名词组时,根据用户输入的号码,向服务器进行请求,以便服务器直接将用户输入的号码对应的姓名返回,而无需用户再手动输入人名词组。In this embodiment of the present invention, since a large number of correspondences between numbers and names are recorded in the server, the terminal can request the server according to the number input by the user when detecting that the user requests to input a person-noun group, so that the server can The name corresponding to the number entered by the user is directly returned without the need for the user to manually enter the person noun group.

其中,第一终端中可以设置输入入口,当检测到用户触发该输入入口时,显示图2B所示的输入页面,由用户在输入页面的号码输入框中输入号码,并在人名输入框中提供一个输入按钮,在检测到用户触发该输入按钮时,确定接收到用户请求输入人名词组,获取用户在号码输入框中输入的号码作为待查询号码,并将该待查询号码传输给服务器,以便服务器根据待查询号码返回相应的人名词组。在实际应用的过程中,该输入入口可以设置在诸如电话簿应用、即时通讯应用等应用中,输入按钮可以为图2B所示的“查询”按钮,本发明实施例对此不进行具体限定。Wherein, an input entry may be set in the first terminal, and when it is detected that the user triggers the entry entry, the input page shown in FIG. 2B is displayed, and the user enters the number in the number input box of the input page, and provides a number in the name input box. An input button, when it is detected that the user triggers the input button, it is determined that the user's request to input a person-noun group is received, the number input by the user in the number input box is obtained as the number to be queried, and the number to be queried is transmitted to the server, so that The server returns the corresponding person-noun group according to the number to be queried. In the actual application process, the input entry may be set in applications such as a phonebook application, an instant messaging application, etc., and the input button may be the “query” button shown in FIG. 2B , which is not specifically limited in this embodiment of the present invention.

需要说明的是,第一终端在将待查询号码传输至服务器后,由于服务器返回待查询号码对应的人名词组是需要一定时间的,为了使第一终端的用户可以获知当前服务器正在查询,并不是没有响应,第一终端还可以在人名输入框中显示诸如“查询中…”的字样,从而提醒用户当前服务器执行操作的进度。It should be noted that, after the first terminal transmits the number to be queried to the server, it takes a certain amount of time for the server to return the name group corresponding to the number to be queried, so that the user of the first terminal can know that the current server is querying, and It is not that there is no response, the first terminal may also display words such as "inquiring..." in the name input box, thereby reminding the user of the progress of the current server execution operation.

204、当服务器接收到第一终端发送的待查询号码时,确定待查询号码指定的第二终端,向第二终端发送授权请求。204. When the server receives the number to be queried sent by the first terminal, it determines the second terminal specified by the number to be queried, and sends an authorization request to the second terminal.

在本发明实施例中,当服务器接收到第一终端发送的待查询号码时,便可以根据待查询号码,确定该待查询号码指示的第二终端。考虑到第二终端的用户可能希望保护隐私,不想自己的姓名被第一终端的用户获取到,服务器在确定了第二终端后,向第二终端发送授权请求,从而实现对第二终端的询问,由第二终端来决定是否可将第二终端的用户的姓名返回给第一终端。In this embodiment of the present invention, when the server receives the number to be queried sent by the first terminal, it can determine the second terminal indicated by the number to be queried according to the number to be queried. Considering that the user of the second terminal may wish to protect privacy and does not want his name to be obtained by the user of the first terminal, after determining the second terminal, the server sends an authorization request to the second terminal, thereby realizing the inquiry of the second terminal. , the second terminal decides whether the name of the user of the second terminal can be returned to the first terminal.

在实际应用的过程中,为了使第二终端在接收到授权请求时,可以获知具体是哪一个终端请求输入姓名,服务器在向第二终端发送授权请求时,还可以获取第一终端的号码,并将第一终端的号码随着授权请求发送给第二终端,以使第二终端在接收到授权请求时,可以根据终端来确定是否进行授权。In the actual application process, in order to enable the second terminal to know which terminal requests to input the name when receiving the authorization request, the server may also obtain the number of the first terminal when sending the authorization request to the second terminal, The number of the first terminal is sent to the second terminal along with the authorization request, so that when the second terminal receives the authorization request, it can determine whether to perform authorization according to the terminal.

另外,考虑到第二终端的用户可能并不熟悉第一终端的号码,因此,服务器可以基于第一终端的号码查找第一终端的用户在人名映射表中的姓名,并在授权请求中携带查找到的姓名,以便第二终端的用户通过姓名判断是否认识第一用户,从而决定是否对第一终端进行授权。需要说明的是,如果基于第一终端的号码并没有查询到第一终端的用户的姓名,则可以不在授权请求中携带第一终端的用户的姓名。In addition, considering that the user of the second terminal may not be familiar with the number of the first terminal, the server may search for the name of the user of the first terminal in the name mapping table based on the number of the first terminal, and carry the search in the authorization request. The name received, so that the user of the second terminal can judge whether he knows the first user through the name, so as to decide whether to authorize the first terminal. It should be noted that, if the name of the user of the first terminal is not queried based on the number of the first terminal, the name of the user of the first terminal may not be carried in the authorization request.

需要说明的是,服务器在提取到待查询号码后,考虑到服务器中可能没有存储该待查询号码对应的姓名,服务器即使得到了第二终端的授权也并不能为第一终端提供第二终端的用户姓名的人名词组,因此,服务器在提取到待查询号码后,可以先查询是否存在与待查询号码对应的姓名,如果存在该待查询号码对应的姓名,则执行上述确定待查询号码指定的第二终端,向第二终端发送授权请求的过程;如果不存在该待查询号码对应的姓名,则服务器可以直接生成失败响应,将失败响应返回至第一终端即可,而无需再向第二终端发送待查询号码,也无需继续执行其他过程。It should be noted that, after the server extracts the number to be queried, considering that the name corresponding to the number to be queried may not be stored in the server, the server cannot provide the first terminal with the information of the second terminal even if it is authorized by the second terminal. Therefore, after extracting the number to be queried, the server can first query whether there is a name corresponding to the number to be queried. The second terminal, the process of sending an authorization request to the second terminal; if there is no name corresponding to the number to be queried, the server can directly generate a failure response and return the failure response to the first terminal without sending the second terminal to the second terminal. The terminal sends the number to be queried, and there is no need to continue to perform other processes.

205、当第二终端接收到服务器发送的授权请求时,将授权请求展示给用户,如果检测到用户同意授权,则执行下述步骤206至步骤208;如果检测到用户拒绝授权,则执行下述步骤209至步骤211。205. When the second terminal receives the authorization request sent by the server, it displays the authorization request to the user. If it is detected that the user agrees to the authorization, the following steps 206 to 208 are performed; if it is detected that the user refuses the authorization, the following steps are performed: Step 209 to Step 211.

在本发明实施例中,当第二终端接收到服务器发送的授权请求后,将授权请求展示给用户,使第二终端的用户可以基于该授权请求来决定是否授权第一终端获取自己的姓名,具体地,第二终端在展示授权请求时,可以采用图2C所示的方法进行展示。而在实际应用的过程中,服务器在将授权请求传输给第二终端时,还可能会携带第一终端的号码,这样,第二终端在将授权请求展示给用户时,还可以将第一终端的号码展示在授权请求中,以便第二终端的用户在看到授权请求时可以确定是第一终端请求输入第二终端用户的姓名,第二终端的用户便可以根据第一终端的身份确定是否对第一终端进行授权。In this embodiment of the present invention, after receiving the authorization request sent by the server, the second terminal displays the authorization request to the user, so that the user of the second terminal can decide whether to authorize the first terminal to obtain his name based on the authorization request, Specifically, when presenting the authorization request, the second terminal may use the method shown in FIG. 2C to present. In the actual application process, the server may also carry the number of the first terminal when transmitting the authorization request to the second terminal. In this way, when the second terminal displays the authorization request to the user, the first terminal can also The number of the user of the second terminal is displayed in the authorization request, so that when the user of the second terminal sees the authorization request, he can determine that it is the first terminal that requests to enter the name of the user of the second terminal, and the user of the second terminal can determine whether to Authorize the first terminal.

第二终端展示给用户的授权请求还可以如图2C所示携带“拒绝”按键以及“同意”按键,这样,当第二终端在将授权请求展示给用户后,基于授权请求检测到用户触发了“同意”按键,则确定检测到用户同意授权,第二终端便可以允许服务器将第二终端的用户姓名传输给第一终端进行输入,也即执行下述步骤206至步骤208中所示的过程;当第二终端在将授权请求展示给用户后,基于授权请求检测到用户触发了“拒绝”按键,则确定检测到用户拒绝授权,第二终端便可以生成拒绝授权响应,以便服务器传输拒绝授权响应传输给第一终端,以便第一终端的用户知晓第二终端拒绝授权,也即执行下述步骤209至步骤211。The authorization request displayed by the second terminal to the user may also carry a “reject” button and an “agree” button as shown in FIG. 2C . In this way, when the second terminal displays the authorization request to the user, it detects that the user has triggered the user based on the authorization request. "Agree" button, it is determined that the user agrees to authorize, and the second terminal can allow the server to transmit the user name of the second terminal to the first terminal for input, that is, execute the processes shown in the following steps 206 to 208 ; When the second terminal detects that the user has triggered the "reject" button based on the authorization request after presenting the authorization request to the user, it is determined that the user refuses to authorize, and the second terminal can generate a refusal authorization response, so that the server transmits the refusal authorization The response is transmitted to the first terminal so that the user of the first terminal knows that the second terminal refuses the authorization, ie, the following steps 209 to 211 are performed.

206、如果第二终端检测到用户同意授权,则生成同意授权响应,将同意授权响应传输至服务器。206. If the second terminal detects that the user agrees to the authorization, it generates an authorization authorization response, and transmits the authorization authorization response to the server.

在本发明实施例中,如果第二终端检测到用户同意授权,则表示第二终端的用户同意服务器将自己的姓名提供给第一终端,因此,第二终端生成同意授权响应,并将该同意授权响应传输给服务器,由服务器在接收到同意授权响应后,将第二终端的用户姓名的人名词组传输给第一终端。In this embodiment of the present invention, if the second terminal detects that the user agrees to authorize, it means that the user of the second terminal agrees that the server provides his name to the first terminal. Therefore, the second terminal generates an consent authorization response, and sends the consent The authorization response is transmitted to the server, and after receiving the consent authorization response, the server transmits the person-noun group of the user name of the second terminal to the first terminal.

207、服务器在人名映射表中提取待查询号码对应的目标人名词组,生成携带目标人名词组的成功响应,将成功响应返回给第一终端。207. The server extracts the target person noun group corresponding to the number to be queried from the person name mapping table, generates a successful response carrying the target person noun group, and returns the successful response to the first terminal.

在本发明实施例中,服务器在接收到第二终端传输的同意授权响应后,便可以确定第二终端已经允许将用户姓名的人名词组传输给第一终端。由于服务器中存储有记录号码与姓名之间对应关系的人名映射表,因此,服务器在人名映射表中提取第一终端发送的待查询号码对应的目标人名词组,并生成携带该目标人名词组的成功响应,将成功响应返回给第一终端,以便第一终端将目标人名词组输入到人名输入框中。In this embodiment of the present invention, after receiving the consent authorization response transmitted by the second terminal, the server may determine that the second terminal has allowed the transmission of the personal noun group of the user's name to the first terminal. Since the server stores a person name mapping table that records the correspondence between numbers and names, the server extracts the target person noun group corresponding to the number to be queried sent by the first terminal from the person name mapping table, and generates a target person noun group that carries the target person. The successful response is returned to the first terminal, so that the first terminal can input the target person name group into the person name input box.

208、第一终端在成功响应中提取目标人名词组,确定人名输入框,将目标人名词组输入至人名输入框。208. The first terminal extracts the target person's noun group from the successful response, determines a person's name input box, and inputs the target person's noun group into the person's name input box.

在本发明实施例中,当第一终端接收到服务器返回的成功响应后,由于服务器在成功响应中携带了根据待查询号码确定的目标人名词组,因此,参见图2D,第一终端可以在成功响应中提取目标人名词组,并确定人名输入框,将目标人名词组输入到人名输入框中,从而实现了自动将人名词组输入到人名输入框中,无需用户手动输入。In this embodiment of the present invention, after the first terminal receives the successful response returned by the server, since the server carries the target person noun group determined according to the number to be queried in the successful response, referring to FIG. 2D, the first terminal can The target person's noun group is extracted from the successful response, and the person's name input box is determined, and the target person's noun group is input into the person's name input box, thereby realizing the automatic input of the person's noun group into the person's name input box without the need for manual input by the user.

209、如果第二终端检测到用户拒绝授权,则生成拒绝授权响应,将拒绝授权响应传输至服务器。209. If the second terminal detects that the user refuses the authorization, it generates an authorization rejection response, and transmits the authorization rejection response to the server.

在本发明实施例中,如果第二终端检测到用户拒绝授权,则表示第二终端的用户拒绝将自己姓名的人名词组提供给第一终端,因此,第二终端生成拒绝授权响应,并将拒绝授权响应传输给服务器,以便服务器在接收到拒绝授权响应后,不会将第二终端的用户姓名的人名词组提供给第一终端。In this embodiment of the present invention, if the second terminal detects that the user refuses to authorize, it means that the user of the second terminal refuses to provide the person-noun group of his name to the first terminal. Therefore, the second terminal generates a refusal of authorization response, and sends The authorization rejection response is transmitted to the server, so that after receiving the authorization rejection response, the server will not provide the first terminal with the person-noun group of the user name of the second terminal.

210、服务器生成失败响应,将失败响应传输至第一终端。210. The server generates a failure response, and transmits the failure response to the first terminal.

在本发明实施例中,当服务器接收到第二终端传输的拒绝授权响应后,确定第二终端的用户拒绝将自己姓名的人名词组提供给第一终端,这样,服务器便无需在人名映射表中获取第二终端的用户姓名人名词组,直接生成失败响应,将失败响应发送给第一终端,从而告知第一终端无法为其提供待查询号码对应的人名词组。In this embodiment of the present invention, after the server receives the authorization rejection response transmitted by the second terminal, it determines that the user of the second terminal refuses to provide the person-noun group of his own name to the first terminal, so that the server does not need to store the person-name mapping table Obtain the user name person-noun group of the second terminal in the second terminal, directly generate a failure response, and send the failure response to the first terminal, thereby informing the first terminal that the person-noun group corresponding to the number to be queried cannot be provided for it.

211、第一终端生成失败字符,将失败字符输入至人名输入框。211. The first terminal generates a failed character, and inputs the failed character into the name input box.

在本发明实施例中,当第一终端接收到服务器返回的失败字符时,便可以确定服务器无法提供待查询号码对应的人名词组,这样,第一终端便可以如图2E所示,生成诸如“查询失败”等的失败字符,并将失败字符输入至人名输入框中,从而告知第一终端的用户服务器无法提供待查询号码对应的人名词组。In the embodiment of the present invention, when the first terminal receives the failed character returned by the server, it can be determined that the server cannot provide the person-noun group corresponding to the number to be queried. In this way, the first terminal can generate, as shown in FIG. 2E , such as Failed characters such as "query failure", etc., and input the failed characters into the personal name input box, thereby informing the user of the first terminal that the server cannot provide the personal noun group corresponding to the number to be queried.

需要说明的是,考虑到第一终端与服务器之间可能会存在网络延迟或者网络故障,导致第一终端与服务器之间的信息传输不成功,从而影响了服务器为第一终端提供目标人名词组的进程的情况发生,为了避免第一终端持续的等待服务器的回应而浪费大量的时间,第一终端中可以设置超时时长,在将待查询号码发送至服务器后,开始统计接收到服务器返回的响应的等待时间,如果等待时间超过超时时长,则不再进行等待,直接确定失败,生成失败字符,将失败字符输入至人名输入框中。例如,设超时时长为30秒,则如果等待时间超过30s确定获取信息失败,生成失败字符,将失败字符输入至人名输入框中。其中,在等待服务器返回的响应时,可以将统计等待时间的过程展示给第一终端的用户,以便第一终端的用户获知具体的等待过程。It should be noted that, considering that there may be a network delay or network failure between the first terminal and the server, the information transmission between the first terminal and the server is unsuccessful, thereby affecting the server to provide the first terminal with the target person noun group. In order to avoid wasting a lot of time by the first terminal continuously waiting for the server's response, the first terminal can set a timeout period. After sending the number to be queried to the server, it starts to count the responses returned by the server. If the waiting time exceeds the timeout period, no more waiting is performed, the failure is directly determined, the failed character is generated, and the failed character is entered into the name input box. For example, if the timeout period is set to 30 seconds, if the waiting time exceeds 30s, it is determined that the acquisition of information fails, and a failed character is generated, and the failed character is entered into the name input box. Wherein, while waiting for the response returned by the server, the process of counting the waiting time may be displayed to the user of the first terminal, so that the user of the first terminal can know the specific waiting process.

而在实际应用的过程中,由于服务器并没有为第一终端提供目标人名词组,因此,第一终端很可能会在后续接收到第一终端的用户手动输入的目标字符,这样,当第一终端接收到用户在人名输入框中输入目标字符时,便可以在人名输入框中显示目标字符。However, in the actual application process, since the server does not provide the first terminal with the target person noun group, the first terminal is likely to receive the target characters manually input by the user of the first terminal later. When the terminal receives the target character input by the user in the person name input box, it can display the target character in the person name input box.

本发明实施例提供的方法,可以当检测到用户请求输入人名词组时,将用户输入的待查询号码传输给服务器,由服务器根据待查询号码确定目标人名词组,并在该待查询号码的第二终端授权的情况下,服务器直接将目标人名词组返回给第一终端进行显示,可以自动匹配用户输入的待查询号码对应的目标人名词组进行输入,达到了无需第一终端的用户手动输入人名词组,提高了词组的输入效率,降低用户在输入人名词组时的错误率,避免造成社交尴尬,智能性较好。In the method provided by the embodiment of the present invention, when it is detected that the user requests to input a person noun group, the number to be queried input by the user is transmitted to the server, and the server determines the target person noun group according to the number to be queried, and the number of the person to be queried. In the case of authorization from the second terminal, the server directly returns the target person noun group to the first terminal for display, which can automatically match the target person noun group corresponding to the number to be queried input by the user for input. Entering person noun groups improves the efficiency of phrase input, reduces the error rate of users when inputting person noun groups, avoids social embarrassment, and has better intelligence.

进一步地,作为图1A所述方法的具体实现,本发明实施例提供了一种词组输入装置,如图3A所示,所述装置包括:获取模块301,提取模块302和输入模块303。Further, as a specific implementation of the method shown in FIG. 1A , an embodiment of the present invention provides a phrase input device. As shown in FIG. 3A , the device includes: an acquisition module 301 , an extraction module 302 and an input module 303 .

该获取模块301,用于当检测到用户请求输入人名词组时,获取所述用户在号码输入框中输入的待查询号码,将所述待查询号码传输至服务器;The acquiring module 301 is configured to acquire the number to be inquired entered by the user in the number input box when it is detected that the user requests to input a person-noun group, and transmit the number to be inquired to the server;

该提取模块302,用于如果接收到所述服务器返回的成功响应,则在所述成功响应中提取目标人名词组,所述目标人名词组由服务器根据所述待查询号码确定;The extraction module 302 is configured to extract a target person noun group from the successful response if a successful response returned by the server is received, and the target person noun group is determined by the server according to the number to be queried;

该输入模块303,用于确定人名输入框,将所述目标人名词组输入至所述人名输入框。The input module 303 is configured to determine a person name input box, and input the target person noun group into the person name input box.

在具体的应用场景中,如图3B所示,该装置还包括:读取模块304和传输模块305。In a specific application scenario, as shown in FIG. 3B , the apparatus further includes: a reading module 304 and a transmission module 305 .

该读取模块304,用于读取第一终端的待收录号码,接收所述用户输入的待收录姓名;The reading module 304 is configured to read the number to be included in the first terminal, and receive the name to be included entered by the user;

该传输模块305,用于将所述待收录号码以及所述待收录姓名绑定,并将绑定后的所述待收录号码以及所述待收录姓名传输至所述服务器。The transmission module 305 is configured to bind the number to be recorded and the name to be recorded, and transmit the bound number to be recorded and the name to be recorded to the server.

在具体的应用场景中,如图3C所示,该装置还包括:生成模块306。In a specific application scenario, as shown in FIG. 3C , the apparatus further includes: a generating module 306 .

该生成模块306,用于如果接收到所述服务器返回的失败响应,则生成失败字符,将所述失败字符输入至所述人名输入框;The generating module 306 is configured to generate a failure character if a failure response returned by the server is received, and input the failure character into the name input box;

该输入模块303,还用于当接收到所述用户在所述人名输入框中输入目标字符时,在所述人名输入框中显示所述目标字符。The input module 303 is further configured to display the target character in the person name input box when receiving the target character input by the user in the person name input box.

本发明实施例提供的装置,可以当检测到用户请求输入人名词组时,将用户输入的待查询号码传输给服务器,由服务器根据待查询号码确定目标人名词组,并在该待查询号码的第二终端授权的情况下,服务器直接将目标人名词组返回给第一终端进行显示,可以自动匹配用户输入的待查询号码对应的目标人名词组进行输入,达到了无需第一终端的用户手动输入人名词组,提高了词组的输入效率,降低用户在输入人名词组时的错误率,避免造成社交尴尬,智能性较好。The device provided by the embodiment of the present invention can transmit the number to be queried input by the user to the server when it is detected that the user requests to input a person noun group, and the server determines the target person noun group according to the number to be queried, and in the In the case of authorization from the second terminal, the server directly returns the target person noun group to the first terminal for display, which can automatically match the target person noun group corresponding to the number to be queried input by the user for input. Entering person noun groups improves the efficiency of phrase input, reduces the error rate of users when inputting person noun groups, avoids social embarrassment, and has better intelligence.

进一步地,作为图1B所述方法的具体实现,本发明实施例提供了一种词组输入装置,如图4A所示,所述装置包括:确定模块401,提取模块402和生成模块403。Further, as a specific implementation of the method shown in FIG. 1B , an embodiment of the present invention provides a phrase input device. As shown in FIG. 4A , the device includes: a determination module 401 , an extraction module 402 and a generation module 403 .

该确定模块401,用于当接收到第一终端发送的待查询号码时,确定所述待查询号码指示的第二终端,向所述第二终端发送授权请求;The determining module 401 is configured to, when receiving the number to be queried sent by the first terminal, determine the second terminal indicated by the number to be queried, and send an authorization request to the second terminal;

该提取模块402,用于如果接收到所述第二终端返回的同意授权响应,则在人名映射表中提取所述待查询号码对应的目标人名词组,所述人名映射表记录了号码与人名之间的对应关系;The extraction module 402 is configured to extract the target person noun group corresponding to the number to be queried in the person name mapping table, if the consent authorization response returned by the second terminal is received, and the person name mapping table records the number and the person name Correspondence between;

该生成模块403,用于生成携带所述目标人名词组的成功响应,将所述成功响应返回给所述第一终端。The generating module 403 is configured to generate a successful response carrying the target person noun group, and return the successful response to the first terminal.

在具体的应用场景中,如图4B所示,该装置还包括:接收模块404和存储模块405。In a specific application scenario, as shown in FIG. 4B , the apparatus further includes: a receiving module 404 and a storage module 405 .

该接收模块404,用于接收所述第一终端传输的待收录号码以及待收录姓名,所述待收录号码为所述第一终端的号码,所述待收录姓名为所述第一终端的用户的姓名;The receiving module 404 is configured to receive the number to be recorded and the name to be recorded transmitted by the first terminal, the number to be recorded is the number of the first terminal, and the name to be recorded is the user of the first terminal 's name;

该存储模块405,用于将所述待收录号码与所述待收录姓名对应存储至所述人名映射表中。The storage module 405 is configured to store the number to be recorded and the name to be recorded in the person name mapping table correspondingly.

在具体的应用场景中,该生成模块403,还用于如果接收到所述第二终端返回的拒绝授权响应,则生成失败响应,将所述失败响应传输至所述第一终端。In a specific application scenario, the generating module 403 is further configured to generate a failure response if an authorization rejection response returned by the second terminal is received, and transmit the failure response to the first terminal.

本发明实施例提供的装置,可以服务器根据待查询号码确定目标人名词组,并在该待查询号码的第二终端授权的情况下,服务器直接将目标人名词组返回给第一终端进行显示,可以自动匹配用户输入的待查询号码对应的目标人名词组进行输入,达到了无需第一终端的用户手动输入人名词组,提高了词组的输入效率,降低用户在输入人名词组时的错误率,避免造成社交尴尬,智能性较好。In the device provided by the embodiment of the present invention, the server can determine the target person noun group according to the number to be queried, and when the second terminal of the to-be-queried number is authorized, the server directly returns the target person noun group to the first terminal for display, It can automatically match the target person-noun group corresponding to the number to be queried input by the user for input, so that the user of the first terminal does not need to manually input the person-noun group, which improves the input efficiency of the phrase and reduces the error rate when the user inputs the person-noun group. , to avoid social embarrassment, better intelligence.

进一步地,作为图1C所述方法的具体实现,本发明实施例提供了一种词组输入装置,如图5所示,所述装置包括:展示模块501,第一生成模块502和第二生成模块503。Further, as a specific implementation of the method described in FIG. 1C , an embodiment of the present invention provides a phrase input device. As shown in FIG. 5 , the device includes: a presentation module 501 , a first generation module 502 and a second generation module 503.

该展示模块501,用于当接收到服务器发送的授权请求时,将所述授权请求展示给用户,所述授权请求由所述服务器在接收到第一终端的待查询号码时生成并发送;The display module 501 is configured to display the authorization request to the user when receiving the authorization request sent by the server, and the authorization request is generated and sent by the server when receiving the number to be queried of the first terminal;

该第一生成模块502,用于如果检测到用户同意授权,则生成同意授权响应,将所述同意授权响应传输至所述服务器;The first generating module 502 is configured to generate an consent authorization response if it is detected that the user agrees to the authorization, and transmit the consent authorization response to the server;

该第二生成模块503,用于如果检测到用户拒绝授权,则生成拒绝授权响应,将所述拒绝授权响应传输至所述服务器。The second generation module 503 is configured to generate an authorization rejection response if it is detected that the user refuses authorization, and transmit the authorization rejection response to the server.

本发明实施例提供的装置,可以第二终端可以在接收到服务器的授权请求时,对服务器进行授权,使得服务器根据待查询号码确定目标人名词组,并直接将目标人名词组返回给第一终端进行显示,可以自动匹配用户输入的待查询号码对应的目标人名词组进行输入,达到了无需第一终端的用户手动输入人名词组,提高了词组的输入效率,降低用户在输入人名词组时的错误率,避免造成社交尴尬,智能性较好。In the device provided by the embodiment of the present invention, the second terminal can authorize the server when receiving the authorization request from the server, so that the server determines the target person noun group according to the number to be queried, and directly returns the target person noun group to the first The terminal displays, and can automatically match the target person noun group corresponding to the number to be queried input by the user for input, so that the user of the first terminal does not need to manually input the person noun group, which improves the efficiency of phrase input, and reduces the need for users to input the person noun group. Time error rate, avoid social embarrassment, and have better intelligence.

需要说明的是,本发明实施例提供的一种词组输入装置所涉及各功能单元的其他相应描述,可以参考图1A至图1C和图2A中的对应描述,在此不再赘述。It should be noted that, for other corresponding descriptions of the functional units involved in a phrase input device provided by an embodiment of the present invention, reference may be made to the corresponding descriptions in FIG. 1A to FIG. 1C and FIG. 2A , which will not be repeated here.

在示例性实施例中,参见图6,还提供了一种设备,该设备600包括通信总线、处理器、存储器和通信接口,还可以包括、输入输出接口和显示设备,其中,各个功能单元之间可以通过总线完成相互间的通信。该存储器存储有计算机程序,处理器,用于执行存储器上所存放的程序,执行上述实施例中的词组输入方法。In an exemplary embodiment, referring to FIG. 6 , a device is also provided, and the device 600 includes a communication bus, a processor, a memory and a communication interface, and may also include an input and output interface and a display device, wherein among the various functional units Communication between them can be accomplished through the bus. The memory stores a computer program and a processor for executing the program stored in the memory to execute the phrase input method in the above embodiment.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现所述的词组输入方法的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the phrase input method.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本申请可以通过硬件实现,也可以借助软件加必要的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施场景所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by hardware or by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, and the software product can be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.), including several The instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various implementation scenarios of this application.

本领域技术人员可以理解附图只是一个优选实施场景的示意图,附图中的模块或流程并不一定是实施本申请所必须的。Those skilled in the art can understand that the accompanying drawing is only a schematic diagram of a preferred implementation scenario, and the modules or processes in the accompanying drawing are not necessarily necessary to implement the present application.

本领域技术人员可以理解实施场景中的装置中的模块可以按照实施场景描述进行分布于实施场景的装置中,也可以进行相应变化位于不同于本实施场景的一个或多个装置中。上述实施场景的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the modules in the device in the implementation scenario may be distributed in the device in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the implementation scenario with corresponding changes. The modules of the above implementation scenarios may be combined into one module, or may be further split into multiple sub-modules.

上述本申请序号仅仅为了描述,不代表实施场景的优劣。The above serial numbers in the present application are only for description, and do not represent the pros and cons of the implementation scenarios.

以上公开的仅为本申请的几个具体实施场景,但是,本申请并非局限于此,任何本领域的技术人员能思之的变化都应落入本申请的保护范围。The above disclosures are only a few specific implementation scenarios of the present application, however, the present application is not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the protection scope of the present application.

Claims (10)

1.一种词组输入方法,其特征在于,包括:1. a phrase input method, is characterized in that, comprises: 当检测到用户请求输入人名词组时,获取所述用户在号码输入框中输入的待查询号码,将所述待查询号码传输至服务器;When detecting that the user requests to input a person-noun group, obtain the number to be inquired entered by the user in the number input box, and transmit the number to be inquired to the server; 如果接收到所述服务器返回的成功响应,则在所述成功响应中提取目标人名词组,所述目标人名词组由服务器根据所述待查询号码确定;If a successful response returned by the server is received, a target person noun group is extracted from the successful response, and the target person noun group is determined by the server according to the number to be queried; 确定人名输入框,将所述目标人名词组输入至所述人名输入框。A person name input box is determined, and the target person noun group is input into the person name input box. 2.根据权利要求1所述的方法,其特征在于,所述当检测到用户请求输入人名词组时,获取所述用户在号码输入框中输入的待查询号码,将所述待查询号码传输至服务器之前,包括:2. The method according to claim 1, wherein when it is detected that the user requests to input a noun group, the number to be inquired that is input by the user in the number input box is obtained, and the number to be inquired is transmitted Before going to the server, including: 读取第一终端的待收录号码,接收所述用户输入的待收录姓名;Read the number to be included in the first terminal, and receive the name to be included entered by the user; 将所述待收录号码以及所述待收录姓名绑定,并将绑定后的所述待收录号码以及所述待收录姓名传输至所述服务器。The number to be recorded and the name to be recorded are bound, and the bound number to be recorded and the name to be recorded are transmitted to the server. 3.根据权利要求1所述的方法,其特征在于,所述当检测到用户请求输入人名词组时,获取所述用户在号码输入框中输入的待查询号码,将所述待查询号码传输至服务器之后,所述方法还包括:3. The method according to claim 1, wherein, when detecting that the user requests to input a noun group, obtain the number to be inquired that the user inputs in the number input box, and transmit the number to be inquired. After reaching the server, the method further includes: 如果接收到所述服务器返回的失败响应,则生成失败字符,将所述失败字符输入至所述人名输入框;If a failure response returned by the server is received, a failure character is generated, and the failure character is input into the name input box; 当接收到所述用户在所述人名输入框中输入目标字符时,在所述人名输入框中显示所述目标字符。When receiving a target character input by the user in the person name input box, the target character is displayed in the person name input box. 4.一种词组输入方法,其特征在于,所述方法包括:4. a phrase input method, is characterized in that, described method comprises: 当接收到第一终端发送的待查询号码时,确定所述待查询号码指示的第二终端,向所述第二终端发送授权请求;When receiving the number to be queried sent by the first terminal, determine the second terminal indicated by the number to be queried, and send an authorization request to the second terminal; 如果接收到所述第二终端返回的同意授权响应,则在人名映射表中提取所述待查询号码对应的目标人名词组,所述人名映射表记录了号码与人名之间的对应关系;If the consent authorization response returned by the second terminal is received, extract the target person noun group corresponding to the number to be queried in the person name mapping table, and the person name mapping table records the correspondence between the number and the person name; 生成携带所述目标人名词组的成功响应,将所述成功响应返回给所述第一终端。A successful response carrying the target person noun group is generated, and the successful response is returned to the first terminal. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. The method according to claim 4, wherein the method further comprises: 接收所述第一终端传输的待收录号码以及待收录姓名,所述待收录号码为所述第一终端的号码,所述待收录姓名为所述第一终端的用户的姓名;receiving the number to be recorded and the name to be recorded transmitted by the first terminal, the number to be recorded is the number of the first terminal, and the name to be recorded is the name of the user of the first terminal; 将所述待收录号码与所述待收录姓名对应存储至所述人名映射表中。The number to be recorded and the name to be recorded are stored in the person name mapping table correspondingly. 6.根据权利要求4所述的方法,其特征在于,所述方法还包括:6. The method according to claim 4, wherein the method further comprises: 如果接收到所述第二终端返回的拒绝授权响应,则生成失败响应,将所述失败响应传输至所述第一终端。If an authorization rejection response returned by the second terminal is received, a failure response is generated, and the failure response is transmitted to the first terminal. 7.一种词组输入方法,其特征在于,所述方法包括:7. A phrase input method, wherein the method comprises: 当接收到服务器发送的授权请求时,将所述授权请求展示给用户,所述授权请求由所述服务器在接收到第一终端的待查询号码时生成并发送;When an authorization request sent by the server is received, the authorization request is displayed to the user, and the authorization request is generated and sent by the server upon receiving the number to be queried of the first terminal; 如果检测到用户同意授权,则生成同意授权响应,将所述同意授权响应传输至所述服务器;If it is detected that the user agrees to the authorization, generating an consent authorization response, and transmitting the consent authorization response to the server; 如果检测到用户拒绝授权,则生成拒绝授权响应,将所述拒绝授权响应传输至所述服务器。If it is detected that the user denies authorization, a denial of authorization response is generated and transmitted to the server. 8.一种词组输入装置,其特征在于,包括:8. A phrase input device, characterized in that, comprising: 获取模块,用于当检测到用户请求输入人名词组时,获取所述用户在号码输入框中输入的待查询号码,将所述待查询号码传输至服务器;an acquisition module, configured to acquire the number to be inquired entered by the user in the number input box when it is detected that the user requests to input a person-noun group, and transmit the number to be inquired to the server; 提取模块,用于如果接收到所述服务器返回的成功响应,则在所述成功响应中提取目标人名词组,所述目标人名词组由服务器根据所述待查询号码确定;an extraction module, configured to extract a target person noun group from the successful response if a successful response returned by the server is received, and the target person noun group is determined by the server according to the number to be queried; 输入模块,用于确定人名输入框,将所述目标人名词组输入至所述人名输入框。The input module is used for determining a person name input box, and inputting the target person name group into the person name input box. 9.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述方法的步骤。9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when the processor executes the computer program . 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的方法的步骤。10. A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
CN201910122476.5A 2019-02-18 2019-02-18 Phrase entering method, device, computer equipment and computer readable storage medium Pending CN109976551A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910122476.5A CN109976551A (en) 2019-02-18 2019-02-18 Phrase entering method, device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910122476.5A CN109976551A (en) 2019-02-18 2019-02-18 Phrase entering method, device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109976551A true CN109976551A (en) 2019-07-05

Family

ID=67077081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910122476.5A Pending CN109976551A (en) 2019-02-18 2019-02-18 Phrase entering method, device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109976551A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636442A (en) * 2015-01-07 2015-05-20 小米科技有限责任公司 Name card transfer method and device
CN104951533A (en) * 2015-06-18 2015-09-30 北京乐动卓越科技有限公司 Information name card querying method and system
US20160182607A1 (en) * 2014-08-05 2016-06-23 Ausxin Infotech (Shanghai) Co., Ltd. System and method to realize personal big data collection, management and authorization
CN107808345A (en) * 2017-09-29 2018-03-16 深圳市轱辘车联数据技术有限公司 A kind of information processing method, device, terminal and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160182607A1 (en) * 2014-08-05 2016-06-23 Ausxin Infotech (Shanghai) Co., Ltd. System and method to realize personal big data collection, management and authorization
CN104636442A (en) * 2015-01-07 2015-05-20 小米科技有限责任公司 Name card transfer method and device
CN104951533A (en) * 2015-06-18 2015-09-30 北京乐动卓越科技有限公司 Information name card querying method and system
CN107808345A (en) * 2017-09-29 2018-03-16 深圳市轱辘车联数据技术有限公司 A kind of information processing method, device, terminal and server

Similar Documents

Publication Publication Date Title
KR101626474B1 (en) Apparatus for providing document sharing service based messenger and method using the same
EP2896162B1 (en) Determining additional information associated with geographic location information
US10068086B2 (en) System and method of automatic password recovery for a service
CN105847288B (en) A kind of identifying code treating method and apparatus
JP2006107495A (en) Document retrieval technology using image capture device
WO2016051240A1 (en) System and method of automatic password recovery for a service
CN104767858A (en) Method and device for displaying information
CN104123324A (en) Positioning and obtaining method and device for unread messages
WO2014110989A1 (en) Method, apparatus, system and computer readable storage medium of adding instant message contact
CN103327013A (en) Contact person information sharing method and equipment based on sharing permission level
US20190303384A1 (en) Method and system for consolidating data retrieved from different sources
CN104618877A (en) Short message arranging method and device
CN103002103A (en) Method and device for mass sending of short messages
CN103167088B (en) Address book ordering method and mobile terminal
US8209323B2 (en) Methods and apparatuses for dynamically searching for electronic mail messages
CN109976551A (en) Phrase entering method, device, computer equipment and computer readable storage medium
CN110443659A (en) Method and system for generating an invoice
US8380733B2 (en) Methods and apparatuses for dynamically displaying search suggestions
CN102833381B (en) Method and device for matching stored contact persons in short message contents
US20190087416A1 (en) Information processing apparatus and non-transitory computer readable medium
CN107135285A (en) A kind of customized type electronic name card exchange method and system
CN103472991A (en) Method, equipment and system for adding contacts
CN107124498A (en) A kind of method of calling and device based on high in the clouds account
JP2017215891A (en) Information processing apparatus and data generation method
US11165737B2 (en) Information processing apparatus for conversion between abbreviated name and formal name

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190705

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载