Movatterモバイル変換


[0]ホーム

URL:


CN111786982A - Group nickname setting method, device and electronic device - Google Patents

Group nickname setting method, device and electronic device
Download PDF

Info

Publication number
CN111786982A
CN111786982ACN202010592432.1ACN202010592432ACN111786982ACN 111786982 ACN111786982 ACN 111786982ACN 202010592432 ACN202010592432 ACN 202010592432ACN 111786982 ACN111786982 ACN 111786982A
Authority
CN
China
Prior art keywords
group
nickname
tag
message
user
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
CN202010592432.1A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN202010592432.1ApriorityCriticalpatent/CN111786982A/en
Publication of CN111786982ApublicationCriticalpatent/CN111786982A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The application discloses a group nickname setting method and device and electronic equipment, belongs to the technical field of communication, and can solve the problem that the process of setting a nickname in a new group is complicated when a user joins the group. The method comprises the following steps: under the condition that the electronic equipment logs in the target account, receiving a first message sent by a server, wherein the first message is used for indicating the target account to join a first group; in response to the first message, determining a first nickname that matches a first group of group tags from among the at least one nickname corresponding to the target account, each nickname corresponding to at least one group tag; and sending a second message to the server, wherein the second message contains the first nickname and is used for instructing the server to store the group identifications of the first group in association with the first nickname. The embodiment of the application is applied to a multi-user group chat scene.

Description

Translated fromChinese
群组昵称设置方法、装置及电子设备Group nickname setting method, device and electronic device

技术领域technical field

本申请实施例涉及通信技术领域,尤其涉及一种群组昵称设置方法、装置及电子设备。The embodiments of the present application relate to the field of communication technologies, and in particular, to a method, an apparatus, and an electronic device for setting a group nickname.

背景技术Background technique

随着电子设备技术的发展,用户使用电子设备进行社交的频率也越来越高,为了方便多人同时沟通,还需要加入各种各样的群组,例如,工作群组和家人群组等,并且,用户还需要根据群组的性质设置用户在群组中的昵称。With the development of electronic device technology, users use electronic devices to socialize more and more frequently. In order to facilitate multiple people to communicate at the same time, they also need to join various groups, such as work groups and family groups, etc. , and the user also needs to set the user's nickname in the group according to the nature of the group.

在相关技术中,当用户加入某个群组后,可以根据该群组的性质,设置自己在该群组中的昵称。例如,若用户加入了某个工作群组,需要将其在该群组中的昵称设置为“会计-张三”,若用户加入了某个家庭群组,需要将其在该群组中的昵称设置为真实姓名“张三”。In the related art, after a user joins a group, he or she can set his nickname in the group according to the nature of the group. For example, if a user joins a work group, his/her nickname in the group needs to be set to "Accountant-Zhang San"; if a user joins a family group, his/her nickname in the group needs to be set. The nickname is set to the real name "Zhang San".

然而,上述群组设置过程需要用户打开群组设置界面,手动设置自己在该群组中的昵称,并且,用户每加入一个新的群组都需要按照该设置过程设置群组昵称,操作较为繁琐。However, the above group setting process requires the user to open the group setting interface and manually set his own nickname in the group, and each time the user joins a new group, the user needs to set the group nickname according to the setting process, which is a cumbersome operation. .

发明内容SUMMARY OF THE INVENTION

本申请实施例的目的是提供一种群组昵称设置方法、装置及电子设备,能够解决用户加入新的群组时设置其在该群组中的昵称过程繁琐的问题。The purpose of the embodiments of the present application is to provide a method, apparatus and electronic device for setting a group nickname, which can solve the problem of cumbersome process of setting a nickname in a group when a user joins a new group.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:

第一方面,本申请实施例提供一种群组昵称设置方法,该方法包括:在电子设备登录目标账户的情况下,接收服务器发送的第一消息,第一消息用于指示目标账户加入第一群组;响应于第一消息,从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称,每个昵称对应至少一个群组标签;向服务器发送第二消息,第二消息中包含第一昵称,第二消息用于指示服务器将第一群组的群组标识与第一昵称关联存储。In a first aspect, an embodiment of the present application provides a method for setting a group nickname. The method includes: when an electronic device logs in to a target account, receiving a first message sent by a server, where the first message is used to instruct the target account to join the first group; in response to the first message, from at least one nickname corresponding to the target account, determine a first nickname that matches the group tag of the first group, each nickname corresponds to at least one group tag; send a second nickname to the server message, the second message includes the first nickname, and the second message is used to instruct the server to store the group identifier of the first group in association with the first nickname.

第二方面,本申请实施例还提供了一种群组昵称设置装置,该装置包括接收模块、确定模块和发送模块;接收模块,用于在电子设备登录目标账户的情况下,接收服务器发送的第一消息,第一消息用于指示目标账户加入第一群组;确定模块,用于响应于接收模块接收的第一消息,从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称,每个昵称对应至少一个群组标签;发送模块,用于向服务器发送第二消息,第二消息中包含确定模块确定的第一昵称,第二消息用于指示服务器将第一群组的群组标识与第一昵称关联存储。In a second aspect, an embodiment of the present application also provides a group nickname setting device, the device includes a receiving module, a determining module and a sending module; The first message, the first message is used to instruct the target account to join the first group; the determining module is configured to, in response to the first message received by the receiving module, determine from at least one nickname corresponding to the target account and the first group. The first nickname matched by the group tag, each nickname corresponds to at least one group tag; the sending module is used to send a second message to the server, the second message contains the first nickname determined by the determination module, and the second message is used to indicate The server stores the group identifier of the first group in association with the first nickname.

第三方面,本申请实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的程序或指令,该程序或指令被该处理器执行时实现如第一方面所述的群组昵称设置方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, and the program or instruction is implemented when executed by the processor The steps of the method for setting a group nickname according to the first aspect.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.

在本申请实施例中,电子设备在接收到服务器发送的第一消息后,表明该电子设备中登陆的目标账户加入到了第一群组中,之后,电子设备通过从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称,并向服务器发送携带该第一昵称的第二消息,以使得电子设备能够在目标账户加入新的群组后,根据该群组群组标签,确定目标账户在该群组中的昵称,而无需用户手动设置,避免用户在每次加入新的群组时,都需要手动设置其在该群组中的昵称的问题。In the embodiment of the present application, after receiving the first message sent by the server, the electronic device indicates that the target account logged in the electronic device has joined the first group, and then the electronic device uses at least one nickname corresponding to the target account , determine the first nickname that matches the group tag of the first group, and send a second message carrying the first nickname to the server, so that the electronic device can, after the target account joins a new group, Group group label, to determine the nickname of the target account in the group, without the need for the user to manually set, to avoid the problem that the user needs to manually set the nickname in the group every time he joins a new group.

附图说明Description of drawings

图1是本申请实施例提供的一种群组昵称设置方法流程示意图;1 is a schematic flowchart of a method for setting a group nickname provided by an embodiment of the present application;

图2是本申请实施例提供的一种群组昵称设置方法所应用的界面的示意图之一;Fig. 2 is one of the schematic diagrams of an interface to which a method for setting a group nickname provided by an embodiment of the present application is applied;

图3是本申请实施例提供的一种群组昵称设置方法所应用的界面的示意图之二;3 is a second schematic diagram of an interface to which a method for setting a group nickname provided by an embodiment of the present application is applied;

图4是本申请实施例提供的一种群组昵称设置装置结构示意图;4 is a schematic structural diagram of a group nickname setting device provided by an embodiment of the present application;

图5是本申请实施例提供的一种电子设备的结构示意图之一;5 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present application;

图6是本申请实施例提供的一种电子设备的结构示意图之二。FIG. 6 is a second schematic structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.

本申请实施例提供的群组昵称设置方法可以应用于多人群聊场景中。The group nickname setting method provided in the embodiment of the present application can be applied to a multi-group chat scenario.

示例性的,针对用户A使用的账户A(以下简称用户账户A)加入新的群组A的场景,在相关技术中,当用户账户A加入群组A中时,用户账户A在群组A中的昵称默认为用户账户A的账户昵称,通常情况下,该群组A中的其他群组成员很难根据该账户昵称识别出用户A的真实身份,此时,为了方便沟通,用户需要根据群组A的群组类别,手动设置用户账户A在该群组A中的昵称。例如,以用户A为张三为例,张三加入了某个工作群组1,需要将其在该群组1中的昵称设置为“采购部-张三”,若张三加入了某个家庭群组2,需要将其在该群组2中的昵称设置为真实姓名“张三”。如此,张三每次加入一个新的群组时,都需要手动设置其在该群组中的昵称,操作过程繁琐。Exemplarily, for a scenario where account A (hereinafter referred to as user account A) used by user A joins a new group A, in the related art, when user account A joins group A, user account A is in group A. The nickname in the default is the account nickname of user account A. Usually, it is difficult for other group members in the group A to identify the real identity of user A based on the account nickname. At this time, in order to facilitate communication, users need to The group category of group A, manually set the nickname of user account A in this group A. For example, taking user A as Zhang San as an example, Zhang San has joined acertain work group 1, and his nickname in thegroup 1 needs to be set to "Purchasing Department - Zhang San". For family group 2, its nickname in this group 2 needs to be set to the real name "Zhang San". In this way, every time Zhang San joins a new group, he needs to manually set his nickname in the group, and the operation process is cumbersome.

