CN107181673A - Instant communicating method and device, computer equipment and storage medium - Google Patents

Instant communicating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN107181673A
CN107181673A CN201710431303.2A CN201710431303A CN107181673A CN 107181673 A CN107181673 A CN 107181673A CN 201710431303 A CN201710431303 A CN 201710431303A CN 107181673 A CN107181673 A CN 107181673A
Authority
CN
China
Prior art keywords
head portrait
message
mark
keyword
text information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710431303.2A
Other languages
Chinese (zh)
Inventor
查文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201710431303.2A priority Critical patent/CN107181673A/en
Publication of CN107181673A publication Critical patent/CN107181673A/en
Pending legal-status Critical Current

Links

Classifications

    • 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]
    • 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/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information

Landscapes

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

Abstract

A kind of instant communication method, device, computer equipment and storage medium, the method for one embodiment include:Receive the text information of input;Keyword by the text information respectively with each head portrait is matched;When there is the keyword matched with the text information, the head portrait of record and the head portrait of current matching keyword association is identified;When receiving message transmission instruction, the first instant communication message is sent to server, first instant communication message includes:Recipient's mark, the text information and head portrait mark.The present embodiment has difference due to the keyword that the text information of each message is matched, so that the corresponding sender's head portrait of each message has difference in display, improves interactive performance during instant messaging.

Description

Instant communicating method and device, computer equipment and storage medium
Technical field
The present invention relates to instant messaging field, more particularly to a kind of instant communicating method, a kind of instant messaging dress Put, a kind of computer equipment and a kind of storage medium.
Background technology
In order to realize the personalization of instant messaging, and enable instant messaging both sides more intuitively to good friend or The sender of message is identified, in current instant messaging, and the user of instant messaging would generally upload a head portrait Associated with the instant messaging mark of itself, the head portrait of upload is typically a pictures or photo, in instant communication users not In the case of uploading head portrait, instant communication server can associate the head portrait of system default as being identified with above-mentioned instant messaging Head portrait.Head portrait based on upload,, can also be same except the specific message during display instant messaging in instant communication process When show the message sender head portrait so that message receiver be based on head portrait just can intuitively distinguish outbound message transmission Side.In current this instant communication mode, each instant communication users can only use a head portrait to be applied to IMU Letter process so that, no matter message sender send be what kind of information, it is shown when message receiver receives the message The head portrait of message sender be just as, interactive performance is good.
The content of the invention
Based on this, the purpose of the embodiment of the present invention is to provide a kind of instant communication method, a kind of instant communication device, one Computer equipment and a kind of computer-readable storage medium are planted, to lift the interactive performance of instant messaging.
Following technical scheme is used in above-mentioned purpose, one embodiment to reach:
A kind of instant communicating method, including:
Receive the text information of input;
Keyword by the text information respectively with each head portrait is matched;
When there is the keyword matched with the text information, the head of record and the head portrait of current matching keyword association As mark;
When receiving message transmission instruction, the first instant communication message, first instant messaging are sent to server Message includes:Recipient's mark, the text information and head portrait mark.
A kind of instant communicating method, including step:
The first instant communication message that message sender is sent is received, first instant communication message includes:Recipient Mark, text information and head portrait mark;
Obtain and identify the head portrait address associated with the head portrait;
The second instant communication message, second IMU are sent to message receiver corresponding with recipient mark Letter message includes:Recipient's mark, the text information, the head portrait mark and the head portrait address.
A kind of instant communicating method, including step:
The second instant communication message that the reception server is sent, second instant communication message includes:Recipient's mark, Text information, head portrait mark and head portrait address;
When showing second instant communication message, will with head portrait mark, the corresponding head portrait in the head portrait address, Shown as sender's head portrait corresponding with second instant communication message.
A kind of immediate communication device, including:
MIM message input module, the text information for receiving input;
Keyword-matching module, is matched for the keyword by the text information respectively with each head portrait;
Head portrait identifier acquisition module, for being to exist to believe with the word in the matching result of the keyword-matching module When ceasing the keyword of matching, the head portrait of record and the head portrait of current matching keyword association is identified;
First message sending module, for when receiving message transmission instruction, the first instant messaging to be sent to server Message, first instant communication message includes:Recipient's mark, the text information and head portrait mark.
A kind of immediate communication device, including:
Second message reception module, the first instant communication message for receiving message sender transmission, described first is When communication information include:Recipient's mark, text information and head portrait mark;
Head portrait address acquisition module, the head portrait address associated is identified for obtaining with the head portrait;
Second message transmission module, for sending the second IMU to message receiver corresponding with recipient mark Believe message, second instant communication message includes:Recipient's mark, the text information, the head portrait mark and The head portrait address.
A kind of immediate communication device, including:
First message receiving module, the second instant communication message sent for the reception server, second IMU Letter message includes:Recipient's mark, text information, head portrait mark and head portrait address;
Display module, will be with head portrait mark, the head portrait for when showing second instant communication message The corresponding head portrait in location, is shown as sender's head portrait corresponding with second instant communication message.
A kind of computer equipment, including memory, processor and be stored on the memory and can be in the processing The computer program run on device, realizes instant messaging side as described above during computer program described in the computing device Method.
A kind of computer-readable storage medium, is stored thereon with computer program, is realized as above when the program is executed by processor Described instant communicating method.
Based on the scheme in embodiment as described above, the message sender of instant messaging is believed in the word for receiving input During breath, the keyword by the text information of input respectively with each head portrait is matched, and obtains what is matched with the text information inputted Keyword, obtains the head portrait mark with the head portrait of the keyword association of current matching, so as to be received by server to information When side sends message, can be when receiving instant communication message progress message display comprising head portrait mark, receiving party Message corresponding with second instant communication message will be used as with head portrait mark, the corresponding head portrait in the head portrait address Sender's head portrait shown, so that, the different message of each bar for sending for same information sender, due to each message The keyword of text information matching has difference, so that the corresponding message sender head portrait of each message has difference in display, Improve interactive performance during instant messaging.
Brief description of the drawings
Fig. 1 is the schematic diagram of the working environment of a this embodiment scheme;
Fig. 2 is the schematic diagram of the composition structure of the user terminal of one embodiment;
Fig. 3 is the schematic diagram of the composition structure of the server of one embodiment;
Fig. 4 is the schematic flow sheet of the instant communicating method in one embodiment;
Fig. 5 is the schematic flow sheet of the instant communicating method in another embodiment;
Fig. 6 is the schematic flow sheet of the instant communicating method in another embodiment;
Fig. 7 is the schematic flow sheet of the interaction of the instant messaging of a specific example;
Fig. 8 is the schematic diagram of upload head portrait in an application example;
Instant messaging interface schematic diagram when Fig. 9 is keyword without matching in an application example;
Figure 10 is an instant messaging interface schematic diagram applied when having the keyword of matching in example;
Figure 11 is the structural representation of the immediate communication device in one embodiment;
Figure 12 is the structural representation of the immediate communication device in another embodiment;
Figure 13 is the structural representation of the immediate communication device in another embodiment.
Embodiment
For the objects, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with drawings and Examples, to this Invention is described in further detail.It should be appreciated that embodiment described herein is only to explain the present invention, Do not limit protection scope of the present invention.
Unless otherwise defined, all of technologies and scientific terms used here by the article is with belonging to technical field of the invention The implication that technical staff is generally understood that is identical.Term used in the description of the invention herein is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.Term as used herein " and/or " include one or more phases The arbitrary and all combination of the Listed Items of pass.
Fig. 1 shows the working environment schematic diagram in one embodiment of the invention, as shown in figure 1, its working environment is related to Message sender terminal 101, server 102 and message receiver terminal 103.It is understood that in the field of instant messaging Jing Zhong, message sender terminal 101 can also be that the message that other-end is sended over is received as message receiver terminal, Message receiver terminal 103 can also be come to send in message, this example for letter to other-end as message sender terminal The purpose to be illustrated, be using terminal 101 as message sender terminal 103 as message receiver exemplified by illustrate.Shortly When communication process in, message sender terminal 101 will need the message for being sent to message receiver terminal 103 to send to server 102, message receiver terminal 103 is forwarded that message to by server 102, wherein, within the message, carry by key The head portrait mark with match messages that word matching is obtained, so that, the different message sent for message sender terminal 101, The head portrait of the message sender of corresponding display might have difference.The message sender terminal 101 that this embodiment scheme is related to Scheme between message receiver terminal 102 during instant messaging.
Message sender terminal 101, message receiver terminal 103 are used as user terminal, structure in one embodiment Schematic diagram is as shown in Figure 2.The user terminal includes the processor, non-volatile memory medium, communication connected by system bus Interface, power interface and internal memory.Wherein, the processor of user terminal is used to provide and calculated and control ability, supports whole user The operation of terminal.The non-volatile memory medium of user terminal is stored with operating system and a kind of computer of immediate communication device Application program, when the computer program of the immediate communication device is executed by processor, realizes a kind of instant communicating method.User is whole The network interface at end is used for server 102 by network connection and communication, and the power interface of user terminal is used for and external electrical Source is connected, and external power source is powered by the power interface to user terminal.User terminal can be that any one can realize intelligence The equipment of energy input and output, such as mobile terminal, such as mobile phone, tablet personal computer etc.;Can also be it is other have said structure Equipment.
Fig. 3 is the composition structural representation of server 102 in one embodiment.As shown in figure 3, server is included by being Processor, power supply module, storage medium, internal memory and the communication interface of bus of uniting connection.Wherein, the storage medium storage of server There are operating system, database and a kind of computer applied algorithm of immediate communication device, the computer of the immediate communication device should When being executed by processor with program, for realizing a kind of instant communicating method.The processor, which is used to provide, to be calculated and control ability, Support the operation of whole server.The fortune of the interior computer program for saving as the immediate communication device in storage medium in server Row provides environment, and communication interface is used to carry out network service with user terminal.It will be understood by those skilled in the art that showing in Fig. 3 The structure gone out, is only the block diagram of the part-structure related to embodiment scheme, does not constitute and this embodiment scheme is applied The restriction of server thereon, specific server can be included than more or less parts shown in figure, or combination Some parts, or arranged with different parts.
Fig. 4 shows the schematic diagram of the instant communicating method in one embodiment, and the embodiment is to be sent out applied to message Illustrated exemplified by the processing procedure of the side's of sending terminal 101.
As shown in figure 4, the method in the embodiment includes:
Step S401:Receive the text information of input;
Step S402:Keyword by the text information respectively with each head portrait is matched;
Step S403:When there is the keyword matched with the text information, record and current matching keyword association Head portrait head portrait mark;
Step S404:When receiving message transmission instruction, the first instant communication message, described first are sent to server Instant communication message includes:Recipient's mark, the text information and head portrait mark.It is understood that this first Transmitting side marking can also be included in instant communication message.
Based on the scheme in the present embodiment, the message sender of instant messaging, will when receiving the text information of input Keyword of the text information of input respectively with each head portrait is matched, and obtains the keyword matched with the text information inputted, The head portrait mark with the head portrait of the keyword association of current matching is obtained, so that message receiver is upon receiving the message, can So that head portrait corresponding with the image identification to be shown as message sender head portrait corresponding with the message, so that, for The different message of each bar that same information sender is sent, because the keyword that the text information of each message is matched has not Together, so that the corresponding message sender head portrait of each message has difference when message receiver is shown after the receipt, improve immediately Interactive performance during communication.
It is understood that for message sender itself, after above-mentioned message transmission instruction is received, can also By above-mentioned text information with a new message, enter in message sender with the corresponding message receiver of above-mentioned recipient mark Shown on the instant messaging interface of row instant messaging, in display, (i.e. first is this corresponding message of the text information When communication information) message sender sender's head portrait, be and the corresponding head portrait of above-mentioned head portrait mark.It is appreciated that for , can be from locally obtaining above-mentioned head portrait for message sender.
Wherein, above-mentioned head portrait mark, can use any information, with one head portrait of unique identification.For example, at one Using in example, above-mentioned head portrait mark can be the MD5 (Message with the head portrait of above-mentioned current matching keyword association Digest Algorithm, Chinese entitled Message Digest Algorithm 5) information, can be with while head portrait mark is provided Integrity protection to provide message.
It is above-mentioned text information is matched with the keyword of each head portrait respectively when, in some cases, matching is obtained Keyword may more than one, it is but more than two multiple, now can therefrom be selected from the keyword of these matchings One is used as above-mentioned current matching keyword.That is, when the keyword matched with above-mentioned text information has two or more, according to pre- Keyword selection rule is determined from each keyword matched with the text information, and selection determines the current matching keyword.
Wherein, predetermined keyword selection rule, can be set to any feasible rule.For example, in an example In, predetermined keyword selection rule can be the order of the keyword obtained according to matching to select, i.e., current matching is crucial Word be each keyword for match with text information in, the keyword that is matched according to the character order first of text information.Such as, it is false If the text information of input is * * * A***B, the keyword matched successively according to matching order is A, B, then can be by keyword A is used as current matching keyword.Select to determine in another example or based on the priority of individual keyword.That is, Current matching keyword be each keyword for being matched with the text information in, the keyword of highest priority.Such as, it is assumed that input Text information be * * * A***B, the keyword matched successively according to matching order is A, B, due to keyword A priority Less than keyword B priority, it therefore, it can regard keyword B as current matching keyword.
, can also be without therefrom carrying out in the keyword more than one that matching is obtained in another implementation Selection, but obtained each keyword will be matched all as current matching keyword, obtain the head of the corresponding head portrait of each keyword All carry in the first instant communication message, be i.e. can be carried in the first instant communication message as mark, and by each head portrait mark Match the head portrait mark of the corresponding head portrait of each keyword come.
Accordingly, Fig. 5 shows the schematic flow sheet of the instant communicating method in another embodiment, is in the embodiment Illustrated by taking the processing procedure of server as an example.
As shown in figure 5, the instant communicating method in the embodiment includes:
Step S501:Receive the first instant communication message that message sender is sent, the first instant communication message bag Include:Recipient's mark, text information and head portrait mark;It is understood that can also be wrapped in first instant communication message Include the transmitting side marking of message sender;
Step S502:Obtain and identify the head portrait address associated with the head portrait;
Step S503:The second instant communication message is sent to message receiver corresponding with recipient mark, it is described Second instant communication message includes:Recipient's mark, the text information, the head portrait mark and the head portrait Location.It is understood that the transmitting side marking of message sender can also be included in second instant communication message.
Wherein, above-mentioned head portrait mark, can use any information, with one head portrait of unique identification.For example, at one Using in example, above-mentioned head portrait mark can be the MD5 information with the head portrait of above-mentioned current matching keyword association.
In one example, in above-mentioned first instant communication message, more than two keyword correspondences may be carried Head portrait head portrait mark, identify crucial head portrait address with each head portrait at this time, it may be necessary to obtain respectively, and carry above-mentioned second In instant communication message, i.e. each head portrait mark corresponding each head portrait address respectively can be carried in the second instant communication message.Its In, each head portrait mark or head portrait address, can the order based on the keyword matched from text information and exist successively suitable Sequence, or directly in the second instant communication message, carry the corresponding keyword appearance of each head portrait mark or head portrait address The mark of sequencing.
In an application example, before the first instant communication message that above-mentioned reception message sender is sent, may be used also To comprise the following steps:
The head portrait uploading instructions that the message sender is sent are received, the head portrait uploading instructions include:Head portrait mark, head Picture and keyword;
The head portrait is stored, the head portrait address of the head portrait is obtained;
Head portrait mark and keyword association in the head portrait address of acquisition and the head portrait uploading instructions is stored.
So as to based on the process, allow message sender that multiple head portraits are uploaded onto the server, and set up each The keyword of head portrait, server identifies each head portrait, keyword and head portrait address information are stored, so as in receipt of subsequent During to instant communication message, the incidence relation can be based on, corresponding head portrait is obtained from the head portrait address of association.
Fig. 6 has used the schematic flow sheet of the instant communicating method in another embodiment, is with message in the embodiment Illustrated exemplified by the processing procedure of receiving terminal.
As shown in fig. 6, the method in the embodiment includes:
Step S601:The second instant communication message that the reception server is sent, second instant communication message includes:Connect Debit's mark, text information, head portrait mark and head portrait address;It is understood that may be used also in second instant communication message To include the transmitting side marking of message sender;
Step S602:Obtain identified with the head portrait, the corresponding head portrait in the head portrait address;
Step S603:, will be with head portrait mark, the head portrait address pair when showing second instant communication message The head portrait answered, is shown as message sender head portrait corresponding with second instant communication message.
Wherein, the mode of head portrait is obtained in above-mentioned steps S602, can be obtained using any possible mode.
In one example, above-mentioned head portrait can be obtained from server.It can specifically be carried out using following manner:To service Device delivery header picture obtains request, and the head portrait obtains request and carries the head portrait address;Receive that the server returns with institute State head portrait mark, the corresponding head portrait in the head portrait address.
In another example, due to being shown before head portrait possibility in message receiver, connect in message Debit caches, and therefore, it can obtain and head portrait mark, the corresponding head portrait in the head portrait address from local cache.
Can first searched whether and above-mentioned head portrait mark, head portrait in local cache in the application of specific technology The corresponding head portrait in location, if not having, then sends above-mentioned head portrait acquisition request to server.
In one example, in above-mentioned second instant communication message, may carry more than two head portraits mark and/ Or head portrait address, at this point it is possible to based on head portrait corresponding with each head portrait mark and/or head portrait address is obtained, then in display When stating the corresponding message of text information, display is circulated successively to each head portrait mark and/or the corresponding head portrait in head portrait address, this is used as The message sender head portrait of message.In a particular application or will be with each head portrait mark and/or the corresponding head in head portrait address After as Dynamic Graph, shown as the message sender head portrait of message corresponding with above-mentioned text information.It is specific to make When making Dynamic Graph, it can be identified based on each head portrait or the sequencing of the corresponding keyword appearance in head portrait address is made.
Based on each embodiment as described above, Fig. 7 shows the stream of the interaction of the instant messaging of a specific example Journey schematic diagram.In the interaction of above-mentioned instant messaging, in order to which the different message for transmission can show different head portraits, , it is necessary to upload variant head portrait for the message sender of instant messaging, and the keyword of each head portrait is set.In Fig. 8 Show the schematic diagram of the upload head portrait in an application example.
As shown in figure 8, some instant communication users uploads 3 head portraits, according to from top to bottom suitable in shown in Fig. 8 Sequence, is designated as head portrait 1, head portrait 2, head portrait 3, and head portrait 1 is provided as into acquiescence head portrait, the pass of the association set to image 2 successively Key word is " rattling away ", and the keyword of the association set to image 3 is " handsome your a face ".In case of need, terminal user It can also click on the "+" control shown in Fig. 8 and send addition instruction, to add more head portraits, the "+" control shown in Fig. 8 The keyword that the head portrait that can input newly to add in square frame beside part is set.Terminal is determining addition by "+" control After head portrait (it is appreciated that the head portrait is probably a picture or Dynamic Graph), understand to server delivery header as uploading instructions, Head portrait uploading instructions include:The head portrait and keyword of above-mentioned addition, while the instant of the terminal user can also be included Communication identifier, such as message sender are identified.The head portrait that create in other words mark can also be distributed for the image simultaneously, and by the head As mark is carried in above-mentioned head portrait uploading instructions.In one example, head portrait mark can be the MD5 information of the image. Server is received after the head portrait uploading instructions, can be stored the head portrait, obtains head portrait address, and by the head portrait of acquisition Address is stored with the head portrait mark and keyword association in the head portrait uploading instructions.Certainly, in case of need, terminal user Corresponding head portrait and its keyword can also be deleted by clicking on the "×" control shown in Fig. 8, so as to realize to having set The deletion of head portrait and its keyword.
As shown in fig. 7, during a specific instant messaging, the terminal where message sender is designated as into the first use Terminal where family terminal, message receiver is designated as second user terminal.User where first user terminal can be by handing over Mutual interface input information, the information of input can include in expression information and text information, this example it is main using text information as Example is illustrated.
After the user of the first user terminal is by interactive interface inputting word information, as shown in fig. 7, the first of this example User terminal can receive the text information, and the keyword by the text information received respectively with each head portrait is matched, In the keyword of each head portrait for judging record storage, if having the keyword that the text information with receiving is matched.
If there is no the keyword matched with text information, then when receiving message transmission instruction, this is directly based upon Text information is sent to server can include transmitting side marking, recipient's mark and above-mentioned reception in message, the message The message, after server is received, can be forwarded to and be received with the corresponding recipient of recipient's mark, recipient by the text information arrived Shown afterwards.Certainly, the first user terminal receive message send instruction when, can also by the message with a new message, The instant messaging interface for carrying out instant messaging in the message receiver corresponding with above-mentioned recipient mark of message sender is enterprising Row display.Message sender and message receiver are in display, the message sender head of this corresponding message of the text information Picture, is the acquiescence head portrait of message sender.
Each head portrait and corresponding keyword of setting with reference to shown in Fig. 8, instant messaging interface with reference to shown in Fig. 9 shows It is intended to, Fig. 9 interface schematic diagram is illustrated by taking the schematic diagram of message sender as an example, it will be appreciated by those skilled in the art that In the display interface of message receiver, the display for the head portrait of the message sender of each bar message is the same, i.e., for same One information, on the interface of message sender with the head portrait shown on the interface of message receiver be as.With reference to figure 8th, shown in Fig. 9, the text information " minor benefit you do not having " for the input that message sender is received with set keyword " rattling away ", " handsome your a face " mismatches, therefore, for the head portrait of the message sender comprising word " minor benefit you do not having " this message, is The acquiescence head portrait of message sender, i.e., the head portrait 1 shown in Fig. 8.
If there is the head portrait of the keyword matched with text information, then record and the head portrait of current matching keyword association Mark, and when receiving message transmission instruction, the first instant communication message, first instant communication message are sent to server Include:Recipient's mark, the text information and head portrait mark, can also include transmitting side marking certainly.
It is appreciated that in the case of the keyword only one of which matched with text information, in the first instant communication message In directly comprising the matching keyword association head portrait head portrait mark.
In some cases, the obtained keyword of matching may more than one, it is but more than two multiple, now can be with According to predetermined keyword selection rule from each keyword matched with the text information, selection determines that the current matching is closed Key word.
Wherein, predetermined keyword selection rule, can be set to any feasible rule.For example, in an example In, predetermined keyword selection rule can be the order of the keyword obtained according to matching to select, i.e., current matching is crucial Word be each keyword for match with text information in, the keyword that is matched according to the character order first of text information.Such as, it is false If the text information of input is * * * A***B, the keyword matched successively according to matching order is A, B, then can be by keyword A is used as current matching keyword.Select to determine in another example or based on the priority of individual keyword.That is, Current matching keyword be each keyword for being matched with the text information in, the keyword of highest priority.Such as, it is assumed that input Text information be * * * A***B, the keyword matched successively according to matching order is A, B, due to keyword A priority Less than keyword B priority, it therefore, it can regard keyword B as current matching keyword.
, can also be without therefrom carrying out in the keyword more than one that matching is obtained in another implementation Selection, but obtained each keyword will be matched all as current matching keyword, obtain the head of the corresponding head portrait of each keyword All carry in the first instant communication message, be i.e. can be carried in the first instant communication message as mark, and by each head portrait mark Match the head portrait mark of the corresponding head portrait of each keyword come.
Server is received after first instant communication message, obtains the head portrait mark with being carried in the first instant communication message Know the head portrait address of association, and the second instant communication message is sent to message receiver corresponding with recipient's mark, second is When communication information include:Recipient's mark, the text information, the head portrait mark and the head portrait address, may be used also certainly To include the transmitting side marking of message sender.
In the case where the first instant communication message carries the head portrait mark of the corresponding head portrait of more than two keywords, It can respectively obtain and identify crucial head portrait address with each head portrait, and carry in above-mentioned second instant communication message.Wherein, respectively Head portrait identify or head portrait address, can the order based on the keyword matched from text information and there is sequencing, or Person is directly in the second instant communication message, and the priority for carrying the corresponding keyword appearance of each head portrait mark or head portrait address is suitable The mark of sequence.
Message receiver is that second user terminal is received after second instant communication message, is obtained and the second instant messaging Head portrait mark in message, the corresponding head portrait in head portrait address.It is specific when obtaining, can be obtained from local cache or Obtained from server.When being obtained from local cache, head portrait mark can be based on directly on and inquire about acquisition from local cache.From Can be obtained based on head portrait address from server lookup when server is obtained.Can be local in particular technique application When caching can not get corresponding head portrait, then the head portrait is obtained from server.
Then, display comprising the text information the second instant communication message when, will with the head portrait mark, it is described The corresponding head portrait in head portrait address, is shown as message sender head portrait corresponding with second instant communication message.
Each head portrait and corresponding keyword of setting with reference to shown in Fig. 8, instant messaging interface with reference to shown in Figure 10 Schematic diagram, Figure 10 interface schematic diagram is illustrated by taking the schematic diagram of message sender as an example.With reference to shown in Figure 10, message hair The text information " forget about it, handsome your face " for the input that the side of sending is received is matched with the keyword " handsome your face " set, therefore is wrapped The message sender head portrait of message containing the text information " forget about it, handsome your face ", is corresponding with keyword " handsome your face " Head portrait 3.It is to be appreciated that in message receiver, with disappearing for the second instant communication message based on the first instant communication message Sender's head portrait is ceased, is also and keyword " general your face " corresponding head portrait 3.Similarly, the input that message sender is received Text information " this is talked about, and is rattled away, heartily " is matched with the keyword " rattling away " set, therefore includes the text information The message sender head portrait of the message of " this is talked about, and is rattled away, heartily ", is head portrait 2 corresponding with keyword " rattling away ".Can To understand ground, in message receiver, the message sender head with the second instant communication message based on the first instant communication message Picture, is also head portrait 2 corresponding with keyword " rattling away ".
On the other hand, it is assumed that the input information that message sender is received for " this is talked about, and is rattled away, heartily, it is handsome you one Face ", each head portrait and corresponding keyword of the setting with reference to shown in Fig. 8, then can match both keyword " rattling away ", " handsome your a face ", at this point it is possible to be to match the keyword that first obtained keyword " rattling away " goes out as actual match, By message sender head portrait of " rattling away " the corresponding head portrait 2 as the message.Assuming that there is provided the priority of each keyword, and The priority of " handsome your face " is higher than the priority of " rattling away ", then will " handsome your face " keyword for going out as actual match, Will " handsome your face " corresponding head portrait 3 as the message message sender head portrait.On the other hand, can also by " rattling away ", The keyword that " handsome your face " goes out as actual match, now, comprising text information, " this is talked about, and is rattled away, heartily, handsome The message sender head portrait of the message of your face ", " rattling away " corresponding head portrait 2 and " handsome your face " correspondence can be included simultaneously Head portrait 3, when showing this message, the head portrait 2 and head portrait 3 alternately can show or be used as the laggard of Dynamic Graph Row display.
Based on thought same as mentioned above, Figure 11 shows the structural representation of the immediate communication device of one embodiment Figure, the embodiment is illustrated exemplified by being arranged on message sender terminal 101.
As shown in figure 11, the immediate communication device in the embodiment includes:
MIM message input module 111, the text information for receiving input;
Keyword-matching module 112, is matched for the keyword by the text information respectively with each head portrait;
Head portrait identifier acquisition module 113, for being to exist and the text in the matching result of the keyword-matching module During the keyword of word information matches, the head portrait of record and the head portrait of current matching keyword association is identified;
First message sending module 114, for when receiving message transmission instruction, the first IMU to be sent to server Believe message, first instant communication message includes:Recipient's mark, the text information and head portrait mark.Can be with Understand, can also include transmitting side marking in first instant communication message.
It is understood that for message sender itself, after above-mentioned message transmission instruction is received, can also By above-mentioned text information with a new message, enter in message sender with the corresponding message receiver of above-mentioned recipient mark Shown on the instant messaging interface of row instant messaging, in display, the message hair of this corresponding message of the text information Square toes picture is sent, is and the corresponding head portrait of above-mentioned head portrait mark., can be from locally obtaining it is appreciated that for message sender Obtain above-mentioned head portrait.
Wherein, above-mentioned head portrait mark, can use any information, with one head portrait of unique identification.For example, at one Using in example, above-mentioned head portrait mark can be the MD5 information with the head portrait of above-mentioned current matching keyword association.
It is above-mentioned text information is matched with the keyword of each head portrait respectively when, in some cases, matching is obtained Keyword may more than one, it is but more than two multiple, now can therefrom be selected from the keyword of these matchings One is used as above-mentioned current matching keyword.That is, keyword-matching module 112, can be in the pass matched with the text information When key word has two or more, rule is selected from each keyword matched with the text information according to predetermined keyword, selection Determine the current matching keyword.
Wherein, predetermined keyword selection rule, can be set to any feasible rule.For example, in an example In, predetermined keyword selection rule can be the order of the keyword obtained according to matching to select, i.e., current matching is crucial Word be each keyword for match with text information in, the keyword that is matched according to the character order first of text information.Such as, it is false If the text information of input is * * * A***B, the keyword matched successively according to matching order is A, B, then can be by keyword A is used as current matching keyword.Select to determine in another example or based on the priority of individual keyword.That is, Current matching keyword be each keyword for being matched with the text information in, the keyword of highest priority.Such as, it is assumed that input Text information be * * * A***B, the keyword matched successively according to matching order is A, B, due to keyword A priority Less than keyword B priority, it therefore, it can regard keyword B as current matching keyword.
, can also be without therefrom carrying out in the keyword more than one that matching is obtained in another implementation Selection, but obtained each keyword will be matched all as current matching keyword, obtain the head of the corresponding head portrait of each keyword All carry in the first instant communication message, be i.e. can be carried in the first instant communication message as mark, and by each head portrait mark Match the head portrait mark of the corresponding head portrait of each keyword come.
Figure 12 shows the structural representation of the immediate communication device in another embodiment, is with setting in the embodiment Illustrated exemplified by the terminal of message sender.
As shown in figure 12, the device in the embodiment includes:
Second message reception module 121, the first instant communication message for receiving message sender transmission, described first Instant communication message includes:Recipient's mark, text information and head portrait mark;It is understood that first instant messaging The transmitting side marking of message sender can also be included in message;
Head portrait address acquisition module 122, the head portrait address associated is identified for obtaining with the head portrait;
Second message transmission module 123, be for sending second to message receiver corresponding with recipient mark When communication information, second instant communication message includes:Recipient's mark, the text information, the head portrait mark And the head portrait address.It is understood that the hair of message sender can also be included in second instant communication message The side's of sending mark.
Wherein, above-mentioned head portrait mark, can use any information, with one head portrait of unique identification.For example, at one Using in example, above-mentioned head portrait mark can be the MD5 information with the head portrait of above-mentioned current matching keyword association.
In one example, in above-mentioned first instant communication message, more than two keyword correspondences may be carried Head portrait head portrait mark, now, head portrait address acquisition module 122 needs to obtain respectively with each head portrait with identifying crucial head portrait Location, and carry in above-mentioned second instant communication message, i.e. each head portrait mark difference can be carried in the second instant communication message Corresponding each head portrait address.Wherein, each head portrait mark or head portrait address, can be based on the keyword matched from text information Order and there is sequencing, or directly in the second instant communication message, carry each head portrait mark or head portrait address The mark for the sequencing that corresponding keyword occurs.
As shown in figure 12, the immediate communication device in the embodiment can also include:
Head portrait uploading module 120, for receiving the head portrait uploading instructions that the message sender is sent, the head portrait is uploaded Instruction includes:Head portrait mark, head portrait and keyword;The head portrait is stored, the head portrait address of the head portrait is obtained;And Head portrait mark and keyword association in the head portrait address of acquisition and the head portrait uploading instructions is stored.
So as to which message sender can upload onto the server multiple head portraits, and set up the keyword of each head portrait, server , can so as in subsequently received instant communication message by each head portrait mark, keyword and the storage of head portrait address information So that based on the incidence relation, corresponding head portrait is obtained from the head portrait address of association.
Figure 13 shows the structural representation of the immediate communication device in another embodiment, is with setting in the embodiment Illustrated exemplified by the terminal of message receiver.
As shown in figure 13, the device in the embodiment includes:
First message receiving module 131, the second instant communication message sent for the reception server, described second is instant Communication information includes:Recipient's mark, text information, head portrait mark and head portrait address;It is understood that this is second instant The transmitting side marking of message sender can also be included in communication information;
Display module 132, for show second instant communication message when, will with the head portrait mark, the head As the corresponding head portrait in address, shown as message sender head portrait corresponding with second instant communication message.
As shown in figure 13, the immediate communication device in the example can also include:
Head portrait acquisition module 1312, is asked for being obtained to server delivery header picture, and the head portrait obtains request and carries institute State head portrait address;And the head portrait corresponding with head portrait mark, the head portrait address for receiving that the server returns;Or from Local cache obtain identified with the head portrait, the corresponding head portrait in the head portrait address.
Specific technology application in, head portrait acquisition module 1312 can be first local cache searched whether with it is above-mentioned Head portrait mark, the corresponding head portrait in head portrait address, if not having, then send above-mentioned head portrait acquisition request to server.
In one example, in above-mentioned second instant communication message, may carry more than two head portraits mark and/ Or head portrait address, now, display module 132 can be based on head portrait corresponding with each head portrait mark and/or head portrait address be obtained, so Afterwards in the corresponding message of the above-mentioned text information of display, each head portrait mark and/or the corresponding head portrait in head portrait address are circulated successively It has been shown that, is used as the message sender head portrait of the message.In a particular application, display module 132 can also be by with each head portrait mark After knowledge and/or the corresponding head portrait in head portrait address are as Dynamic Graph, it is used as the message of message corresponding with above-mentioned text information to send Square toes picture is shown.Specifically when making Dynamic Graph, it can be gone out based on each head portrait mark or the corresponding keyword in head portrait address Existing sequencing is made.
Based on example as described above, a kind of computer equipment is also provided in one embodiment, the computer equipment bag Include memory, processor and store the computer program that can be run on a memory and on a processor, wherein, computing device The method that any one embodiment in each embodiment as described above is realized during described program.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, it is non-volatile computer-readable that described program can be stored in one Take in storage medium, in such as embodiment of the present invention, the program can be stored in the storage medium of computer system, and is calculated by this At least one computing device in machine system, to realize the flow for including the embodiment such as above-mentioned each method.Wherein, it is described Storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Accordingly, a kind of storage medium is also provided in one embodiment, computer program is stored thereon with, wherein, the journey The method that any one embodiment in each embodiment as described above is realized when sequence is executed by processor.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (14)

