CN111431792A - Group head portrait generation method and device, electronic equipment and storage medium - Google Patents
Group head portrait generation method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111431792A CN111431792A CN202010183284.8A CN202010183284A CN111431792A CN 111431792 A CN111431792 A CN 111431792A CN 202010183284 A CN202010183284 A CN 202010183284A CN 111431792 A CN111431792 A CN 111431792A
- Authority
- CN
- China
- Prior art keywords
- group
- head portrait
- remark
- avatar
- generating
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 105
- 238000004891 communication Methods 0.000 claims abstract description 107
- 238000012217 deletion Methods 0.000 claims description 16
- 230000037430 deletion Effects 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 2
- 230000015654 memory Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application provides a group head portrait generation method, a group head portrait generation device, electronic equipment and a storage medium, which are applied to terminal equipment, wherein the terminal equipment comprises a communication client, and the generation method comprises the following steps: after a communication client is started, judging whether a group in the communication client has a corresponding remark group head portrait or not; wherein, the remark group head portrait is used for replacing a public group head portrait corresponding to the group; the public group head portrait is a group head portrait used for being displayed in a communication client of each member in the group; and if so, acquiring a remark group head portrait corresponding to the group, and taking the remark group head portrait as the group head portrait of the group displayed in the communication client. According to the method and the device, the group head portrait of the group can be set individually, the flexibility of group management is improved, and a user can distinguish different groups conveniently.
Description
Technical Field
The present application relates to the field of group communication technologies, and in particular, to a method and an apparatus for generating a group avatar, an electronic device, and a storage medium.
Background
With the popularization and application of the internet, more and more internet products are applied, such as a chat tool, which is also an Instant Messaging (IM) tool, and the IM tool transmits chat information such as voice, text, pictures, videos and the like among different users based on the internet to realize chat communication among different users.
At present, in the process of chatting based on the IM tool, a group can be created in the IM tool, and related users are added into the group, so that all group members in the group can communicate with each other, and the communication efficiency among a plurality of users is improved. Each user can join into a plurality of groups, and each group can be configured with a corresponding group head portrait, so that the users can distinguish different groups.
However, after the group head portrait is configured for each group, the group head portraits displayed in the IM tool of each group member in the group are configured fixed head portraits, which makes the group member have poor management flexibility for the group, and further causes low management efficiency.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method and an apparatus for generating a group avatar, an electronic device, and a storage medium, which can perform personalized setting on the group avatar of each group in a communication client, improve flexibility of group management, and facilitate users to distinguish different groups.
In a first aspect, an embodiment of the present application provides a method for generating a group avatar, where the method is applied to a terminal device, where the terminal device includes a communication client, and the method includes:
after a communication client is started, judging whether a group in the communication client has a corresponding remark group head portrait or not; wherein, the remark group head portrait is used for replacing a public group head portrait corresponding to the group; the public group head portrait is a group head portrait used for being displayed in a communication client of each member in the group;
and if so, acquiring a remark group head portrait corresponding to the group, and taking the remark group head portrait as the group head portrait of the group displayed in the communication client.
In a possible implementation manner, the determining whether a group in the communication client has a corresponding remark group avatar includes:
acquiring first updating time corresponding to the group, wherein the first updating time is the time for updating the head portrait of the remark group of the group at the latest time;
judging whether second updating time corresponding to the locally stored remark group head portrait of the group is the same as the first updating time or not;
and if the second updating time is different from the first updating time, determining that the group has a corresponding remark group head portrait.
In a possible implementation manner, after the remark group avatar is used as the group avatar of the group displayed in the communication client, the generating method further includes:
updating the second update time based on the first update time.
In a possible implementation manner, the obtaining the first update time corresponding to the group includes:
and acquiring the first updating time corresponding to the group from the server.
In a possible implementation manner, before obtaining the first update time corresponding to the group, the generating method further includes:
responding to the head portrait setting operation aiming at the group, and acquiring the remark group head portrait corresponding to the group selected by the head portrait setting operation;
sending the remark group head portrait corresponding to the group to the server; the remark group head portrait corresponding to the group is used for the server to determine first updating time corresponding to the group.
In a possible implementation manner, the obtaining the first update time corresponding to the group includes:
and acquiring a first updating time corresponding to the locally stored group.
In a possible implementation manner, before obtaining the first update time corresponding to the group, the generating method further includes:
responding to the head portrait setting operation aiming at the group, and acquiring the remark group head portrait corresponding to the group selected by the head portrait setting operation;
and taking the remark group head portrait as the group head portrait of the group displayed in the communication client, and recording the first updating time corresponding to the group.
In one possible implementation, the avatar setting operation includes any one of the following operations:
a first setting operation for a session window of the group;
a second setting operation for a session identification of the group.
In a possible implementation manner, the obtaining the remark group head portrait corresponding to the group includes:
acquiring a remark group head portrait corresponding to the group from a server;
or,
and acquiring the remark group head portrait corresponding to the group from the terminal equipment.
In a possible embodiment, the using the remark group avatar as the group avatar shown in the communication client includes:
and replacing the public group head portrait corresponding to the group based on the remark group head portrait corresponding to the group.
In a possible implementation manner, the replacing the public group avatar corresponding to the group based on the remark group avatar corresponding to the group includes:
deleting the public group head portrait stored in the storage path corresponding to the group;
and storing the remark group head portrait corresponding to the group into the storage path.
In a possible implementation, the generating method further includes:
responding to the head portrait deletion operation aiming at the group, and acquiring a public group head portrait corresponding to the group;
and replacing the remark group head portrait corresponding to the group based on the public group head portrait.
In a possible implementation manner, the obtaining the public group head portrait corresponding to the group includes:
acquiring a public group head portrait corresponding to the group from a server;
or,
and acquiring a locally stored public group head portrait corresponding to the group.
In a possible implementation, the replacing the remark group avatar corresponding to the group based on the public group avatar includes:
and deleting the remark group head portrait stored in the storage path corresponding to the group, and storing the public group head portrait in the storage path.
In one possible implementation, the avatar deletion operation includes any one of the following operations:
a third setting operation for a session window of the group;
a fourth setting operation for a session identification of the group.
In a possible implementation, the generating method further includes:
and deleting the first updating time corresponding to the locally stored group in response to the head portrait deletion operation aiming at the group.
In a possible implementation, the generating method further includes:
and responding to the head portrait deletion operation aiming at the group, and deleting the locally stored remark group head portrait corresponding to the group.
In a second aspect, an embodiment of the present application further provides a method for generating a group avatar, which is applied to a server, and the method includes:
receiving a remark group head portrait corresponding to a target group sent by a first terminal device;
and after detecting that the head portrait of the remark group meets the preset condition, determining the head portrait of the remark group as the updated head portrait of the remark group of the target group, and recording the updating time corresponding to the target group.
In a possible implementation, the generating method further includes:
after receiving a first request carrying a target group identifier sent by the first terminal device or other terminal devices, acquiring update time corresponding to the target group identifier based on the first request, and returning the update time to the first terminal device or other terminal devices;
after receiving a second request carrying the target group identifier sent by the first terminal device or other terminal devices, acquiring a remark group head portrait corresponding to the target group identifier based on the second request, and returning the remark group head portrait to the first terminal device or other terminal devices.
In a possible implementation, the generating method further includes:
after receiving a third request carrying the target group identifier sent by the first terminal device or other terminal devices, acquiring a public group avatar corresponding to the target group identifier based on the third request; wherein the public group avatar is a group avatar to be displayed in a communication client of each member in the target group;
and returning the public group head portrait to the first terminal equipment or other terminal equipment, and deleting the updating time corresponding to the target group identification.
In a possible implementation, the generating method further includes:
and deleting the remark group head portrait corresponding to the target group identification based on the third request.
In a third aspect, an embodiment of the present application further provides a device for generating a group avatar, where the device resides in a terminal device, and the terminal device includes a communication client, and the device includes:
the judging module is used for judging whether a group in the communication client has a corresponding remark group head portrait or not after the communication client is started; wherein, the remark group head portrait is used for replacing a public group head portrait corresponding to the group; the public group head portrait is a group head portrait used for being displayed in a communication client of each member in the group;
the obtaining module is used for obtaining a remark group head portrait corresponding to a group in the communication client if the group is judged to have the corresponding remark group head portrait;
and the determining module is used for taking the remark group head portrait as the group head portrait of the group displayed in the communication client.
In a fourth aspect, an embodiment of the present application further provides a device for generating a group avatar, where the device includes:
the receiving module is used for receiving the remark group head portrait corresponding to the target group sent by the first terminal equipment;
the determining module is used for determining the remark group head portrait as the remark group head portrait updated by the target group after detecting that the remark group head portrait meets the preset condition;
and the recording module is used for recording the updating time corresponding to the target group.
In a fifth aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the storage medium communicate with each other through the bus, and the processor executes the machine-readable instructions to execute the steps of the group avatar generation method according to any one of the first aspect.
In a sixth aspect, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for generating a group avatar according to any one of the first aspects are performed.
In a seventh aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the steps of the group avatar generation method according to any one of the second aspect.
In an eighth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the group avatar generation method according to any one of the second aspects.
According to the method, the device, the electronic equipment and the storage medium for generating the group head portrait, after the communication client is started, whether a group in the communication client has a corresponding remark group head portrait or not is judged, and the remark group head portrait is used for replacing a public group head portrait corresponding to the group; if the group has the remark group head portrait, acquiring the remark group head portrait corresponding to the group, and taking the remark group head portrait as the group head portrait of the group displayed in the communication client; by the method, the user can set the head portrait of the group individually, so that the flexibility of group management is improved, and the user can distinguish different groups conveniently.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart illustrating a method for generating a group avatar according to an embodiment of the present application;
fig. 2a is a flowchart illustrating another group avatar generation method according to an embodiment of the present disclosure;
FIG. 2b shows a schematic diagram of a correspondent client and a group in the correspondent client displayed in a graphical user interface;
fig. 2c shows a diagram of a session window of a group and a specific identification in the session window;
FIG. 2d shows a schematic diagram of a setup window and specific options in the setup window;
fig. 3 is a flowchart illustrating another group avatar generation method according to an embodiment of the present application;
fig. 4 is a flowchart illustrating another group avatar generation method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating another group avatar generation method according to an embodiment of the present application;
fig. 6 is a flowchart illustrating another group avatar generation method according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram illustrating a group head image generating apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram illustrating a group head image generating apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 10 shows a schematic structural diagram of another electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
At present, a group contained in an Instant Messaging (IM) tool corresponds to a pre-configured group avatar, and the group avatar displayed in the IM tool of each group member in the group is a configured fixed avatar, which makes the group member have poor management flexibility on the group, and further results in low management efficiency.
Based on this, the embodiment of the application provides a group avatar generation method, a device, an electronic device and a storage medium, which can perform personalized setting on the group avatar of each group in a communication client, improve the flexibility of group management, and facilitate a user to distinguish different groups.
As shown in fig. 1, a first embodiment of the present application provides a method for generating a group avatar, which is applied to a terminal device, where the terminal device may be an electronic device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, and a vehicle-mounted device, and the method for generating the group avatar includes:
s101, after a communication client is started, judging whether a group in the communication client has a corresponding remark group head portrait or not; wherein, the remark group head portrait is used for replacing a public group head portrait corresponding to the group; the public group avatar is a group avatar for presentation in the communication clients of each member of the group.
And S102, if so, acquiring a remark group head portrait corresponding to the group, and taking the remark group head portrait as the group head portrait of the group displayed in the communication client.
According to the method for generating the group head portrait, the user can set the group head portrait of each group in the communication client in a personalized mode, the flexibility of group management is improved, and the user can distinguish different groups conveniently.
The above exemplary steps provided by the embodiments of the present application are described below:
s101, after a communication client is started, judging whether a group in the communication client has a corresponding remark group head portrait or not; wherein, the remark group head portrait is used for replacing a public group head portrait corresponding to the group; the public group avatar is a group avatar for presentation in the communication clients of each member of the group.
In the embodiment of the present application, the communication client includes one or more groups, each group corresponds to one public group avatar, and the public group avatar is a group avatar displayed in the communication clients of the members in the group. When the head portrait of each group is not set by each member in each group, the head portraits seen by the members in the group are the public head portraits, that is, the head portraits seen by the members in the group are the same head portrait.
Here, the public group icon may be an automatically generated group icon (for example, a group icon automatically generated for a server corresponding to the communication client), or a group icon set by a creator of the group or an administrator of the group.
Optionally, the communication client is Instant Messaging (IM) software, for example, chat software such as internet POPO and Instant messenger.
In an embodiment, for each group, the terminal device may determine whether the group has a corresponding remark group avatar based on a first update time of a latest updated remark group avatar corresponding to the group and a second update time of the locally stored remark group avatar corresponding to the group, and determine that the group has the corresponding remark group avatar if the first update time and the second update time are different.
After a communication client in the terminal equipment logs in each time, the second updating time of the remark group head portrait corresponding to the group in the locally stored communication client is 0; and aiming at each group, after the communication client logs in again each time, if the first updating time corresponding to the group in the communication client is not 0, determining that the group has a corresponding remark group head portrait.
And S102, if so, acquiring a remark group head portrait corresponding to the group, and taking the remark group head portrait as the group head portrait of the group displayed in the communication client.
In one embodiment, a remark group head portrait corresponding to each group is stored in a server in advance; and aiming at each group, when the terminal equipment determines that the group has the corresponding remark group head portrait, acquiring the remark group head portrait corresponding to the group from the server.
In another embodiment, the terminal device locally pre-stores the remark group head images corresponding to each group; and aiming at each group, after the terminal equipment determines that the group has the corresponding remark group head portrait, acquiring the locally stored remark group head portrait corresponding to the group.
Wherein the group header for each group corresponds to a unique storage path. And for each group, after acquiring the remark group head portrait corresponding to the group, the terminal equipment stores the remark group head portrait into a storage path corresponding to the group, so that the remark group head portrait is used as the group head portrait of the group displayed in the communication client.
According to the method for generating the group head portrait, the user can set the group head portrait of the group in the communication client in a personalized mode, the flexibility of group management is improved, and the user can distinguish different groups conveniently.
Further, as shown in fig. 2a, in the method for generating a group avatar provided in the embodiment of the present application, the determining whether a group in the communication client has a corresponding remark group avatar includes:
s201, acquiring first updating time corresponding to the group, wherein the first updating time is the time of updating the head portrait of the remark group of the group at the latest time.
In one embodiment, the server stores first update time corresponding to each group in advance, and the terminal device acquires the first update time corresponding to each group from the server.
In another embodiment, the terminal device locally pre-stores the first update time corresponding to each group, and the terminal device obtains the locally stored first update time corresponding to each group.
In the embodiment of the application, the terminal device obtains the first update time corresponding to each group from the server every preset time (i.e., in each detection period), or obtains the locally stored first update time corresponding to each group. Optionally, the preset time (i.e., the detection period) may be set as needed, for example, set to 1s, 2s, and the like.
S202, judging whether second updating time corresponding to the locally stored remark group head portrait of the group is the same as the first updating time.
In the embodiment of the application, the terminal device locally stores the second updating time corresponding to the remark group head images of each group. And after the communication client logs in each time, the second updating time of the remark group head portrait corresponding to the group in the locally stored communication client is 0.
S203, if the second updating time is different from the first updating time, determining that the group has the corresponding remark group head portrait.
In the embodiment of the application, after the communication client logs in, the second updating time of the remark group head portrait corresponding to each group in the communication client which is locally stored is 0; and aiming at each group, if the first updating time corresponding to the group is not 0, the second updating time is different from the first updating time, and the group is determined to have a corresponding remark group head portrait.
After determining that the group has the corresponding remark group avatar, acquiring the remark group avatar corresponding to the group, and using the remark group avatar as the group avatar displayed in the communication client, and then updating the second update time by the terminal device based on the first update time, that is, using the first update time as a new second update time.
In the next detection period, for each group, if the second update time corresponding to the group is the same as the first update time, it is determined that the group does not have the corresponding remark group avatar.
In the embodiment of the application, a user performs an avatar setting operation on a group in a communication client, and based on the avatar setting operation of the user, a remark group avatar corresponding to the group is created in a server or a terminal device, and a first update time corresponding to the group is obtained. The following respectively describes the process of creating the remark group head portrait corresponding to the group and creating the first update time corresponding to the group by the server and the terminal device:
firstly, a process that a server creates a remark group head portrait corresponding to the group and creates a first updating time corresponding to the group is as follows: before obtaining the first update time corresponding to the group, the generating method further includes:
a. and responding to the head portrait setting operation aiming at the group, and acquiring the remark group head portrait corresponding to the group selected by the head portrait setting operation.
In the embodiment of the present application, the avatar setting operation includes any one of the following operations: a first setting operation for a session window of the group; a second setting operation for a session identification of the group.
In one embodiment, the avatar setting operation may include a first setting operation for a conversation window of the group;
as shown in fig. 2b, 2c and 2d, the graphical user interface 100 provided by the terminal device includes a communication client 200, the communication client 200 includes a group 201 corresponding to the user identifier 206, and the group 201 includes three groups, which are a first group 201a, a second group 201b and a third group 201 c; the group 201 corresponds to a session window 202, and the session window 202 includes a group identifier 207 and a specific identifier 203; after the user clicks the specific identifier 203, the terminal device responds to the specific identifier 203 and enters a setup window 204 (i.e., "group chat setup window"), the setup window 204 includes a specific option 205 (i.e., "group head note option"), and the user may obtain a note group head note corresponding to the group through a photographing mode or from an album locally stored in the terminal device based on the specific option 205.
In another embodiment, the avatar setting operation may further include a second setting operation for the session identifier of the group, where the second setting operation may be a sliding operation (e.g., sliding to the left), or may be a right click to select a corresponding group avatar setting identifier.
b. Sending the remark group head portrait corresponding to the group to the server; the remark group head portrait corresponding to the group is used for the server to determine first updating time corresponding to the group.
In the embodiment of the application, a dictionary D1 is created in advance in the server, and the dictionary D1 is used for storing a group Identity card identification number (ID) and a public group avatar; the key in the dictionary D1 is the group ID and the value is the picture file path of the public group avatar stored in the server. Optionally, the group ID is a group number.
And aiming at each group, the terminal equipment sends the remark group head portrait carrying the group identifier of the group to the server after acquiring the remark group head portrait corresponding to the group. After receiving the remark group head portrait carrying the group identification, the server verifies the remark group head portrait, and after the remark group head portrait is successfully verified, a dictionary D2 and a dictionary D3 are created based on the group identification and the remark group head portrait corresponding to the group identification; the dictionary D2 is used for storing group IDs and remark group head portraits; dictionary D3 is used to store the group ID and the time of the last update of the remark group avatar.
In the embodiment of the application, the key in the dictionary D2 is a group ID, and the value is the picture file path of the note group avatar corresponding to the group ID; the key of dictionary D3 is the group ID, and the value is the server time when the user updated the remark group avatar of the group ID last time (i.e. the time when the group ID and the remark group avatar corresponding to the ID are added to dictionary D2). The group ID of the note group head portrait set by the user is added to the key value list of the dictionary D3.
In the embodiment of the application, the server checks the remark group head portrait, namely, judges whether the remark group head portrait has illegal contents, and if the remark group head portrait does not have illegal contents, the remark group head portrait is determined to pass the check.
Secondly, the terminal device creates a remark group head portrait corresponding to the group and creates a first update time corresponding to the group: before obtaining the first update time corresponding to the group, the generating method further includes:
c. and responding to the head portrait setting operation aiming at the group, and acquiring the remark group head portrait corresponding to the group selected by the head portrait setting operation.
In the embodiments of the present application, the explanation of the step is the same as that of step a, and will not be described in detail here.
d. And taking the remark group head portrait as the group head portrait of the group displayed in the communication client, and recording the first updating time corresponding to the group.
In the embodiment of the application, a first picture path of a public group head portrait corresponding to a group in a communication client is stored in a terminal device. Wherein, the first picture paths corresponding to different groups are different.
And aiming at each group, the terminal equipment checks the head portrait of the remark group after acquiring the head portrait of the remark group corresponding to the group, and takes the head portrait of the remark group corresponding to the group as the head portrait of the group displayed in the communication client after the head portrait of the remark group is successfully checked. The terminal equipment checks the remark group head portrait, namely, judges whether the remark group head portrait has illegal contents, and if the remark group head portrait does not have illegal contents, the remark group head portrait is determined to pass the check.
Then, a path mapping dictionary D4 and a timestamp dictionary D5 are created based on the first picture path of the public group avatar of the group and the second picture path of the remark group avatar corresponding to the group. The dictionary D4 is used for storing a first picture path and a remark group head portrait; dictionary D5 is used to store the first picture path and the time the remark cluster avatar was last updated.
In this embodiment, the key in the dictionary D4 is the first picture path (i.e. the first character string) of the public group avatar of the group, and the value in the dictionary D4 is the second picture file path (i.e. the second character string) of the remark group avatar corresponding to the first character string; the key of the dictionary D3 is a first character string, and the value is a time stamp based on the replacement of the remark group avatar corresponding to the second character string with the public group avatar corresponding to the first character string.
The method for generating the group avatar provided in the embodiment of the present application, where the obtaining of the remark group avatar corresponding to the group includes any one of the following modes e and f:
e. and acquiring the remark group head portrait corresponding to the group from the server.
In the embodiment of the application, after a target group with a remark group head portrait is targeted, a terminal device sends a first request carrying a first target group identity to a server, wherein the first request is used for requesting the remark group head portrait corresponding to the first target group identity. And after receiving the first request, the server acquires the head portrait of the remark group corresponding to the first target group identifier and returns the acquired head portrait of the remark group to the terminal equipment.
f. And acquiring the remark group head portrait corresponding to the group from the terminal equipment.
In the embodiment of the application, for a first target group with a remark group avatar, a terminal device obtains a first picture path of a public group avatar corresponding to the target group, and obtains the remark group avatar corresponding to the first picture path from a locally stored dictionary D2.
In the method for generating a group avatar provided in the embodiment of the present application, the step of using the remark group avatar by the terminal device as the group avatar of the group displayed in the communication client includes:
and replacing the public group head portrait corresponding to the group based on the remark group head portrait corresponding to the group.
In the embodiment of the present application, in the terminal device, the group head of each group corresponds to a unique storage path. And for each target group with the remark group head portrait, if the terminal equipment detects that the public group head portrait exists in the storage path corresponding to the target group, deleting the public group head portrait stored in the corresponding storage path of the group, and storing the remark group head portrait corresponding to the group into the storage path so as to replace the public group head portrait corresponding to the group based on the remark group head portrait corresponding to the group.
In this embodiment of the present application, a user may delete a remark group avatar set for a group, and accordingly, as shown in fig. 3, the generating method further includes:
s301, responding to the head portrait deleting operation aiming at the group, and acquiring the public head portrait of the group corresponding to the group.
In this embodiment of the present application, the avatar deletion operation includes any one of the following operations: a third setting operation for a session window of the group; a fourth setting operation for a session identification of the group.
In one embodiment, the avatar deletion operation may include a third setting operation for a session window of the group;
as shown in fig. 2b, 2c and 2d, the graphical user interface 100 provided by the terminal device includes a communication client 200, the communication client 200 includes a group 201 corresponding to the user identifier 206, and the group 201 includes three groups, which are a first group 201a, a second group 201b and a third group 201 c; the group 201 corresponds to a session window 202, and the session window 202 includes a group identifier 207 and a specific identifier 203; after the user clicks the specific identifier 203, the terminal device responds to the specific identifier 203 and enters a setting window 204 (i.e., "group chat setting window"), the setting window 204 includes a specific option 205 (i.e., "group head note option"), and the user may delete the corresponding note group head note based on the specific option 205.
In another embodiment, the avatar deletion operation may further include a fourth setting operation for the session identifier of the group, where the fourth setting operation may be a sliding operation (e.g., sliding to the right), and may also be a right click to select a corresponding group avatar deletion identifier.
In one embodiment, the terminal device obtains the public group head portrait corresponding to the group from the server.
In the embodiment of the application, after receiving an avatar deletion operation for a second target group, a terminal device sends a second request carrying a second target group identifier to a server, where the second request is used to request a public group avatar corresponding to the second target group identifier. And the server acquires the public group head portrait corresponding to the second target group identification and returns the public group head portrait to the terminal equipment.
As another implementation, the terminal device obtains a locally stored public group avatar corresponding to the group.
After receiving the avatar deletion operation for the second target group, the terminal device obtains the first picture path of the public group avatar corresponding to the second target group, and obtains the public group avatar corresponding to the first picture path from the locally stored dictionary D2.
S302, replacing the remark group head portrait corresponding to the group based on the public group head portrait.
In the embodiment of the application, the terminal device deletes the remark group avatar stored in the storage path corresponding to the group, and stores the acquired public group avatar corresponding to the second target group in the storage path.
According to the method for generating the group head portrait, the user can set the group head portrait of the group in the communication client in a personalized mode, the flexibility of group management is improved, and the user can distinguish different groups conveniently.
As shown in fig. 4, a method for generating a group avatar according to a second embodiment of the present application is applied to a server, and the method includes:
s401, receiving a remark group head portrait corresponding to a target group sent by a first terminal device.
S402, after the fact that the remark group head portrait meets the preset condition is detected, the remark group head portrait is determined to be the remark group head portrait updated by the target group, and the updating time corresponding to the target group is recorded.
In combination with step 401 and step 402, a dictionary D1 is created in advance in the server, the dictionary D1 is used for storing a group Identity Document (ID) and a public group avatar, the dictionary D1 includes a key and a value, the key of D1 is the group ID, and the value is the picture file path of the public group avatar stored in the server.
And after acquiring the remark group head portrait corresponding to the target group, the terminal equipment sends the remark group head portrait carrying the target group identification to the server. After receiving the remark group head portrait carrying the target group identification, the server verifies the remark group head portrait, and after the remark group head portrait is successfully verified, a dictionary D2 and a dictionary D3 are created based on the target group identification and the remark group head portrait corresponding to the target group identification; the dictionary D2 is used to store group ID (i.e. target group ID) and remark group avatar; dictionary D3 is used to store the group ID and the time of the last update of the remark group avatar.
The dictionary D2 comprises keys and values, the key of D2 is a group ID, and the value is a picture file path of a remark group head portrait corresponding to the group ID; the dictionary D3 includes a key and a value, the key of D3 is a group ID, and the value is the server time when the user updated the remark group avatar of the group ID last time (i.e. the time when the group ID and the remark group avatar corresponding to the ID are added to D2). Wherein, only the group ID of the remarked group avatar set by the user is added to the key value list of D3.
Further, as shown in fig. 5, in the method for generating a group avatar provided in the embodiment of the present application, the method further includes:
s501, after receiving a first request which is sent by the first terminal device or other terminal devices and carries a target group identifier, acquiring the update time corresponding to the target group identifier based on the first request, and returning the update time to the first terminal device or other terminal devices.
In the embodiment of the application, after a user logs in a communication client by using a first terminal device provided with a group head note, the first terminal device sends a first request carrying group identifiers (namely target group identifiers) of each group in the communication client to a server so as to request first updating time corresponding to the group identifiers. And the server acquires the first updating time corresponding to the group identifier and returns the first updating time to the first terminal equipment. And the first terminal equipment determines whether each group has the remark group head portrait or not based on the first updating time.
After a user logs in a communication client by using other terminal equipment, the other terminal equipment sends a first request carrying group identifiers (namely target group identifiers) of each group in the communication client to a server so as to request first updating time corresponding to the group identifiers. And the server acquires the first updating time corresponding to the group identifier and returns the first updating time to other terminal equipment. And the other terminal equipment determines whether each group has the remark group head portrait or not based on the first updating time.
S502, after receiving a second request carrying the target group identifier sent by the first terminal device or other terminal devices, acquiring a remark group head portrait corresponding to the target group identifier based on the second request, and returning the remark group head portrait to the first terminal device or other terminal devices.
In the embodiment of the application, when a user logs in a communication client by using a first terminal device provided with a group head note, the first terminal device sends a second request carrying a target group identifier of a target group to a server after determining the target group with the note group head note so as to request the note group head note corresponding to the target group identifier. The server acquires the remark group head portrait corresponding to the target group identification and returns the remark group head portrait to the first terminal device, so that the first terminal device can use the remark group head portrait as the group head portrait of the group displayed in the communication client.
When a user logs in a communication client by using other terminal equipment, the other terminal equipment determines a target group with a remark group head portrait, and then sends a second request carrying a target group identification of the target group to a server so as to request the remark group head portrait corresponding to the target group identification. And the server acquires the remark group head portrait corresponding to the target group identifier and returns the remark group head portrait to other terminal equipment, so that the remark group head portrait is used as the group head portrait of the group displayed in the communication client by the other terminal equipment.
Therefore, no matter the user logs in the communication client at the first terminal equipment for setting the group head note or logs in the communication client at other terminal equipment, the remark group head note corresponding to each group can be obtained, and the remark group head note is used as the group head note of the group displayed in the communication client.
Further, as shown in fig. 6, in the method for generating a group avatar provided in the embodiment of the present application, the method further includes:
s601, after receiving a third request carrying the target group identifier sent by the first terminal device or other terminal devices, acquiring a public group head portrait corresponding to the target group identifier based on the third request; wherein the public group avatar is a group avatar for presentation in a communication client of each member in the target group.
And S602, returning the public group head portrait to the first terminal equipment or other terminal equipment, and deleting the updating time corresponding to the target group identification.
In the embodiment of the application, after a user deletes a remark group avatar corresponding to a target group at a first terminal device or other terminal devices, the first terminal device or other terminal devices acquire a public group avatar corresponding to a target group identifier of the target group from a server, and return the public group avatar to the first terminal device or other terminal devices; meanwhile, the server deletes the updating time corresponding to the target group identifier; correspondingly, the server deletes the remark group head portrait corresponding to the target group identifier based on the third request.
Based on the same inventive concept, the third embodiment of the present application further provides a device for generating a group avatar corresponding to the method for generating a group avatar provided in the first embodiment, and since the principle of solving the problem of the device in the third embodiment of the present application is similar to the method for generating a group avatar provided in the first embodiment of the present application, the implementation of the device may refer to the implementation of the method, and repeated details are omitted.
Referring to fig. 7, a group avatar generating device according to a third embodiment of the present application includes:
the judging module 701 is configured to judge whether a group in a communication client has a corresponding remark group avatar after the communication client is started; wherein, the remark group head portrait is used for replacing a public group head portrait corresponding to the group; the public group head portrait is a group head portrait used for being displayed in a communication client of each member in the group;
a first obtaining module 702, configured to obtain a remark group avatar corresponding to a group in the communication client if it is determined that the group has the corresponding remark group avatar;
a first determining module 703, configured to use the remark group avatar as the group avatar of the group displayed in the communication client.
In a possible implementation manner, the determining module 701 determines whether a group in the communication client has a corresponding remark group avatar, including:
acquiring first updating time corresponding to the group, wherein the first updating time is the time for updating the head portrait of the remark group of the group at the latest time;
judging whether second updating time corresponding to the locally stored remark group head portrait of the group is the same as the first updating time or not;
and if the second updating time is different from the first updating time, determining that the group has a corresponding remark group head portrait.
In a possible implementation, the generating means further includes:
and the updating module is used for updating the second updating time based on the first updating time after the remark group head portrait is used as the group head portrait of the group displayed in the communication client.
In a possible implementation manner, the obtaining, by the determining module 701, the first update time corresponding to the group includes:
and acquiring the first updating time corresponding to the group from the server.
In a possible implementation, the generating means further includes:
a second obtaining module, configured to respond to a setting operation for the avatar of the group before obtaining a first update time corresponding to the group, and obtain a remark group avatar corresponding to the group selected by the setting operation for the avatar;
the sending module is used for sending the remark group head images corresponding to the group to the server; the remark group head portrait corresponding to the group is used for the server to determine first updating time corresponding to the group.
In a possible implementation manner, the obtaining, by the determining module 701, the first update time corresponding to the group includes:
and acquiring a first updating time corresponding to the locally stored group.
In a possible implementation, the generating means further includes:
a third obtaining module, configured to respond to a setting operation for an avatar of the group before obtaining a first update time corresponding to the group, and obtain a remark group avatar corresponding to the group selected by the setting operation for the avatar;
a second determining module, configured to use the remark group avatar as the group avatar of the group displayed in the communication client;
and the recording module is used for recording the first updating time corresponding to the group.
In one possible implementation, the avatar setting operation includes any one of the following operations:
a first setting operation for a session window of the group;
a second setting operation for a session identification of the group.
In a possible implementation manner, the obtaining module 702 obtains the remark group head portrait corresponding to the group, including:
acquiring a remark group head portrait corresponding to the group from a server;
or,
and acquiring the remark group head portrait corresponding to the group from the terminal equipment.
In a possible implementation manner, the first determining module 703 takes the remark group avatar as a group avatar of the group displayed in the communication client, including:
and replacing the public group head portrait corresponding to the group based on the remark group head portrait corresponding to the group.
In a possible implementation manner, the replacing, by the first determining module 703, the public group avatar corresponding to the group based on the remark group avatar corresponding to the group includes:
deleting the public group head portrait stored in the storage path corresponding to the group;
and storing the remark group head portrait corresponding to the group into the storage path.
In a possible implementation, the generating means further includes:
a fourth obtaining module, configured to respond to a head portrait deletion operation for the group, and obtain a public group head portrait corresponding to the group;
and the replacing module is used for replacing the remark group head portrait corresponding to the group based on the public group head portrait.
In a possible implementation manner, the acquiring, by the fourth acquiring module, the public group avatar corresponding to the group includes:
acquiring a public group head portrait corresponding to the group from a server;
or,
and acquiring a locally stored public group head portrait corresponding to the group.
In one possible implementation, the replacing module replaces the remark group avatar corresponding to the group based on the public group avatar, including:
and deleting the remark group head portrait stored in the storage path corresponding to the group, and storing the public group head portrait in the storage path.
In one possible implementation, the avatar deletion operation includes any one of the following operations:
a third setting operation for a session window of the group;
a fourth setting operation for a session identification of the group.
In a possible implementation, the generating means further includes:
and the first deleting module is used for responding to the head portrait deleting operation aiming at the group and deleting the locally stored first updating time corresponding to the group.
In a possible implementation, the generating means further includes:
and the second deleting module is used for responding to the head portrait deleting operation aiming at the group and deleting the locally stored remark group head portrait corresponding to the group.
According to the device for generating the group head portrait, the user can set the group head portrait of the group in the communication client in a personalized mode, the flexibility of group management is improved, and the user can distinguish different groups conveniently.
Based on the same inventive concept, the fourth embodiment of the present application further provides a device for generating a group avatar corresponding to the method for generating a group avatar provided in the second embodiment, and since the principle of solving the problem of the device in the fourth embodiment of the present application is similar to the method for generating a group avatar provided in the second embodiment of the present application, the implementation of the device may refer to the implementation of the method, and repeated details are omitted.
Referring to fig. 8, a group avatar generating device according to a fourth embodiment of the present application includes:
a receiving module 801, configured to receive a remark group head portrait corresponding to a target group sent by a first terminal device;
a determining module 802, configured to determine the note group avatar as the updated note group avatar of the target group after detecting that the note group avatar meets a preset condition;
the recording module 803 is configured to record the update time corresponding to the target group.
In a possible implementation, the generating means further includes:
a first obtaining module, configured to obtain, based on a first request sent by the first terminal device or another terminal device and carrying a target group identifier, update time corresponding to the target group identifier;
the first sending module is used for returning the updating time to the first terminal equipment or other terminal equipment;
a second obtaining module, configured to obtain, based on a second request sent by the first terminal device or another terminal device and carrying the target group identifier, a remark group avatar corresponding to the target group identifier;
and the second sending module is used for returning the remark group head portrait to the first terminal equipment or other terminal equipment.
In a possible implementation, the generating means further includes:
a third obtaining module, configured to obtain, based on a third request sent by the first terminal device or another terminal device and carrying the target group identifier, a public group avatar corresponding to the target group identifier; wherein the public group avatar is a group avatar to be displayed in a communication client of each member in the target group;
a third sending module, configured to return the public group avatar to the first terminal device or another terminal device;
and the first deleting module is used for deleting the updating time corresponding to the target group identifier.
In a possible implementation, the generating means further includes:
and the second deleting module is used for deleting the remark group head portrait corresponding to the target group identifier based on the third request.
According to the device for generating the group head portrait, the user can set the group head portrait of each group in the communication client in a personalized mode, the flexibility of group management is improved, and the user can distinguish different groups conveniently.
As shown in fig. 9, a fifth embodiment of the present application provides an electronic apparatus 900, including: the group head portrait generating method comprises a processor 901, a memory 902 and a bus, wherein the memory 902 stores machine readable instructions executable by the processor 901, when the electronic device runs, the processor 901 communicates with the memory 902 through the bus, and the processor 901 executes the machine readable instructions to execute the steps of the group head portrait generating method provided by the first embodiment of the application.
Specifically, the memory 902 and the processor 901 can be general memories and processors, which are not limited to the specific examples, and when the processor 901 runs a computer program stored in the memory 902, the group avatar generation method provided in the first embodiment can be executed.
Corresponding to the method for generating the group avatar, a sixth embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps of the method for generating the group avatar provided in the first embodiment of the present application.
As shown in fig. 10, a seventh embodiment of the present application provides an electronic device 1000, including: the group head portrait generating method comprises a processor 1001, a memory 1002 and a bus, wherein the memory 1002 stores machine readable instructions executable by the processor 1001, when the electronic device runs, the processor 1001 and the memory 1002 communicate through the bus, and the processor 1001 executes the machine readable instructions to execute the steps of the group head portrait generating method provided by the second embodiment of the application.
Specifically, the memory 1002 and the processor 1001 may be general-purpose memory and processor, and are not specifically limited herein, and when the processor 1001 runs the computer program stored in the memory 1002, the group avatar generation method provided in the second embodiment of the present application may be executed.
Corresponding to the method for generating a group avatar, an eighth embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps of the method for generating a group avatar provided in the second embodiment of the present application.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a platform server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (27)
1. A method for generating a group avatar is applied to a terminal device, wherein the terminal device includes a communication client, and the method comprises:
after a communication client is started, judging whether a group in the communication client has a corresponding remark group head portrait or not; wherein, the remark group head portrait is used for replacing a public group head portrait corresponding to the group; the public group head portrait is a group head portrait used for being displayed in a communication client of each member in the group;
and if so, acquiring a remark group head portrait corresponding to the group, and taking the remark group head portrait as the group head portrait of the group displayed in the communication client.
2. The method according to claim 1, wherein the determining whether the group in the communication client has the corresponding remark group avatar comprises:
acquiring first updating time corresponding to the group, wherein the first updating time is the time for updating the head portrait of the remark group of the group at the latest time;
judging whether second updating time corresponding to the locally stored remark group head portrait of the group is the same as the first updating time or not;
and if the second updating time is different from the first updating time, determining that the group has a corresponding remark group head portrait.
3. The method for generating a group avatar of claim 2, wherein after said remarking group avatar is used as a group avatar of said group displayed in said communication client, said method further comprises:
updating the second update time based on the first update time.
4. The method for generating the group avatar of claim 2, wherein said obtaining the first update time corresponding to the group comprises:
and acquiring the first updating time corresponding to the group from the server.
5. The method for generating the group avatar of claim 4, wherein before the first update time corresponding to the group is obtained, the method further comprises:
responding to the head portrait setting operation aiming at the group, and acquiring the remark group head portrait corresponding to the group selected by the head portrait setting operation;
sending the remark group head portrait corresponding to the group to the server; the remark group head portrait corresponding to the group is used for the server to determine first updating time corresponding to the group.
6. The method for generating the group avatar of claim 2, wherein said obtaining the first update time corresponding to the group comprises:
and acquiring a first updating time corresponding to the locally stored group.
7. The method for generating the group avatar of claim 6, wherein before the first update time corresponding to the group is obtained, the method further comprises:
responding to the head portrait setting operation aiming at the group, and acquiring the remark group head portrait corresponding to the group selected by the head portrait setting operation;
and taking the remark group head portrait as the group head portrait of the group displayed in the communication client, and recording the first updating time corresponding to the group.
8. The method for generating a group avatar of claim 5 or 7, wherein the avatar setting operation includes any one of the following operations:
a first setting operation for a session window of the group;
a second setting operation for a session identification of the group.
9. The method for generating the group avatar of claim 1, wherein said obtaining the remark group avatar corresponding to the group comprises:
acquiring a remark group head portrait corresponding to the group from a server;
or,
and acquiring the remark group head portrait corresponding to the group from the terminal equipment.
10. The method for generating the group avatar according to claim 1, wherein the using the remark group avatar as the group avatar displayed in the communication client comprises:
and replacing the public group head portrait corresponding to the group based on the remark group head portrait corresponding to the group.
11. The method for generating the group avatar of claim 10, wherein the replacing the public group avatar corresponding to the group based on the remark group avatar corresponding to the group comprises:
deleting the public group head portrait stored in the storage path corresponding to the group;
and storing the remark group head portrait corresponding to the group into the storage path.
12. The method for generating a group avatar of claim 1, further comprising:
responding to the head portrait deletion operation aiming at the group, and acquiring a public group head portrait corresponding to the group;
and replacing the remark group head portrait corresponding to the group based on the public group head portrait.
13. The method for generating the group avatar of claim 12, wherein the obtaining the public group avatar corresponding to the group comprises:
acquiring a public group head portrait corresponding to the group from a server;
or,
and acquiring a locally stored public group head portrait corresponding to the group.
14. The method for generating the group avatar of claim 12, wherein said replacing the remark group avatar corresponding to the group based on the public group avatar comprises:
and deleting the remark group head portrait stored in the storage path corresponding to the group, and storing the public group head portrait in the storage path.
15. The method for generating a group avatar of claim 12, wherein the avatar deletion operation comprises any one of the following operations:
a third setting operation for a session window of the group;
a fourth setting operation for a session identification of the group.
16. The method for generating a group avatar of claim 12, further comprising:
and deleting the first updating time corresponding to the locally stored group in response to the head portrait deletion operation aiming at the group.
17. The method of generating a group avatar of claim 16, further comprising:
and responding to the head portrait deletion operation aiming at the group, and deleting the locally stored remark group head portrait corresponding to the group.
18. A method for generating a group avatar is applied to a server, and the method comprises the following steps:
receiving a remark group head portrait corresponding to a target group sent by a first terminal device;
and after detecting that the head portrait of the remark group meets the preset condition, determining the head portrait of the remark group as the updated head portrait of the remark group of the target group, and recording the updating time corresponding to the target group.
19. The method of generating a group avatar of claim 18, further comprising:
after receiving a first request carrying a target group identifier sent by the first terminal device or other terminal devices, acquiring update time corresponding to the target group identifier based on the first request, and returning the update time to the first terminal device or other terminal devices;
after receiving a second request carrying the target group identifier sent by the first terminal device or other terminal devices, acquiring a remark group head portrait corresponding to the target group identifier based on the second request, and returning the remark group head portrait to the first terminal device or other terminal devices.
20. The method of generating a group avatar of claim 19, further comprising:
after receiving a third request carrying the target group identifier sent by the first terminal device or other terminal devices, acquiring a public group avatar corresponding to the target group identifier based on the third request; wherein the public group avatar is a group avatar to be displayed in a communication client of each member in the target group;
and returning the public group head portrait to the first terminal equipment or other terminal equipment, and deleting the updating time corresponding to the target group identification.
21. The method of generating a group avatar of claim 20, further comprising:
and deleting the remark group head portrait corresponding to the target group identification based on the third request.
22. A group head portrait generating device resides in a terminal device, the terminal device includes a communication client, the generating device includes:
the judging module is used for judging whether a group in the communication client has a corresponding remark group head portrait or not after the communication client is started; wherein, the remark group head portrait is used for replacing a public group head portrait corresponding to the group; the public group head portrait is a group head portrait used for being displayed in a communication client of each member in the group;
the obtaining module is used for obtaining a remark group head portrait corresponding to a group in the communication client if the group is judged to have the corresponding remark group head portrait;
and the determining module is used for taking the remark group head portrait as the group head portrait of the group displayed in the communication client.
23. A group avatar generation apparatus, comprising:
the receiving module is used for receiving the remark group head portrait corresponding to the target group sent by the first terminal equipment;
the determining module is used for determining the remark group head portrait as the remark group head portrait updated by the target group after detecting that the remark group head portrait meets the preset condition;
and the recording module is used for recording the updating time corresponding to the target group.
24. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the group avatar generation method according to any one of claims 1 to 17.
25. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, performs the steps of the method of generating a group avatar of any of claims 1 to 17.
26. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the group avatar generation method according to any one of claims 18 to 21.
27. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, performs the steps of the method of generating a group avatar of any of claims 18 to 21.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010183284.8A CN111431792B (en) | 2020-03-16 | 2020-03-16 | Group head portrait generation method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010183284.8A CN111431792B (en) | 2020-03-16 | 2020-03-16 | Group head portrait generation method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111431792A true CN111431792A (en) | 2020-07-17 |
CN111431792B CN111431792B (en) | 2022-03-25 |
Family
ID=71548202
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010183284.8A Active CN111431792B (en) | 2020-03-16 | 2020-03-16 | Group head portrait generation method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111431792B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130298006A1 (en) * | 2011-07-20 | 2013-11-07 | Ourgroup, Inc. | System and method for providing software tools within an online platform for organizing groups and communicating with member clients of group |
CN103516871A (en) * | 2012-06-21 | 2014-01-15 | 中兴通讯股份有限公司 | Method for displaying avatar of speaker in trunked call and terminal thereof |
CN103763112A (en) * | 2013-10-29 | 2014-04-30 | 小米科技有限责任公司 | User identity protection method and apparatus |
US20150379752A1 (en) * | 2013-03-20 | 2015-12-31 | Intel Corporation | Avatar-based transfer protocols, icon generation and doll animation |
US20160080934A1 (en) * | 2013-05-02 | 2016-03-17 | Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. | Terminal and processing method for head portrait of contact person |
CN105681057A (en) * | 2016-02-22 | 2016-06-15 | 北京橙鑫数据科技有限公司 | Group head portrait update method and device |
CN108339273A (en) * | 2017-12-29 | 2018-07-31 | 网易(杭州)网络有限公司 | A kind of method and client, server-side, system of setting gamer tile |
CN109768914A (en) * | 2018-12-29 | 2019-05-17 | 论客科技(广州)有限公司 | A kind of discussion group's head image information amending method and system |
CN109829152A (en) * | 2018-12-13 | 2019-05-31 | 深圳壹账通智能科技有限公司 | Head portrait replacing options, device, computer equipment and storage medium |
CN110634168A (en) * | 2018-06-21 | 2019-12-31 | 钉钉控股(开曼)有限公司 | Method and device for generating group head portrait |
CN110798565A (en) * | 2019-10-21 | 2020-02-14 | 维沃移动通信有限公司 | Head portrait determining method and device and electronic equipment |
CN110825979A (en) * | 2019-10-30 | 2020-02-21 | 维沃移动通信有限公司 | Remarking method and device and mobile terminal |
-
2020
- 2020-03-16 CN CN202010183284.8A patent/CN111431792B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130298006A1 (en) * | 2011-07-20 | 2013-11-07 | Ourgroup, Inc. | System and method for providing software tools within an online platform for organizing groups and communicating with member clients of group |
CN103516871A (en) * | 2012-06-21 | 2014-01-15 | 中兴通讯股份有限公司 | Method for displaying avatar of speaker in trunked call and terminal thereof |
US20150379752A1 (en) * | 2013-03-20 | 2015-12-31 | Intel Corporation | Avatar-based transfer protocols, icon generation and doll animation |
US20160080934A1 (en) * | 2013-05-02 | 2016-03-17 | Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. | Terminal and processing method for head portrait of contact person |
CN103763112A (en) * | 2013-10-29 | 2014-04-30 | 小米科技有限责任公司 | User identity protection method and apparatus |
CN105681057A (en) * | 2016-02-22 | 2016-06-15 | 北京橙鑫数据科技有限公司 | Group head portrait update method and device |
CN108339273A (en) * | 2017-12-29 | 2018-07-31 | 网易(杭州)网络有限公司 | A kind of method and client, server-side, system of setting gamer tile |
CN110634168A (en) * | 2018-06-21 | 2019-12-31 | 钉钉控股(开曼)有限公司 | Method and device for generating group head portrait |
CN109829152A (en) * | 2018-12-13 | 2019-05-31 | 深圳壹账通智能科技有限公司 | Head portrait replacing options, device, computer equipment and storage medium |
CN109768914A (en) * | 2018-12-29 | 2019-05-17 | 论客科技(广州)有限公司 | A kind of discussion group's head image information amending method and system |
CN110798565A (en) * | 2019-10-21 | 2020-02-14 | 维沃移动通信有限公司 | Head portrait determining method and device and electronic equipment |
CN110825979A (en) * | 2019-10-30 | 2020-02-21 | 维沃移动通信有限公司 | Remarking method and device and mobile terminal |
Non-Patent Citations (2)
Title |
---|
小笼包互联网爱好者: "微信怎么给备注人加头像", 《WWW.JINGYAN.BAIDU.COM/ARTICLE/4F34706E7016B3E387B56DA8.HTML》 * |
王慧平: "企业内部即时通讯***的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Also Published As
Publication number | Publication date |
---|---|
CN111431792B (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107645524B (en) | Message pushing processing method and device | |
US10218657B2 (en) | Method and system for providing private chat within a group chat | |
WO2017125024A1 (en) | Resource sharing method, terminal and storage medium | |
EP2814212B1 (en) | Method and apparatus for adding friend, and storage medium | |
CN105871690B (en) | Method and device for realizing instant messaging | |
WO2015078402A1 (en) | Method, apparatus and device for exchanging name card | |
CN107453978B (en) | Group-based data statistical method, mobile terminal, server and storage medium | |
CN102138156A (en) | Persisting a group in an instant messaging application | |
CN108712478B (en) | A kind of method and apparatus for sharing boarding application | |
US20110148857A1 (en) | Finding and sharing of digital images based on shared face models | |
US8719357B2 (en) | Method and apparatus for managing message | |
CN112836198A (en) | Account login method and device, server, electronic equipment and storage medium | |
CN110177039B (en) | Message sharing method and device, computer equipment and storage medium | |
CN111130986B (en) | Message sending method, device, equipment and storage medium | |
CN106911666B (en) | Wearable intelligent device and message processing method and system thereof | |
US11281761B2 (en) | Method and system for using a plurality of accounts in an instant messaging application | |
CN111880858A (en) | Document processing and instant messaging method, device, electronic equipment and storage medium | |
CN110737844A (en) | Data recommendation method and device, terminal equipment and storage medium | |
CN113225610A (en) | Screen projection method, device, equipment and storage medium | |
CN106209584B (en) | User information processing method, client and server Internet-based | |
CN111431792B (en) | Group head portrait generation method and device, electronic equipment and storage medium | |
CN111400684B (en) | Electronic license information acquisition method, system, device, equipment and storage medium | |
EP2960843A1 (en) | An apparatus, system and method of aggregating multiple address book sources | |
CN111897474A (en) | File processing method and electronic equipment | |
CN113722589B (en) | Information generation method, device, server and storage medium |
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 |