Embodiment
For the problem proposing in background technology, in preferred mode, the embodiment of the present invention provides a kind of group chat method, be applied in portable user terminal, by in the time detecting that user replys for certain message in group chat interface, described in obtaining, the word content of this message and described user are for the reply content of this message, and after being merged into a new message, the two sends to service end, by service end, described new message is sent to respectively to the each Member Users in described group chat user's group, having realized user can reply for certain a piece of news in group chat process, and using reply message be responded message and show as a piece of news at chat interface, thereby solve when in group chat interface, message refresh rate is too fast, owing to replying message and being responded the problem that message separation shows the user message confusion causing.
Refer to Fig. 1, the embodiment of the present invention provides a kind of group chat method, is applied in portable user terminal, and described method is carried out following steps:
S101, in the time detecting that user replys for the first message in group chat interface, obtain the word content of described the first message;
In the present embodiment, described user terminal can be determined described the first message that user need to reply by the operation that detects user; For example, in the time that described user terminal is computer, can determine by mouse clicking operation the first message that user need to reply by detecting user; In the time that described user terminal is smart mobile phone, can determine by the operation of finger touch screen the first message that user need to reply by detecting user.
S102, the word content of described the first message is added in the input frame at described group chat interface;
In the present embodiment, in adding the word content of described the first message to described input frame time, the word content that can be described the first message adds the sender ID of preset characters and described the first message, replys message and is responded message to facilitate subsequent user to distinguish.
Wherein, the position relationship of the sender ID of word content, preset characters and described first message of described the first message is predeterminated position relation, one preferred embodiment in, described predeterminated position relation can be the front end that the sender ID of described preset characters and described the first message is placed on to the word content of described the first message, then described preset characters is placed into again to the front end of the sender ID of described the first message; In the time that described preset characters is character combination, also described preset characters can be placed into the centre of described preset characters;
For example, in the time of specific implementation, described preset characters can be " //@" or " //@: ", described sender ID can be placed into " //@" (such as " //@sender ID ") below, also can be by (such as " //@sender ID: ") in the middle of described sender ID is placed into " //@: ", thereby the member of current group chat user group is received after this message, can be according to the position relationship Obtaining Accurate between described preset characters and sender ID to the sender ID carrying in described message.
In the present embodiment, described user terminal adds the word content of described the first message in described input frame to, specifically can operate to trigger a built-in command by the user who detects and realize;
For example, for example, when described user terminal detects (long by operation) after a certain operation behavior of user for described the first message on backstage, automatically trigger a word content by described the first message and add the built-in command in described input frame to.In the present embodiment, described operation behavior is not particularly limited.
S103, obtain the reply content for described the first message that described user inputs in described input frame;
In the present embodiment, in the time of the reply content obtaining for described the first message, can be first will input cursor movement to the front end of the word content of described the first message, then obtain input content before described input cursor as described user the reply content for described the first message.
S104, merge into after the second message by the word content of described the first message and for the reply content of described the first message, send to other the each Member Users in current group chat user's group, to show in described other each Member Users' group chat interface.
In the present embodiment, while merging at the word content to described the first message with for the reply content of described the first message, specifically carried out on backstage by described user terminal, can be according to described predeterminated position relation in the time of specific implementation the word content to described the first message and merging for the reply content of described the first message, be about to for the reply content of described the first message be arranged at described the first message word content before, the sender ID of described preset characters and described the first message is arranged at described the first message word content before.Certainly, the word content of described the first message and the sequence of positions for the reply content of described the first message also can be adjusted according to user's custom in the time of specific implementation, are not particularly limited in the present embodiment.
In the present embodiment, client sends to other the each Member Users in current group chat user's group normally to carry out transfer by server described the second message, in the time that the user terminal of other Member Users in user's group is received described the second message from server, first need to check in this message, whether to carry described preset characters; If carry described preset characters in described the second message, show that this message may be the reply message for certain message of this end subscriber to end subscriber, so according to the sender ID carrying in the second message described in described predeterminated position Relation acquisition, and whether the user ID in chat group is identical with this end subscriber to judge the sender ID carrying in described the second message;
If identical, according to three kinds of different display modes, the content of carrying in described the second message is shown respectively; Particularly, first according to after described first message and the reply content for described the first message of carrying in the second message described in described predeterminated position Relation acquisition, the reply content for described the first message is shown in group chat interface according to acquiescence display mode; Described preset characters and described sender ID are shown in group chat interface according to the second display mode that is different from acquiescence display mode; Described the first message is shown in group chat interface according to the 3rd display mode that is different from acquiescence display mode;
If different, according to two kinds of different display modes, the content of carrying in described the second message is shown respectively; Particularly, the reply content for described the first message is shown in group chat interface according to acquiescence display mode; Described preset characters, described sender ID and described the first message are shown in group chat interface according to described the 3rd display mode.
Wherein, described the second display mode is different from described the 3rd display mode; In a preferred embodiment, above three kinds of display modes can be distinguished according to different Show Colors in group chat interface.
Run on smart mobile phone as example taking the form of instant communication client with described group chat method below, the present invention is further described in more detail;
What deserves to be explained is, described instant communication client is run on to smart mobile phone, it is only exemplary description, be not intended to limit the present invention, in the time of specific implementation, the equipment that moves described instant communication client can be also the equipment that is enough to move described instant communication client such as the hardware resource such as computer, panel computer, this is not particularly limited in the present invention.
First, after user installs described client on smart mobile phone, can register to described service end, after succeeding in registration, can successfully reach the standard grade.In process of user login, the authentication information (such as user name and password) that client is obtained user's input sends to service end, service end to verify this authentication information, if by allowing user to reach the standard grade.In the time that user logs in first, it may not add any customer group, can be by searching in user interface after login, create or otherwise add in certain customer group, service end records group's attribute information of this user, and group's attribute information generally comprises the affiliated customer group ID of this user and the role in each customer group etc.The processing of this part can be with reference to prior art with realization, and the present invention no longer describes in detail.
In the time that this end subscriber is opened a group session by described client software, now in group, all Member Users have all set up session connection by service end and described end subscriber.The session connection that described end subscriber can have been set up by service end is carried out instant chat with other Member Users in described groups of users and is communicated by letter.Wherein, service end is that in described end subscriber and this customer group, other each Member Users set up the process of session connection, can be with reference to prior art, and the present invention no longer describes in detail.
In the time that described end subscriber need to be replied certain a piece of news in group chat interface, can be by this message being operated to realize with finger on touch-screen, for example user can grow by this message or in the enterprising line slip of this message and reply in touch screen, when described smart mobile phone detects after this operation of this user on backstage, automatically one of running background, the word content by this message adds the built-in command in the input frame at current group chat interface to, the word content of this message is cached to backstage simultaneously.
Certainly, in the time of specific implementation, the function that this end subscriber is replied for certain a piece of news in group chat interface can be presented to user by the form of function choosing-item, then further carries out follow-up processing according to user's selection again.
For example, refer to Fig. 2 and Fig. 3, in the time of specific implementation, in the time that this end subscriber use finger is grown by certain the residing position of message on touch-screen, can in group chat interface, eject a function choosing-item interface, in the prior art, this function choosing-item interface generally includes the option such as " copying ", " reply ", "@TA ", therefore can add in the present embodiment " reply " option again; In the time that user has selected described " reply " option, client is carried out buffer memory on backstage by the word content of this message, and automatically the increasing after sender's ID and preset characters above of the word content of this message, then the word content of this message is added in the input frame at group chat interface.Wherein in the time of specific implementation, described preset characters can be positioned at described sender ID before.
Please refer to Fig. 4, in the time that this end subscriber need to be replied for a 's of Member Users " Daniel " " tomorrow, we went jogging " message, now can be by input cursor movement to this message text content foremost in input frame, the Position input that then this end subscriber is indicated at described input cursor is for the reply content of this message.For example, this end subscriber is " good " for the reply of the message of Member Users " Daniel " one " tomorrow, we went jogging ", in the time that this end subscriber has been inputted, the content that client can be before backstage buffer memory input cursor is as the reply content for this message.
Now, the backstage of described client buffer memory two message, article one, be " tomorrow, we went jogging ", another is " good ", so described client sends to service end after can merging according to the position relationship of these two message in described input frame.Service end is received after the message after merging, this message is sent to other the each Member Users in current group chat user's group, thereby show in described other each Member Users' group chat interface;
Further, described other each Member Users in the time showing the message after this merging in group chat interface, due to the origination message that is this end subscriber of the word content after described preset characters in the present embodiment, word content before preset characters is the reply message for described origination message to end subscriber, therefore facilitate user to check for show this message in group chat interface time, can show according to different display modes the content of carrying in the message after described merging;
For example, refer to Fig. 5, when the user terminal of the user Daniel in described group chat user's group is received the message of one " good //@Daniel: tomorrow, we went jogging ", can use the first color show in group chat interface the word content in this message " good "; Word content in this message " tomorrow, we went jogging " is shown in group chat interface according to the second color; Word content in this message " //@Daniel: " is carried out to highlighted demonstration according to the 3rd color; Now, text " good //@Daniel: tomorrow, we went jogging " presents three kinds of different colors.
Refer to Fig. 6, when other members except user Daniel in described group chat user's group receive after this message, because the sender ID carrying in this message is not identical with the user ID of self, so can use the first color to show in group chat interface the word content in this message " good "; By the word content in this message " //@Daniel: tomorrow, we went jogging " according to the highlighted demonstration in group chat interface of the 3rd color; Now, text " good //@Daniel: tomorrow, we went jogging " presents two kinds of different colors.
Be equal to, when client receive that service end sends from described group chat user's group in when other Member Users' group chat message, first also need to check and in this message, whether carry described preset characters, if, show that this message may be the reply message for certain message of this end subscriber to end subscriber, so whether the sender ID carrying in further judging this message is identical with self user ID, and according to judged result, the content of carrying in this message shown according to different display modes; In fact the content of carrying in this message is shown according to different display modes, identical with content described above, repeat no more.
Certainly, in the time of specific implementation, this end subscriber also can be replied for certain message of self according to above method, and its specific implementation step is identical with the concrete steps of above disclosure, repeats no more.
Known by above description, the present invention is by the time detecting that user replys for certain message in group chat interface, described in obtaining, the word content of this message and described user are for the reply content of this message, and after being merged into a new message, the two sends to service end, by service end, described new message is sent to respectively to the each Member Users in described group chat user's group, realize user and can reply for certain a piece of news in group chat process, and the content of reply and the message being responded have been shown as a piece of news at chat interface; Simultaneously, when message after being combined in group chat interface shows, by preset characters, the message after described merging is divided into origination message part and replys message part, and origination message part is wherein carried out to highlighted demonstration, thereby realize in the time that in group chat interface, message refresh rate is too fast, also be unlikely to make user message confusion reigned, promoted user's experience.
Refer to Fig. 7, the embodiment of the present invention also provides a kind of instant communication client 70, is applied in portable user terminal (such as smart mobile phone); Wherein, refer to Fig. 8, in the related hardware structure of portable user terminal as the described client 70 of carrying, generally include CPU, internal memory, nonvolatile memory, network interface and internal bus etc.Be embodied as example with software, client 40 of the present invention can be understood as the computer program being carried in internal memory conventionally, the logic device that the software and hardware forming after moving by CPU combines; Described instant communication client 70 comprises the first acquisition module 701, adds module 702, the second acquisition module 703, sending module 704, receiver module 705, the 3rd acquisition module 706 and judge module 707; Wherein:
The first acquisition module 701, in the time detecting that user replys for first message at group chat interface, obtains the word content of described the first message;
Add module 702, for the word content of described the first message being added to the input frame at described group chat interface;
The second acquisition module 703, the reply content for described the first message of inputting at described input frame for obtaining described user;
Sending module 704, for merging into after the second message by the word content of described the first message and for the reply content of described the first message, send to other the each Member Users in current group chat user's group, to show in described other each Member Users' group chat interface.
In the present embodiment, described interpolation module 702 is further used for:
For the word content of described the first message adds preset characters and corresponding sender ID;
The word content of described first message of having added described preset characters and described sender ID is added in the input frame in described group chat interface;
Wherein, the position relationship of the sender ID of the word content of described the first message, described preset characters and described correspondence is predeterminated position relation.
In the present embodiment, described the second acquisition module 703 is further used for:
By the input cursor movement in described input frame to the word content of described the first message foremost;
Obtain input content before described input cursor as described user the reply content for described the first message.
In the present embodiment, described predeterminated position relation is specially:
Described preset characters and described sender ID are positioned at the front end of the word content of described the first message;
Described preset characters is positioned at the front end of the sender ID of described correspondence; Or
In the time that described preset characters is character combination, described sender ID is positioned at the centre of described preset characters.
In the present embodiment, described client also comprises:
Receiver module 705, described the second message sending for receiving other each Member Users of current group chat user's group, and check in described the second message whether carry described preset characters;
The 3rd acquisition module 706, in the time that described the second message is carried described preset characters, according to described predeterminated position relation, obtains the sender ID carrying in described the second message, described the first message and the reply content for described the first message;
Whether judge module 707 is identical with the user ID of local terminal for judging the sender ID that described the second message carries;
If so, the reply content for described the first message is shown in group chat interface according to acquiescence display mode; Described preset characters and described sender ID are shown in group chat interface according to the second display mode that is different from acquiescence display mode; Described the first message is shown in group chat interface according to the 3rd display mode that is different from acquiescence display mode; Wherein said the second display mode is different from described the 3rd display mode;
If not, the described reply content for described the first message is shown in group chat interface according to acquiescence display mode; Described preset characters, described sender ID and described the first message are shown in group chat interface according to described the 3rd display mode.
By the description of above embodiment, it will be appreciated by those skilled in the art that in embodiment, a unit can be merged in the unit in device, also can further split into multiple subelements.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.