CN111131531B - Method and device for generating nickname in chat group and readable storage medium - Google Patents

Method and device for generating nickname in chat group and readable storage medium Download PDF

Info

Publication number
CN111131531B
CN111131531B CN201811296169.0A CN201811296169A CN111131531B CN 111131531 B CN111131531 B CN 111131531B CN 201811296169 A CN201811296169 A CN 201811296169A CN 111131531 B CN111131531 B CN 111131531B
Authority
CN
China
Prior art keywords
account
group
nickname
filling
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811296169.0A
Other languages
Chinese (zh)
Other versions
CN111131531A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201811296169.0A priority Critical patent/CN111131531B/en
Publication of CN111131531A publication Critical patent/CN111131531A/en
Application granted granted Critical
Publication of CN111131531B publication Critical patent/CN111131531B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method and a device for generating a nickname in a chat group and a readable storage medium, and relates to the technical field of instant messaging. The method comprises the following steps: receiving a group nickname setting operation for a first account in an interworking group; sending a group nickname setting request of a first account to a server according to the group nickname setting operation; receiving a first nickname template; acquiring filling information corresponding to a first account; and generating a group nickname of the first account in the intercommunication group according to the filling bit and the filling information. The method comprises the steps of acquiring a first nickname template corresponding to an intercommunication group stored in a server, acquiring filling information corresponding to a first account, generating a group nickname of the first account in the intercommunication group according to a filling bit in the first nickname template and the filling information, and generating an accurate group nickname corresponding to the first account without setting by a user in a manual input mode.

Description