1. a kind of instant communicating method, it is characterised in that including:
Receive the text information of input;
Keyword by the text information respectively with each head portrait is matched;
When there is the keyword matched with the text information, the head portrait mark of record and the head portrait of current matching keyword association Know;
When receiving message transmission instruction, the first instant communication message, first instant communication message are sent to server Including:Recipient's mark, the text information and head portrait mark.
2. instant communicating method according to claim 1, it is characterised in that including at least one in following two:
The head portrait is designated the MD5 information with the head portrait of the current matching keyword association;
When the keyword matched with the text information has two or more, according to predetermined keyword select rule from the text In each keyword of word information matches, selection determines the current matching keyword.
3. a kind of instant communicating method, it is characterised in that including step:
The first instant communication message that message sender is sent is received, first instant communication message includes:Recipient's mark, Text information and head portrait mark;
Obtain and identify the head portrait address associated with the head portrait;
The second instant communication message is sent to message receiver corresponding with recipient mark, second instant messaging disappears Breath includes:Recipient's mark, the text information, the head portrait mark and the head portrait address.
4. instant communicating method according to claim 3, it is characterised in that be receiving the first of message sender transmission When communication information before, in addition to step:
The head portrait uploading instructions that the message sender is sent are received, the head portrait uploading instructions include:Head portrait mark, head portrait with And keyword;
The head portrait is stored, the head portrait address of the head portrait is obtained;
Head portrait mark and keyword association in the head portrait address of acquisition and the head portrait uploading instructions is stored.
5. a kind of instant communicating method, it is characterised in that including step:
The second instant communication message that the reception server is sent, second instant communication message includes:Recipient's mark, word Information, head portrait mark and head portrait address;
When showing second instant communication message, will with head portrait mark, the corresponding head portrait in the head portrait address, as Sender's head portrait corresponding with second instant communication message is shown.
6. instant communicating method according to claim 5, it is characterised in that will be with head portrait mark, the head portrait The corresponding head portrait in address, before being shown as sender's head portrait corresponding with second instant communication message, in addition to Step:
Obtain and ask to server delivery header picture, the head portrait obtains request and carries the head portrait address;
The head portrait corresponding with head portrait mark, the head portrait address for receiving that the server returns;
Or
Obtained and head portrait mark, the corresponding head portrait in the head portrait address from local cache.
7. a kind of immediate communication device, it is characterised in that including:
MIM message input module, the text information for receiving input;
Keyword-matching module, is matched for the keyword by the text information respectively with each head portrait;
Head portrait identifier acquisition module, for being to exist and the text information in the matching result of the keyword-matching module During the keyword matched somebody with somebody, the head portrait of record and the head portrait of current matching keyword association is identified;
First message sending module, for when receiving message transmission instruction, the first instant communication message to be sent to server, First instant communication message includes:Recipient's mark, the text information and head portrait mark.
8. immediate communication device according to claim 7, it is characterised in that including at least one in following two:
The head portrait is designated the MD5 information of the head portrait of the keyword association with matching;
The keyword-matching module is when the keyword matched with the text information has two or more, according to predetermined keyword Selection rule is from each keyword matched with the text information, and selection determines the current matching keyword.
9. a kind of immediate communication device, it is characterised in that including:
Second message reception module, the first instant communication message for receiving message sender transmission, first IMU Letter message includes:Recipient's mark, text information and head portrait mark;
Head portrait address acquisition module, the head portrait address associated is identified for obtaining with the head portrait;
Second message transmission module, disappears for sending the second instant messaging to message receiver corresponding with recipient mark Breath, second instant communication message includes:Recipient's mark, the text information, the head portrait are identified and described Head portrait address.
10. immediate communication device according to claim 9, it is characterised in that also include:
Head portrait uploading module, for receiving the head portrait uploading instructions that the message sender is sent, the head portrait uploading instructions bag Include:Head portrait mark, head portrait and keyword;The head portrait is stored, the head portrait address of the head portrait is obtained;And will obtain The head portrait address and the head portrait uploading instructions in head portrait mark and keyword association storage.
11. a kind of immediate communication device, it is characterised in that including:
First message receiving module, the second instant communication message sent for the reception server, second instant messaging disappears Breath includes:Recipient's mark, text information, head portrait mark and head portrait address;
Display module, for show second instant communication message when, will with the head portrait mark, the head portrait address pair The head portrait answered, is shown as sender's head portrait corresponding with second instant communication message.
12. immediate communication device according to claim 11, it is characterised in that also include:
Head portrait acquisition module, is asked for being obtained to server delivery header picture, and the head portrait obtains request with carrying the head portrait Location;And the head portrait corresponding with head portrait mark, the head portrait address for receiving that the server returns;Or from local cache Obtain identified with the head portrait, the corresponding head portrait in the head portrait address.
13. a kind of computer equipment, including memory, processor and it is stored on the memory and can be in the processor The computer program of upper operation, it is characterised in that described in the computing device during computer program realize as claim 1 to Instant communicating method described in 6 any one.
14. a kind of computer-readable storage medium, is stored thereon with computer program, it is characterised in that the program is executed by processor Instant communicating methods of the Shi Shixian as described in claim 1 to 6 any one.
CN201710431303.2A 2017-06-08 2017-06-08 Instant communicating method and device, computer equipment and storage medium Pending CN107181673A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710431303.2A CN107181673A (en) 2017-06-08 2017-06-08 Instant communicating method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710431303.2A CN107181673A (en) 2017-06-08 2017-06-08 Instant communicating method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN107181673A true CN107181673A (en) 2017-09-19

Family

ID=59836117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710431303.2A Pending CN107181673A (en) 2017-06-08 2017-06-08 Instant communicating method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107181673A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388456A (en) * 2018-09-20 2019-02-26 维沃移动通信有限公司 A kind of head portrait selection method and mobile terminal
WO2022116278A1 (en) * 2020-12-01 2022-06-09 歌尔股份有限公司 Notification message processing method and apparatus, and smart wearable device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1692399A (en) * 2002-12-20 2005-11-02 索尼电子公司 Text display terminal device and server
CN101150542A (en) * 2007-11-12 2008-03-26 腾讯科技(深圳)有限公司 Method for displaying user status in instant communication system
CN101917512A (en) * 2010-07-26 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying head picture of contact person and mobile terminal
CN104935497A (en) * 2014-03-20 2015-09-23 腾讯科技(深圳)有限公司 Communication session method and device
CN104951500A (en) * 2015-04-24 2015-09-30 小米科技有限责任公司 Head portrait display method, head portrait display device and terminal
CN104994000A (en) * 2015-06-16 2015-10-21 青岛海信移动通信技术股份有限公司 Method and device for dynamic presentation of image
CN105100945A (en) * 2015-07-01 2015-11-25 网易(杭州)网络有限公司 Head portrait picture processing method and terminal
CN105099861A (en) * 2014-05-19 2015-11-25 阿里巴巴集团控股有限公司 User emotion-based display control method and display control device
CN105630846A (en) * 2014-11-19 2016-06-01 深圳市腾讯计算机系统有限公司 Head portrait updating method and apparatus
CN106327342A (en) * 2016-08-17 2017-01-11 腾讯科技(深圳)有限公司 Emoji package processing method and terminal
WO2017072534A2 (en) * 2015-10-30 2017-05-04 2Mee Ltd Communication system and method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1692399A (en) * 2002-12-20 2005-11-02 索尼电子公司 Text display terminal device and server
CN101150542A (en) * 2007-11-12 2008-03-26 腾讯科技(深圳)有限公司 Method for displaying user status in instant communication system
CN101917512A (en) * 2010-07-26 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying head picture of contact person and mobile terminal
CN104935497A (en) * 2014-03-20 2015-09-23 腾讯科技(深圳)有限公司 Communication session method and device
CN105099861A (en) * 2014-05-19 2015-11-25 阿里巴巴集团控股有限公司 User emotion-based display control method and display control device
CN105630846A (en) * 2014-11-19 2016-06-01 深圳市腾讯计算机系统有限公司 Head portrait updating method and apparatus
CN104951500A (en) * 2015-04-24 2015-09-30 小米科技有限责任公司 Head portrait display method, head portrait display device and terminal
CN104994000A (en) * 2015-06-16 2015-10-21 青岛海信移动通信技术股份有限公司 Method and device for dynamic presentation of image
CN105100945A (en) * 2015-07-01 2015-11-25 网易(杭州)网络有限公司 Head portrait picture processing method and terminal
WO2017072534A2 (en) * 2015-10-30 2017-05-04 2Mee Ltd Communication system and method
CN106327342A (en) * 2016-08-17 2017-01-11 腾讯科技(深圳)有限公司 Emoji package processing method and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388456A (en) * 2018-09-20 2019-02-26 维沃移动通信有限公司 A kind of head portrait selection method and mobile terminal
WO2022116278A1 (en) * 2020-12-01 2022-06-09 歌尔股份有限公司 Notification message processing method and apparatus, and smart wearable device