针对这一问题,在本申请实施例提供的技术方案中,以用户A为张三为例,当张三的账户A加入一个新的群组A时,电子设备在接收到账户A加入群组A的消息后,电子设备根据语义识别,识别出张三的账户加入的群组(群组名称为“张家大院”)的群组类别为家庭群,并与张三预设的多个“标签-昵称”键值对,如:“工作-张三”、“家庭-老三”、“朋友-张三三”等进行匹配,当上述群组类别与“家庭-老三”键值对中的“家庭”匹配成功时,则电子设备将张三的账户A在该群组A中的昵称设置为“老三”。之后,电子设备向服务器发送第二消息,以使得该群组中的所有群组成员使用的电子设备能够在该群组中显示张三的小名。如此,当用户账户加入新的群组后,无需用户进行手动操作,电子设备便可根据用户预设的键值对在群组中设置对应的昵称,方便快捷。In response to this problem, in the technical solutions provided in the embodiments of the present application, taking user A as Zhang San as an example, when Zhang San's account A joins a new group A, the electronic device receives the account A joining the group when the electronic device receives After A's message, the electronic device recognizes according to semantic recognition that the group type of the group that Zhang San's account has joined (the group name is "Zhang Family Courtyard") is a family group, and it is different from the multiple preset groups of Zhang San. "Label-nickname" key-value pairs, such as: "work-Zhangsan", "family-eldest third", "friends-Zhangsansan", etc. are matched, when the above group category is matched with the "family-eldest third" key value When the "family" in the pair is successfully matched, the electronic device sets the nickname of Zhang San's account A in the group A as "the third child". After that, the electronic device sends a second message to the server, so that the electronic devices used by all group members in the group can display the nickname of Zhang San in the group. In this way, after the user account joins a new group, the electronic device can set the corresponding nickname in the group according to the key-value pair preset by the user without manual operation by the user, which is convenient and quick.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的群组昵称设置方法进行详细地说明。The following describes the method for setting a group nickname provided by the embodiment of the present application in detail through specific embodiments and application scenarios with reference to the accompanying drawings.

如图1所示,本申请实施例提供的一种群组昵称设置方法,该方法可以包括下述步骤201至步骤203:As shown in FIG. 1 , a method for setting a group nickname provided by an embodiment of the present application may include thefollowing steps 201 to 203:

步骤201、在电子设备登录目标账户的情况下,群组昵称设置装置接收服务器发送的第一消息,第一消息用于指示目标账户加入第一群组。Step 201 , when the electronic device logs into the target account, the group nickname setting apparatus receives a first message sent by the server, where the first message is used to instruct the target account to join the first group.

示例性的,上述目标账户为电子设备中安装的社交应用中登录的账户,用户在该社交应用中登陆该账户后,便可接收服务器基于该账户发送的各种信息。服务器根据该账户在电子设备中登录后发送的登录信息,与电子设备建立连接并进行数据交换。其中,该登录信息可以包括以下至少一项:电子设备的网际互连协议(internet protocol,IP),设备型号,国际移动设备识别码(international mobile equipment identity,IMEI)。Exemplarily, the above target account is an account logged in in a social networking application installed in the electronic device. After logging in to the account in the social networking application, the user can receive various information sent by the server based on the account. The server establishes a connection with the electronic device and exchanges data according to the login information sent after the account is logged in the electronic device. The login information may include at least one of the following: an internet protocol (IP) of the electronic device, a model of the device, and an international mobile equipment identity (IMEI).

示例性的,目标账户加入第一群组可以至少包括以下两种示例:Exemplarily, adding the target account to the first group may include at least the following two examples:

示例1,目标账户的用户在电子设备上创建新的群组(即上述第一群组),并邀请其他用户账户加入该群组,之后,电子设备向服务器发送创建群组请求消息。服务器接收到该创建群组请求消息,并成功创建群组(即建立目标账户与其他用户账户间的对应关系)后,向上述电子设备以及其他用户账户登录的电子设备发送第一消息。Example 1, the user of the target account creates a new group (ie, the above-mentioned first group) on the electronic device, and invites other user accounts to join the group, and then the electronic device sends a group creation request message to the server. After receiving the group creation request message and successfully creating a group (ie, establishing a corresponding relationship between the target account and other user accounts), the server sends a first message to the above electronic device and the electronic device logged in with other user accounts.

示例2,其他用户邀请目标账户的用户加入新的群组(即上述第一群组),参照上述示例1中目标账户的用户创建新的群组的过程,在服务器成功创建群组后,向上述电子设备发送第一消息。Example 2, other users invite the user of the target account to join a new group (that is, the above-mentioned first group), referring to the process of creating a new group by the user of the target account in the above-mentioned example 1, after the server successfully creates the group, to the The above electronic device sends the first message.

需要说明的是,在没有网络连接(即上述电子设备无法与服务器进行通信)的情况下,上述群组过程无法执行,新的群组无法被创建。It should be noted that, in the case of no network connection (ie, the above-mentioned electronic device cannot communicate with the server), the above-mentioned group process cannot be performed, and a new group cannot be created.

步骤202、群组昵称设置装置响应于第一消息,从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称,每个昵称对应至少一个群组标签。Step 202: In response to the first message, the group nickname setting device determines, from at least one nickname corresponding to the target account, a first nickname matching the group tag of the first group, and each nickname corresponds to at least one group tag.

示例性的,电子设备接收到指示目标账户加入第一群组的第一消息后,可以根据以下至少一项确定第一群组的群组标签:第一群组的群组名称,目标账户的用户与第一群组中群组成员的关系,目标账户的用户手动设置第一群组的群组标签。Exemplarily, after receiving the first message instructing the target account to join the first group, the electronic device may determine the group label of the first group according to at least one of the following: the group name of the first group, the target account's The relationship between the user and the group members in the first group, the user of the target account manually sets the group label of the first group.

示例性的,电子设备将第一群组的群组标签与用户预设的“预设标签-预设昵称”键值对进行匹配,若匹配成功,则将与预设标签对应的预设昵称作为目标账户在第一群组中的群组昵称。Exemplarily, the electronic device matches the group tag of the first group with the key-value pair of "preset tag-preset nickname" preset by the user, and if the matching is successful, the preset nickname corresponding to the preset tag is matched. As the group nickname of the target account in the first group.

步骤203、群组昵称设置装置向服务器发送第二消息,该第二消息中包含第一昵称,第二消息用于指示服务器将第一群组的群组标识与第一昵称关联存储。Step 203: The device for setting a group nickname sends a second message to the server, where the second message includes the first nickname, and the second message is used to instruct the server to store the group identifier of the first group in association with the first nickname.

示例性的,当电子设备确定目标账户在第一群组中的昵称后,向服务器发送第二消息,服务器接收到电子设备发送的第二消息后,将该第二消息中携带的第一昵称,以及第一群组的群组标识,关联存储到数据库中。Exemplarily, after the electronic device determines the nickname of the target account in the first group, it sends a second message to the server, and after receiving the second message sent by the electronic device, the server sends the first nickname carried in the second message. , and the group identifier of the first group, which are associated and stored in the database.

示例性的,上述服务器关联存储上述第一群组的群组标识与第一昵称后,还可以向登录第一群组中的群组成员账户的目标电子设备发送第四消息,该目标电子设备在接收到服务器发送的第四消息后,在第一群组中显示目标账户的第一昵称。即,第一群组中的所有群组成员都能够在第一群组的群组界面中看到目标账户的昵称为第一昵称。Exemplarily, after the server associates and stores the group identifier and the first nickname of the first group, the server may also send a fourth message to the target electronic device that logs in to the account of the group member in the first group, and the target electronic device After receiving the fourth message sent by the server, the first nickname of the target account is displayed in the first group. That is, all group members in the first group can see that the nickname of the target account is the first nickname in the group interface of the first group.

示例性的,由于电子设备在登陆目标账户时,会向服务器发送登陆信息,服务器根据该登录信息中的设备型号,和/或,IMEI来识别当前目标账户登录的电子设备。用户在电子设备上设置的预设键值对等配置信息除了存储在电子设备上,还会将该配置信息发送至服务器。当用户更换电子设备后(通过检测上述登陆信息中的设备型号以及IMEI来判断用户是否更换电子设备),由于新电子设备上并未存储上述配置信息,此时,服务器还会向电子设备发送第四消息,该第四消息中包括上述配置信息,以使得用户在更换电子设备后,无需重复设置上述预设键值对,并且,新的电子设备在接收到上述第一消息后,也可以自动执行上述昵称设置过程。Exemplarily, since the electronic device sends login information to the server when logging in to the target account, the server identifies the electronic device currently logged in by the target account according to the device model and/or IMEI in the login information. The preset key-value peer-to-peer configuration information set by the user on the electronic device is not only stored on the electronic device, but also sent to the server. When the user replaces the electronic device (by detecting the device model and IMEI in the above login information to determine whether the user replaces the electronic device), since the above configuration information is not stored on the new electronic device, at this time, the server will also send the first information to the electronic device. Fourth message, the fourth message includes the above configuration information, so that the user does not need to repeatedly set the above-mentioned preset key-value pair after replacing the electronic device, and the new electronic device can also automatically automatically after receiving the above-mentioned first message. Follow the nickname setup procedure above.

如此,电子设备在接收到服务器发送的第一消息后,表明该电子设备中登陆的目标账户加入到了第一群组中,之后,电子设备通过从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称,并向服务器发送携带该第一昵称的第二消息,以使得电子设备能够在目标账户加入新的群组后,根据该群组群组标签,确定目标账户在该群组中的昵称,而无需用户手动设置,避免用户在每次加入新的群组时,都需要手动设置其在该群组中的昵称的问题。In this way, after receiving the first message sent by the server, the electronic device indicates that the target account logged in the electronic device has joined the first group. A first nickname that matches the group tag of a group, and sends a second message carrying the first nickname to the server, so that the electronic device can, according to the group group tag, after the target account joins a new group, Determine the nickname of the target account in the group without requiring the user to manually set it, avoiding the problem that the user needs to manually set the nickname in the group every time he joins a new group.

可选地,在本申请实施例中,电子设备可以根据第一群组的群组类别,为第一群组设置群组标签,之后,电子设备可以根据该群组标签确定目标账户在该第一群组中的昵称。Optionally, in this embodiment of the present application, the electronic device may set a group label for the first group according to the group category of the first group, and then the electronic device may determine, according to the group label, that the target account is in the first group. Nicknames in a group.