Method and device for generating nickname in chat group and readable storage medium
Technical Field
The present disclosure relates to the field of instant messaging technologies, and in particular, to a method, an apparatus, and a readable storage medium.
Background
The instant messaging application program can realize instant transmission and communication of information such as characters, pictures, audios and videos, links and the like, generally, groups can be established in the instant messaging application program for communication, each group comprises at least three accounts, the at least three accounts can send messages in the group for communication, and optionally, the at least three accounts can be accounts with association or accounts without association.
In the related art, since the accounts in the same group do not necessarily have an association relationship, a group nickname needs to be set in the group by the account so that each account in the group can know the identity of other accounts, schematically, the group a includes an account 1, an account 2 and an account 3, the group nickname set by the account 1 in the group a for itself is called a "shell", and the nickname of the account 1 seen by the account 2 and the account 3 in the group a is called a shell.
However, an account in the instant messaging application may exist in multiple groups, and each account in each group needs to be provided with a corresponding group nickname, which is cumbersome for the user to operate.
Disclosure of Invention
The embodiment of the application provides a nickname generation method and device in a chat group and a readable storage medium, and can solve the problems that in each group, each account needs to be provided with a corresponding group nickname, and the operation of a user is complicated. The technical scheme is as follows:
in a first aspect, a method for generating a nickname in a chat group is provided, where the method includes:
receiving a group nickname setting operation on a first account in an interworking group, wherein the interworking group has accounts from different types of instant-through applications, and the different types of instant-through applications at least comprise a first instant-through application and a second instant-through application which have an account interworking relationship;
sending a group nickname setting request of the first account to a server according to the group nickname setting operation;
receiving a first nickname template sent by the server, wherein the first nickname template is a template which is stored in the server and corresponds to the intercommunication group, and the first nickname template comprises filling bits which respectively correspond to at least one filling keyword;
acquiring filling information corresponding to the first account, wherein the filling information corresponds to the filling keyword;
and generating the group nickname of the first account in the intercommunication group according to the filling bit and the filling information.
In another aspect, an apparatus for generating a nickname in a chat group is provided, the apparatus comprising:
a receiving module, configured to receive a group nickname setting operation on a first account in an interworking group, where the interworking group has accounts from different types of instant messaging applications, and the different types of instant messaging applications at least include a first instant messaging application and a second instant messaging application that have an account interworking relationship;
a sending module, configured to send a group nickname setting request of the first account to a server according to the group nickname setting operation;
the receiving module is further configured to receive a first nickname template sent by the server, where the first nickname template is a template stored in the server and corresponding to the interworking group, and the first nickname template includes filling bits respectively corresponding to at least one filling keyword;
the acquisition module is used for acquiring filling information corresponding to the first account, and the filling information corresponds to the filling keyword;
and the generating module is used for generating the group nickname of the first account in the intercommunication group according to the filling bit and the filling information.
In another aspect, a terminal is provided, which includes a processor and a memory, where at least one instruction, at least one program, a code set, or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the nickname generation method in a chat group as described in the embodiments of the present application.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, and loaded and executed by the processor to implement the nickname generating method in a chat group as described in the embodiments of the present application.
In another aspect, a computer program product is provided, which when run on a computer causes the computer to execute the nickname generation method in a chat group as described in the embodiments of the present application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the method comprises the steps of acquiring a first nickname template corresponding to an intercommunication group stored in a server, acquiring filling information corresponding to a first account, generating a group nickname of the first account in the intercommunication group according to a filling bit in the first nickname template and the filling information, and generating an accurate group nickname corresponding to the first account without setting by a user in a manual input mode.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is an interface schematic diagram of a group nickname setting method in the related art according to an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram of an implementation environment of a nickname generation system in a chat group according to an exemplary embodiment of the present application;
FIG. 3 is a flowchart of a nickname generation method in a chat group provided by an exemplary embodiment of the present application;
FIG. 4 is a schematic diagram of an interface for a chat group provided in accordance with the embodiment shown in FIG. 3;
fig. 5 is a schematic information flow diagram illustrating a nickname generation method in a chat group according to another exemplary embodiment of the present application;
FIG. 6 is a flowchart of a nickname generation method in a chat group according to another exemplary embodiment of the present application;
FIG. 7 is a schematic interface diagram of a template setting method in a chat group provided based on the embodiment shown in FIG. 6;
fig. 8 is a flowchart of a nickname generation method in a chat group according to another exemplary embodiment of the present application;
fig. 9 is an interface schematic diagram of a nickname setting method in a chat group provided based on the embodiment shown in fig. 8;
fig. 10 is a flowchart of a nickname generation method in a chat group according to another exemplary embodiment of the present application;
fig. 11 is a flowchart of a nickname generation method in a chat group according to another exemplary embodiment of the present application;
fig. 12 is a block diagram illustrating an exemplary embodiment of a nickname generating apparatus in a chat group;
fig. 13 is a block diagram illustrating a nickname generating apparatus in a chat group according to another exemplary embodiment of the present application;
fig. 14 is a block diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, the nouns referred to in this application are briefly introduced:
an interworking group: the instant messaging application program comprises a first instant messaging application program and a second instant messaging application program which have an account intercommunication relationship. Optionally, accounts from two or more types of instant messaging applications may also exist in the interworking group, such as: the interworking group includes an account a, an account b, an account c, and an account d, where the account a is an account logged in the first instant messaging application, the account b and the account c are accounts logged in the second instant messaging application, and the account d is an account logged in the third instant messaging application.
Optionally, the interworking group includes an account corresponding to the first instant messaging application and an account corresponding to the second instant messaging application. Optionally, the account corresponding to the first instant application is an account logged in the first instant application, and the account corresponding to the second instant application is an account logged in the second instant application, that is, the interworking group includes both the account logged in the first instant application and the account logged in the second instant application. Optionally, the second instant application is an instant messaging application for a specific industry. Optionally, the second pass-through application is an enterprise-level instant messaging application, that is, the second pass-through application is an application providing an instant messaging server for an enterprise user, and generally, after the enterprise acquires the use permission of the second pass-through application, binds the mailbox of the employee in the enterprise or the first pass-through application account with the enterprise account, the employee may log in through the second account in the second pass-through application through the bound mailbox or the first pass-through application account.
Illustratively, the interworking group a includes an account 1, an account 2, and an account 3, where the account 1 and the account 2 are accounts logged in a first instant messaging application, the account 3 is an account logged in a second instant messaging application, and the account 3 may have a binding relationship with the account 1 or the account 2, or may have no binding relationship with both the account 1 and the account 2, that is, the account 3 and the account 1 are used by different users, and the account 3 and the account 2 are also used by different users.
Optionally, the first server sends the first through application when the first through application sends the first through message through the account corresponding to the first through application, and the second server sends the second through application when the second through application sends the second through message through the account corresponding to the second through application. Optionally, the first pass-through application may further be bound with an account corresponding to the second pass-through application, and the second pass-through application may further be selected from the first pass-through application to send a pass-through message through the second server.
Group nickname: the term "nickname" refers to a nickname used for referring to a user account in a group in an instant messaging application, and optionally, the group nickname may be set by the user account in the group, or may be set by an administrator in the group in a unified manner for accounts in the group, which is not limited in the embodiment of the present application. Illustratively, the group a includes an account 1, an account 2, and an account 3, where a group nickname given to the group a by the account 1 is "shell", the nickname used to refer to the account 1 in the group is "shell", and the nickname of the account 1 acquired by the account 2 and the account 3 in the group a is "shell".
Nickname templates: the nickname template is a template used for indicating that accounts are set according to a predetermined format when a group nickname is set in a group, and optionally, the nickname template is set by an administrator account in the group. Optionally, the nickname template includes padding bits, and the padding bits correspond to padding keywords. Optionally, the nickname template may include a plurality of padding bits therein, each padding bit corresponding to a padding keyword. Optionally, when the second instant messaging application is an enterprise-level instant messaging application, the filling keyword includes an enterprise name, a department name, a position, a name, a gender, a working age, an executing project, and the like; when the second instant messaging application is a school-level instant messaging application program, the filling keywords comprise a school name, a school district, a year, a class, a name, a gender and the like; when the second instant messaging application is a household-level instant messaging application, the filling keyword includes a unit number, an issue number, a floor number, a gate number, a name, a house identity, and the like, the enterprise-level instant messaging application, the school-level instant messaging application, and the household-level instant messaging application are illustrative examples, and the second instant messaging application may also be implemented as other types of instant messaging applications, which is not limited in the embodiment of the present application.
Illustratively, the group a corresponds to a nickname template a, the nickname template a is in the form of "company-department-name", when the account 1 sets its own group nickname in the group a, it "fills in" tx "for the filling bit" company ", fills in" product department "for the filling bit" department ", and fills in" shellfish "for the filling bit" name ", then a group nickname of the account 1 in the group a is generated as" tx-product department-shellfish ", and other accounts in the group a acquire the group nickname of the account 1 in the group a as" tx-product department-shellfish ".
Secondly, the application scenarios related to the present application include the following scenarios:
the user A registers a first account in the instant messaging application program x letter, and the user A registers a second account in the instant messaging application program enterprise x letter, wherein the first account and the second account are two accounts bound with each other. The user A sets enterprise information, position information, department information, name and other information of the user A in an enterprise x letter, wherein the enterprise information is tx, the position information is a supervisor, the department information is a product department, and the name is a shellfish. The user A adds a group B into the x-mail, group members of the group B comprise accounts logged in a first instant messenger application and accounts logged in a second instant messenger application, the group B corresponds to a nickname template, namely enterprise information-department information-name, and when the user A selects and sets a group nickname in a group nickname setting interface corresponding to the group B, the terminal automatically generates 'tx-product department-shell' as the group nickname of the first account of the user A in the group B, wherein the enterprise information, the department information and the name are information set in the second account of the user A.
Optionally, the instant messaging application program may also be referred to as a "instant messaging application" for short, and in the embodiment of the present application, the instant messaging application is described as replacing the instant messaging application program.
It should be noted that the above application scenario is an illustrative example, and in actual operation, a scheme of acquiring information stored by another instant messaging application as a group nickname of a current instant messaging application may automatically generate the group nickname by using the nickname generation method in the chat group provided in the embodiment of the present application, which is not limited in the embodiment of the present application.
In the related art, when setting a group nickname in a group, a user may input his/her group nickname in a group nickname setting area, as shown in fig. 1, a user interface 12 of an instant messaging application a is displayed in a terminal 11, a chat interface of a first account in the group is currently displayed in the instant messaging application a, the user interface 12 includes a group nickname setting area 13, and after inputting his/her group nickname in the group nickname setting area 13, the user may generate a group nickname of the first account in the group.
Fig. 2 is a schematic structural diagram of a nickname generating system in a chat group according to an exemplary embodiment of the present application, and as shown in fig. 2, the system includes a terminal 21 and a server 22, where at least one instant messaging application is installed in the terminal 21. Optionally, a first instant messaging application program and a second instant messaging application program are installed in the terminal 21, wherein the terminal 21 logs in a first account in the first instant messaging application program, logs in a second account in the second instant messaging application program, and the first account and the second account are two accounts bound to each other. The first instant messaging application and the second instant messaging application may be installed in the same terminal 21 or may be installed in two different terminals 21.
Illustratively, the terminal 21 may further include a terminal 211, a terminal 212, and a terminal 213, where a first instant messaging application having a first account logged therein is installed in the terminal 211, a second instant messaging application having a second account logged therein is installed in the terminal 212, optionally, a user sets user information in the second instant messaging application through the second account, the terminal 212 sends the user information to the server 22, the first account joins the group a in the first instant messaging application, and after the user selects and sets the nickname control 214 in the group a, the terminal 211 sends a group nickname setting signal to the server 22. Alternatively, the server 22 transmits the user information to the terminal 211 according to the nickname template of the group a. The terminal 21 and the server 22 are connected through a communication network, which may be a wired network or a wireless network, and this is not limited in the embodiments of the present application.
In the embodiment of the present application, 3 terminals 21 are taken as an example for explanation, in actual operation, the number of the terminals 21 may be more or less, and the embodiment of the present application does not limit this.
Alternatively, the terminal 21 may be a mobile terminal such as a mobile phone and a tablet, or a terminal such as a desktop computer and a portable laptop computer, which is not limited in this embodiment of the application.
Fig. 3 is a flowchart of a method for generating a nickname in a chat group according to an exemplary embodiment of the present application, which is described by taking an application of the method in the terminal 21 shown in fig. 2 as an example, and as shown in fig. 3, the method includes:
step 301, receiving a group nickname setting operation for a first account in an interworking group.
Optionally, accounts from different types of instant-through applications exist in the interworking group, and the different types of instant-through applications include at least a first instant-through application and a second instant-through application which have an account interworking relationship. Optionally, the first account may be an account logged in the first instant-messaging application, or may be an account logged in the second instant-messaging application.
Optionally, the interworking group is a group created in a first instant-pass application, or the interworking group is a group created in a second instant-pass application.
Optionally, the group nickname setting operation is an operation of setting a group nickname of the first account in the interworking group.
Optionally, the interworking group includes an account corresponding to the first instant messaging application and an account corresponding to the second instant messaging application. Optionally, the account corresponding to the first instant application is an account logged in the first instant application, and the account corresponding to the second instant application is an account logged in the second instant application, that is, the interworking group includes both the account logged in the first instant application and the account logged in the second instant application.
Optionally, the account logged in the first instant application may add another account logged in the first instant application as an association relationship, such as: the friend relationship may also add the account logged in the second instant application as an association relationship, that is, the account corresponding to the first instant application and the account corresponding to the second instant application may communicate between the accounts of the two instant applications through the same server.
Optionally, when the account logged in the second instant application is in the interworking group, the additional identifier may be displayed in the interworking group, and the displayed account is the account logged in the second instant application. Illustratively, as shown in fig. 4, three messages sent by joining the account of the group chat a of the first one-pass application are displayed in the chat interface 41 of the group chat a of the first one-pass application, including a message 42 sent by Tom, a message 43 sent by Kevin, and a message 44 sent by Nick, wherein a group nickname of Kevin and a group nickname of Nick are displayed above the message 43 sent by Kevin and the message 44 sent by Nick, and an "@ tx" identifier is displayed beside the group nicknames, the "@ tx" identifier indicates that Kevin and Nick are accounts registered in the second one-pass application, and "tx" is used to indicate enterprises where Kevin and Nick are located, and Tom is an account registered in the first one-pass application.
Step 302, sending a group nickname setting request of the first account to the server according to the group nickname setting operation.
Alternatively, the manner of receiving the group nickname setting operation and transmitting the group nickname setting request to the server may include any one of the following manners:
firstly, a user selects a group nickname setting control in a chatting information setting interface of an intercommunication group and then triggers the group nickname setting operation;
referring to fig. 5, schematically, a chat information setting interface 51 of the group chat a is displayed in the terminal, the chat information setting interface includes a group nickname setting control 52, after the user clicks on the group nickname setting control 52, a group nickname setting operation is triggered, and the terminal sends a group nickname setting signal to the server 53.
Secondly, when the first account newly joins the intercommunication group, the group nickname setting operation is automatically triggered, and a group nickname setting signal is sent to the server;
and thirdly, the nickname template in the intercommunication group is changed, and when the first account enters the group chat interface of the intercommunication group for the first time after the nickname template in the intercommunication group is changed, the group nickname setting operation is automatically triggered, and a group nickname setting signal is sent to the server.
Step 303, receiving the first nickname template sent by the server.
Optionally, the first nickname template is a template corresponding to the interworking group and stored in the server, and the first nickname template includes padding bits respectively corresponding to at least one padding keyword. Optionally, the nickname template may include a plurality of padding bits therein, each padding bit corresponding to a padding keyword. Illustratively, the interworking group corresponds to a first nickname template, the first nickname template is in the form of "company-department-name", when the first account sets its own group nickname in the interworking group, the first account "fills in" tx "for the filling bit" company ", fills in" product department "for the filling bit" department ", and fills in" shell "for the filling bit" name ", then the group nickname of the first account in the interworking group is generated as" tx-product department-shell ", and the other accounts in the interworking group acquire the group nickname of the first account as" tx-product department-shell ".
Step 304, acquiring the filling information corresponding to the first account.
Optionally, the filling information corresponds to a filling keyword.
Optionally, since the first account may be an account logged in the first instant application or an account logged in the second instant application, for the two login situations of the first account, the padding information corresponding to the first account is obtained in two situations:
firstly, the first account is an account logged in the second instant application, and when the filling information corresponding to the first account is acquired, the first account information corresponding to the first account sent by the server is received, wherein the first account information comprises the filling information, and the filling information is determined from the first account information according to the filling keyword;
optionally, the server queries filling information corresponding to the filling keyword in the first account information according to the filling keyword in the first nickname template sent to the terminal, and sends the filling information to the terminal.
Optionally, the server may also send complete first account information to the terminal, and the terminal selects filling information corresponding to the filling keyword from the first account information.
Secondly, the first account is an account logged in the first instant application, a second account is logged in the second instant application, and the first account and the second account are two accounts bound to each other, so that when the filling information corresponding to the first account is acquired, second account information corresponding to the second account sent by the server is received, wherein the second account information comprises the filling information, and the filling information is determined from the second account information according to the filling keyword.
Optionally, the server queries filling information corresponding to the filling keyword in the second account information according to the filling keyword in the first nickname template sent to the terminal, and sends the filling information to the terminal.
Optionally, the server may also send complete second account information to the terminal, and the terminal selects filling information corresponding to the filling keyword from the second account information.
Illustratively, a first account logs in a first instant application, information stored in a second instant application by a second account includes enterprise information-tx, department information-product department, position information-supervisor and name-shellfish, a filling keyword in a first nickname template includes enterprise information, department information and name, and then the enterprise information "tx", the department information "product department" and the name "shellfish" are acquired as filling information and sent to a terminal according to information stored in the second account bound with the first account.
And 305, generating a group nickname of the first account in the interworking group according to the filling bit and the filling information.
Optionally, the filling information is filled into the filling bits according to the filling keywords, and the group nickname is generated.
Optionally, when the filling information sent by the server is information corresponding to the filling keywords, sequentially filling the filling information into the filling bits to generate the group nickname; when the filling information sent by the server comprises complete first account information or second account information, the terminal searches words which can be filled to the filling positions in the first account information or the second account information according to the filling keywords to fill, and then generates a group nickname of the first account in the intercommunication group.
Optionally, after a group nickname of the first account in the interworking group is generated according to the padding bit and the padding information, when a nickname modification operation is received, the group nickname may be modified according to the nickname modification operation, and the modified nickname is used as the group nickname of the first account in the interworking group.
To sum up, according to the nickname generating method in the chat group provided in the embodiment of the present application, the first nickname template corresponding to the interworking group and the filling information corresponding to the first account stored in the server are obtained, and the group nickname of the first account in the interworking group is generated according to the filling bit in the first nickname template and the filling information, so that the accurate group nickname corresponding to the first account can be generated without setting by the user in a manual input manner, the setting manner of the group nickname is relatively convenient, the operation steps are few, and the generated nickname is accurate.
In an optional embodiment, a first nickname template corresponding to a first group is preset, and fig. 6 is a flowchart of a method for generating a nickname in a chat group according to another exemplary embodiment of the present application, which is described by taking an application of the method in the terminal 21 shown in fig. 2 as an example, as shown in fig. 6, the method includes:
step 601, displaying a template setting interface.
The template setting interface is used for setting a first nickname template in the intercommunication group, and the template setting interface comprises at least one keyword setting area. Optionally, the keyword setting area is used for receiving a fill keyword for input.
Optionally, the template setting interface initially includes a keyword setting area, and after the user inputs a first filling keyword in the keyword setting area and selects a keyword increase control, a second keyword setting area is displayed in the template setting interface.
Optionally, the template setting interface may further include a plurality of keyword setting areas at the beginning, and determine the nickname template of the interworking group through the area to which the filling keyword is input.
Step 602, receiving a keyword input operation in a keyword setting area.
Optionally, the keyword input operation is used to input a filling keyword corresponding to the filling position.
Step 603, determining a first nickname template according to the keyword input operation.
Alternatively, the first nickname template is determined according to the input pad keyword in each keyword setting area.
As shown in fig. 7, a related keyword setting area 72 and a keyword addition control 73 are displayed on the template setting interface 71 of the group chat a, and when the user inputs the keyword 1 "business" in the keyword setting area 72, and clicks the keyword addition control 73, a second keyword setting area 74 is displayed on the template setting interface 71, and when the user inputs the second keyword "name" in the keyword setting area 74, the user clicks the confirmation control 75, and a chat information display interface 76 of the group chat a is displayed, and the chat information display interface 76 includes the nickname template "business-name" of the group chat a.
At step 604, the first nickname template is sent to a server.
Optionally, the server is configured to store the first nickname template in correspondence with the interworking group.
Optionally, the server may first verify the identity of the first account in the interworking group, and when it is determined that the first account is an administrator identity in the interworking group, correspondingly store the first nickname template and the interworking group.
Optionally, the first account may be an account logged in the first instant-messaging application, or may be an account logged in the second instant-messaging application.
Step 605, receiving a group nickname setting operation for the first account in the interworking group.
Optionally, accounts from different types of instant-through applications exist in the interworking group, and the different types of instant-through applications include at least a first instant-through application and a second instant-through application which have an account interworking relationship.
Optionally, the group nickname setting operation is an operation of setting a group nickname of the first account in the interworking group.
Optionally, the interworking group includes an account corresponding to the first instant messaging application and an account corresponding to the second instant messaging application. Optionally, the account corresponding to the first instant application is an account logged in the first instant application, and the account corresponding to the second instant application is an account logged in the second instant application, that is, the interworking group includes both the account logged in the first instant application and the account logged in the second instant application.
Step 606, sending the group nickname setting request of the first account to the server according to the group nickname setting operation.
Alternatively, the manner of receiving the group nickname setting operation and transmitting the group nickname setting request to the server may include any one of the following manners:
firstly, a user selects a group nickname setting control and then triggers the group nickname setting operation in a chat information setting interface of an intercommunication group in a first instant messaging application;
secondly, when the first account newly joins the intercommunication group, the group nickname setting operation is automatically triggered, and a group nickname setting signal is sent to the server;
and thirdly, the nickname template in the intercommunication group is changed, and when the first account enters the group chat interface of the intercommunication group for the first time after the nickname template in the intercommunication group is changed, the group nickname setting operation is automatically triggered, and a group nickname setting signal is sent to the server.
Step 607, receiving the first nickname template sent by the server.
Optionally, the first nickname template is a template corresponding to the interworking group and stored in the server, and the first nickname template includes padding bits respectively corresponding to at least one padding keyword. Optionally, the nickname template may include a plurality of padding bits therein, each padding bit corresponding to a padding keyword.
Step 608 obtains the padding information corresponding to the first account.
Optionally, the filling information corresponds to a filling keyword.
And step 609, generating a group nickname of the first account in the intercommunication group according to the filling bit and the filling information.
Optionally, the filling information is filled into the filling bits according to the filling keywords, and the group nickname is generated.
Optionally, when the filling information sent by the server is information corresponding to the filling keywords, sequentially filling the filling information into the filling bits to generate the group nickname; when the filling information sent by the server comprises complete first account information or second account information, the terminal searches words which can be filled to the filling positions in the first account information or the second account information according to the filling keywords to fill, and then generates a group nickname of the first account in the intercommunication group.
Optionally, after a group nickname of the first account in the interworking group is generated according to the padding bit and the padding information, when a nickname modification operation is received, the group nickname may be modified according to the nickname modification operation, and the modified nickname is used as the group nickname of the first account in the interworking group.
It should be noted that, when the first account is an administrator account in the interworking group, the administrator client performs the steps 605 to 609, and when the first account is not an administrator account in the interworking group, the group member client corresponding to the first account performs the steps 605 to 609.
To sum up, according to the nickname generating method in the chat group provided in the embodiment of the present application, the first nickname template corresponding to the interworking group and the filling information corresponding to the first account stored in the server are obtained, and the group nickname of the first account in the interworking group is generated according to the filling bit in the first nickname template and the filling information, so that the accurate group nickname corresponding to the first account can be generated without setting by the user in a manual input manner, the setting manner of the group nickname is relatively convenient, the operation steps are few, and the generated nickname is accurate.
In the method provided by this embodiment, the first nickname template is set through the template setting interface, the first nickname template provides a filling keyword corresponding to the filling information obtained by the terminal from the server, the group nickname of the first account in the interworking group is generated according to the filling information and the filling bits in the first nickname template, and the accurate group nickname corresponding to the first account can be generated without the need for the user to manually input the group nickname, the setting mode of the group nickname is relatively convenient, the number of operation steps is small, and the generated nickname is accurate.
In an alternative embodiment, the server may not store the first nickname template corresponding to the interworking group, or the server may not store the padding information. Fig. 8 is a flowchart of a method for generating nicknames in a chat group according to another exemplary embodiment of the present application, where as shown in fig. 8, the method includes:
step 801, receiving a nickname setting operation for a first account in an interworking group.
Optionally, accounts from different types of instant-through applications exist in the interworking group, and the different types of instant-through applications include at least a first instant-through application and a second instant-through application which have an account interworking relationship.
Optionally, the group nickname setting operation is an operation of setting a group nickname of the first account registered in the first instant messaging application in the interworking group.
Optionally, the interworking group includes an account corresponding to the first instant messaging application and an account corresponding to the second instant messaging application. Optionally, the account corresponding to the first instant application is an account logged in the first instant application, and the account corresponding to the second instant application is an account logged in the second instant application, that is, the interworking group includes both the account logged in the first instant application and the account logged in the second instant application.
And step 802, sending a nickname setting request of the first account to the server according to the nickname setting operation.
Alternatively, the manner of receiving the group nickname setting operation and transmitting the group nickname setting request to the server may include any one of the following manners:
firstly, a user selects a group nickname setting control and then triggers the group nickname setting operation in a chat information setting interface of an intercommunication group in a first instant messaging application;
secondly, when the first account newly joins the intercommunication group, the group nickname setting operation is automatically triggered, and a group nickname setting signal is sent to the server;
and thirdly, the nickname template in the intercommunication group is changed, and when the first account enters the group chat interface of the intercommunication group for the first time after the nickname template in the intercommunication group is changed, the group nickname setting operation is automatically triggered, and a group nickname setting signal is sent to the server.
Step 803, it is determined that the first nickname template corresponding to the interworking group is not stored in the server.
Optionally, the target group may be a group established in the second instant application, or may be a group established in the first instant application.
Optionally, after receiving the nickname setting request sent by the terminal, the server returns a template vacancy signal to the server, where the template vacancy signal is used to indicate that the interworking group does not store the corresponding first nickname template in the server.
Optionally, the second account is an account logged in the second instant messaging application, the first account and the second account are two accounts bound to each other, and the nickname of the second account in the target group is a target nickname. Optionally, after determining the second account bound to the first account, the server determines whether a group nickname is set in a target group of the second instant messaging application for the second account, and when the target nickname is set in the target group for the second account, the server sends the target nickname to the first instant messaging application of the terminal.
Optionally, a server may also be used to obtain chat groups in which the second account joins in the second instant messaging application, select to obtain nickname template information of each chat group, determine whether a target group in which the second account is located corresponds to the second nickname template according to the nickname template information, and obtain the target nickname when the target group does not store the second nickname template in the server.
Step 804, acquiring the target nickname of the second account in the target group as the group nickname of the first account in the intercommunication group.
Optionally, before receiving the target nickname as the group nickname of the first account, the server may further obtain the account set in the target group, and when it is determined that the number of the coinciding accounts in the interworking group and the target group exceeds the preset number, obtain, by the server, the target nickname of the second account in the target group as the group nickname of the first account in the interworking group. Wherein, the coincident account is an account existing in both the intercommunication group and the target group; or, the coincident account is an account which exists in the intercommunication group and an account which is bound with the account exists in an account of the target group.
Optionally, the number of the overlapping accounts in the interworking group and the target group may be obtained by the server and then sent to the first instant application of the terminal.
Optionally, when the number of the coincident accounts of at least two target groups and the interworking group exceeds a preset number, a second group with the largest number of the coincident accounts is determined from the at least two target groups, and the nickname of the second account in the second group is used as the group nickname of the first account in the interworking group.
Optionally, when the number of the coincident accounts in at least two target groups and the interworking group exceeds the preset number, a third group with the highest similarity to the members in the interworking group may be determined from the at least two target groups, and the nickname of the second account in the third group is used as the group nickname of the first account in the interworking group.
Step 805, when the server does not store the filling information, receiving a filling operation.
Optionally, when the terminal receives the first nickname template sent by the server, but does not receive the padding information sent by the server, it is determined that the padding information is not stored in the server.
Optionally, when the first account is an account logged in the first instant messaging application and the first account is not a second account bound to the first account, or when second account information is not set in the second account bound to the first account, it is determined that the server does not store the padding information.
Optionally, when the first account is an account logged in the second instant messaging application and the first account is not provided with the first account information, it is determined that the server does not store the padding information.
Optionally, the padding operation is for padding at least one padding bit in the first nickname template.
At step 806, a group nickname is generated based on the padding operation.
Referring to fig. 9, schematically, a group nickname setting area 92 is displayed in a chat information display interface 91 of the group chat a, and after the user selects the group nickname setting area 92, a nickname setting interface 93 is displayed, where the nickname setting interface 93 includes two filling bits, a filling keyword corresponding to the filling bit 94 is an enterprise, and a filling keyword corresponding to the filling bit 95 is a name, and then, after the user inputs and clicks a confirmation control 96 in the filling bit 94 and the filling bit 95, a group nickname of the first account in the interworking group is generated.
Alternatively, the embodiment corresponding to fig. 8 may be implemented in combination with the embodiments corresponding to fig. 3 and fig. 6.
To sum up, according to the nickname generating method in the chat group provided in the embodiment of the present application, when neither the interworking group nor the target group has a nickname template, the target nickname of the second account in the target group is used as the group nickname of the first account in the interworking group, and the accurate group nickname corresponding to the first account can be generated without the user manually inputting the group nickname, so that the setting manner of the group nickname is relatively convenient, the operation steps are few, and the generated nickname is accurate.
Fig. 10 is a flowchart of a nickname generation method in a chat group according to another exemplary embodiment of the present application, which is described by taking an application of the method in the system shown in fig. 2 as an example, and includes:
step 1010, a chat group is determined.
Optionally, the determining of the chat group refers to determining whether the chat group is an interworking group.
Step 1020, when the chat group is an interworking group, determining an identity of the first account.
Optionally, the determining the identity of the first account refers to determining whether the first account is an administrator of the interworking group.
Step 1030, when the chat group is not an interworking group, maintaining the nickname setting method in the first instant messaging application.
Optionally, the nickname setting mode of the first instant-through application is that the user freely sets the nickname in the group.
Step 1040, when the first account is an administrator in the interworking group, setting a nickname template.
And 1050, when the first account is not the administrator, setting a nickname according to the nickname template set by the administrator.
Step 1060, when the first account sets up the nickname template of the intercommunication group, the members in the intercommunication group generate nicknames according to the nickname template set up by the first account.
Optionally, the filling bits in the nickname are filled by the first account information or the second account information stored in the server.
Step 1070, when the nickname template is not set in the first account, the members of the intercommunication group define the nickname by themselves.
Schematically, taking the interaction between the x-letter client and the enterprise x-letter client and the server as an example for explanation, as shown in fig. 11, fig. 11 is a flowchart of a nickname generation method in a chat group according to another exemplary embodiment of the present application, where the method includes:
step 1101, the enterprise x-mail client sends account information to the server.
Optionally, the account information is information that the second account bound to the first account is set in the enterprise x-mail client, or the account information is information that the first account is set in the enterprise x-mail client.
In step 1102, the x-mail client acquires an instruction of modifying the nickname template by the administrator.
And 1103, the x-mail client sends a nickname modification instruction to the server.
In step 1104, the server sends the nickname template to the x-letter client.
And 1105, the x-mail client side sets a nickname according to the template to generate the nickname or when no template exists.
Optionally, when the x-letter client generates the nickname according to the template, the server acquires second account information set in the enterprise x-letter client by the second account to generate the group nickname, or acquires first account information set in the enterprise x-letter client by the first account to generate the group nickname.
Step 1106, the x-mail client sends the group nickname to the server.
In step 1107, the server stores the group nickname.
In step 1108, the x-mail client obtains the nicknames of other members in the group from the server and displays the nicknames.
Optionally, the nickname of the group sent by the x-mail client to the server is acquired from the server by other members and is displayed as the nickname of the first account in the group.
Step 1109, the enterprise x-mail client obtains the command of the administrator for modifying the nickname template.
Step 1110, the enterprise x-mail client sends a nickname modification instruction to the server.
And 1111, the server sends the nickname template to the enterprise x-mail client.
And step 1112, the enterprise x-mail client sets the nickname when generating the nickname or having no template according to the template.
And step 1113, the enterprise x-letter client sends the group nickname to the server.
In step 1114, the enterprise x-mail client obtains the nicknames of other members in the group from the server and displays them.
To sum up, according to the nickname generating method in the chat group provided in the embodiment of the present application, by obtaining the filling information and obtaining the first nickname template stored in the server and corresponding to the interworking group, the group nickname of the first account in the interworking group is generated according to the filling information and the filling bits in the first nickname template, and the accurate group nickname corresponding to the first account can be generated without the user manually inputting the group nickname, the setting manner of the group nickname is relatively convenient, the operation steps are few, and the generated nickname is accurate.
Fig. 12 is a block diagram illustrating a structure of an apparatus for generating a nickname in a chat group according to an exemplary embodiment of the present invention, where the apparatus may be implemented in a terminal 21 shown in fig. 2, and as shown in fig. 12, the apparatus includes: a receiving module 1210, a sending module 1220, an obtaining module 1230 and a generating module 1240;
a receiving module 1210, configured to receive a group nickname setting operation on a first account in an interworking group, where accounts from different types of instant messaging applications exist in the interworking group, and the different types of instant messaging applications at least include a first instant messaging application and a second instant messaging application that have an account interworking relationship;
a sending module 1220, configured to send a group nickname setting request of the first account to a server according to the group nickname setting operation;
the receiving module 1210 is further configured to receive a first nickname template sent by the server, where the first nickname template is a template stored in the server and corresponding to the interworking group, and the first nickname template includes padding bits respectively corresponding to at least one padding keyword;
an obtaining module 1230, configured to obtain filling information corresponding to the first account, where the filling information corresponds to the filling keyword;
a generating module 1240, configured to generate the group nickname of the first account in the interworking group according to the padding bits and the padding information.
In an optional embodiment, the first account is logged in the second instant-on application;
the obtaining module 1230 is further configured to receive first account information corresponding to the first account sent by the server, where the first account information includes the filling information;
the device, still include:
a determining module 1250, configured to determine the filling information from the first account information according to the filling keyword.
In an optional embodiment, the first account is logged in the first instant application, the second instant application is logged in a second account, and the first account and the second account are two accounts bound to each other;
the obtaining module 1230 is further configured to receive second account information corresponding to the second account sent by the server, where the second account information includes the filling information;
the determining module 1250 is configured to determine the filling information from the second account information corresponding to the second account according to the filling keyword.
In an optional embodiment, the nickname of the second account in the target group is a target nickname;
the determining module 1250 is further configured to determine that the first nickname template corresponding to the interworking group is not stored in the server;
the obtaining module 1230 is further configured to obtain the target nickname of the second account in the target group as the group nickname of the first account in the interworking group.
In an optional embodiment, the determining module 1250 is further configured to determine that the number of the coincident accounts in the interworking group and the target group exceeds a preset number;
wherein, the coincident account is an account existing in both the intercommunication group and the target group; or, the coincident account is an account which exists in the intercommunication group and a bound account exists in the target group.
In an optional embodiment, the determining module 1250 is further configured to determine, when there are at least two target groups and the number of coinciding accounts of the interworking group exceeds a preset number, a second group with the largest number of coinciding accounts from the at least two target groups;
the determining module 1250 is further configured to use the nickname of the second account in the second group as the group nickname of the first account in the interworking group.
In an optional embodiment, the receiving module 1210 is further configured to receive a padding operation when the padding information is not stored in the server, where the padding operation is configured to pad the at least one padding bit in the first nickname template;
the generating module 1240 is further configured to generate the group nickname according to the padding operation.
In an optional embodiment, the apparatus further comprises:
a display module 1260, configured to display a template setting interface, where the template setting interface is used to set the first nickname template in the interworking group, and the template setting interface includes at least one keyword setting area;
a receiving module 1210, configured to receive a keyword input operation in the keyword setting area, where the keyword input operation is used to input the filling keyword corresponding to the filling position;
a determining module 1250 configured to determine the first nickname template according to the keyword input operation;
the sending module 1220 is further configured to send the first nickname template to the server, where the server is configured to store the first nickname template and the interworking group in a corresponding manner.
It should be noted that the receiving module 1210, the sending module 1220, the obtaining module 1230, the generating module 1240, the determining module 1250 and the displaying module 1260 in the above embodiments may be implemented by a processor or by a combination of a processor and a memory.
Fig. 14 shows a block diagram of a terminal 1400 according to an exemplary embodiment of the present invention. The terminal 1400 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1400 can also be referred to as user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other names.
In general, terminal 1400 includes: a processor 1401, and a memory 1402.
Processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1401 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, processor 1401 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1402 may include one or more computer-readable storage media, which may be non-transitory. Memory 1402 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1402 is used to store at least one instruction for execution by processor 1401 to implement the nickname generation method in a chat group provided by the method embodiments herein.
In some embodiments, terminal 1400 may further optionally include: a peripheral device interface 1403 and at least one peripheral device. The processor 1401, the memory 1402, and the peripheral device interface 1403 may be connected by buses or signal lines. Each peripheral device may be connected to the peripheral device interface 1403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1404, a touch display 1405, a camera 1406, audio circuitry 1407, a positioning component 1408, and a power supply 1409.
The peripheral device interface 1403 can be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, memory 1402, and peripheral interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 1401, the memory 1402, and the peripheral device interface 1403 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1404 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 1404 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1404 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1404 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1405 is used to display a UI (user interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 also has the ability to capture touch signals at or above the surface of the display screen 1405. The touch signal may be input to the processor 1401 for processing as a control signal. At this point, the display 1405 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 1405 may be one, providing the front panel of the terminal 1400; in other embodiments, display 1405 may be at least two, respectively disposed on different surfaces of terminal 1400 or in a folded design; in still other embodiments, display 1405 may be a flexible display disposed on a curved surface or on a folded surface of terminal 1400. Even further, the display 1405 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display 1405 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 1406 is used to capture images or video. Optionally, camera assembly 1406 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1406 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1401 for processing or inputting the electric signals to the radio frequency circuit 1404 to realize voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is then used to convert electrical signals from the processor 1401 or the radio frequency circuit 1404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1407 may also include a headphone jack.
The positioning component 1408 serves to locate the current geographic position of the terminal 1400 for navigation or LBS (Location Based Service). The Positioning component 1408 may be based on the Positioning component of the GPS (Global Positioning System) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 1409 is used to power the various components of terminal 1400. The power source 1409 may be alternating current, direct current, disposable or rechargeable. When the power source 1409 comprises a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1400 also includes one or more sensors 1410. The one or more sensors 1410 include, but are not limited to: acceleration sensor 1411, gyroscope sensor 1412, pressure sensor 1413, fingerprint sensor 1414, optical sensor 1415, and proximity sensor 1416.
The acceleration sensor 1411 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the terminal 1400. For example, the acceleration sensor 1411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1401 can control the touch display 1405 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1411. The acceleration sensor 1411 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 1412 may detect a body direction and a rotation angle of the terminal 1400, and the gyro sensor 1412 and the acceleration sensor 1411 may cooperate to collect a 3D motion of the user on the terminal 1400. The processor 1401 can realize the following functions according to the data collected by the gyro sensor 1412: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 1413 may be disposed on the side bezel of terminal 1400 and/or underlying touch display 1405. When the pressure sensor 1413 is disposed on the side frame of the terminal 1400, the user's holding signal of the terminal 1400 can be detected, and the processor 1401 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1413. When the pressure sensor 1413 is disposed at the lower layer of the touch display 1405, the processor 1401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 1405. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1414 is used for collecting a fingerprint of a user, and the processor 1401 identifies the user according to the fingerprint collected by the fingerprint sensor 1414, or the fingerprint sensor 1414 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 1401 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for, and changing settings, etc. Fingerprint sensor 1414 may be disposed on the front, back, or side of terminal 1400. When a physical button or vendor Logo is provided on terminal 1400, fingerprint sensor 1414 may be integrated with the physical button or vendor Logo.
The optical sensor 1415 is used to collect ambient light intensity. In one embodiment, processor 1401 can control the display brightness of touch display 1405 based on the ambient light intensity collected by optical sensor 1415. Specifically, when the ambient light intensity is high, the display luminance of the touch display 1405 is increased; when the ambient light intensity is low, the display brightness of the touch display 1405 is turned down. In another embodiment, the processor 1401 can also dynamically adjust the shooting parameters of the camera assembly 1406 according to the intensity of the ambient light collected by the optical sensor 1415.
Proximity sensor 1416, also known as a distance sensor, is typically disposed on the front panel of terminal 1400. The proximity sensor 1416 is used to collect the distance between the user and the front surface of the terminal 1400. In one embodiment, when proximity sensor 1416 detects that the distance between the user and the front face of terminal 1400 is gradually decreased, processor 1401 controls touch display 1405 to switch from a bright screen state to a dark screen state; when proximity sensor 1416 detects that the distance between the user and the front face of terminal 1400 is gradually increasing, processor 1401 controls touch display 1405 to switch from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 14 is not intended to be limiting with respect to terminal 1400 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (15)

1. A method for generating a nickname in a chat group, the method comprising:
receiving a group nickname setting operation on a first account in an interworking group, wherein the interworking group has accounts from different types of instant-through applications, and the different types of instant-through applications at least comprise a first instant-through application and a second instant-through application which have an account interworking relationship;
sending a group nickname setting request of the first account to a server according to the group nickname setting operation;
receiving a first nickname template sent by the server, wherein the first nickname template is a template which is stored in the server and corresponds to the intercommunication group, and the first nickname template comprises filling bits which respectively correspond to at least one filling keyword;
acquiring filling information corresponding to the first account, wherein the filling information corresponds to the filling keyword;
and generating the group nickname of the first account in the intercommunication group according to the filling bit and the filling information.
2. The method according to claim 1, wherein the first account is logged in the second instant-on application, and the acquiring the padding information corresponding to the first account comprises:
receiving first account information corresponding to the first account sent by the server, wherein the first account information comprises the filling information;
and determining the filling information from the first account information according to the filling keyword.
3. The method of claim 1, wherein the first account is logged in the first instant-on application, wherein the second instant-on application is logged in with a second account, and wherein the first account and the second account are two accounts bound to each other;
the acquiring the filling information corresponding to the first account includes:
receiving second account information corresponding to the second account sent by the server, wherein the second account information comprises the filling information;
and determining the filling information from the second account information corresponding to the second account according to the filling keyword.
4. The method of claim 3, wherein the nickname of the second account in the target group is a target nickname, the method further comprising:
determining that the first nickname template corresponding to the interworking group is not stored in the server;
and acquiring the target nickname of the second account in the target group as the group nickname of the first account in the intercommunication group.
5. The method of claim 4, wherein said obtaining the target nickname of the second account in the target group as the group nickname of the first account in the interworking group further comprises:
determining that the number of coincident accounts in the intercommunication group and the target group exceeds a preset number;
wherein, the coincident account is an account existing in both the intercommunication group and the target group; or, the coincident account is an account which exists in the intercommunication group and a bound account exists in the target group.
6. The method of claim 5, further comprising:
when the number of the coincident accounts of at least two target groups and the intercommunication group exceeds a preset number, determining a second group with the maximum number of the coincident accounts from the at least two target groups;
and taking the nickname of the second account in the second group as the group nickname of the first account in the intercommunication group.
7. The method of any of claims 1 to 6, further comprising:
when the padding information is not stored in the server, receiving a padding operation, wherein the padding operation is used for padding the at least one padding bit in the first nickname template;
and generating the group nickname according to the filling operation.
8. The method according to any one of claims 1 to 6, wherein before receiving the first nickname template sent by the server, the method further comprises:
displaying a template setting interface, wherein the template setting interface is used for setting the first nickname template in the intercommunication group, and the template setting interface comprises at least one keyword setting area;
receiving a keyword input operation in the keyword setting area, wherein the keyword input operation is used for inputting the filling keyword corresponding to the filling position;
determining the first nickname template according to the keyword input operation;
and sending the first nickname template to the server, wherein the server is used for correspondingly storing the first nickname template and the intercommunication group.
9. An apparatus for generating a nickname in a chat group, the apparatus comprising:
a receiving module, configured to receive a group nickname setting operation on a first account in an interworking group, where the interworking group has accounts from different types of instant messaging applications, and the different types of instant messaging applications at least include a first instant messaging application and a second instant messaging application that have an account interworking relationship;
a sending module, configured to send a group nickname setting request of the first account to a server according to the group nickname setting operation;
the receiving module is further configured to receive a first nickname template sent by the server, where the first nickname template is a template stored in the server and corresponding to the interworking group, and the first nickname template includes filling bits respectively corresponding to at least one filling keyword;
the acquisition module is used for acquiring filling information corresponding to the first account, and the filling information corresponds to the filling keyword;
and the generating module is used for generating the group nickname of the first account in the intercommunication group according to the filling bit and the filling information.
10. The apparatus of claim 9, wherein the first account is logged into the second instant-on application;
the acquisition module is further configured to receive first account information corresponding to the first account sent by the server, where the first account information includes the padding information;
the device, still include:
and the determining module is used for determining the filling information from the first account information according to the filling keyword.
11. The apparatus of claim 9, wherein the first account is registered in the first instant-on application, wherein the second instant-on application is registered with a second account, and wherein the first account and the second account are two accounts bound to each other;
the acquisition module is further configured to receive second account information corresponding to the second account sent by the server, where the second account information includes the padding information;
the device, still include:
and the determining module is used for determining the filling information from the second account information corresponding to the second account according to the filling keyword.
12. The apparatus of claim 11, wherein the nickname of the second account in the target group is a target nickname;
the determining module is further configured to determine that the first nickname template corresponding to the interworking group is not stored in the server;
the obtaining module is further configured to obtain the target nickname of the second account in the target group as the group nickname of the first account in the interworking group.
13. The apparatus of claim 12, wherein the determining module is further configured to determine that the number of overlapping accounts in the interworking group and the target group exceeds a preset number;
wherein, the coincident account is an account existing in both the intercommunication group and the target group; or, the coincident account is an account which exists in the intercommunication group and a bound account exists in the target group.
14. A server, comprising a processor and a memory, wherein the memory has stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by the processor to implement the nickname generation method in a chat group as recited in any of claims 1 to 8.
15. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the nickname generation method in a chat group as recited in any of claims 1 to 8.
CN201811296169.0A 2018-11-01 2018-11-01 Method and device for generating nickname in chat group and readable storage medium Active CN111131531B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811296169.0A CN111131531B (en) 2018-11-01 2018-11-01 Method and device for generating nickname in chat group and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811296169.0A CN111131531B (en) 2018-11-01 2018-11-01 Method and device for generating nickname in chat group and readable storage medium

Publications (2)

Publication Number Publication Date
CN111131531A CN111131531A (en) 2020-05-08
CN111131531B true CN111131531B (en) 2021-06-01

Family

ID=70494876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811296169.0A Active CN111131531B (en) 2018-11-01 2018-11-01 Method and device for generating nickname in chat group and readable storage medium

Country Status (1)

Country Link
CN (1) CN111131531B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709022B (en) * 2020-05-22 2024-02-02 腾讯科技(深圳)有限公司 Message interaction method, device, equipment and storage medium
CN111970192B (en) * 2020-08-25 2021-11-09 腾讯科技(深圳)有限公司 Information editing method and device based on session group
CN111984167B (en) * 2020-09-08 2023-11-28 聚好看科技股份有限公司 Quick naming method and display device
CN112383468A (en) * 2020-11-12 2021-02-19 火生旭 Nickname naming method
CN114285814B (en) * 2021-12-27 2024-05-31 维沃移动通信有限公司 Chat parameter setting method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8433762B1 (en) * 2009-11-20 2013-04-30 Facebook Inc. Generation of nickname dictionary based on analysis of user communications
CN106357667A (en) * 2016-10-10 2017-01-25 广东欧珀移动通信有限公司 Account number management method, device and intelligent terminal of twin application in multi-launching application
CN107577655A (en) * 2016-07-05 2018-01-12 北京国双科技有限公司 Name acquiring method and apparatus
CN108595395A (en) * 2018-03-21 2018-09-28 阿里巴巴集团控股有限公司 A kind of generation method of the pet name, device and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8433762B1 (en) * 2009-11-20 2013-04-30 Facebook Inc. Generation of nickname dictionary based on analysis of user communications
CN107577655A (en) * 2016-07-05 2018-01-12 北京国双科技有限公司 Name acquiring method and apparatus
CN106357667A (en) * 2016-10-10 2017-01-25 广东欧珀移动通信有限公司 Account number management method, device and intelligent terminal of twin application in multi-launching application
CN108595395A (en) * 2018-03-21 2018-09-28 阿里巴巴集团控股有限公司 A kind of generation method of the pet name, device and equipment

Also Published As

Publication number Publication date
CN111131531A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN111131531B (en) Method and device for generating nickname in chat group and readable storage medium
CN112947823B (en) Session processing method, device, equipment and storage medium
CN110278464B (en) Method and device for displaying list
WO2022227623A1 (en) Method for displaying publish progress, and electronic device
CN113098755B (en) Group chat creating method, device, terminal and storage medium
CN110109608B (en) Text display method, text display device, text display terminal and storage medium
CN110147503B (en) Information issuing method and device, computer equipment and storage medium
CN112751679A (en) Instant messaging message processing method, terminal and server
CN112163406A (en) Interactive message display method and device, computer equipment and storage medium
CN112764608A (en) Message processing method, device, equipment and storage medium
CN111106997B (en) Message reminding method, device, equipment and storage medium
CN112311661B (en) Message processing method, device, equipment and storage medium
CN112770177B (en) Multimedia file generation method, multimedia file release method and device
CN111064657B (en) Method, device and system for grouping concerned accounts
CN112988254B (en) Method, device and equipment for managing hardware equipment
CN113709020A (en) Message sending method, message receiving method, device, equipment and medium
CN110958173A (en) Mail sending method, device, equipment and storage medium
CN114143280B (en) Session display method and device, electronic equipment and storage medium
CN110708582B (en) Synchronous playing method, device, electronic equipment and medium
CN114140105A (en) Resource transfer method, device, equipment and computer readable storage medium
CN113485596A (en) Virtual model processing method and device, electronic equipment and storage medium
CN113051494A (en) Information display method and device, electronic equipment and storage medium
CN114546188A (en) Interaction method, device and equipment based on interaction interface and readable storage medium
CN112116682B (en) Method, device, equipment and system for generating cover picture of information display page
CN112291133A (en) Method, device, equipment and medium for sending files across terminals

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant