Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Please refer to Fig. 1, it shows the structural representation of the related team's voice tool of the embodiment of the present invention.Team's voice tool generally includes at least one client 110 and server 120.
Client 110 can be for such as computer, the electronic equipment of smart mobile phone, panel computer and E-book reader and so on.This electronic equipment can be provided with the application client of team's voice tool, or browser is installed, then by the webpage client of browser access team voice tool.Client 110 can be divided into according to user's difference: the subscription client that the Administrator Client that keeper uses and spectators use.Wherein, Administrator Client is the user with the authority of managing channel, and in addition, the client that the client that keeper uses and spectators use is basic identical, in Yi Ge team voice tool, there is one to a plurality of clients, such as 1,000,000 clients or ten million client.
Server 120 can be connected with client 110 by wireless or cable network.Server 120 can be one or multiple servers, can also be a cloud computing center.In other words, server 120 can be realized by a station server; Also can be realized by multiple servers combination, every station server is born identical or different functions, such as being useful on the server of registration and login, for preserving the server of user's head portrait, for preserving the server of channel information and configuration information, for preserving server of picture or video etc.; Server 120 also can adopt cloud computing center to realize, and cloud computing center is the formed virtual computing platforms of whole piece service cluster.
In the present embodiment, because server 120 creates, having online message to receive group and on-line/off-line message sink group, therefore, can be that a station server has created online message reception group and on-line/off-line message sink group simultaneously; Also can be that a station server establishment has online message to receive group, another station server creates on-line/off-line message sink group.
Please refer to Fig. 2, it shows the method flow diagram of the message method that one embodiment of the invention provides, and this message method can be applied to create has on-line/off-line message sink group and online message to receive in the server of group.This message method, comprising:
Step 201, obtain the client-side information that online message receives each client in group, online message receives group and only supports that to online message, receiving each client that is in line states in group sends message, and on-line/off-line message sink community supporting sends message to each client and each client in off-line state of being in line states in on-line/off-line message sink group simultaneously;
It is the group that only supports to receive to online message the client transmission message that is in line states in group that online message receives group, such as, it can be channel that online message receives group.On-line/off-line message sink group can support in on-line/off-line message sink group, to be in the client of line states and the group that the client in off-line state sends message simultaneously, such as, on-line/off-line message sink group can be Y group.
Client-side information is the information of the account logined in client, comprises that user account, the individual pet name, user receive class information in group etc. in online message.
Step 202, adds each client-side information getting in on-line/off-line message sink group to;
Because receiving the client in off-line state in group, online message can not receive message, therefore, the client-side information that online message can be received to each client in group adds in on-line/off-line message sink group, by on-line/off-line message sink group, to the client and the client in off-line state that are in line states, send message, make the client in off-line state also can receive message, to expand the transmission range of message.
Step 203, receive online/deferred information and receive the message that in group, the corresponding client of any one client-side information sends, this message is sent to each client and each client in off-line state that is in line states in on-line/off-line message sink group.
The client corresponding with adding client-side information in on-line/off-line message sink group to can send message to server, and server sends to each client that is in line states and each client in off-line state in on-line/off-line message sink group by the message receiving.
In sum, the message method that the embodiment of the present invention provides, by adding each client-side information getting in on-line/off-line message sink group to, receive online/deferred information and receive the message that in group, the corresponding client of any one client-side information sends, message is sent to each client and each client in off-line state that is in line states in on-line/off-line message sink group, can be by client from only supporting the online message reception group that sends message to each client that is in line states to import to support simultaneously to being in each client of line states and the on-line/off-line message sink group of each client transmission message in off-line state, make the client also can receipt message when off-line state, solved the problem that the client in off-line state in channel can not receive message, reached the effect that expands the transmission range of message.
Please refer to Fig. 3, it shows the method flow diagram of the message method that another embodiment of the present invention provides, and this message method can be applied to create has on-line/off-line message sink group and online message to receive in the server of group.This message method, comprising:
Step 301, receives first group identification that carries client identification, on-line/off-line message sink group of client transmission and the interpolation request that online message receives the second group identification of group;
The first group identification is used for identifying online message sink group, and online message receives group and only supports to receive to online message the group that the client that is in line states in group sends message, such as, it can be channel that online message receives group.The second group identification is used for identifying online/deferred information reception group, on-line/off-line message sink group can support in on-line/off-line message sink group, to be in the client of line states and the group that the client in off-line state sends message simultaneously, such as, on-line/off-line message sink group can be Y group.
Because receiving the client in off-line state in group, online message can not receive message, therefore, the client-side information that online message can be received to each client in group adds in on-line/off-line message sink group, by on-line/off-line message sink group, to the client and the client in off-line state that are in line states, send message, make the client in off-line state also can receive message, to expand the transmission range of message.Wherein, client-side information is the information of the account logined in client, comprises that user account, the individual pet name, user receive class information in group etc. in online message.
In the present embodiment, each client-side information that server can receive online message in group automatically adds in on-line/off-line message sink group; Or, each client-side information that server also can receive online message in group under the triggering of client adds in on-line/off-line message sink group, such as, user end to server sends and adds request, and server triggers the interpolation operation to client-side information according to adding request.
When server triggers operates the interpolation of client-side information, client and the online message of in order clearly to trigger, adding operation receive group and on-line/off-line message sink group, need in adding request, carry client identification, the first group identification and the second group identification.
Step 302, according to client identification and the first group identification, detect whether client is the Administrator Client of on-line/off-line message sink group, and whether be the Administrator Client that online message receives group according to client identification and the second group identification detection client;
Server can trigger the interpolation to client-side information when receiving the interpolation request of any one client transmission, or, for fear of any one client, can send and add the number of times that request triggers the increase interpolation operation that the interpolation of client-side information is caused, the problem of the resource of waste server, server can also limit the client triggering the interpolation of client-side information.Such as, server can limit client, be that online message receives at least one in the Administrator Client of group and Administrator Client that client is on-line/off-line message sink group.
The present embodiment be take client, and to be the online message Administrator Client that receives group and on-line/off-line message sink group describe as example simultaneously, and whether be whether Administrator Client and the client of on-line/off-line message sink group be Administrator Client that online message receive group to server if can detect respectively client.
For the ease of understanding, whether the present embodiment specifically detects client with server is that the Administrator Client that online message receives group illustrates.Server arranges also role's value of record manager client when Administrator Client triggers the online message sink of establishment group, and obtain role's value of the client that client identification identifies, whether the role's value that detects client equals role's value of Administrator Client.If role's value of client equals role's value of Administrator Client, determine that client is the Administrator Client that online message receives group; If role's value of client is not equal to role's value of Administrator Client, determine that client is not the Administrator Client that online message receives group.In like manner, server also can be worth and detect whether client is the Administrator Client of on-line/off-line message sink group according to role.
Step 303, is that the Administrator Client of on-line/off-line message sink group and client are the Administrator Clients that online message receives group if testing result is client, and request is added in response, triggers execution step 304;
If detecting client and be Administrator Client and the client of on-line/off-line message sink group is the Administrator Client that online message receives group, server is determined the interpolation request that customer in response end sends.
Further, response also comprises before adding request:
1) obtain success response in predetermined amount of time and add the number of times of asking;
2) detect number of times and whether be less than pre-determined number threshold value;
3) if testing result is number of times, be less than pre-determined number threshold value, trigger and carry out the step that request is added in response.
For fear of client, repeatedly respond the problem of adding the waste server resource that request causes, server can also limit the number of times that request is added in response.Such as, in Servers installed predetermined amount of time, the pre-determined number threshold value of request is added in response.Wherein, predetermined amount of time and pre-determined number threshold value can arrange and revise.Such as, predetermined amount of time is 1 week, pre-determined number threshold value is 2 times.
Therefore, server, before request is added in response, also needs to obtain the number of times of server success response interpolation request in predetermined amount of time.If the number of times of request is added in server success response, be less than pre-determined number threshold value, determine that server can respond this interpolation request, continues execution step 304; If the number of times of request is added in server success response, equal pre-determined number threshold value, determine that server can not respond this interpolation request, flow process finishes.
Step 304, obtain the client-side information that online message receives each client in group, online message receives group and only supports that to online message, receiving each client that is in line states in group sends message, and on-line/off-line message sink community supporting sends message to each client and each client in off-line state of being in line states in on-line/off-line message sink group simultaneously;
Server can determine that online message receives group according to the first group identification, and obtains the client-side information of each client that this group comprises.
Step 305, adds each client-side information getting in on-line/off-line message sink group to;
In the present embodiment; each client-side information that server can receive online message in group adds in on-line/off-line message sink group; and do not need each client of Administrator Client to be set to good friend's client; again the client-side information of good friend's client is added to on-line/off-line message sink group; both protect the privacy between client, also saved the processing resource of server when good friend's client is set.
In addition, due to what add in on-line/off-line message sink group, be that online message receives the client-side information in group, and can not be that other online message receive the client-side information in group, the client that can avoid other online message to receive group receives the publicity of group to these other online message, thereby reduced according to publicity, exit the quantity that online message receives the client-side information of group, and then reduced the loss of client-side information in online message reception group.
The method that server adds the client-side information getting in on-line/off-line message sink group to is specific as follows:
The first, each client-side information getting is added in on-line/off-line message sink group, comprising:
1) client-side information is directly added in on-line/off-line message sink group; And/or,
2) to each client, send the inquiry message that whether adds online/deferred information to receive group, if receive client according to the confirmation of inquiry message feedback, according to confirmation, the client-side information of client added in on-line/off-line message sink group.
Wherein, server can add each client-side information getting in on-line/off-line message sink group to, or, for fear of client is directly added online/deferred information, receive the bothering user that group causes, server can also send inquiry message to client, and client can be shown according to inquiry message the option of " agreement " and " refusal ".If user has selected " agreement " option, user end to server sends confirmation, and server adds the client-side information of this client in on-line/off-line message sink group to; If user has selected " refusal " option, user end to server sends exclude information, and server abandons the client-side information of this client to add in on-line/off-line message sink group.
Further, client can also be shown the option of " remembeing to select ", if user has selected this option, server is when lower secondary response adds request, can directly client-side information be added in on-line/off-line message sink group according to this confirmation, or, according to this exclude information, directly abandon client-side information to add in on-line/off-line message sink group.
It should be added that, server can also be determined the mode of adding client-side information to on-line/off-line message sink group according to the type of client.Suppose that the client that server receives online message in group is divided into Administrator Client and subscription client, server can directly add Administrator Client's client-side information in on-line/off-line message sink group, to subscription client, send inquiry message, the client-side information of the subscription client of feedback acknowledgment information is added in on-line/off-line message sink group.
Further, after each client sends the inquiry message that whether adds online/deferred information to receive group, also comprise:
Receive that client sends for asking to exit the request of exiting that online message receives group, when the request exited is client according to inquiry message feedback exclude information, send, exclude information is used to indicate refusal and adds the client-side information of client to on-line/off-line message sink group;
Delete the client-side information that online message receives client in group.
Server is after client sends inquiry message, if user has selected " breaking off relations " option, client can also provide " exit online message and receive group " option.If user has selected " exit online message and receive group " option, user end to server sends the request of exiting, and server deletes according to the request exited the client-side information that online message receives this client in group.Client can and exit information by exclude information and send to server simultaneously, has saved transfer resource.
The second, each client-side information getting is added in on-line/off-line message sink group, comprising:
1) obtain the client type in each client-side information;
2), if on-line/off-line message sink group comprises at least one grouping, according to corresponding relation and client type between client type and each grouping, client-side information is added in corresponding grouping;
3) if on-line/off-line message sink group does not comprise grouping, create at least one grouping, according to corresponding relation and client type between client type and each grouping, client-side information is added in corresponding grouping.
Due to on-line/off-line message sink, group is also supported in group and divides into groups, therefore, for fear of each client-side information being added in on-line/off-line message sink group, the low problem of grouping efficiency of manually each client-side information adding being divided into groups to cause again, server can also be added to client-side information automatic powder adding in each grouping.Such as, server can be added to Administrator Client's client-side information automatic powder adding in management grouping.
If on-line/off-line message sink group comprises at least one grouping, server can pre-configured client type and the corresponding relation of grouping, according to the client type in the client-side information adding and corresponding relation, determine the grouping under this client-side information, and this client-side information is added in this grouping.
If do not comprise grouping in on-line/off-line message sink group, server can create each grouping before client-side information being added to on-line/off-line message sink group, and configure the corresponding relation of client type and grouping, according to the client type in the client-side information adding and corresponding relation, determine the grouping under this client-side information, and this client-side information is added in the grouping of establishment.
Further, after server successfully adds each client-side information to on-line/off-line message sink group, also need the number of times that success response is added to request to add 1.
Step 306, receive online/deferred information and receive the message that in group, the corresponding client of any one client-side information sends, this message is sent to each client and each client in off-line state that is in line states in on-line/off-line message sink group.
The client corresponding with adding client-side information in on-line/off-line message sink group to can send message to server, and server sends to each client that is in line states and each client in off-line state in on-line/off-line message sink group by the message receiving.
It should be added that, if a station server has created online message simultaneously, receive group and on-line/off-line message sink group, message method refers to step 301 to the content of step 306; If a station server has created on-line/off-line message sink group, another station server has created online message and has received group, the present embodiment is called first server by the server that has created on-line/off-line message sink group, the server that has created online message reception group is called to second server, and message method is specific as follows:
1, first server receives the client identification that carries of client transmission, the first group identification of on-line/off-line message sink group and online message receive the interpolation request of the second group identification of group, according to client identification and the first group identification, detect whether client is the Administrator Client of on-line/off-line message sink group, if testing result is client is the Administrator Client of on-line/off-line message sink group, obtain success response in predetermined amount of time and add the number of times of asking, detect this number of times and whether be less than pre-determined number threshold value, if testing result is less than pre-determined number threshold value for this number of times, request is added in response, be that first server will carry client identification, the interpolation request of the first group identification and the second group identification sends to second server,
2, whether second server is the Administrator Client that online message receives group according to client identification and the second group identification detection client, if testing result is client, be the Administrator Client that online message receives group, obtain the client-side information that online message receives each client in group, each client-side information is sent to first server;
3, first server is added each client-side information receiving in on-line/off-line message sink group to;
1) first server is directly added client-side information in on-line/off-line message sink group; And/or, first server sends the inquiry message that whether adds online/deferred information to receive group to each client, if receive client according to the confirmation of inquiry message feedback, according to confirmation, the client-side information of client added in on-line/off-line message sink group.
2) first server is obtained the client type in each client-side information; If on-line/off-line message sink group comprises at least one grouping, according to corresponding relation and client type between client type and each grouping, client-side information is added in corresponding grouping; If on-line/off-line message sink group does not comprise grouping, create at least one grouping, according to corresponding relation and client type between client type and each grouping, client-side information is added in corresponding grouping.
Optionally, second server receive that client sends for asking to exit the request of exiting that online message receives group, during the request the exited inquiry message feedback exclude information that to be client send according to first server, send, exclude information is used to indicate refusal and adds the client-side information of client to on-line/off-line message sink group; Second server is deleted the client-side information that online message receives client in group.
4, first server receives online/deferred information and receives the message that in group, the corresponding client of any one client-side information sends, and this message is sent to each client and each client in off-line state that is in line states in on-line/off-line message sink group.
In sum, the message method that the embodiment of the present invention provides, by adding each client-side information getting in on-line/off-line message sink group to, receive online/deferred information and receive the message that in group, the corresponding client of any one client-side information sends, message is sent to each client and each client in off-line state that is in line states in on-line/off-line message sink group, can be by client from only supporting the online message reception group that sends message to each client that is in line states to import to support simultaneously to being in each client of line states and the on-line/off-line message sink group of each client transmission message in off-line state, make the client also can receipt message when off-line state, solved the problem that the client in off-line state in channel can not receive message, reached the effect that expands the transmission range of message.In addition, by client-side information being added in corresponding grouping according to corresponding relation and client type between client type and each grouping, can directly client-side information be added in corresponding grouping, and do not need user to add client-side information to first group, one by one the client-side information in the first group is divided into groups again, improved the grouping efficiency of client-side information.
Please refer to Fig. 4, it shows the structural framing figure of the message dispensing device that one embodiment of the invention provides, and this message dispensing device can be applied to create has on-line/off-line message sink group and online message to receive in the server of group.This message dispensing device, comprising:
Acquisition of information module 401, for obtaining online message, receive the client-side information of each client of group, online message receives group and only supports that to online message, receiving each client that is in line states in group sends message, and on-line/off-line message sink community supporting sends message to each client and each client in off-line state of being in line states in on-line/off-line message sink group simultaneously;
Information is added module 402, for each client-side information that acquisition of information module 401 is got, adds on-line/off-line message sink group to;
Information receiving and transmitting module 403, line/the deferred information adding after module 402 is added for reception information receives the message that the corresponding client of any one client-side information of group sends, and message is sent to each client and each client in off-line state that is in line states in on-line/off-line message sink group.
In sum, the message dispensing device that the embodiment of the present invention provides, by adding each client-side information getting in on-line/off-line message sink group to, receive online/deferred information and receive the message that in group, the corresponding client of any one client-side information sends, message is sent to each client and each client in off-line state that is in line states in on-line/off-line message sink group, can be by client from only supporting the online message reception group that sends message to each client that is in line states to import to support simultaneously to being in each client of line states and the on-line/off-line message sink group of each client transmission message in off-line state, make the client also can receipt message when off-line state, solved the problem that the client in off-line state in channel can not receive message, reached the effect that expands the transmission range of message.
Please refer to Fig. 5, it shows the structural framing figure of the message dispensing device that yet another embodiment of the invention provides, and this message dispensing device can be applied to create has on-line/off-line message sink group and online message to receive in the server of group.This message dispensing device, comprising: acquisition of information module 401, information are added module 402 and information receiving and transmitting module 403.
Acquisition of information module 401, for obtaining online message, receive the client-side information of each client of group, online message receives group and only supports that to online message, receiving each client that is in line states in group sends message, and on-line/off-line message sink community supporting sends message to each client and each client in off-line state of being in line states in on-line/off-line message sink group simultaneously;
Information is added module 402, for each client-side information that acquisition of information module 401 is got, adds on-line/off-line message sink group to;
Information receiving and transmitting module 403, line/the deferred information adding after module 402 is added for reception information receives the message that the corresponding client of any one client-side information of group sends, and message is sent to each client and each client in off-line state that is in line states in on-line/off-line message sink group.
Optionally, device also comprises:
Request receiving module 404, obtain the client-side information of each client of online message reception group for acquisition of information module 401 before, receive first group identification that carries client identification, on-line/off-line message sink group of client transmission and the interpolation request that online message receives the second group identification of group;
Label detection module 405, for the client identification that receives according to request receiving module 404 and the first group identification, detect whether client is the Administrator Client of on-line/off-line message sink group, and the client identification receiving according to request receiving module 404 and the second group identification whether detect client be the Administrator Client that online message receives group;
Request respond module 406, for the result detecting in label detection module 405, be that client is that the Administrator Client of on-line/off-line message sink group and client are that online message is while receiving the Administrator Client of group, request is added in response, triggers to carry out and obtains the step that online message receives the client-side information of each client in group.
Optionally, information is added module 402, comprising:
The first adding device 4021, for directly adding client-side information to on-line/off-line message sink group; And/or,
The second adding device 4022, for send the inquiry message that whether adds online/deferred information to receive group to each client, if receive client according to the confirmation of inquiry message feedback, according to confirmation, the client-side information of client added in on-line/off-line message sink group.
Optionally, information is added module, also comprises:
Request reception unit 4023, after whether adding the inquiry message of online/deferred information reception group for the second adding device 4022 to each client transmission, receive that client sends for asking to exit the request of exiting that online message receives group, when the request exited is client according to inquiry message feedback exclude information, send, exclude information is used to indicate refusal and adds the client-side information of client to on-line/off-line message sink group;
Information deletion unit 4024, receives after the request of exiting for request reception unit 4023, deletes the client-side information that online message receives client in group.
Optionally, information is added module 402, comprising:
Type acquiring unit 4025, for obtaining the client type of each client-side information;
The 3rd adding device 4026, if comprise at least one grouping for on-line/off-line message sink group, the client type getting according to the corresponding relation between client type and each grouping and type acquiring unit 4025 adds client-side information in corresponding grouping to;
The 4th adding device 4027, if do not comprise grouping for on-line/off-line message sink group, create at least one grouping, the client type getting according to the corresponding relation between client type and each grouping and type acquiring unit 4025 adds client-side information in corresponding grouping to.
Optionally, device also comprises:
Number of times acquisition module 407, before asking respond module 406 response interpolation requests, obtains the number of times of success response interpolation request in predetermined amount of time;
Number of times detection module 408, whether the number of times getting for detection of number of times acquisition module 407 is less than pre-determined number threshold value;
Response trigger module 409, is number of times while being less than pre-determined number threshold value for the result detecting at number of times detection module 408, triggers and carries out the step that request is added in response.
In sum, the message dispensing device that the embodiment of the present invention provides, by adding each client-side information getting in on-line/off-line message sink group to, receive online/deferred information and receive the message that in group, the corresponding client of any one client-side information sends, message is sent to each client and each client in off-line state that is in line states in on-line/off-line message sink group, can be by client from only supporting the online message reception group that sends message to each client that is in line states to import to support simultaneously to being in each client of line states and the on-line/off-line message sink group of each client transmission message in off-line state, make the client also can receipt message when off-line state, solved the problem that the client in off-line state in channel can not receive message, reached the effect that expands the transmission range of message.In addition, by client-side information being added in corresponding grouping according to corresponding relation and client type between client type and each grouping, can directly client-side information be added in corresponding grouping, and do not need user to add client-side information to first group, one by one the client-side information in the first group is divided into groups again, improved the grouping efficiency of client-side information.
It should be noted that: the message dispensing device that above-described embodiment provides is when carrying out message transmission, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to message dispensing device is divided into different functional modules, to complete all or part of function described above.In addition, message dispensing device and message method embodiment that above-described embodiment provides belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
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 modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.