示例性的,上述第一消息中还包括第一群组的群组名称。电子设备接收到服务器发送的第一消息后,根据该第一消息中携带的第一群组的群组名称,确定该第一群组的群组类别,并为该第一群组设置与该群组类别对应的群组标签。群组类别可以包括:家庭群、工作群、朋友群或者兴趣爱好群等。Exemplarily, the above-mentioned first message further includes a group name of the first group. After receiving the first message sent by the server, the electronic device determines the group type of the first group according to the group name of the first group carried in the first message, and sets the first group with the group name of the first group. The group label corresponding to the group category. The group category may include: family group, work group, friend group, or hobby group.

示例性的,电子设备可以利用自然语言处理(natural language processing,NLP)对上述第一群组的群组名称进行语义识别,进而为该第一群组进行分类,确定该第一群组的群组类别。Exemplarily, the electronic device may use natural language processing (natural language processing, NLP) to perform semantic recognition on the group name of the first group, and then classify the first group to determine the group of the first group. group category.

示例性的,上述步骤202,还可以包括以下步骤202a:Exemplarily, theabove step 202 may further include the following step 202a:

步骤202a、群组昵称设置装置根据群组标签信息,从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称。Step 202a: The group nickname setting device determines, according to the group label information, a first nickname matching the group label of the first group from at least one nickname corresponding to the target account.

其中,上述群组标签信息包括:至少一个群组标签中的每个群组标签对应的昵称信息。The above group tag information includes: nickname information corresponding to each group tag in the at least one group tag.

示例性的,上述群组标签信息包括:群组标签与昵称名称间的对应关系,或者上述群组标签信息包括:群组标签与昵称项间的对应关系,上述群组标签对应昵称信息包括以下至少两种表现方式:Exemplarily, the above-mentioned group label information includes: a correspondence between group labels and nickname names, or the above-mentioned group label information includes: a correspondence between group labels and nickname items, and the above-mentioned group label corresponding nickname information includes the following: At least two manifestations:

方式1:Way 1:

上述群组标签与昵称名称间的对应关系的表现方式可以为如表1所示的“预设标签-预设昵称”键值对方式。如表1所示,用户预设了多个键值对,该键值对中包括一组存在对应关系的预设标签和预设昵称,例如:“工作-张三”、“家庭-老三”、“朋友-张三三”等,当电子设备根据语义识别,识别出用户账户加入的群组(群组名称为“张家大院”)的群组类别为家庭群,并将该群组的群组标签设置为“家庭”,该群组标签与“家庭-老三”键值对中的预设标签“家庭”匹配成功,则电子设备将用户账户在该群组中的昵称设置为与该预设标签对应的预设昵称“老三”。不同的预设标签可以对应相同的预设昵称。The expression manner of the above-mentioned correspondence between the group tag and the nickname name may be a key-value pair manner of "preset tag-preset nickname" as shown in Table 1. As shown in Table 1, the user presets multiple key-value pairs, and the key-value pair includes a set of preset labels and preset nicknames that have a corresponding relationship, for example: "Work-Zhangsan", "Family-Old San" ”, “Friends-Zhang Sansan”, etc., when the electronic device recognizes according to semantics, the group category of the group (group name is “Zhang Family Courtyard”) that the user account joins is identified as family group, and the group is classified as a family group. The group label of the group is set to "family", and the group label is successfully matched with the preset label "family" in the key-value pair of "family-eldest third", then the electronic device sets the nickname of the user account in the group It is the preset nickname "Old Third" corresponding to the preset label. Different preset tags can correspond to the same preset nickname.

预设标签Default label预设昵称Default nickname工作Work张三Zhang San家庭family老三third朋友friend张三三Zhang Sansan

表1Table 1

方式2:Way 2:

上述群组标签与昵称项间的对应关系的表现方式可以为如表2所示的“预设标签-昵称项”键值对方式。如表2所示,上述预设昵称可以为用户输入的具体昵称,也可以是用户设置的昵称项,该昵称项可以与某个具体昵称关联,即相当于一个变量对应一个具体值,例如,“工作-[姓名]+[职位]”、“家庭-[乳名]”、“朋友-[外号]”等。以上述“家庭-[乳名]”键值对为例,上述键值对中“[乳名]”为一个变量,表示张三在家中的乳名,该变量对应的具体值为“老三”,表示该用户在家中的乳名为老三。以上述“工作-[姓名]+[职位]”键值对为例,上述键值对中“[姓名]+[职位]”为两个不同的变量,分别对应张三的真实姓名“张三”以及在公司的职位“会计”。The expression manner of the above-mentioned correspondence between the group tag and the nickname item may be a key-value pair manner of "preset tag-nickname item" as shown in Table 2. As shown in Table 2, the above-mentioned preset nickname can be a specific nickname input by the user, or can be a nickname item set by the user, and the nickname item can be associated with a specific nickname, that is, it is equivalent to a variable corresponding to a specific value, for example, "Work-[name]+[position]", "family-[nickname]", "friends-[nickname]", etc. Taking the above key-value pair of "family-[baby name]" as an example, in the above key-value pair, "[baby name]" is a variable, which represents Zhang San's baby name at home, and the specific value corresponding to this variable is "old third", which means The user's nickname at home is the third child. Taking the above key-value pair of "job-[name]+[position]" as an example, "[name]+[position]" in the above key-value pair are two different variables, corresponding to Zhang San's real name "Zhang San" ” and the position “Accountant” in the company.

预设标签Default label昵称项nickname item工作Work[姓名]+[职位][Name]+[Position]家庭family[乳名][milk name]朋友friend[外号][nickname]

表2Table 2

示例性的,电子设备在确定第一群组的群组标签之后,将该第一群组的群组标签与用户按照上述方式1和方式2预设的键值对进行匹配,该预设键值对中包括至少一组存在对应关系的预设标签与预设昵称。若该第一群组的群组标签与预设键值对中的至少一个预设标签相匹配,则将该预设标签对应的预设昵称确定为第一昵称。Exemplarily, after determining the group label of the first group, the electronic device matches the group label of the first group with the key-value pair preset by the user according to theabove method 1 and method 2, and the preset key The value pair includes at least one set of preset tags and preset nicknames that have a corresponding relationship. If the group tag of the first group matches at least one preset tag in the preset key-value pair, the preset nickname corresponding to the preset tag is determined as the first nickname.

举例说明,用户预设了多个键值对,该键值对中包括一组存在对应关系的预设标签和预设昵称,例如:“工作-张三”、“家庭-老三”、“朋友-张三三”等,当电子设备根据语义识别,识别出用户账户加入的群组(群组名称为“张家大院”)的群组类别为家庭群,并将该群组的群组标签设置为“家庭”,该群组标签与“家庭-老三”键值对中的预设标签“家庭”匹配成功,则电子设备将用户账户在该群组中的昵称设置为与该预设标签对应的预设昵称“老三”。不同的预设标签可以对应相同的预设昵称。For example, the user presets multiple key-value pairs, and the key-value pair includes a set of preset tags and preset nicknames that have a corresponding relationship, such as: "work-Zhangsan", "family-old third", " Friends-Zhang Sansan", etc., when the electronic device recognizes according to semantics, it recognizes that the group category of the group that the user account joins (the group name is "Zhang Family Courtyard") is a family group, and the group of the group is classified as a family group. The group label is set to "family", and the group label is successfully matched with the preset label "family" in the key-value pair of "family-eldest third", then the electronic device sets the nickname of the user account in the group to be the same as that of the group. The preset nickname corresponding to the preset label is "Old Third". Different preset tags can correspond to the same preset nickname.

需要说明的是,上述预设键值对可以为用户手动设置的,也可以是电子设备根据用户的个人信息以及与其他用户的关系信息自动生成的。上述匹配过程可以是电子设备接收到服务器发送的第一消息后执行的,也可以是电子设备周期性的执行,还可以是电子设备检测到第一群组的群组名称发生变化,或者根据第一群组中的群组成员关系变化触发执行。本申请实施例对此不做限定。It should be noted that the above-mentioned preset key-value pair may be manually set by the user, or may be automatically generated by the electronic device according to the user's personal information and relationship information with other users. The above matching process may be performed after the electronic device receives the first message sent by the server, or may be performed periodically by the electronic device, or the electronic device may detect that the group name of the first group has changed, or A change in group membership in a group triggers execution. This embodiment of the present application does not limit this.

如此,电子设备可以根据第一群组的群组类别,为第一群组设置群组标签,之后,便可根据该群组标签与预设标签进行匹配,进而确定该第一群组的群组昵称。In this way, the electronic device can set a group label for the first group according to the group category of the first group, and then can match the group label with the preset label to determine the group of the first group. Group nickname.

可选地,在本申请实施例中,电子设备除了根据群组类别自动为群组添加标签之外,还可以接受用户为群组手动设置标签。或者,当没有与第一群组的群组标签匹配的第一昵称时,显示包含多个标签界面,供用户手动选择合适的标签。Optionally, in this embodiment of the present application, in addition to automatically adding tags to groups according to the group categories, the electronic device may also accept users to manually set tags for groups. Alternatively, when there is no first nickname matching the group label of the first group, an interface including multiple labels is displayed for the user to manually select an appropriate label.

示例性的,上述步骤202,还可以包括以下步骤202b1至步骤202b3:Exemplarily, theabove step 202 may further include the following steps 202b1 to 202b3:

步骤202b1、群组昵称设置装置响应于第一消息,显示第一界面,该第一界面中包括至少一个标签标识,一个标签标识表示一个群组标签,一个标签标识对应一个昵称。Step 202b1, the group nickname setting device displays a first interface in response to the first message, the first interface includes at least one tag identifier, one tag identifier represents a group tag, and one tag identifier corresponds to a nickname.

步骤202b2、群组昵称设置装置接收用户对上述至少一个标签标识中目标标签标识的第一输入。Step 202b2: The group nickname setting apparatus receives a first input from the user for the target tag identifier in the at least one tag identifier.

步骤202b3、群组昵称设置装置响应于该第一输入,将目标标签标识对应的昵称,确定为第一昵称。Step 202b3: In response to the first input, the group nickname setting device determines the nickname corresponding to the target tag identifier as the first nickname.

示例性的,上述第一输入可以为:用户对至少一个标签标识的触控输入,或者,用户输入的语音指令,或者,用户输入的特定手势,具体的可以根据实际使用需求确定,本发明实施例不作限定。示例性的,上述触控输入可以是用户对至少一个标签标识的选择输入。Exemplarily, the above-mentioned first input may be: a touch input by a user to at least one label identifier, or a voice command input by a user, or a specific gesture input by a user, which can be specifically determined according to actual use requirements. Examples are not limited. Exemplarily, the above-mentioned touch input may be a user's selection input of at least one tag identifier.

示例性的,电子设备在接收到服务器发送的第一消息后,可以在社交应用的第二界面上显示用户可以为该第一群组设置的至少一个标签标识,用户可以从上述至少一个标签标识中选择一个标签标识,电子设备将与用户选择的标签标识对应的昵称作为目标账户在第一群组中的昵称。Exemplarily, after receiving the first message sent by the server, the electronic device may display, on the second interface of the social networking application, at least one tag identifier that the user can set for the first group, and the user can select from the at least one tag identifier above. Select a tag identifier from the , and the electronic device uses the nickname corresponding to the tag identifier selected by the user as the nickname of the target account in the first group.

如此,当用户账户加入一个新的群组后,不仅电子设备可以自动为该群组添加标签,用户也可以手动为该群组添加标签,进而修改用户账户在该群组中的昵称。In this way, when a user account joins a new group, not only the electronic device can automatically add a tag to the group, but the user can also manually add a tag to the group, thereby modifying the nickname of the user account in the group.

可选地,在本申请实施例中,电子设备在根据第一群组的群组名称,确定群组的类别并为第一群组添加群组标签后,若电子设备设置了错误的群组标签,则用户还可以手动更改该第一群组的群组标签。Optionally, in this embodiment of the present application, after the electronic device determines the type of the group according to the group name of the first group and adds a group label to the first group, if the electronic device sets the wrong group label, the user can also manually change the group label of the first group.

示例性的,上述步骤203之后,本身实施例提供的群组昵称设置方法,还可以包括以下步骤204a1至步骤204a4:Exemplarily, after theabove step 203, the method for setting a group nickname provided by this embodiment may further include the following steps 204a1 to 204a4:

步骤204a1、群组昵称设置装置接收用户对第一群组的群组标识的第二输入。Step 204a1: The group nickname setting apparatus receives a second input by the user of the group identifier of the first group.

示例性的,上述第二输入可以为:用户对第一群组的群组标识的触控输入,或者,用户输入的语音指令,或者,用户输入的特定手势,具体的可以根据实际使用需求确定,本发明实施例不作限定。示例性的,上述触控输入可以是用户对第一群组的群组标识的长按压输入。Exemplarily, the above-mentioned second input may be: a user's touch input on the group identification of the first group, or a voice command input by the user, or a specific gesture input by the user, which can be specifically determined according to actual usage requirements. , the embodiments of the present invention are not limited. Exemplarily, the above-mentioned touch input may be a user's long-press input on the group identifier of the first group.

步骤204a2、群组昵称设置装置响应于第二输入,更新上述第一群组的群组标签。Step 204a2: The group nickname setting apparatus updates the group label of the first group in response to the second input.

示例性的,上述第二输入还可以包括用户从至少一个预设标签中选择一个标签的输入。Exemplarily, the above-mentioned second input may further include an input of the user selecting a tag from at least one preset tag.

步骤204a3、群组昵称设置装置从至少一个昵称中,确定与变更后的第一群组的群组标签匹配的第二昵称。Step 204a3: The group nickname setting device determines a second nickname matching the changed group tag of the first group from at least one nickname.

示例性的,电子设备在第一群组的第二界面中显示至少一个预设标签,该预设标签为上述预设键值对中的预设标签。之后,电子设备将用户选择的预设标签,设置为第一群组的群组标签。之后,电子设备便可根据变更后的群组标签,将与该变更后的群组标签对应的预设昵称设置为目标账户在该第一群组中的昵称。Exemplarily, the electronic device displays at least one preset tag in the second interface of the first group, where the preset tag is a preset tag in the preset key-value pair. After that, the electronic device sets the preset label selected by the user as the group label of the first group. After that, the electronic device can set the default nickname corresponding to the changed group label as the nickname of the target account in the first group according to the changed group label.

步骤204a4、群组昵称设置装置向服务器发送第三消息,第三消息中包含第二昵称,第三消息用于指示服务器变更第一关联关系,第一关联关系为群组标识与第一昵称间的关联关系,变更后的第一关联关系为群组标识与第二昵称间的关联关系。Step 204a4, the group nickname setting device sends a third message to the server, the third message includes the second nickname, the third message is used to instruct the server to change the first association relationship, and the first association relationship is between the group identifier and the first nickname The first association relationship after the change is the association relationship between the group ID and the second nickname.

示例性的,在电子设备更换第一群组的群组标签后,参照上述步骤202,向服务器发送第三消息,变更服务器中关联存储的第一群组的群组标识与第一昵称为第一群组的群组标识与第二昵称。Exemplarily, after the electronic device replaces the group label of the first group, referring to theabove step 202, it sends a third message to the server, changing the group identifier and the first nickname of the first group stored in association with the first group in the server. A group ID and a second nickname for a group.

举例说明,如图2所示,为电子设备上安装的社交应用的界面,在界面30中显示有群组标识31,该群组为用户账户所在的家庭群(群组名称为:张家大院)。当用户想要变更该群组的群组标签时,如图2中(A)所示,电子设备在接收到用户对群组标识31的长按压输入后,电子设备显示如图2中(B)所示的选择框32,该选择框32中包括用户预先设置的5个群组标签,分别为:家庭、工作、娱乐、朋友和死党。电子设备接收用户对标签33(即上述家庭群组标签)的输入后,电子设备将群组标识31对应的群组的群组标签设置为“家庭”。之后,电子设备将用户账户在该群组中的群组昵称设置为标签33对应的预设昵称。For example, as shown in FIG. 2, it is an interface of a social application installed on an electronic device, and agroup identifier 31 is displayed in theinterface 30, and the group is the family group where the user account is located (the group name is: Zhang Jiada hospital). When the user wants to change the group label of the group, as shown in FIG. 2(A), after the electronic device receives the user’s long-press input on thegroup identifier 31, the electronic device displays as shown in FIG. 2(B). ) shown in theselection box 32, theselection box 32 includes five group labels preset by the user, namely: family, work, entertainment, friends and best friends. After the electronic device receives the user's input on the label 33 (ie, the above-mentioned family group label), the electronic device sets the group label of the group corresponding to thegroup identifier 31 to "family". After that, the electronic device sets the group nickname of the user account in the group as the preset nickname corresponding to the label 33 .

如此,用户可以在电子设备自动设置群组昵称错误,或者用户想要主动变更用户账户在该群组的群组昵称时,通过上述步骤更换群组的群组标签,以此来使得电子设备更换用户账户在该群组中的群组昵称时的操作更加简便。In this way, the user can change the group label of the group through the above steps when the electronic device automatically sets the wrong group nickname, or when the user wants to actively change the group nickname of the user account in the group, so as to make the electronic device change The operation of the user account in the group nickname in the group is easier.

可选地,在本申请实施例中,电子设备还可以支持用户批量更改目标账户在目标账户所属群组中的群组昵称。Optionally, in the embodiment of the present application, the electronic device may also support the user to batch change the group nickname of the target account in the group to which the target account belongs.

示例性的,上述步骤203之后,本申请实施例提供的群组昵称设置方法,还可以包括以下步骤204b1至步骤204b4:Exemplarily, after theabove step 203, the method for setting a group nickname provided by this embodiment of the present application may further include the following steps 204b1 to 204b4:

步骤204b1、群组昵称设置装置接收用户对第一群组的群组标识的第三输入。Step 204b1: The group nickname setting apparatus receives a third input by the user of the group identifier of the first group.

步骤204b2、群组昵称设置装置响应于上述第三输入,显示N个第二群组的群组标识。Step 204b2: The group nickname setting apparatus displays the group identifiers of the N second groups in response to the third input.

步骤204b3、群组昵称设置装置接收用户对N个第二群组中的M个目标群组的群组标识的第四输入。Step 204b3: The group nickname setting apparatus receives a fourth input by the user of group identifiers of M target groups in the N second groups.

步骤204b4、群组昵称设置装置响应于第四输入,将目标账户在M个目标群组中的昵称设置为第一昵称,N和M均为正整数,M≤N。Step 204b4: In response to the fourth input, the group nickname setting device sets the nickname of the target account in the M target groups as the first nickname, where N and M are both positive integers, and M≤N.

示例性的,上述第三输入可以为用户对第一群组的群组标识的长按压输入,之后,电子设备在第一群组的群组标识的预设位置显示操作菜单,上述第三输入还包括用户从上述操作菜单中选择昵称替换功能的选择输入。Exemplarily, the above-mentioned third input may be a user's long-press input on the group identifier of the first group, after which the electronic device displays an operation menu at a preset position of the group identifier of the first group, and the above-mentioned third input It also includes a selection input for the user to select the nickname replacement function from the above-mentioned operation menu.

示例性的,当电子设备接收到用户的第三输入后,显示目标账户所属的N个第二群组的群组标识,之后,电子设备在接收到用户对N个第二群组中的M个目标群组的群组标识的第四输入后,将目标账户在上述M个目标群组中的群组昵称设置为目标账户在第一群组中的群组昵称,电子设备完成昵称批量设置流程。Exemplarily, after the electronic device receives the third input from the user, it displays the group identifiers of the N second groups to which the target account belongs. After the fourth input of the group identifiers of the target groups, the group nickname of the target account in the above M target groups is set as the group nickname of the target account in the first group, and the electronic device completes the batch setting of nicknames process.

举例说明,如图3中(A)所示,为电子设备上安装的社交应用的界面,在界面40中显示有群组1的群组标识41,当用户想要批量替换用户账户在某些群组的群组昵称时,电子设备接收用户对该群组标识41的长按压输入后,显示功能菜单42(包括:标记为未读、置顶该聊天、删除聊天记录和替换群组昵称等五个选项),在用户选择“替换群组昵称”选项后,电子设备显示如图3中(B)所示的界面34,在该界面43中显示有用户账户加入的4个群组的群组标识(分别为:群组2、群组3、群组4和群组5),用户从上述4个群组标识中选择群组3和群组4标识,之后,电子设备将用户账户在群组3和群组4中的群组昵称,设置为用户账户在群组1的群组昵称。For example, as shown in FIG. 3 (A), it is the interface of the social application installed on the electronic device, and thegroup identification 41 of thegroup 1 is displayed in theinterface 40. When the user wants to replace the user accounts in batches in some When the group nickname of the group is used, after receiving the user's long-press input on thegroup identifier 41, the electronic device displays the function menu 42 (including: mark as unread, put the chat on top, delete the chat record, and replace the group nickname, etc.). options), after the user selects the "replace group nickname" option, the electronic device displays an interface 34 as shown in FIG. 3 (B), in which theinterface 43 displays groups of 4 groups that the user account joins Identification (respectively: group 2, group 3, group 4 and group 5), the user selects group 3 and group 4 identification from the above-mentioned 4 group identifications, after that, the electronic device places the user account in the group. The group nicknames in group 3 and group 4 are set to the group nickname of the user account ingroup 1.

如此,电子设备便可通过将用户账户在某个群组中的群组标签,批量设置到多个群组中的方式,批量替换用户账户在多个群组中的群组昵称,方便快捷。In this way, the electronic device can batch replace the group nicknames of the user account in multiple groups by setting the group labels of the user account in a certain group to multiple groups in batches, which is convenient and quick.

进一步可选地,当用户在设置多个群组昵称时,若由于操作失误或者其他原因,将目标账户在前后两个群组中的昵称设置错误,则用户可以从上述N个第二群组中只选择一个目标群组,以此将目标账户在第一群组中的群组昵称与目标账户在目标群组中的群组昵称进行交换。Further optionally, when the user is setting multiple group nicknames, if due to operational errors or other reasons, the nicknames of the target account in the two groups before and after are set incorrectly, then the user can choose from the above N second groups. Only one target group is selected in , so as to exchange the group nickname of the target account in the first group with the group nickname of the target account in the target group.

示例性的,上述步骤204b3之后,本申请实施例提供的群组昵称设置方法,还可以包括以下步骤204b5:Exemplarily, after the above step 204b3, the method for setting a group nickname provided by this embodiment of the present application may further include the following step 204b5:

步骤204b5、群组昵称设置装置响应于上述第四输入,在M等于1的情况下,将目标账户在第一群组中的昵称设置为第三昵称,第三昵称为目标账户在目标群组中的昵称。Step 204b5, the group nickname setting device responds to the above-mentioned fourth input, in the case that M is equal to 1, sets the nickname of the target account in the first group as a third nickname, and the third nickname is the target account in the target group. nickname in .

如此,电子设备可以在用户选择一个目标群组的情况下,交换目标账户在第一群组与目标群组中的昵称。In this way, when the user selects a target group, the electronic device can exchange the nicknames of the target account in the first group and the target group.

本申请实施例提供的群组昵称设置方法,电子设备在接收到服务器发送的第一消息后,表明该电子设备中登陆的目标账户加入到了第一群组中。电子设备根据该第一消息携带的第一群组的群组名称,确定该第一群组的群组类别,进而为该第一群组设置群组标签。之后,电子设备通过从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称,并向服务器发送携带该第一昵称的第二消息,以使得电子设备能够在目标账户加入新的群组后,根据该群组群组标签,确定目标账户在该群组中的昵称,而无需用户手动设置,避免用户在每次加入新的群组时,都需要手动设置其在该群组中的昵称的问题。In the method for setting a group nickname provided by the embodiment of the present application, after receiving the first message sent by the server, the electronic device indicates that the target account logged in the electronic device has joined the first group. The electronic device determines the group type of the first group according to the group name of the first group carried in the first message, and then sets a group label for the first group. After that, the electronic device determines a first nickname matching the group tag of the first group from at least one nickname corresponding to the target account, and sends a second message carrying the first nickname to the server, so that the electronic device can After the target account joins a new group, the nickname of the target account in the group is determined according to the group label, without the need for the user to manually set it, avoiding the need for the user to manually Issue setting its nickname in this group.

需要说明的是,本申请实施例提供的群组昵称设置方法,执行主体可以为群组昵称设置装置,或者该群组昵称设置装置中的用于执行群组昵称设置方法的控制模块。本申请实施例中以群组昵称设置装置执行群组昵称设置方法为例,说明本申请实施例提供的群组昵称设置装置。It should be noted that, for the group nickname setting method provided by the embodiments of the present application, the execution subject may be a group nickname setting device, or a control module in the group nickname setting device for executing the group nickname setting method. In the embodiment of the present application, the method for setting a group nickname performed by a group nickname setting device is taken as an example to describe the device for setting a group nickname provided by the embodiment of the present application.

需要说明的是,本申请实施例中,上述各个方法附图所示的。群组昵称设置方法均是以结合本申请实施例中的一个附图为例示例性的说明的。具体实现时,上述各个方法附图所示的群组昵称设置方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不再赘述。It should be noted that, in the embodiments of the present application, the above methods are shown in the accompanying drawings. The methods for setting group nicknames are all exemplarily described in conjunction with a figure in the embodiments of the present application. During specific implementation, the group nickname setting method shown in the drawings of the above methods can also be implemented in combination with any other drawings shown in the above embodiments that can be combined, and details are not described herein again.

图4为实现本申请实施例提供的一种群组昵称设置装置的可能的结构示意图,如图4所示,群组昵称设置装置600包括:接收模块601、确定模块602和发送模块603;4 is a schematic structural diagram of a possible structure for implementing a group nickname setting device provided by an embodiment of the present application. As shown in FIG. 4 , the groupnickname setting device 600 includes: a receivingmodule 601, a determiningmodule 602, and a sendingmodule 603;

其中,接收模块601,用于在电子设备登录目标账户的情况下,接收服务器发送的第一消息,第一消息用于指示目标账户加入第一群组;确定模块602,用于响应于接收模块601接收的第一消息,从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称,每个昵称对应至少一个群组标签;发送模块603,用于向服务器发送第二消息,第二消息中包含确定模块602确定的第一昵称,第二消息用于指示服务器将第一群组的群组标识与第一昵称关联存储。Wherein, the receivingmodule 601 is used to receive the first message sent by the server when the electronic device logs into the target account, and the first message is used to instruct the target account to join the first group; the determiningmodule 602 is used to respond to the receiving module The first message received in 601, from at least one nickname corresponding to the target account, determines a first nickname that matches the group tag of the first group, and each nickname corresponds to at least one group tag; the sendingmodule 603 is used to send The server sends a second message, where the second message includes the first nickname determined by the determiningmodule 602, and the second message is used to instruct the server to store the group identifier of the first group in association with the first nickname.

可选地,群组昵称设置装置600还包括显示模块604和用户输入模块605;显示模块604,用于响应于第一消息,显示第一界面,第一界面中包括至少一个标签标识,一个标签标识表示一个群组标签,一个标签标识对应一个昵称;用户输入模块605,用于接收用户对显示模块604显示的至少一个标签标识中目标标签标识的第一输入;确定模块602,具体用于响应于用户输入模块605接收的第一输入,将目标标签标识对应的昵称,确定为第一昵称。Optionally, the groupnickname setting apparatus 600 further includes a display module 604 and a user input module 605; the display module 604 is configured to display a first interface in response to the first message, and the first interface includes at least one label identifier, a label The identifier represents a group tag, and a tag identifier corresponds to a nickname; the user input module 605 is used to receive the first input of the target tag identifier in the at least one tag identifier displayed by the display module 604 from the user; thedetermination module 602 is specifically used to respond Based on the first input received by the user input module 605, the nickname corresponding to the target tag identifier is determined as the first nickname.

可选地,群组昵称设置装置600还包括更新模块606;用户输入模块605,用于接收用户对第一群组的群组标识的第二输入;更新模块606,用于响应于用户输入模块605接收的第二输入,更新第一群组的群组标签;确定模块602,还用于从至少一个昵称中,确定与变更后的第一群组的群组标签匹配的第二昵称;发送模块603,还用于向服务器发送第三消息,第三消息中包含确定模块602确定的第二昵称,第三消息用于指示服务器变更第一关联关系,第一关联关系为群组标识与第一昵称间的关联关系,变更后的第一关联关系为群组标识与第二昵称间的关联关系。Optionally, the groupnickname setting apparatus 600 further includes an update module 606; a user input module 605, for receiving a second input of the group identification of the first group by the user; the update module 606, for responding to the user input module The second input received in 605 is to update the group label of the first group; thedetermination module 602 is also used to determine, from at least one nickname, a second nickname that matches the changed group label of the first group; sendModule 603 is further configured to send a third message to the server, where the third message includes the second nickname determined by the determiningmodule 602, the third message is used to instruct the server to change the first association relationship, and the first association relationship is the group identifier and the first association relationship. An association relationship between nicknames, and the changed first association relationship is the association relationship between the group ID and the second nickname.