Similar Documents

Publication Publication Date Title
CN104205740B (en) System and method for communication
US7275214B2 (en) Method of setting destinations of electronic mail
JP3672972B2 (en) Portable device for accessing or distributing electronic documents
US8117271B2 (en) Digital image sharing enabled chat application
CN104854848B (en) The processing method of terminal and contact head image
CN107124349A (en) Information transferring method and device
JP2003233568A (en) E-mail transmitting-receiving device and e-mail transmitting-receiving program
CN103733573A (en) Retrieval of stored transmissions in an instant messenger environment
CN114726947B (en) Message display method, device, user terminal and readable storage medium
CN109639569A (en) A kind of social communication method and terminal
CN106803032A (en) Realize method, device and client device that website fingerprint is logged in
CN107181673A (en) Instant communicating method and device, computer equipment and storage medium
CN103078782A (en) Friend note recommendation note implementation method and system
CN104283762B (en) Transmit method, system, client and the server of instant telecommunication session content
US20010027466A1 (en) Electronic mail transfer device and system, electronic mail transfer method
JP2000003315A (en) Electronic mail terminal
CN111897474A (en) File processing method and electronic equipment
CN106789568A (en) A kind of communication information acquisition methods and device
CN109474591A (en) Account's sharing method, device, electronic equipment and storage medium between multisystem
CN107171947A (en) A kind of browser instant communication information method of reseptance and system
CN107920012A (en) The storage method and device of instant communication message
JP2004040304A (en) Electronic mail address control method and program, electronic mail terminal
EP1405465B1 (en) Identifying multilingual participants in network communications
US11126994B2 (en) Systems and methods for contact card customization
JP2002244972A (en) Setting method for destination of transmitting electronic mail

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170919