A kind of method and device adding group
Technical field
The present invention relates to communication technical field, particularly to a kind of method and device adding group.
Background technology
With the development of communication technology, instant messaging application have become as the most frequently used application in people's live and work it
One.In instant messaging application, the function of group can make plural user in a group engage in the dialogue, greatly simultaneously
Improve the efficiency of dialogue.
The process setting up group is:First user first creates group, then will add the account of the second user of this group
Number it is added in the buddy list of itself, then message request, wherein message request are sent to these second users by server
In carry the mark of this group, after second user receives message request and accepts this invitation, server will be accepted the invitation
The account number of second user is associated with the mark of this group.
During realizing the present invention, inventor finds that above-mentioned technology at least has problems with:
The account number of each second user is added to the buddy list of itself by first user, and sends to second user
This two process operations of message request are complicated and loaded down with trivial details, if the quantity of further second user more it is easy in operation
During occur omit phenomenon.
Content of the invention
In order to solve the problems, such as above-mentioned technology, embodiments provide a kind of method and device adding group.Institute
State technical scheme as follows:
On the one hand, there is provided a kind of method adding group, methods described includes:
Receive the triggering from the second user being currently at the first LAN and ratify the request that user account adds group,
Carry the described second user of instruction in the request of described triggering approval user account addition group and be currently at the first LAN
Information and described second user are in the mark of the group creating during the second LAN;
Receive the request of the addition group from first user, in the request of described addition group, carry instruction described first
User is currently at the information of the first LAN;
Search the described group being created by described second user;
Described first user is added the group finding out.
On the other hand, there is provided a kind of method adding group, methods described includes:
Monitoring application adds the trigger event of group;
If monitoring described trigger event, sending the request adding group, in the request of described addition group, carrying finger
Show the information being currently at the first LAN, the group being created by second user in order to whois lookup, and by first user
Add the group finding, described server is used for receiving from the described second user being currently at described first LAN
Triggering ratify the request that user account adds group after, receive the request of the described addition group that described first user sends,
Carry the described second user of instruction in the request of described triggering approval user account addition group and be currently at the first LAN
Information and described second user are in the mark of the group creating during the second LAN, and described first user is to send described addition
The user of the terminal of the request of group, described server is the server receiving the described request adding group.
On the other hand, there is provided a kind of device adding group, described device includes:
3rd receiver module, for receiving the triggering approval user's account from the second user being currently at the first LAN
Number add the request of group, described triggering is ratified user account and added that to carry the described second user of instruction in the request of group current
It is in the information of the first LAN and described second user is in the mark of the group creating during the second LAN;
First receiver module, for receiving the request of the addition group from first user, the request of described addition group
In carry and indicate that described first user is currently at the information of the first LAN;
Searching modul, for searching the described group being created by described second user;
Add module, for described first user is added the group finding out.
On the other hand, there is provided a kind of device adding group, described device includes:
First monitoring modular, adds the trigger event of group for monitoring application;
Second sending module, if for monitoring described trigger event, send the request adding group, described addition group
The information that instruction is currently at the first LAN, the group being created in order to whois lookup is carried by second user in the request of group
Group, and first user is added the group finding, described server is currently at described first local for being derived from reception
After the request that user account adds group is ratified in the triggering of the described second user of net, receive the described of described first user transmission
Add the request of group, carry the described second user of instruction in the request of described triggering approval user account addition group and currently locate
The mark of the group creating when being in the second LAN in information and the described second user of the first LAN, described first user
For sending the user of the terminal of the described request adding group, described server is the service receiving the described request adding group
Device.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By needing to add the first user of group, add and be in the group of the second user of same LAN with it,
So that adding the efficiency of group to improve, operating process is more easy.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below
Accompanying drawing be briefly described it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the method flow diagram of the addition group that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of the addition group that the embodiment of the present invention two provides;
Fig. 3 is the method flow diagram of the addition group that the embodiment of the present invention three provides;
Fig. 4 is another kind of method flow diagram adding group that the embodiment of the present invention three provides;
Fig. 5 is the method flow diagram of the addition group that the embodiment of the present invention four provides;
Fig. 6 is the apparatus structure schematic diagram of the addition group that the embodiment of the present invention five provides;
Fig. 7 is the apparatus structure schematic diagram of the addition group that the embodiment of the present invention six provides;
Fig. 8 is the apparatus structure schematic diagram of the addition group that the embodiment of the present invention seven provides;
Fig. 9 is the apparatus structure schematic diagram of the addition group that the embodiment of the present invention eight provides.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment one
Refer to Fig. 1, the method flow diagram of the addition group of the embodiment of the present invention one offer, method flow bag are provided
Include:
101:Receive the request of the addition group from first user, carry instruction in the request of described addition group described
First user is currently at the information of the first LAN;
102:Search the group being created by the second user being currently at described first LAN;
103:Described first user is added the group finding out.
The embodiment of the present invention is passed through to need to add the first user of group, adds and is in the second of same LAN with it
The group of user is so that add the efficiency of group to improve, operating process is more easy.
Embodiment two
Refer to Fig. 2, the method flow diagram of the addition group of the embodiment of the present invention two offer, method flow bag are provided
Include:
201:Monitoring application adds the trigger event of group;
202:If monitoring described trigger event, sending the request adding group, taking in the request of described addition group
It is currently at the information of the first LAN with instruction.
The embodiment of the present invention is passed through to need to add the first user of group, adds and is in the second of same LAN with it
The group of user is so that add the efficiency of group to improve, operating process is more easy.
Embodiment three
Refer to Fig. 3, the method flow diagram of the addition group of the embodiment of the present invention three offer, the present embodiment master are provided
The terminal to be applied to comprise server, the terminal of first user and second user with the method for this addition group carries out adding group
The illustration of group.
The method of this addition group, including:
301:Server receives the request of the establishment group from described second user, takes in the request of described establishment group
It is currently at the information of the first LAN with the described second user of instruction.
Wherein, LAN Information is the IP (Internet in public network for the terminal of user in embodiments of the present invention
Protocol, the agreement of interconnection between network) address.
302:Server is the group allocation mark that described second user request creates.
Wherein, step 301 and step 302 are the process of second user application group, and server ratifies Shen for second user
Please be the mark that second user distributes a group after group.
303:The request that user account adds group is ratified in the triggering that server receives from described second user, described tactile
Send out approval user account add group request in carry indicate described second user be currently at the first LAN information and
Described second user is in the mark of the group creating during the second LAN.
Wherein, second user needs to add the operation of group into the user being about to participate in group chat, therefore to service at this moment
Device sends the request that triggering approval user account adds group, the mark of the group carrying in this request, and this second user
The network address being currently at, this network address is currently at the information of the first LAN for second user.
Wherein, the network address that is in when second user creates group, can be with second user be presently in the
The information of one LAN not identical second LAN.Further, this network address can also create group for second user
The information of the first LAN being located at during group.
In implement scene, second user (founder of group or manager) sends triggering approval user in group's setting
Account adds the operation of the request of group, to send, to server, the request that user account addition group is ratified in this triggering.
304:Whether monitoring currently has been enter into adding the pattern of group.
After second user have sent the request of triggering approval user account addition group, application adds the first use of group
The open a terminal default page of middle instant messaging application of family carries out the operation applying for adding group.Now, terminal needs to application
The event adding group is monitored.
Before monitoring, judge whether to enter the pattern adding group.The implement scene of the embodiment of the present invention shows
For:Whether the five application page of monitoring and setting is opened.
305:If currently having been enter into adding the pattern of group, execution described monitoring application adds the trigger event of group
Step.
306:Monitoring application adds the trigger event of group.
When first user has carried out the operation applying for adding group, terminal can trigger the event that application adds group, prison
Measure terminal during this kind of event then to carry out adding the flow process of group.
Wherein, the application of terminal triggering adds the event of group can be in the following manner:
(1) whether the acceleration on monitoring preset direction reaches predetermined acceleration.
Which is that the gravity sensing module in terminal senses that the acceleration that terminal shake produces reaches predetermined acceleration
When, terminal then triggers the event that application adds group.
(2) whether the gesture of monitoring user input is matched with default gesture.
Which is setting nine grids in the default page, presets the sliding trace information in nine grids, works as user
Open the laggard line slip operation of this default page, record this slide corresponding sliding trace information, and with default slip
Trace information is contrasted, if reflexless terminal, triggers the event that application adds group.
(3) whether the Word message of monitoring user input is matched with default Word message.
Which is setting input frame in the default page, presets the Word message of input in input frame, works as user
Carry out inputting the operation of word, the Word message of record input after opening this default page, and carry out in default Word message
Contrast, if reflexless terminal, triggers the event that application adds group.
307:If monitoring described trigger event, sending the request adding group, taking in the request of described addition group
It is currently at the information of the first LAN with instruction.
Wherein, the process of the address information of acquisition terminal is:
Obtain the public network IP address of terminal place network.
308:Server receives the request of the addition group from first user, carries finger in the request of described addition group
Show that described first user is currently at the information of the first LAN.
309:The group that whois lookup is created by the second user being currently at described first LAN.
Ratifying user account according to the triggering that second user sends adds the second user carrying in the request of group current
It is in the information of the first LAN, determine the group that the second user being in same LAN with the first family is created.
310:Described first user is added the group finding out by server.
311:Server sends confirmation to the first user adding after group, carries institute in wherein said confirmation
State the mark of group, attribute information and the member identities of first user addition.
Further, additionally provide another kind of method adding group in the embodiment of the present invention, it is used for for connecing first
After receiving the request of addition group of first user, server adds group to be controlled for other first users,
As shown in figure 4, methods described includes:
401:Server receives the request of the addition group from first user, carries finger in the request of described addition group
Show that described first user is currently at the information of the first LAN.
402:When receiving from the request of the addition group of first user first, start timing.
403:When described timing reaches setting duration, stop the described reception of execution from the addition group of first user
The step of request.
By way of timing, the triggering initiated in certain second user can be ratified with user and find asking of addition group
The process asked is any limitation as so that the LAN residing for certain second user can be separately turned on adding distinct group in different periods
The process of group.
The embodiment of the present invention is passed through to need to add the first user of group, adds and is in the second of same LAN with it
The group of user is so that add the efficiency of group to improve, operating process is more easy;Further, by first user application
The time adding group is limited, and improves the utilization rate that same LAN adds group.
Example IV
Refer to Fig. 5, the method flow diagram of the addition group of the embodiment of the present invention four offer is provided.The present invention is implemented
Example is described to the method adding group as a example participating in the application scenarios of party based on many people.
The method of this addition group, including:
501:Group is main to send the request creating group, the request of wherein said establishment group as second user to server
In carry current public network address.
502:Server receives the request creating group, and the mark for this user's distribution group.
503:The request that user account adds group is ratified in the triggering that server receives from the main transmission of group.
Now, the page that user account adds group is ratified in the triggering that group master passes through in the group of terminal, starts approval and uses
Family account number adds the function of group.
504:The user that other participate in party opens, as first user, the event that five application page triggering application adds group,
And send, to server, the request that application adds group, carry current public network address in described request.
Now, participate in the page opening addition group in instant messaging application of the user of party, touched by shaking terminal
Send out the event that application adds group.
505:Server receives the request of the addition group that the user participating in party from other sends, described addition group
Request in carry other participate in party user public network address.
506:Whois lookup is in group's chief creating of same public network address by being currently at the user participating in party with other
The group building.
507:The group that other user account additions participating in the user of party are found out.
The embodiment of the present invention is passed through to need to add the first user of group, adds and is in the second of same LAN with it
The group of user is so that add the efficiency of group to improve, operating process is more easy.
Embodiment five
Embodiments provide a kind of device adding group, referring to Fig. 6, this device includes:
First receiver module 601, for receiving the request of the addition group from first user, described addition group asks
The information indicating that described first user is currently at the first LAN is carried in asking;
Searching modul 602, for searching the group being created by the second user being currently at described first LAN;
Add module 603, for described first user is added the group finding out.
The embodiment of the present invention is passed through to need to add the first user of group, adds and is in the second of same LAN with it
The group of user is so that add the efficiency of group to improve, operating process is more easy.
Embodiment six
Embodiments provide a kind of device adding group, referring to Fig. 7, this device includes:
First receiver module 701, for receiving the request of the addition group from first user, described addition group asks
The information indicating that described first user is currently at the first LAN is carried in asking;
Searching modul 702, for searching the group being created by the second user being currently at described first LAN;
Add module 703, for described first user is added the group finding out.
Wherein, described device also includes:
Second receiver module 704, for receiving the request of the establishment group from described second user, described establishment group
Request in carry and indicate that described second user is currently at the information of the first LAN;
Distribute module 705, for the group allocation mark creating for the request of described second user.
Wherein, described device also includes:
3rd receiver module 706, user account addition group is ratified in the triggering for receiving from described second user
Request, carries the described second user of instruction in the request of described triggering approval user account addition group and is currently at the first local
The information of net and described second user are in the mark of the group creating during the second LAN.
Wherein, described device also includes:
Timing module 707, for when receiving from the request of the addition group of first user first, starting timing;
First processing module 708, for when described timing reaches setting duration, stopping executing described first receiver module
The step of the middle request receiving the addition group from first user.
Wherein, described device also includes:
First sending module 709, for sending confirmation, wherein said confirmation letter to the first user adding after group
The mark of group, attribute information and the member identities that described first user adds are carried in breath.
The embodiment of the present invention is passed through to need to add the first user of group, adds and is in the second of same LAN with it
The group of user is so that add the efficiency of group to improve, operating process is more easy.
Embodiment seven
Embodiments provide a kind of device adding group, referring to Fig. 8, this device includes:
First monitoring modular 801, adds the trigger event of group for monitoring application;
Second sending module 802, if for monitoring described trigger event, sends the request adding group, described plus
The information that instruction is currently at the first LAN is carried in the request entering group.
The embodiment of the present invention is passed through to need to add the first user of group, adds and is in the second of same LAN with it
The group of user is so that add the efficiency of group to improve, operating process is more easy.
Embodiment eight
Embodiments provide a kind of device adding group, referring to Fig. 9, this device includes:
First monitoring modular 901, adds the trigger event of group for monitoring application;
Second sending module 902, if for monitoring described trigger event, sends the request adding group, described plus
The information that instruction is currently at the first LAN is carried in the request entering group.
Wherein, described device also includes:
Whether the second monitoring modular 903, currently have been enter into adding the pattern of group for monitoring;
Second processing module 904, if for currently having been enter into adding the pattern of group, execute described first monitoring modular
Described in monitoring application add group trigger event step.
Wherein, whether the five application page that described second monitoring modular 903 is used for monitoring and setting is opened.
Wherein, described first monitoring modular 901, including:
First monitoring means 9011, for monitoring whether the acceleration on preset direction reaches predetermined acceleration;
Second monitoring means 9012, whether the gesture for monitoring user input is matched with default gesture;
3rd monitoring means 9013, for monitor the Word message of user input whether with default Word message phase
Join.
The embodiment of the present invention is passed through to need to add the first user of group, adds and is in the second of same LAN with it
The group of user is so that add the efficiency of group to improve, operating process is more easy.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can pass through hardware
To complete it is also possible to the hardware being instructed correlation by program is completed, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and
Within principle, any modification, equivalent substitution and improvement made etc., should be included within the scope of the present invention.