可选地,确定模块602,具体用于根据群组标签信息,从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称;其中,群组标签信息包括:至少一个群组标签中的每个群组标签对应的昵称信息。Optionally, the determiningmodule 602 is specifically configured to, according to the group tag information, determine a first nickname matching the group tag of the first group from at least one nickname corresponding to the target account; wherein the group tag information includes : Nickname information corresponding to each group tag in at least one group tag.

可选地,群组昵称设置装置600还包括设置模块607;用户输入模块605,用于接收用户对第一群组的群组标识的第三输入;显示模块604,用于响应于用户输入模块605接收的第三输入,显示N个第二群组的群组标识;用户输入模块605,还用于接收用户对显示模块604显示的N个第二群组中的M个目标群组的群组标识的第四输入;设置模块607,还用于响应于用户输入模块605接收的第四输入,将目标账户在M个目标群组中的昵称设置为第一昵称,N和M均为正整数,M≤N。Optionally, the groupnickname setting device 600 further includes a setting module 607; a user input module 605, for receiving a third input from the user on the group identification of the first group; and a display module 604, for responding to the user input module The third input received in 605 displays the group identifiers of the N second groups; the user input module 605 is also used to receive the group of M target groups in the N second groups displayed by the display module 604 by the user The fourth input of the group identification; the setting module 607 is also used to set the nickname of the target account in the M target groups as the first nickname in response to the fourth input received by the user input module 605, and both N and M are positive Integer, M≤N.

可选地,设置模块607,还用于响应于用户输入模块605接收的第四输入,在M等于1的情况下,将目标账户在第一群组中的昵称设置为第三昵称,第三昵称为目标账户在目标群组中的昵称。Optionally, the setting module 607 is further configured to, in response to the fourth input received by the user input module 605, set the nickname of the target account in the first group to Nickname is the nickname of the target account in the target group.

本申请实施例中的群组昵称设置装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The device for setting a group nickname in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., the non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. This application Examples are not specifically limited.

本申请实施例中的群组昵称设置装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The device for setting a group nickname in this embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

本申请实施例提供的群组昵称设置装置能够实现图1至图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。The apparatus for setting a group nickname provided in this embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 3 , and to avoid repetition, details are not described here.

本申请实施例提供的群组昵称设置装置,电子设备在接收到服务器发送的第一消息后,表明该电子设备中登陆的目标账户加入到了第一群组中。电子设备根据该第一消息携带的第一群组的群组名称,确定该第一群组的群组类别,进而为该第一群组设置群组标签。之后,电子设备通过从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称,并向服务器发送携带该第一昵称的第二消息,以使得电子设备能够在目标账户加入新的群组后,根据该群组群组标签,确定目标账户在该群组中的昵称,而无需用户手动设置,避免用户在每次加入新的群组时,都需要手动设置其在该群组中的昵称的问题。In the device for setting a group nickname provided by the embodiment of the present application, after receiving the first message sent by the server, the electronic device indicates that the target account logged in the electronic device has joined the first group. The electronic device determines the group type of the first group according to the group name of the first group carried in the first message, and then sets a group label for the first group. After that, the electronic device determines a first nickname matching the group tag of the first group from at least one nickname corresponding to the target account, and sends a second message carrying the first nickname to the server, so that the electronic device can After the target account joins a new group, the nickname of the target account in the group is determined according to the group label, without the need for the user to manually set it, avoiding the need for the user to manually Issue setting its nickname in this group.

可选的,如图5所示,本申请实施例还提供一种电子设备M00,包括处理器M01,存储器M02,存储在存储器M02上并可在所述处理器M01上运行的程序或指令,该程序或指令被处理器M01执行时实现上述群组昵称设置方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 5, an embodiment of the present application further provides an electronic device M00, including a processor M01, a memory M02, a program or instruction stored in the memory M02 and running on the processor M01, When the program or instruction is executed by the processor M01, each process of the above-mentioned embodiment of the method for setting a group nickname can be achieved, and the same technical effect can be achieved. To avoid repetition, details are not described here.

需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.

图6为实现本申请各个实施例的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.

该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。Theelectronic device 100 includes but is not limited to: aradio frequency unit 101, anetwork module 102, anaudio output unit 103, aninput unit 104, asensor 105, adisplay unit 106, auser input unit 107, aninterface unit 108, amemory 109, and aprocessor 110, etc. part.

本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that theelectronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to theprocessor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .

其中,射频单元101,用于在电子设备登录目标账户的情况下,接收服务器发送的第一消息。处理器110,用于响应于射频单元101接收的第一消息,从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称,每个昵称对应至少一个群组标签。射频单元101,还用于向服务器发送第二消息,第二消息中包含第一昵称,第二消息用于指示服务器将第一群组的群组标识与第一昵称关联存储。Theradio frequency unit 101 is configured to receive the first message sent by the server when the electronic device logs in to the target account. Theprocessor 110 is configured to, in response to the first message received by theradio frequency unit 101, determine, from at least one nickname corresponding to the target account, a first nickname that matches the group tag of the first group, and each nickname corresponds to at least one group group label. Theradio frequency unit 101 is further configured to send a second message to the server, where the second message includes the first nickname, and the second message is used to instruct the server to store the group identifier of the first group in association with the first nickname.

如此,电子设备在接收到服务器发送的第一消息后,表明该电子设备中登陆的目标账户加入到了第一群组中,之后,电子设备通过从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称,并向服务器发送携带该第一昵称的第二消息,以使得电子设备能够在目标账户加入新的群组后,根据该群组群组标签,确定目标账户在该群组中的昵称,而无需用户手动设置,避免用户在每次加入新的群组时,都需要手动设置其在该群组中的昵称的问题。In this way, after receiving the first message sent by the server, the electronic device indicates that the target account logged in the electronic device has joined the first group. A first nickname that matches the group tag of a group, and sends a second message carrying the first nickname to the server, so that the electronic device can, according to the group group tag, after the target account joins a new group, Determine the nickname of the target account in the group without requiring the user to manually set it, avoiding the problem that the user needs to manually set the nickname in the group every time he joins a new group.

可选地,显示单元106,用于响应于第一消息,显示第一界面,第一界面中包括至少一个标签标识,一个标签标识表示一个群组标签,一个标签标识对应一个昵称;用户输入单元107,用于接收用户对显示单元106显示的至少一个标签标识中目标标签标识的第一输入;处理器110,具体用于响应于用户输入单元107接收的第一输入,将目标标签标识对应的昵称,确定为第一昵称。Optionally, thedisplay unit 106 is configured to display a first interface in response to the first message, and the first interface includes at least one tag identifier, one tag identifier represents a group tag, and one tag identifier corresponds to a nickname; theuser input unit 107, for receiving the first input of the target tag identification in at least one tag identification displayed by thedisplay unit 106 from the user; theprocessor 110, specifically for responding to the first input received by theuser input unit 107, the target tag identification corresponding Nickname, identified as the first nickname.

如此,当用户账户加入一个新的群组后,不仅电子设备可以自动为该群组添加标签,用户也可以手动为该群组添加标签,进而修改用户账户在该群组中的昵称。In this way, when a user account joins a new group, not only the electronic device can automatically add a tag to the group, but the user can also manually add a tag to the group, thereby modifying the nickname of the user account in the group.

可选的,用户输入单元107,用于接收用户对第一群组的群组标识的第二输入。处理器110,用于响应于第二输入,更新第一群组的群组标签。处理器110,还用于从至少一个昵称中,确定与变更后的第一群组的群组标签匹配的第二昵称。射频单元101,还用于向服务器发送第三消息,第三消息中包含第二昵称,第三消息用于指示服务器变更第一关联关系,第一关联关系为群组标识与第一昵称间的关联关系,变更后的第一关联关系为群组标识与第二昵称间的关联关系。Optionally, theuser input unit 107 is configured to receive a second input of the group identifier of the first group by the user. Theprocessor 110 is configured to update the group label of the first group in response to the second input. Theprocessor 110 is further configured to determine, from the at least one nickname, a second nickname matching the changed group label of the first group. Theradio frequency unit 101 is further configured to send a third message to the server, where the third message includes the second nickname, the third message is used to instruct the server to change the first association relationship, and the first association relationship is the relationship between the group identifier and the first nickname. The association relationship, the first association relationship after the change is the association relationship between the group ID and the second nickname.

如此,用户可以在电子设备自动设置群组昵称错误,或者用户想要主动变更用户账户在该群组的群组昵称时,通过上述步骤更换群组的群组标签,以此来使得电子设备更换用户账户在该群组中的群组昵称。In this way, the user can change the group label of the group through the above steps when the electronic device automatically sets the wrong group nickname, or when the user wants to actively change the group nickname of the user account in the group, so as to make the electronic device change The group nickname of the user account in this group.

可选地,处理器110,用于根据群组标签信息,从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称;其中,群组标签信息包括:至少一个群组标签中的每个群组标签对应的昵称信息。Optionally, theprocessor 110 is configured to, according to the group tag information, from at least one nickname corresponding to the target account, determine a first nickname that matches the group tag of the first group; wherein the group tag information includes: Nickname information corresponding to each group tag in the at least one group tag.

如此,电子设备可以根据第一群组的群组类别,为第一群组设置群组标签,之后,便可根据该群组标签与预设标签进行匹配,进而确定该第一群组的群组昵称。In this way, the electronic device can set a group label for the first group according to the group category of the first group, and then can match the group label with the preset label to determine the group of the first group. Group nickname.

可选地,用户输入单元107,还用于接收用户对第一群组的群组标识的第三输入。显示单元106,用于响应于用户输入单元107接收的第三输入,显示N个第二群组的群组标识。用户输入单元107,还用于接收用户对显示单元106显示的N个第二群组中的M个目标群组的群组标识的第四输入。处理器110,响应于用户输入单元107接收的第四输入,将目标账户在M个目标群组中的昵称设置为第一昵称,N和M均为正整数,M≤N。Optionally, theuser input unit 107 is further configured to receive a third input from the user on the group identification of the first group. Thedisplay unit 106 is configured to display the group identifiers of the N second groups in response to the third input received by theuser input unit 107 . Theuser input unit 107 is further configured to receive a fourth input from the user to the group identifiers of the M target groups in the N second groups displayed by thedisplay unit 106 . Theprocessor 110, in response to the fourth input received by theuser input unit 107, sets the nicknames of the target account in the M target groups as the first nickname, where N and M are both positive integers, and M≤N.

如此,电子设备便可通过将用户账户在某个群组中的群组标签,批量设置到多个群组中的方式,批量替换用户账户在多个群组中的群组昵称,方便快捷。In this way, the electronic device can batch replace the group nicknames of the user account in multiple groups by setting the group labels of the user account in a certain group to multiple groups in batches, which is convenient and quick.

可选地,处理器110,还用于响应于用户输入单元107接收的第四输入,在M等于1的情况下,将目标账户在第一群组中的昵称设置为第三昵称,第三昵称为目标账户在目标群组中的昵称。Optionally, theprocessor 110 is further configured to, in response to the fourth input received by theuser input unit 107, set the nickname of the target account in the first group to Nickname is the nickname of the target account in the target group.

如此,电子设备可以在用户选择一个目标群组的情况下,交换目标账户在第一群组与目标群组中的昵称。In this way, when the user selects a target group, the electronic device can exchange the nicknames of the target account in the first group and the target group.

本申请实施例提供的电子设备,电子设备在接收到服务器发送的第一消息后,表明该电子设备中登陆的目标账户加入到了第一群组中。电子设备根据该第一消息携带的第一群组的群组名称,确定该第一群组的群组类别,进而为该第一群组设置群组标签。之后,电子设备通过从目标账户对应的至少一个昵称中,确定与第一群组的群组标签匹配的第一昵称,并向服务器发送携带该第一昵称的第二消息,以使得电子设备能够在目标账户加入新的群组后,根据该群组群组标签,确定目标账户在该群组中的昵称,而无需用户手动设置,避免用户在每次加入新的群组时,都需要手动设置其在该群组中的昵称的问题。In the electronic device provided by the embodiment of the present application, after receiving the first message sent by the server, the electronic device indicates that the target account logged in the electronic device has joined the first group. The electronic device determines the group type of the first group according to the group name of the first group carried in the first message, and then sets a group label for the first group. After that, the electronic device determines a first nickname matching the group tag of the first group from at least one nickname corresponding to the target account, and sends a second message carrying the first nickname to the server, so that the electronic device can After the target account joins a new group, the nickname of the target account in the group is determined according to the group label, without the need for the user to manually set it, avoiding the need for the user to manually Issue setting its nickname in this group.

应理解的是,本申请实施例中,输入单元104可以包括图形处理器(GraphicsProcessing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。It should be understood that, in this embodiment of the present application, theinput unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and amicrophone 1042. camera) to process the image data of still pictures or videos. Thedisplay unit 106 may include adisplay panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. Theuser input unit 107 includes a touch panel 1071 andother input devices 1072 . The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts, a touch detection device and a touch controller.Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. Theprocessor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into theprocessor 110 .

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述群组昵称设置方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the method for setting a group nickname can be implemented, and can To achieve the same technical effect, in order to avoid repetition, details are not repeated here.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述群组昵称设置方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above method for setting a group nickname In order to avoid repetition, the details are not repeated here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (14)

Translated fromChinese
1.一种群组昵称设置方法,其特征在于,所述方法包括:1. a group nickname setting method, is characterized in that, described method comprises:在电子设备登录目标账户的情况下,接收服务器发送的第一消息,所述第一消息用于指示所述目标账户加入第一群组;When the electronic device logs in to the target account, receiving a first message sent by the server, where the first message is used to instruct the target account to join the first group;响应于所述第一消息,从所述目标账户对应的至少一个昵称中,确定与所述第一群组的群组标签匹配的第一昵称,每个昵称对应至少一个群组标签;In response to the first message, from at least one nickname corresponding to the target account, determine a first nickname matching the group tag of the first group, where each nickname corresponds to at least one group tag;向所述服务器发送第二消息,所述第二消息中包含所述第一昵称,所述第二消息用于指示所述服务器将所述第一群组的群组标识与所述第一昵称关联存储。Send a second message to the server, where the second message includes the first nickname, and the second message is used to instruct the server to associate the group identifier of the first group with the first nickname associative storage.2.根据权利要求1所述的方法,其特征在于,所述响应于所述第一消息,从所述目标账户对应的至少一个昵称中,确定与所述第一群组的群组标签匹配的第一昵称,包括:2 . The method according to claim 1 , wherein, in response to the first message, determining a match with a group tag of the first group from at least one nickname corresponding to the target account. 3 . first nicknames, including:响应于所述第一消息,显示第一界面,所述第一界面中包括至少一个标签标识,一个标签标识表示一个群组标签,一个标签标识对应一个昵称;In response to the first message, a first interface is displayed, and the first interface includes at least one tag identifier, one tag identifier represents a group tag, and one tag identifier corresponds to a nickname;接收用户对所述至少一个标签标识中目标标签标识的第一输入;receiving a first input of a target tag identification in the at least one tag identification by the user;响应于所述第一输入,将所述目标标签标识对应的昵称,确定为所述第一昵称。In response to the first input, the nickname corresponding to the target tag identification is determined as the first nickname.3.根据权利要求1所述的方法,其特征在于,所述向所述服务器发送第二消息之后,所述方法还包括:3. The method according to claim 1, wherein after the sending the second message to the server, the method further comprises:接收用户对所述第一群组的群组标识的第二输入;receiving a second input from the user for the group identification of the first group;响应于所述第二输入,更新所述第一群组的群组标签;in response to the second input, updating the group label of the first group;从所述至少一个昵称中,确定与变更后的所述第一群组的群组标签匹配的第二昵称;From the at least one nickname, determining a second nickname matching the changed group label of the first group;向所述服务器发送第三消息,所述第三消息中包含所述第二昵称,所述第三消息用于指示所述服务器变更第一关联关系,所述第一关联关系为所述群组标识与所述第一昵称间的关联关系,变更后的所述第一关联关系为所述群组标识与所述第二昵称间的关联关系。Send a third message to the server, where the third message includes the second nickname, the third message is used to instruct the server to change the first association relationship, and the first association relationship is the group The association relationship between the identifier and the first nickname, and the changed first association relationship is the association relationship between the group identifier and the second nickname.4.根据权利要求1所述的方法,其特征在于,所述从所述目标账户对应的至少一个昵称中,确定与所述第一群组的群组标签匹配的第一昵称,包括:4. The method according to claim 1, wherein the determining, from at least one nickname corresponding to the target account, the first nickname matching the group tag of the first group comprises:根据群组标签信息,从所述目标账户对应的至少一个昵称中,确定与所述第一群组的群组标签匹配的第一昵称;According to the group tag information, from at least one nickname corresponding to the target account, determine a first nickname that matches the group tag of the first group;其中,所述群组标签信息包括:至少一个群组标签中的每个群组标签对应的昵称信息。Wherein, the group tag information includes: nickname information corresponding to each group tag in the at least one group tag.5.根据权利要求1所述的方法,其特征在于,所述向所述服务器发送第二消息之后,所述方法还包括:5. The method according to claim 1, wherein after the sending the second message to the server, the method further comprises:接收用户对所述第一群组的群组标识的第三输入;receiving a third input from the user for the group identification of the first group;响应于所述第三输入,显示N个第二群组的群组标识;In response to the third input, displaying group identifications of the N second groups;接收用户对所述N个第二群组中的M个目标群组的群组标识的第四输入;receiving a fourth input by the user of group identifiers of M target groups in the N second groups;响应于所述第四输入,将所述目标账户在所述M个目标群组中的昵称设置为所述第一昵称,N和M均为正整数,M≤N。In response to the fourth input, the nickname of the target account in the M target groups is set as the first nickname, N and M are both positive integers, and M≤N.6.根据权利要求5所述的方法,其特征在于,所述接收用户对所述N个第二群组中的M个目标群组的群组标识的第四输入之后,所述方法还包括:6. The method according to claim 5, wherein after receiving the fourth input from the user on the group identifiers of the M target groups in the N second groups, the method further comprises: :响应于所述第四输入,在M等于1的情况下,将所述目标账户在所述第一群组中的昵称设置为第三昵称,所述第三昵称为所述目标账户在所述目标群组中的昵称。In response to the fourth input, in the case where M is equal to 1, the nickname of the target account in the first group is set as a third nickname for the target account in the Nicknames in the target group.7.一种群组昵称设置装置,其特征在于,所述群组昵称设置装置包括接收模块、确定模块和发送模块;7. A group nickname setting device, wherein the group nickname setting device comprises a receiving module, a determining module and a sending module;所述接收模块,用于在电子设备登录目标账户的情况下,接收服务器发送的第一消息,所述第一消息用于指示所述目标账户加入第一群组;The receiving module is configured to receive a first message sent by a server when the electronic device logs in to the target account, where the first message is used to instruct the target account to join the first group;所述确定模块,用于响应于所述接收模块接收的第一消息,从所述目标账户对应的至少一个昵称中,确定与所述第一群组的群组标签匹配的第一昵称,每个昵称对应至少一个群组标签;The determining module is configured to, in response to the first message received by the receiving module, determine, from at least one nickname corresponding to the target account, a first nickname that matches the group tag of the first group, and each nicknames correspond to at least one group tag;所述发送模块,用于向所述服务器发送第二消息,所述第二消息中包含所述确定模块确定的第一昵称,所述第二消息用于指示所述服务器将所述第一群组的群组标识与所述第一昵称关联存储。The sending module is configured to send a second message to the server, where the second message includes the first nickname determined by the determining module, and the second message is used to instruct the server to send the first group to the server. The group identifier of the group is stored in association with the first nickname.8.根据权利要求7所述的装置,其特征在于,所述装置还包括:显示模块和用户输入模块;8. The device according to claim 7, wherein the device further comprises: a display module and a user input module;所述显示模块,用于响应于所述第一消息,显示第一界面,所述第一界面中包括至少一个标签标识,一个标签标识表示一个群组标签,一个标签标识对应一个昵称;The display module is configured to display a first interface in response to the first message, the first interface includes at least one tag identifier, one tag identifier represents a group tag, and one tag identifier corresponds to a nickname;所述用户输入模块,用于接收用户对所述显示模块显示的所述至少一个标签标识中目标标签标识的第一输入;the user input module, configured to receive a first input from the user to the target tag identification in the at least one tag identification displayed by the display module;所述确定模块,具体用于响应于所述用户输入模块接收的所述第一输入,将所述目标标签标识对应的昵称,确定为所述第一昵称。The determining module is specifically configured to, in response to the first input received by the user input module, determine the nickname corresponding to the target tag identifier as the first nickname.9.根据权利要求7所述的装置,其特征在于,所述装置还包括:用户输入模块和更新模块;9. The apparatus according to claim 7, wherein the apparatus further comprises: a user input module and an update module;所述用户输入模块,用于接收用户对所述第一群组的群组标识的第二输入;the user input module, configured to receive a second input from the user on the group identification of the first group;所述更新模块,用于响应于所述用户输入模块接收的所述第二输入,更新所述第一群组的群组标签;the updating module for updating the group label of the first group in response to the second input received by the user input module;所述确定模块,还用于从所述至少一个昵称中,确定与变更后的所述第一群组的群组标签匹配的第二昵称;The determining module is further configured to determine, from the at least one nickname, a second nickname that matches the changed group label of the first group;所述发送模块,还用于向所述服务器发送第三消息,所述第三消息中包含所述确定模块确定的第二昵称,所述第三消息用于指示所述服务器变更第一关联关系,所述第一关联关系为所述群组标识与所述第一昵称间的关联关系,变更后的所述第一关联关系为所述群组标识与所述第二昵称间的关联关系。The sending module is further configured to send a third message to the server, where the third message includes the second nickname determined by the determining module, and the third message is used to instruct the server to change the first association relationship , the first association is an association between the group identifier and the first nickname, and the changed first association is an association between the group identifier and the second nickname.10.根据权利要求7所述的装置,其特征在于,10. The device of claim 7, wherein:所述确定模块,具体用于根据群组标签信息,从所述目标账户对应的至少一个昵称中,确定与所述第一群组的群组标签匹配的第一昵称;The determining module is specifically configured to, according to the group tag information, determine a first nickname matching the group tag of the first group from at least one nickname corresponding to the target account;其中,所述群组标签信息包括:至少一个群组标签中的每个群组标签对应的昵称信息。Wherein, the group tag information includes: nickname information corresponding to each group tag in the at least one group tag.11.根据权利要求7所述的装置,其特征在于,所述装置还包括:用户输入模块、显示模块和设置模块;11. The device according to claim 7, wherein the device further comprises: a user input module, a display module and a setting module;所述用户输入模块,用于接收用户对所述第一群组的群组标识的第三输入;the user input module, configured to receive a third input from the user to the group identification of the first group;所述显示模块,用于响应于所述用户输入模块接收的所述第三输入,显示N个第二群组的群组标识;the display module, configured to display the group identifiers of the N second groups in response to the third input received by the user input module;所述用户输入模块,还用于接收用户对所述显示模块显示的所述N个第二群组中的M个目标群组的群组标识的第四输入;The user input module is further configured to receive a fourth input from the user to the group identifiers of the M target groups in the N second groups displayed by the display module;所述设置模块,还用于响应于所述用户输入模块接收的所述第四输入,将所述目标账户在所述M个目标群组中的昵称设置为所述第一昵称,N和M均为正整数,M≤N。The setting module is further configured to, in response to the fourth input received by the user input module, set the nickname of the target account in the M target groups as the first nickname, N and M All are positive integers, M≤N.12.根据权利要求11所述的装置,其特征在于,12. The apparatus of claim 11, wherein所述设置模块,用于响应于所述用户输入模块接收的所述第四输入,在M等于1的情况下,将所述目标账户在所述第一群组中的昵称设置为第三昵称,所述第三昵称为所述目标账户在所述目标群组中的昵称。The setting module is configured to, in response to the fourth input received by the user input module, set the nickname of the target account in the first group to a third nickname when M is equal to 1 , and the third nickname is the nickname of the target account in the target group.13.一种电子设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至6中任一项所述的群组昵称设置方法的步骤。13. An electronic device, characterized in that it comprises a processor, a memory, and a program or instruction stored on the memory and executable on the processor, and the program or instruction is implemented when executed by the processor The steps of the group nickname setting method according to any one of claims 1 to 6.14.一种可读存储介质,其特征在于,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至6中任一项所述的群组昵称设置方法的步骤。14. A readable storage medium, wherein a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the group according to any one of claims 1 to 6 is implemented The steps of the group nickname setting method.
CN202010592432.1A2020-06-242020-06-24 Group nickname setting method, device and electronic devicePendingCN111786982A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010592432.1ACN111786982A (en)2020-06-242020-06-24 Group nickname setting method, device and electronic device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010592432.1ACN111786982A (en)2020-06-242020-06-24 Group nickname setting method, device and electronic device

Publications (1)

Publication NumberPublication Date
CN111786982Atrue CN111786982A (en)2020-10-16

Family

ID=72759762

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010592432.1APendingCN111786982A (en)2020-06-242020-06-24 Group nickname setting method, device and electronic device

Country Status (1)

CountryLink
CN (1)CN111786982A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20120064863A1 (en)*2010-09-102012-03-15Motorola Mobility, Inc.Method of an Electronic Device for Providing Contact or Group Information for a Contact or Group of Contacts
CN103927393A (en)*2014-04-302014-07-16张家栋Method and system for achieving automatic confirmation of nicknames based on different social situations
CN105530167A (en)*2015-12-142016-04-27小米科技有限责任公司Method and device for setting group name card
US20170118147A1 (en)*2005-03-032017-04-27Elizabeth Thomas DoldMethod and System for Creating and Delivering Group Messages and Facilitating Charitable Donations
CN107623574A (en)*2017-10-112018-01-23苏州亿科赛卓电子科技有限公司A kind of instant messaging group group member's pet name automatic correlation method and device
CN108737249A (en)*2018-05-102018-11-02北京小米移动软件有限公司The method of adjustment group business card, electronic equipment, computer readable storage medium
US20190361852A1 (en)*2018-05-242019-11-28People.ai, Inc.Systems and methods for maintaining extracted data in a group node profile from electronic activities
CN111079030A (en)*2019-12-242020-04-28维沃移动通信有限公司 A group search method and electronic device
CN111131540A (en)*2019-12-232020-05-08维沃移动通信有限公司 A name setting method and electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20170118147A1 (en)*2005-03-032017-04-27Elizabeth Thomas DoldMethod and System for Creating and Delivering Group Messages and Facilitating Charitable Donations
US20120064863A1 (en)*2010-09-102012-03-15Motorola Mobility, Inc.Method of an Electronic Device for Providing Contact or Group Information for a Contact or Group of Contacts
CN103927393A (en)*2014-04-302014-07-16张家栋Method and system for achieving automatic confirmation of nicknames based on different social situations
CN105530167A (en)*2015-12-142016-04-27小米科技有限责任公司Method and device for setting group name card
CN107623574A (en)*2017-10-112018-01-23苏州亿科赛卓电子科技有限公司A kind of instant messaging group group member's pet name automatic correlation method and device
CN108737249A (en)*2018-05-102018-11-02北京小米移动软件有限公司The method of adjustment group business card, electronic equipment, computer readable storage medium
US20190361852A1 (en)*2018-05-242019-11-28People.ai, Inc.Systems and methods for maintaining extracted data in a group node profile from electronic activities
CN111131540A (en)*2019-12-232020-05-08维沃移动通信有限公司 A name setting method and electronic device
CN111079030A (en)*2019-12-242020-04-28维沃移动通信有限公司 A group search method and electronic device

Similar Documents

PublicationPublication DateTitle
CN112540712B (en) Message processing method, apparatus, electronic device and storage medium
US20210314285A1 (en)Group chat initiating method on basis of shared document, device and apparatus therefor, and storage medium
US20190122260A1 (en)Method and apparatus for generating targeted label, and storage medium
CN109039671B (en) Group message display method, device, terminal and storage medium
CN112272138B (en) Group joining method, apparatus and electronic device
CN111884908B (en)Contact person identification display method and device and electronic equipment
CN112269504B (en)Information display method and device and electronic equipment
CN113141294B (en)Message prompting method and device and electronic equipment
CN112306325B (en) Interactive control method and device
CN112671635B (en) Transmission method, device and electronic device
CN112788178B (en) Message display method and device
CN105681173A (en)Creation method, device and system of conversation in instant communication
CN113259221B (en)Message display method and device and electronic equipment
CN104618223A (en)Information recommendation management method, device and system
EP3677011A1 (en)User profile aggregation and inference generation
CN113300941B (en)Display method, display device, related equipment and readable storage medium
CN113489637A (en)Method and device for adding reminding object, storage medium and computer equipment
WO2022127766A1 (en)Information sending method and apparatus, electronic device and readable storage medium
CN117876077A (en)Information interaction method, information interaction device, computer equipment and computer readable storage medium
CN111600729B (en)Group member adding method and electronic equipment
CN113824627B (en)Group chat message display method and device, electronic equipment and storage medium
CN112383666B (en)Content sending method and device and electronic equipment
CN110351101B (en)Group invitation processing method, system and mobile terminal
CN111857997A (en) Application program avatar display method, device, device and medium
CN111786982A (en) Group nickname setting method, device and electronic device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20201016


[8]ページ先頭

©2009-2025 Movatter.jp