WO2014048305A1 - 一种建立会话的方法、服务器、装置、系统及设备 - Google Patents

一种建立会话的方法、服务器、装置、系统及设备 Download PDF

Info

Publication number
WO2014048305A1
WO2014048305A1 PCT/CN2013/084116 CN2013084116W WO2014048305A1 WO 2014048305 A1 WO2014048305 A1 WO 2014048305A1 CN 2013084116 W CN2013084116 W CN 2013084116W WO 2014048305 A1 WO2014048305 A1 WO 2014048305A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
session
terminal
server
time
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.)
Ceased
Application number
PCT/CN2013/084116
Other languages
English (en)
French (fr)
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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to EP13840739.0A priority Critical patent/EP2849411B1/en
Priority to MX2014015354A priority patent/MX342518B/es
Priority to JP2015516454A priority patent/JP5909597B2/ja
Priority to BR112014032981A priority patent/BR112014032981A2/pt
Priority to RU2014153908/08A priority patent/RU2604418C2/ru
Priority to KR1020147035146A priority patent/KR101825781B1/ko
Publication of WO2014048305A1 publication Critical patent/WO2014048305A1/zh
Priority to US14/586,889 priority patent/US9602516B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/104Grouping of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1818Conference organisation arrangements, e.g. handling schedules, setting up parameters needed by nodes to attend a conference, booking network resources, notifying involved parties
    • 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
    • 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/21Monitoring or handling of messages
    • H04L51/222Monitoring or handling of messages using geographical location information, e.g. messages transmitted or received in proximity of a certain spot or area
    • 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/48Message addressing, e.g. address format or anonymous messages, aliases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0407Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the identity of one or more communicating identities is hidden
    • H04L63/0421Anonymous communication, i.e. the party's identifiers are hidden from the other party or parties, e.g. using an anonymizer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Definitions

  • the present disclosure relates to the field of communications technologies, and in particular, to a method, a server, a device, a system, and a device for establishing a session. Background technique
  • IM Instant Messenger
  • the communication tool can provide a convenient conversation service for the user, and the session can include: a variety of conversation services such as a text conversation, a voice conversation, and a video conversation.
  • the requirements for the session are: First, the user needs to establish his own account on the Internet and write his or her personal information, such as age, gender, etc., and make it public on the Internet. Secondly, two people can choose to interact with each other or add another party to establish a friend relationship, that is, give each other the right to conduct a session with themselves.
  • the server can establish a session for the user with the friend relationship and provide the session service.
  • the embodiments of the present disclosure provide a method, a server, a device, a system, and a device for establishing a session, which can prevent the user's personal information from being leaked without authorization, and can satisfy the user's meeting requirements.
  • the present disclosure provides a method of establishing a session, the method comprising:
  • the identifier is used by the terminal to distinguish a session object of the first user, and is invisible to the first user.
  • the present invention provides a method for establishing a session, the method comprising: sending a session request of a first user to a server;
  • the second user is a session object obtained by the server for matching the first user, and the identifier is used to distinguish the session object of the first user.
  • the present invention provides a server for establishing a session, the server comprising: a first receiving module, configured to receive a session request sent by a first user through a terminal;
  • a matching module configured to perform matching for the first user to obtain a session object of the first user, a second user
  • a first sending module configured to send the identifier of the second user to the terminal, so that the terminal establishes a session between the first user and the second user;
  • the identifier is used by the terminal to distinguish a session object of the first user, and is invisible to the first user.
  • the present invention provides an apparatus for establishing a session, where the apparatus includes: a first sending module, configured to send a session request of a first user to a server;
  • a first receiving module configured to receive an identifier of the second user sent by the server
  • a establishing module configured to establish a session between the first user and the second user according to the identifier of the second user, and hide the identifier of the second user
  • the second user is a session object of the first user that is obtained by the server for matching the first user, and the identifier is used to distinguish a session object of the first user.
  • the invention provides a system for establishing a session, the system comprising: any of the servers as described above and any of the devices described above.
  • the present invention provides an apparatus, the apparatus comprising:
  • One or more processors are One or more processors;
  • One or more modules the one or more modules being stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions: receiving a first a session request sent by the user through the terminal;
  • the identifier is used by the terminal to distinguish a session object of the first user, and is invisible to the first user.
  • the present invention provides an apparatus, the apparatus comprising:
  • One or more processors are One or more processors;
  • One or more modules the one or more modules being stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions: The first user's session request;
  • the second user is a session object of the first user that is obtained by the server for matching the first user, and the identifier is used to distinguish a session object of the first user.
  • a method, a server, a device, and a device for establishing a session are provided by the embodiment of the present disclosure.
  • the session object is matched for the first user, and only the session object of the first user is returned to the terminal.
  • the user's identity is used to establish a session, so that the terminal distinguishes the conversation by the identifier, and does not output any user's personal information without the user's authorization, thereby completing the task of establishing a temporary session for the user without causing the user's personal Information is leaked, enhancing the security of the user's personal information.
  • FIG. 1 is an exemplary flowchart of a method for establishing a session according to an embodiment of the present disclosure
  • FIG. 2 is an exemplary flowchart of another method for establishing a session according to an embodiment of the present disclosure
  • An exemplary flowchart of a method for establishing a session is provided.
  • FIG. 4 is an exemplary flowchart of a method for a server to match a real-time session object for a first user in a method for establishing a session according to an embodiment of the present disclosure;
  • FIG. 5 is a schematic diagram of a completed session interface provided by an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a server for establishing a session according to an embodiment of the present disclosure
  • FIG. 7 is a schematic diagram of a second structure of a server for establishing a session according to an embodiment of the present disclosure
  • FIG. 8 is a schematic diagram of a third structure of a server for establishing a session according to an embodiment of the present disclosure
  • FIG. 9 is a schematic diagram of a fourth structure of a server for establishing a session according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of a fifth structure of a server for establishing a session according to an embodiment of the present disclosure
  • FIG. 11 is a schematic structural diagram of a first receiving module in a server for establishing a session according to an embodiment of the present disclosure
  • FIG. 12 is a schematic structural diagram of a matching module in a server for establishing a session according to an embodiment of the present disclosure
  • FIG. 13 is a schematic diagram of a sixth structure of a server for establishing a session according to an embodiment of the present disclosure
  • FIG. 14 is a schematic diagram of a seventh structure of a server for establishing a session according to an embodiment of the present disclosure
  • FIG. 15 is a schematic diagram of an eighth structure of a server for establishing a session according to an embodiment of the present disclosure.
  • FIG. 16 is a schematic structural diagram of an apparatus for establishing a session according to an embodiment of the present disclosure
  • FIG. 17 is a schematic diagram of a second structure of an apparatus for establishing a session according to an embodiment of the present disclosure
  • FIG. 18 is a third structural diagram of an apparatus for establishing a session according to an embodiment of the present disclosure.
  • FIG. 19 is a schematic diagram showing a fourth structure of an apparatus for establishing a session according to an embodiment of the present disclosure.
  • FIG. 20 is a schematic diagram showing a fifth structure of an apparatus for establishing a session according to an embodiment of the present disclosure
  • FIG. 21 is a sixth structural diagram of an apparatus for establishing a session according to an embodiment of the present disclosure.
  • FIG. 22 is a seventh structural diagram of an apparatus for establishing a session according to an embodiment of the present disclosure.
  • FIG. 23 is a schematic diagram showing an eighth structure of an apparatus for establishing a session according to an embodiment of the present disclosure.
  • FIG. 1 a method for establishing a session is provided in an embodiment of the present disclosure.
  • the server used to establish a session is improved, and the server is used as an example.
  • the method includes the following steps:
  • the identifier is used by the terminal to distinguish a session object of the first user, and is invisible to the first user.
  • the identifier is invisible to the first user, that is, the terminal hides the identifier of the second user from the first user.
  • the identifier of the second user is sent to the terminal, so that the terminal establishes a session for the first user and the second user, and establishes a session.
  • the identifier is used only for the terminal to distinguish which session object the session comes from, and does not output the identifier of the second user, so as to achieve the effect of hiding the identity of the second user.
  • the method may further include:
  • the method may further include:
  • the terminal Receiving, by the terminal, the session content input by the first user in the session with the second user and the identifier of the second user, and carrying the identifier of the first user, the second A session message of the user's identity and the session content of the first user is sent to the second user.
  • the method may further include:
  • the receiving the session request sent by the first user by using the terminal may be as follows: Receiving a session request sent by the first user through the terminal, and recording a time when the session request of the first user is received is the first time.
  • the matching the first user to obtain the second user of the first user's session object may be as follows:
  • the real-time session object that matches the first user is a user who issues a session request within a first duration range before or after the first moment.
  • the determining whether there is a real-time session object that matches the first user may be as follows:
  • Step A determining whether a session object matching the first user is recorded in the locally saved registry, and when a session object matching the first user is recorded in the locally saved registry, performing step B, when When the session object matching the first user is not recorded in the locally saved registry, step C is performed;
  • Step B The session object that matches the first user recorded in the locally saved registry is used as the real-time session object that matches the first user, and the operation ends;
  • Step C Select a session object that matches the first user according to a preset first rule in the local candidate queue.
  • step D When the selection is successful, perform step D.
  • step E When the selection fails, perform step E.
  • Step D And selecting, according to the first rule, a session object that matches the first user in a local candidate queue as the real-time session object that matches the first user, and the first user and the A real-time session object matching the first user is recorded in the registry, and the operation ends;
  • Step E Add the first user to the candidate queue, and return to the step A. If the real-time session object that matches the first user is not successfully matched when the first duration is reached, There is a real-time session object that matches the first user, and the operation ends.
  • the first rule may be any one or any combination of the following rules: selecting, by the preset first probability, a user who is different from the gender of the first user in the candidate queue as the The rules of the real-time session object that the first user matches;
  • the searching for the user who is the closest to the first moment at the time of sending the session request before the first moment is the second user may be as follows:
  • the second rule may be any one or any combination of the following rules: selecting, by using a preset third probability, a user who is different from the gender of the first user in the candidate queue as the second user the rule of;
  • a rule in which the same user as the city in which the first user is located is selected as the rule of the second user in the candidate queue with a preset fourth probability.
  • the method may further include:
  • the method may further include:
  • the first condition may be:
  • the method may further include:
  • the opening of the second user is a text, picture, audio or video file saved in advance by the second user.
  • An embodiment of the present disclosure provides a method for establishing a session, by matching a session object to a first user after the first user issues a session request, and returning only the identity of the second user of the session object of the first user to the terminal to establish a session. , so that the terminal distinguishes the conversation by the identifier without being authorized by the user.
  • no personal information of the user is output, and the task of establishing a temporary session for the user is completed, but the personal information of the user is not leaked, and the security of the user's personal information is enhanced.
  • a method for establishing a session is provided in an embodiment of the present disclosure.
  • the terminal used to establish a session is improved, and is described as a terminal example.
  • the method includes the following steps: S201. Send a first to a server. User's session request;
  • S203 Establish a session with the second user according to the identifier of the second user, and hide the identifier of the second user.
  • the second user is a session object obtained by the server for matching the first user, and the identifier is used to distinguish the session object of the first user.
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the first condition may be:
  • the method further includes:
  • the opening of the second user is a text, picture, audio or video file previously saved by the second user in the server.
  • An embodiment of the present disclosure provides a method for establishing a session, by matching a session object to a first user after the first user issues a session request, and returning only the identity of the second user of the session object of the first user to the terminal to establish a session. , so that the terminal distinguishes the dialogue by the identifier, and does not output any user's personal information without the authorization of the user, and completes the task of establishing a temporary session for the user without causing the user's personal information to be leaked, and the enhanced The security of the user's personal information.
  • an embodiment of the present disclosure provides a method for establishing a session, including the following steps:
  • the first user sends a session request by using an IM tool in the mobile phone.
  • the terminal is a mobile phone as an example.
  • the first user installs an IM tool in the mobile phone, and the first user uses the IM account in the mobile phone to successfully log in.
  • the session request refers to the requirement to establish a chat request with a non-friend user, that is, the server is required to match a chat object (session object) for itself.
  • the terminal may be a tablet computer, a notebook computer, a PC, or the like in addition to the mobile phone, and is not limited to the mobile phone.
  • a time axis is set in the server for recording the time when each user sends a session request to the server. Accordingly, when the server receives the session request sent by the first user, the current time is recorded as the first time.
  • the server matches the real-time session object for the first user, if the matching is successful, step S303 is performed, if the matching fails, step S304 is performed;
  • the real-time session object can be defined as:
  • the other user who issues the session request within the first time period before or after the first time is centered on the first time.
  • the manner in which the first user matches the real-time session object is adopted, and the user experience can be increased to achieve the real-time performance of the matching establishment session, so that the user feels that the session object is matched after the session request is issued.
  • the server matches the real-time session object for the first user, and may adopt the offline mode:
  • step S302-1 determining whether a real-time session object with the first user is recorded in the locally saved registry, and when a real-time session object with the first user is recorded in the locally saved registry, step S302- 2, when the real-time session object with the first user is not recorded in the locally saved registry, step S302-3 is performed;
  • a registry is established locally at the server, and each user's session object is recorded in the registry in real time.
  • the lookup match is preferably performed in the registry.
  • Step S302-2 The real-time session object recorded in the locally saved registry and the first user is used as the session object of the first user, and the operation ends;
  • step S302-3 the real-time session object of the first user is selected according to the preset first rule in the local candidate queue.
  • step S302-4 is performed.
  • step S302-5 is performed. ;
  • a candidate queue is also stored locally at the server for matching the real-time session object to the user who did not match the real-time session object in step S302-1.
  • the first rule may be any one of the following rules or a combination of any rules: Rule 1: selecting, by using a preset first probability, a user who is different from the gender of the first user in the candidate queue as the first user Real-time session object;
  • Rule 2 selecting, in the candidate queue, the same user as the city in which the first user is located as the real-time session object that matches the first user.
  • the user profile of each user is stored in the server, and the user profile includes geographic location information and gender of the user.
  • the first rule is only a preferred mode, and the matching of the session objects according to the user's preference, school, and the like may be defined in the first rule.
  • the first probability and the second probability are both 100%, and the real-time session object of the first user is selected according to a preset first rule in the local candidate queue.
  • a user who is different from the gender of the first user and is in the same city as the real-time conversation object of the first user is randomly selected.
  • Step S302-4 The real-time session object matched by the first user selected in the local candidate queue according to the first rule is used as the session object of the first user, and the first user and the The real-time session object of the first user is recorded in the registry, and the operation ends;
  • Step S302-5 adding the first user to the candidate queue, and returning to the step S302-1, when the first duration is reached, the real-time session object matching the first user is still not successfully matched. , it is considered that there is no real-time session object matching the first user, and the operation ends.
  • the first user is considered to have no real-time session object.
  • the first user's mobile phone displays a search animation, and the duration of the search animation is greater than or equal to the first duration, so that the server is the first time in the first time period.
  • the user matches the live session object.
  • the first duration can be set by the developer or the user, for example, it can be set to 5 seconds in this embodiment.
  • the first user is deleted from the candidate queue.
  • step S305 the real-time session object that is obtained by the first user is matched as the second user's session object, and step S305 is performed;
  • step S305 is performed;
  • this step S304 can adopt the following manner:
  • the user who sends a session request to the server is sequentially forwarded, and when the user who meets the preset second rule is checked, the second that meets the preset is satisfied.
  • the user of the rule acts as the session object of the first user.
  • the second rule may be any one of the following rules or a combination of any rules:
  • Rule 3 selecting, by a preset third probability, a user who is different from the gender of the first user as the session object of the first user;
  • Rule 4 selecting the same user as the city in which the first user is located with a preset fourth probability And as the real-time session object that matches the first user.
  • the user profile of each user is stored in the server, and the user profile includes geographic location information and gender of the user.
  • the second rule is only a preferred mode, and the matching of the session objects according to the user's preference, school, and the like may be defined in the second rule.
  • the third probability and the fourth probability are both 70% as an example.
  • the first time is taken as the starting point, and the user who sends the session request to the server is sequentially searched forward.
  • the user who meets the preset second rule is obtained, the user who meets the preset second rule is used as the session object of the first user, and may be:
  • the user who sends a session request to the server is sequentially forwarded, and the session object of the first user determined according to the third probability and the fourth probability is obtained.
  • the gender and the user of the city are located, the gender of the first user's session object and the user of the city in which the user is located according to the third probability and the fourth probability are satisfied as the session object of the first user.
  • determining the gender of the first user's conversation object according to the third probability may be as follows:
  • the fourth probability is 70%
  • the first user is an example of Beijing.
  • the city of the first user's session object is determined according to the fourth probability, and the following manner can be used: Bucket, and mark 70% of the tokens as Beijing, 30% of the tokens as non-Beijing, randomly assign a token to the first user, and mark the city marked on the token as the first user The city of the conversation object.
  • the server sends the identifier of the second user to the terminal.
  • the identifier is used by the terminal to distinguish the session object of the first user, and is invisible to the first user.
  • the identifier of the second user is hidden, that is, Outputting a second user identifier, optionally outputting only the session content of the first user and the second user, so that the first user cannot obtain the identifier of the second user, so the first user cannot be authorized by the second user. Get the personal information of the second user.
  • the identifier is invisible to the user, and after the terminal receives the identifier of the second user, the session between the first user and the second user may be established, preferably in the form of a conversation group in the IM tool. So that the first user can have a conversation with the second user.
  • the identifier can be an IM account of the user, but is not visible to the session object, and can also be a secondary account registered by the user under the IM account.
  • the secondary account is only used for the instant session between the users, and the user cannot pass the second level.
  • the account finds the user data of the other party.
  • the identifier of the second user may be used to distinguish which group the session belongs to; or when the first user receives the session content sent by the server, it may be sent according to the content of the session. The identity of the conversation, which is sent by which user.
  • the respective session information is displayed in the session to ensure that the user's privacy is not leaked.
  • the content of the user's session is transmitted through the audio file as an example.
  • the interface after the session is established for the first user and the second user is as follows:
  • 10 is used to indicate the mobile phone, and 20 is the display area of the mobile phone;
  • 201 is a notification bar of the session, where 2011 is a function key, used to return to the previous interface, 2012 is used to display the city of the session object, and 2013 is also a function key for setting parameters;
  • 202 is the opening of the session object, where 2021 is a play key, used to play the opening of the session object, 2022 is a play progress bar, and 2013 is used to indicate the duration of the opening of the session object;
  • 203 is a chat box, where 2031 is a random prompt generated by the server, 2032 represents a session content (audio file) sent by the first user, and has a play button, 2033 indicates the duration of the session content sent by the first user, and 2034 indicates that Two session content (audio file) sent by the user, and provided with a play button, 2035 indicates the duration of the session content sent by the second user, 2036 indicates a function key for recording the audio file for sending as the session content, and 2037 indicates the function key. Used to display the chat status, 2038 indicates the function key, used to replace the session object.
  • the first user and the second user can mutually send the session content.
  • the session content is an audio file.
  • the session content can also be: text, picture or video files and other content that can be transmitted over the network.
  • the processed user data of the other party is displayed, and the processed user data does not reveal the personal information of the user.
  • the processing of the user data of the other party may be completed by the server or by the terminal.
  • the first user and the second user can mutually apply for viewing the user data of the other party.
  • the embodiment of the present disclosure provides a method for establishing a session. After the first user issues a session request, the server matches the session object for the first user, and only returns the identifier of the second user of the session object of the first user to the terminal to establish The session enables the terminal to distinguish the conversation by the identifier without outputting any user's personal information without authorization by the user, and completes the task of establishing a temporary session for the user without causing the user's personal information to be leaked and enhanced. The security of the user's personal information.
  • the embodiment provides a server for establishing a session, and the server includes:
  • the first receiving module 401 is configured to receive a session request sent by the first user by using the terminal, and the matching module 402 is configured to perform matching for the first user to obtain a second user of the session object of the first user.
  • the first sending module 403 is configured to send the identifier of the second user to the terminal, so that the terminal establishes a session between the first user and the second user;
  • the identifier is used by the terminal to distinguish a session object of the first user, and is invisible to the first user.
  • the server may further include:
  • a second sending module 404 configured to send, by the first sending module 403, the terminal to the terminal An identifier of the second user, after the terminal establishes a session between the first user and the second user, sending, to the terminal, an identifier carrying the second user and a session content of the second user Session message.
  • the server may further include:
  • a second receiving module 405, configured to: after the first sending module 403 sends the identifier of the second user to the terminal, to enable the terminal to establish a session between the first user and the second user, Receiving, by the terminal, the session content input by the first user in a session with the second user and the identifier of the second user;
  • the third sending module 406 is configured to send a session message carrying the identifier of the first user, the identifier of the second user, and the session content of the first user to the second user.
  • the server may further include:
  • the fourth sending module 407 is configured to: after the first sending module 403 sends the identifier of the second user to the terminal, to enable the terminal to establish a session between the first user and the second user, Transmitting, by the terminal, user data that passes through the second user;
  • the processing module 408 is configured to: after the first sending module 403 sends the identifier of the second user to the terminal, to enable the terminal to establish a session between the first user and the second user, The user data of the second user is processed, so that the processed user information of the second user does not reveal the personal information of the second user, and the processed user data of the second user is sent to the terminal.
  • the first receiving module 401 includes:
  • the first receiving unit 4011 is configured to receive a session request sent by the first user by using the terminal, and the recording unit 4012 is configured to record that the time when the session request of the first user is received is the first time.
  • the matching module 402 includes:
  • the first determining unit 4021 is configured to determine, according to the first moment, whether there is a real-time session object that matches the first user;
  • the first processing unit 4022 is configured to: when the first determining unit 4021 determines that the real-time session object that matches the first user is present, the real-time session object that matches the first user is used as the first Two users; a second processing unit 4023, configured to: when the first determining unit 4021 determines that the real-time session object that matches the first user does not exist, find a time interval before sending the session request before the first moment The user at the first moment is the second user;
  • the real-time session object that matches the first user is a user who issues a session request within a first duration range before or after the first moment.
  • the first determining unit 4021 is configured to perform the following operations:
  • Step A determining whether a session object matching the first user is recorded in the locally saved registry, and when a session object matching the first user is recorded in the locally saved registry, performing step B, when When the session object matching the first user is not recorded in the locally saved registry, step C is performed;
  • Step B The session object that matches the first user recorded in the locally saved registry is used as the real-time session object that matches the first user, and the operation ends;
  • Step C Select a session object that matches the first user according to a preset first rule in the local candidate queue.
  • step D When the selection is successful, perform step D.
  • step E When the selection fails, perform step E.
  • Step D And selecting, according to the first rule, a session object that matches the first user in a local candidate queue as the real-time session object that matches the first user, and the first user and the A real-time session object matching the first user is recorded in the registry, and the operation ends;
  • Step E Add the first user to the candidate queue, and return to the step A. If the real-time session object that matches the first user is not successfully matched when the first duration is reached, There is a real-time session object that matches the first user, and the operation ends.
  • the first rule is any one or any combination of the following rules:
  • the second processing unit 4023 is configured to: before the first moment, send a session requesting user according to the timing of sending the session request, and when the troubleshooting is performed, the second rule that meets the preset rule is obtained.
  • the second rule is any one or any combination of the following rules: selecting, by a preset third probability, a user that is different from the gender of the first user as a rule of the second user;
  • the user who is the same as the city in which the first user is located is selected as the rule of the second user with a preset fourth probability.
  • the server may further include:
  • the third receiving module 409 is configured to: after the first sending module 403 sends the identifier of the second user to the terminal, to enable the terminal to establish a session between the first user and the second user, Receiving, by the first user, a request for acquiring the user profile of the second user, when the session between the first user and the second user reaches a preset first condition;
  • the fifth sending module 410 is configured to send, to the second user, the request that the first user obtains user information.
  • the server may further include:
  • the sixth sending module 411 is configured to send the user profile of the second user to the terminal when the second user agrees to the request that the first user obtains user information.
  • the first condition is:
  • the server may further include:
  • the seventh sending module 412 is configured to: after the first sending module 403 sends the identifier of the second user to the terminal, to enable the terminal to establish a session between the first user and the second user, Sending an opening statement of the second user to the terminal;
  • the opening of the second user is a text, picture, audio or video file saved in advance by the second user.
  • An embodiment of the present disclosure provides a server for establishing a session, by matching a session object for a first user after the first user issues a session request, and returning only the identifier of the second user of the session object of the first user to the terminal. Establishing a session, so that the terminal distinguishes the conversation by the identifier, and does not output any user's personal information without authorization by the user, and completes the task of establishing a temporary session for the user without causing the user's personal information to be leaked. Enhance the security of the user's personal information.
  • this embodiment provides an apparatus for establishing a session, where the apparatus package Includes:
  • the first sending module 501 is configured to send a session request of the first user to the server;
  • the first receiving module 502 is configured to receive the identifier of the second user that is sent by the server, and the establishing module 503 is configured to establish a session between the first user and the second user according to the identifier of the second user, and Hiding the identifier of the second user;
  • the second user is a session object of the first user that is obtained by the server for matching the first user, and the identifier is used to distinguish a session object of the first user.
  • the apparatus may further include:
  • the second receiving module 504 is configured to: after the establishing module 503 establishes a session between the first user and the second user according to the identifier of the second user, receive, by the server, the second a session message of the user's identity and the session content of the second user;
  • the output module 505 is configured to output the session content of the second user in a session between the first user and the second user.
  • the apparatus may further include:
  • the third receiving module 506 is configured to: after the establishing module 503 establishes a session between the first user and the second user according to the identifier of the second user, receiving the first user and the second The content of the session entered in the user's session;
  • the second sending module 507 is configured to send the session content of the first user and the identifier of the second user to the server.
  • the apparatus may further include:
  • the fourth receiving module 508 is configured to: after the establishing module 503 establishes a session between the first user and the second user according to the identifier of the second user, receive the second user sent by the server
  • the user profile is processed and outputted by the user data of the second user, so that the output user information of the second user does not reveal the personal information of the second user.
  • the device may further include:
  • the fifth receiving module 509 is configured to: after the establishing module 503 establishes a session between the first user and the second user according to the identifier of the second user, receive the user profile of the first user, and The user profile of the first user is processed such that the processed user profile of the first user does not reveal the personal information of the first user.
  • the apparatus may further include: a sixth receiving module 510, configured to: when the establishing module 503 establishes a session between the first user and the second user according to the identifier of the second user, when the first user and the second user When the session reaches the preset first condition, the request for acquiring the user profile of the second user sent by the first user is received and forwarded to the server.
  • a sixth receiving module 510 configured to: when the establishing module 503 establishes a session between the first user and the second user according to the identifier of the second user, when the first user and the second user When the session reaches the preset first condition, the request for acquiring the user profile of the second user sent by the first user is received and forwarded to the server.
  • the apparatus may further include:
  • the seventh receiving module 511 is configured to receive the user profile of the second user sent by the server when the second user agrees to the request that the first user obtains user information.
  • the first condition is:
  • the apparatus may further include:
  • the eighth receiving module 512 is configured to receive and output the second sent by the server after the establishing module 503 establishes a session between the first user and the second user according to the identifier of the second user.
  • the opening of the second user is a text, picture, audio or video file previously saved by the second user in the server.
  • An embodiment of the present disclosure provides an apparatus for establishing a session, by the server, after the first user issues a session request, the server matches the session object for the first user, and only receives the second user of the first user's session object returned by the server.
  • the identification is to establish a session, so that the terminal distinguishes the conversation by the identifier, and does not output any user's personal information without authorization by the user, and completes the task of establishing a temporary session for the user without causing the user's personal information. It is leaked and enhances the security of the user's personal information.
  • the present embodiment also provides a system for establishing a session, the system comprising: any of the servers for establishing a session as described above and any of the means for establishing a session as described above.
  • An embodiment of the present disclosure provides a system for establishing a session, by matching a session object for a first user after the first user issues a session request, and returning only the identifier of the second user of the session object of the first user to the terminal. Establishing a session, so that the terminal distinguishes the conversation by the identifier, and does not output any user's personal information without the authorization of the user, and completes the task of establishing a temporary session for the user without causing the user's personal information to be leaked. Enhance the security of the user's personal information.
  • the embodiment of the present disclosure further provides a device, which may be a server.
  • the device includes: One or more processors;
  • One or more modules the one or more modules being stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions:
  • the identifier is used by the terminal to distinguish a session object of the first user, and is invisible to the first user.
  • the one or more modules further have the following functions:
  • the terminal After the sending, by the terminal, the identifier of the second user, to enable the terminal to establish a session between the first user and the second user, sending, to the terminal, the second user A session message identifying the content of the session with the second user.
  • the one or more modules further have the following functions:
  • the terminal After the sending, by the terminal, the identifier of the second user, to enable the terminal to establish a session between the first user and the second user, receiving, by the terminal, the first user that is sent by the terminal.
  • the session content input in the session of the second user and the identifier of the second user, and carrying the identifier of the first user, the identifier of the second user, and the session content of the first user
  • a session message is sent to the second user.
  • the one or more modules further have the following functions:
  • the receiving the session request sent by the first user by using the terminal may be as follows Type:
  • the matching the first user to obtain the second user of the first user's session object may be as follows:
  • the real-time session object that matches the first user is a user who issues a session request within a first duration range before or after the first moment.
  • the determining whether there is a real-time session object that matches the first user may be as follows:
  • Step A determining whether a session object matching the first user is recorded in the locally saved registry, and when a session object matching the first user is recorded in the locally saved registry, performing step B, when When the session object matching the first user is not recorded in the locally saved registry, step C is performed;
  • Step B The session object that matches the first user recorded in the locally saved registry is used as the real-time session object that matches the first user, and the operation ends;
  • Step C Select a session object that matches the first user according to a preset first rule in the local candidate queue.
  • step D When the selection is successful, perform step D.
  • step E When the selection fails, perform step E.
  • Step D And selecting, according to the first rule, a session object that matches the first user in a local candidate queue as the real-time session object that matches the first user, and the first user and the A real-time session object matching the first user is recorded in the registry, and the operation ends;
  • Step E Add the first user to the candidate queue, and return to the step A.
  • the real-time session object that matches the first user is still not successfully matched. Then, it is considered that there is no real-time session object that matches the first user, and the operation ends.
  • the first rule may be any one or any combination of the following rules: selecting, by the preset first probability, a user who is different from the gender of the first user in the candidate queue as the a rule of a real-time session object that matches the first user;
  • the searching for the user who is the closest to the first moment at the time of sending the session request before the first moment is the second user may be as follows:
  • the second rule may be any one or any combination of the following rules: selecting, by a preset third probability, a user that is different from the gender of the first user as a rule of the second user;
  • the user who is the same as the city in which the first user is located is selected as the rule of the second user with a preset fourth probability.
  • the one or more modules further have the following functions:
  • the terminal After the sending, by the terminal, the identifier of the second user, to enable the terminal to establish a session between the first user and the second user, when the first user and the second user Receiving, by the first user, a request for acquiring the user profile of the second user, when the session reaches the preset first condition;
  • the one or more modules further have the following functions:
  • the first condition may be:
  • the one or more modules further have the following functions:
  • the opening of the second user is a text, picture, audio or video file saved in advance by the second user.
  • An embodiment of the present disclosure provides a device, by matching a session object with a first user after the first user sends a session request through the terminal, and only returns the identifier of the second user of the session object of the first user to establish a session.
  • the terminal is allowed to distinguish the conversation by the identifier, and does not output any user's personal information without authorization by the user, thereby completing the task of establishing a temporary session for the user without causing the user's personal information to be leaked, thereby enhancing the user.
  • the security of personal information is allowed to distinguish the conversation by the identifier, and does not output any user's personal information without authorization by the user, thereby completing the task of establishing a temporary session for the user without causing the user's personal information to be leaked, thereby enhancing the user.
  • the embodiment further provides a non-volatile readable storage medium, where the storage medium stores one or more programs, and when the one or more modules are applied to a device with a touch screen, The device can be caused to execute the following steps (instructions):
  • the identifier is used by the terminal to distinguish a session object of the first user, and is invisible to the first user.
  • the one or more modules may further cause the device to execute the following steps: sending the identifier of the second user to the terminal, so that the terminal establishes the first user and After the session of the second user, a session message carrying the identifier of the second user and the session content of the second user is sent to the terminal.
  • the one or more modules may further cause the device to execute the following steps: sending the identifier of the second user to the terminal, so that the terminal establishes the first user and After the session of the second user, receiving, by the terminal, the session content input by the first user in the session with the second user and the identifier of the second user, and carrying the first A session message of a user, an identifier of the second user, and a session content of the first user is sent to the second user.
  • the one or more modules may further cause the device to execute the following steps: sending the identifier of the second user to the terminal, so that the terminal establishes the first user and After the second user's session, sending the second user to the terminal Household information;
  • the receiving the session request sent by the first user through the terminal may be as follows:
  • the matching the first user to obtain the second user of the first user's session object may be as follows:
  • the real-time session object that matches the first user is used as the second user;
  • the real-time session object that matches the first user is a user who issues a session request within a first duration range before or after the first moment.
  • the determining whether there is a real-time session object that matches the first user may be as follows:
  • Step A determining whether a session object matching the first user is recorded in the locally saved registry, and when a session object matching the first user is recorded in the locally saved registry, performing step B, when When the session object matching the first user is not recorded in the locally saved registry, step C is performed;
  • Step B The session object that matches the first user recorded in the locally saved registry is used as the real-time session object that matches the first user, and the operation ends;
  • Step C Select a session object that matches the first user according to a preset first rule in the local candidate queue.
  • Step D The session object matched with the first user selected in the local candidate queue according to the first rule is used as the real-time session object matching the first user, and the first The user and the real-time session object matching the first user are recorded in the registry, and the operation ends;
  • Step E Add the first user to the candidate queue, and return to the step A. If the real-time session object that matches the first user is not successfully matched when the first duration is reached, There is a real-time session object that matches the first user, and the operation ends.
  • the first rule may be any one or any combination of the following rules: selecting, by the preset first probability, a user who is different from the gender of the first user in the candidate queue as the a rule of a real-time session object that matches the first user;
  • the searching for the user who is the closest to the first moment at the time of sending the session request before the first moment is the second user may be as follows:
  • the second rule may be any one or any combination of the following rules: selecting, by a preset third probability, a user that is different from the gender of the first user as a rule of the second user;
  • the user who is the same as the city in which the first user is located is selected as the rule of the second user with a preset fourth probability.
  • the one or more modules may further cause the device to execute the following steps: sending the identifier of the second user to the terminal, so that the terminal establishes the first user and After the session of the second user reaches a preset first condition, the first user sends the user data sent by the first user to obtain the user information of the second user.
  • sending the identifier of the second user to the terminal so that the terminal establishes the first user and After the session of the second user reaches a preset first condition, the first user sends the user data sent by the first user to obtain the user information of the second user.
  • the one or more modules may further cause the device to execute an instruction of: when the second user agrees to the request that the first user acquires user profile, to the terminal Sending the user data of the second user.
  • the first condition may be:
  • the one or more modules may further cause the device to execute the following steps: sending the identifier of the second user to the terminal, so that the terminal establishes the first user and After the session of the second user, sending an opening statement of the second user to the terminal;
  • the opening of the second user is a text, picture, audio or video file saved in advance by the second user.
  • An embodiment of the present disclosure provides a non-volatile storage medium, and a device having the non-volatile storage medium can match a session object to a first user after the first user issues a session request, and only return to the terminal.
  • the identifier of the second user of a user's session object is used to establish a session, so that the terminal distinguishes the conversation by the identifier, and does not output any user's personal information without authorization by the user, thereby completing the task of establishing a temporary session for the user. It will not cause the user's personal information to be leaked, and enhance the security of the user's personal information.
  • the embodiment of the present disclosure further provides a device, such as a mobile phone, a tablet computer, a mobile computer, or the like.
  • the device includes:
  • One or more processors are One or more processors;
  • One or more modules the one or more modules being stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions: The first user's session request;
  • the second user is a session object obtained by the server for matching the first user, and the identifier is used to distinguish the session object of the first user.
  • the one or more modules further have the following functions:
  • the one or more modules further have the following functions:
  • the server After the establishing, according to the identifier of the second user, the first user and the second user, receiving session content input by the first user in a session with the second user, and The session content of the first user and the identity of the second user are sent to the server.
  • the one or more modules further have the following functions:
  • the one or more modules further have the following functions:
  • the user information of the processed first user is not caused to leak the personal information of the first user.
  • the one or more modules further have the following functions:
  • the one or more modules further have the following functions:
  • the first condition is:
  • the one or more modules further have the following functions:
  • the opening and closing of the second user sent by the server is received and outputted; wherein the opening of the second user is a text, picture, audio or video file previously saved by the second user in the server.
  • An embodiment of the present disclosure provides a device, by receiving an identifier of a second user of a session object of a first user returned by a server after the first user issues a session request and the server matches the session object for the first user, so that the session is established.
  • the device distinguishes the conversation by the identifier, and does not output any user's personal information without the authorization of the user, and completes the task of establishing a temporary session for the user without causing the user's personal information to be leaked, thereby enhancing the user's The security of personal information.
  • the embodiment further provides a non-volatile readable storage medium, where the storage medium stores one or more programs, and when the one or more modules are applied to a device with a touch screen, The device can be caused to execute the following steps (instructions):
  • the second user is a session object obtained by the server for matching the first user, and the identifier is used to distinguish the session object of the first user.
  • the one or more modules may further cause the device to execute the following steps: after the establishing, according to the identifier of the second user, the first user establishes a session with the second user, receiving a session message sent by the server carrying the identifier of the second user and the session content of the second user;
  • the one or more modules may further cause the device to execute the following steps: after the establishing, according to the identifier of the second user, the first user establishes a session with the second user, receiving And the session content input by the first user in the session with the second user, and sending the session content of the first user and the identifier of the second user to the server.
  • the one or more modules may further cause the device to execute the following steps: after the establishing, according to the identifier of the second user, the first user establishes a session with the second user, receiving User data of the second user sent by the server, and the second user
  • the user's user profile is processed and output, so that the output of the second user's user profile does not reveal the second user's personal information.
  • the one or more modules may further cause the device to execute the following steps: after the establishing, according to the identifier of the second user, the first user establishes a session with the second user, receiving The user profile of the first user processes the user profile of the first user, so that the processed user profile of the first user does not reveal the personal information of the first user.
  • the one or more modules may further cause the device to execute the following steps: after the establishing, according to the identifier of the second user, the first user and the second user, When the session between the first user and the second user reaches a preset first condition, the server receives and forwards, to the server, a request for acquiring the user profile of the second user by the first user.
  • the one or more modules may further cause the device to execute the following steps: receiving, when the second user agrees to the first user acquiring a user profile request, sending the User data of the second user.
  • the first condition is:
  • the one or more modules may further cause the device to execute the following steps: after the establishing, according to the identifier of the second user, the first user establishes a session with the second user, receiving And outputting an opening statement of the second user sent by the server;
  • the opening of the second user is a text, picture, audio or video file previously saved by the second user in the server.
  • An embodiment of the present disclosure provides a nonvolatile storage medium
  • a device having the nonvolatile storage medium can issue a session at a first user by executing one or more modules stored in the nonvolatile storage medium
  • the request and the server match the session object for the first user
  • only the identifier of the second user of the session object of the first user returned by the server is received to establish a session, so that the device distinguishes the conversation by the identifier, and does not output without authorization by the user.
  • the personal information of any user not only completes the task of establishing a temporary session for the user, but also does not cause the user's personal information to be leaked, thereby enhancing the security of the user's personal information.
  • the embodiment can be implemented by hardware or by means of software plus a necessary general hardware platform.
  • the technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.).
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present disclosure.
  • modules in the apparatus in the embodiments may be distributed in the apparatus according to the embodiments, or may be correspondingly changed in one or more apparatuses different from the embodiment.
  • the modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Multimedia (AREA)
  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

一种建立会话的方法、 服务器、 装置、 系统及设备 本申请基于申请号为 201210362545.8、申请日为 2012年 9月 25日的中国 专利申请提出, 并要求该中国专利申请的优先权, 该中国专利申请的全部内 容在此引入本申请作为参考。 技术领域
本公开涉及通讯技术领域, 尤其涉及一种建立会话的方法、 服务器、 装 置、 系统及设备。 背景技术
随着互联网的普及, 各种通讯工具已经十分普及。 由于 IM ( Instant Messenger, 即时通讯)消息的便捷性, 并且可以应用于电脑、 手机等多种终 端之上, IM账号已经几乎成为人人必有的账号。
在现有情况下, 通讯工具可提供给用户便捷的会话服务, 所述会话可包 括: 文字会话、 语音会话、 视频会话等多样化的会话服务。 通常情况下, 会 话的要求是: 首先, 用户需要在互联网络上建立自身的账号并写入自身的个 人资料, 例如年龄、 性别等, 并公开在互联网络中。 其次, 两个人可以选择 交互账号或一方添加另一方的方式建立好友关系, 也即互相赋予对方与自身 进行会话的权限, 服务器即可以为具有好友关系的用户建立会话, 并提供会 话服务。
随着互联网的迅速发展, 人们的社交网络与互联网呈现交融之势, 现有 会话的功能, 这种通过服务器匹配建立的临时会话不要求会话的双方为好友 关系。
但是, 在为用户之间建立临时会话时, 对于每个用户而言, 个人的用户 资料都会在建立临时会话的同时暴露给对方, 例如头像、 性别等, 这就使得 用户的个人信息在未被授权的情况下被泄露, 导致用户的个人信息的安全性 差。 发明内容
本公开实施例提供了一种建立会话的方法、服务器、装置、 系统及设备, 可以避免用户的个人信息在未经授权的情况下被泄露, 同时能满足用户的会 话需求。
一方面, 本公开提供了一种建立会话的方法, 所述方法包括:
接收第一用户通过终端发出的会话请求;
为所述第一用户进行匹配得到所述第一用户的会话对象第二用户; 向所述终端发送所述第二用户的标识, 以使所述终端建立所述第一用户 与所述第二用户的会话;
其中, 所述标识用于所述终端区分所述第一用户的会话对象, 且对于所 述第一用户不可见。
另一方面, 本发明提供了一种建立会话的方法, 所述方法包括: 向服务器发送第一用户的会话请求;
接收所述服务器发送的第二用户的标识;
根据所述第二用户的标识为所述第一用户与所述第二用户建立会话, 并 隐藏所述第二用户的标识;
其中, 所述第二用户为所述服务器为所述第一用户进行匹配得到的会话 对象, 所述标识用于区分所述第一用户的会话对象。
再一方面,本发明提供了一种用于建立会话的服务器,所述服务器包括: 第一接收模块, 用于接收第一用户通过终端发出的会话请求;
匹配模块, 用于为所述第一用户进行匹配得到所述第一用户的会话对象 第二用户;
第一发送模块, 用于向所述终端发送所述第二用户的标识, 以使所述终 端建立所述第一用户与所述第二用户的会话;
其中, 所述标识用于所述终端区分所述第一用户的会话对象, 且对于所 述第一用户不可见。
再一方面, 本发明提供了一种用于建立会话的装置, 所述装置包括: 第一发送模块, 用于向服务器发送第一用户的会话请求;
第一接收模块, 用于接收所述服务器发送的第二用户的标识; 建立模块 , 用于根据所述第二用户的标识为所述第一用户与所述第二用 户建立会话, 并隐藏所述第二用户的标识;
其中, 所述第二用户为所述服务器为所述第一用户进行匹配得到的所述 第一用户的会话对象, 所述标识用于区分所述第一用户的会话对象。
再一方面, 本发明提供了一种用于建立会话的系统, 所述系统包括: 如 上所述的任一服务器和如上所述的任一装置。
再一方面, 本发明提供了一种设备, 所述设备包括:
一个或多个处理器;
存储器; 和
一个或多个模块, 所述一个或多个模块存储于所述存储器中并被配置成 由所述一个或多个处理器执行, 其中, 所述一个或多个模块具有如下功能: 接收第一用户通过终端发出的会话请求;
为所述第一用户进行匹配得到所述第一用户的会话对象第二用户; 向所述终端发送所述第二用户的标识, 以使所述终端建立所述第一用户 与所述第二用户的会话;
其中, 所述标识用于所述终端区分所述第一用户的会话对象, 且对于所 述第一用户不可见。
再一方面, 本发明提供了一种设备, 所述设备包括:
一个或多个处理器;
存储器; 和
一个或多个模块, 所述一个或多个模块存储于所述存储器中并被配置成 由所述一个或多个处理器执行, 其中, 所述一个或多个模块具有如下功能: 向服务器发送第一用户的会话请求;
接收所述服务器发送的第二用户的标识;
根据所述第二用户的标识为所述第一用户与所述第二用户建立会话, 并 隐藏所述第二用户的标识;
其中, 所述第二用户为所述服务器为所述第一用户进行匹配得到的所述 第一用户的会话对象, 所述标识用于区分所述第一用户的会话对象。
应当理解的是, 以上的一般描述和后文的细节描述仅是示例性的, 并不 能限制本公开。 本公开实施例的有益效果可以包括:
本公开实施例提供的一种建立会话的方法、 服务器、 装置及设备, 通过 在第一用户发出会话请求后, 为第一用户匹配会话对象, 且只向终端返回第 一用户的会话对象第二用户的标识以建立会话, 使得终端通过标识区分对 话, 而不经过用户授权的情况下不会输出任何用户的个人信息, 既完成了为 用户建立临时会话的任务, 而又不会使用户的个人信息被泄露, 增强了用户 的个人信息的安全性。 附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对现有技术或实施 例描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图 仅仅是本发明的一些实施例, 对于本领域技术人员来讲, 还可以如这些附图 获得其他的附图。
图 1为本公开实施例提供的一种建立会话的方法的示例性流程图; 图 2为本公开实施例提供的另一种建立会话的方法的示例性流程图; 图 3为本公开实施例提供的又一种建立会话的方法的示例性流程图; 图 4为本公开实施例提供的一种建立会话的方法中的服务器为第一用户 匹配实时会话对象的方法的示例性流程图;
图 5为本公开实施例提供的建立完成的会话界面的示意图;
图 6为本公开实施例提供的一种用于建立会话的服务器的结构示意图; 图 7为本公开实施例提供的一种用于建立会话的服务器的第二种结构示 意图;
图 8为本公开实施例提供的一种用于建立会话的服务器的第三种结构示 意图;
图 9为本公开实施例提供的一种用于建立会话的服务器的第四种结构示 意图;
图 10 为本公开实施例提供的一种用于建立会话的服务器的第五种结构 示意图;
图 11 为本公开实施例提供的一种用于建立会话的服务器中的第一接收 模块的结构示意图; 图 12 为本公开实施例提供的一种用于建立会话的服务器中的匹配模块 的结构示意图;
图 13 为本公开实施例提供的一种用于建立会话的服务器的第六种结构 示意图;
图 14 为本公开实施例提供的一种用于建立会话的服务器的第七种结构 示意图;
图 15 为本公开实施例提供的一种用于建立会话的服务器的第八种结构 示意图;
图 16为本公开实施例提供的一种用于建立会话的装置的结构示意图; 图 17 为本公开实施例提供的一种用于建立会话的装置的第二种结构示 意图;
图 18 为本公开实施例提供的一种用于建立会话的装置的第三种结构示 意图;
图 19 为本公开实施例提供的一种用于建立会话的装置的第四种结构示 意图;
图 20 为本公开实施例提供的一种用于建立会话的装置的第五种结构示 意图;
图 21 为本公开实施例提供的一种用于建立会话的装置的第六种结构示 意图;
图 22 为本公开实施例提供的一种用于建立会话的装置的第七种结构示 意图;
图 23 为本公开实施例提供的一种用于建立会话的装置的第八种结构示 意图。
通过上述附图, 已示出本公开明确的实施例,后文中将有更详细的描述。 这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围, 而是
具体实施方式
下面结合附图, 对本公开实施例提供的一种建立会话的方法、 服务器、 装置及设备的具体实施方式进行详细地说明。 首先, 如图 1所示, 本公开实施例提供的一种建立会话的方法, 对用于 建立会话的服务器进行了改进, 并以服务器端为例进行说明, 该方法包括以 下步骤:
S101、 接收第一用户通过终端发出的会话请求;
S102、 为所述第一用户进行匹配得到所述第一用户的会话对象第二用 户;
S103、 向所述终端发送所述第二用户的标识, 以使所述终端建立所述第 一用户与所述第二用户的会话;
其中, 所述标识用于所述终端区分所述第一用户的会话对象, 且对于所 述第一用户不可见。
较佳地, 所述标识对于所述第一用户不可见, 也即所述终端对所述第一 用户隐藏所述第二用户的标识。
优选地, 在服务器为第一用户和第二用户匹配成功且可以进行临时的会 话后, 将第二用户的标识发送给终端, 以便于终端为第一用户和第二用户建 立会话, 在建立会话时, 标识仅仅用于终端区分会话来自于哪一会话对象, 而不输出第二用户的标识, 以达到隐藏第二用户的标识的效果。
较佳地, 在步骤 S103之后, 所述方法还可以包括:
向所述终端发送携带有所述第二用户的标识和所述第二用户的会话内 容的会话消息。
较佳地, 在步骤 S103之后, 所述方法还可以包括:
接收所述终端发送的所述第一用户在与所述第二用户的会话中输入的 会话内容与所述第二用户的标识, 并将携带有所述第一用户的标识、 所述第 二用户的标识和所述第一用户的会话内容的会话消息发送给所述第二用户。
较佳地, 在步骤 S103之后, 所述方法还可以包括:
向所述终端发送经过所述第二用户的用户资料;
或,
将所述第二用户的用户资料进行处理, 使得经过处理后的第二用户的用 户资料不会泄露所述第二用户的个人信息, 将经过处理后的第二用户的用户 资料发送给所述终端。
其中,所述接收第一用户通过终端发出的会话请求,可以采用如下方式: 接收第一用户通过终端发出的会话请求, 并记录接收到所述第一用户的 会话请求的时刻为第一时刻。
较佳地, 所述为所述第一用户进行匹配得到所述第一用户的会话对象第 二用户, 可以采用如下方式:
根据所述第一时刻, 判断是否存在与所述第一用户匹配的实时会话对 如果存在所述与所述第一用户匹配的实时会话对象, 则将所述与所述第 一用户匹配的实时会话对象作为第二用户;
如果不存在所述与所述第一用户匹配的实时会话对象, 则查找在所述第 一时刻之前, 发送会话请求的时刻距所述第一时刻最近的用户作为第二用 户;
其中, 所述与所述第一用户匹配的实时会话对象为在所述第一时刻之前 或之后的第一时长范围内发出会话请求的用户。
较佳地, 所述判断是否存在与所述第一用户匹配的实时会话对象, 可以 采用如下方式:
步骤 A、 判断本地保存的注册表中是否记录有与所述第一用户匹配的会 话对象, 当本地保存的注册表中记录有与所述第一用户匹配的会话对象时, 执行步骤 B, 当本地保存的注册表中未记录有与所述第一用户匹配的会话对 象时, 执行步骤 C;
步骤 B、 将所述本地保存的注册表中记录的与所述第一用户匹配的会话 对象作为所述与所述第一用户匹配的实时会话对象, 操作结束;
步骤 C、 在本地的候选队列中按照预设的第一规则选取与所述第一用户 匹配的会话对象, 当选取成功时, 执行步骤 D, 当选取失败时, 执行步骤 E; 步骤 D、 将按照所述第一规则在本地的候选队列中选取得到的与所述第 一用户匹配的会话对象作为所述与所述第一用户匹配的实时会话对象, 并将 所述第一用户与所述与所述第一用户匹配的实时会话对象记录在所述注册 表中, 操作结束;
步骤 E、 将所述第一用户加入所述候选队列, 并返回所述步骤 A, 当达 到第一时长时仍未成功匹配得到所述与所述第一用户匹配的实时会话对象, 则认为不存在所述与所述第一用户匹配的实时会话对象, 操作结束。 其中, 所述第一规则可以为以下规则的任意一个或任意组合: 以预设的第一概率在所述候选队列中选取与所述第一用户的性别不相 同的用户作为所述与所述第一用户匹配的实时会话对象的规则;
以预设的第二概率在所述候选队列中选取与所述第一用户所处的城市 相同的用户作为所述与所述第一用户匹配的实时会话对象的规则。
较佳地, 所述查找在所述第一时刻之前, 发送会话请求的时刻距所述第 一时刻最近的用户作为所述第二用户, 可以采用如下方式:
按照发送会话请求的时刻依次向前的顺序排查在所述第一时刻之前, 发 送会话请求用户, 当排查得到满足预设的第二规则的用户时, 将所述满足预 设的第二规则的用户作为所述第二用户。
其中, 所述第二规则可以为以下规则的任意一个或任意组合: 以预设的第三概率在所述候选队列中选取与所述第一用户的性别不相 同的用户作为所述第二用户的规则;
以预设的第四概率在所述候选队列中选取与所述第一用户所处的城市 相同的用户作为所述第二用户的规则。
较佳地, 在步骤 S103之后, 所述方法还可以包括:
当所述第一用户与所述第二用户的会话达到预设的第一条件时, 接收所 述第一用户发送的获取所述第二用户的用户资料的请求;
向所述第二用户发送所述第一用户获取用户资料的请求。
较佳地, 在步骤 S103之后, 所述方法还可以包括:
向所述终端发送所述第二用户的用户资料。
其中, 所述第一条件可以为:
在所述第一用户与所述第二用户的会话中, 对话数量达到预设数量。 较佳地, 在步骤 S103之后, 所述方法还可以包括:
向所述终端发送所述第二用户的开场白;
其中, 所述第二用户的开场白为所述第二用户预先保存在本地的文字、 图片、 音频或视频文件。
本公开实施例提供了一种建立会话的方法, 通过在第一用户发出会话请 求后, 为第一用户匹配会话对象, 且只向终端返回第一用户的会话对象第二 用户的标识以建立会话, 使得终端通过标识区分对话, 而不经过用户授权的 情况下不会输出任何用户的个人信息, 既完成了为用户建立临时会话的任 务, 而又不会使用户的个人信息被泄露, 增强了用户的个人信息的安全性。
如图 2所示, 本公开实施例提供的一种建立会话的方法, 对用于建立会 话的终端进行了改进, 并以为终端例进行说明, 该方法包括以下步骤: S201、 向服务器发送第一用户的会话请求;
5202、 接收所述服务器发送的第二用户的标识;
5203、 根据所述第二用户的标识为所述第一用户与所述第二用户建立会 话, 并隐藏所述第二用户的标识。
其中, 所述第二用户为所述服务器为所述第一用户进行匹配得到的会话 对象, 所述标识用于区分所述第一用户的会话对象。
较佳地, 在步骤 S203之后, 所述方法还包括:
接收所述服务器发送的携带有所述第二用户的标识和所述第二用户的 会话内容的会话消息;
在所述第一用户与所述第二用户的会话中输出所述第二用户的会话内 容。
较佳地, 在步骤 S203之后, 所述方法还包括:
接收所述第一用户在与所述第二用户的会话中输入的会话内容, 并将所 述第一用户的会话内容和所述第二用户的标识发送给所述服务器。
较佳地, 在步骤 S203之后, 所述方法还包括:
接收所述服务器发送的所述第二用户的用户资料, 并对所述第二用户的 用户资料进行处理后输出, 使得输出的第二用户的用户资料不会泄露所述第 二用户的个人信息。
较佳地, 在步骤 S203之后, 所述方法还包括:
接收所述第一用户的用户资料, 并对所述第一用户的用户资料进行处 理, 使得经过处理后的第一用户的用户资料不会泄露所述第一用户的个人信 较佳地, 在步骤 S203之后, 所述方法还包括:
当所述第一用户与所述第二用户的会话达到预设的第一条件时, 接收并 向所述服务器转发所述第一用户发出的获取所述第二用户的用户资料的请 求。 较佳地, 当所述第二用户同意所述第一用户获取用户资料的请求时, 所 述方法还包括:
接收所述服务器发送的所述第二用户的用户资料。
其中, 所述第一条件可以为:
在所述第一用户与所述第二用户的会话中, 对话数量达到预设数量。 较佳地, 在步骤 S203之后, 所述方法还包括:
接收并输出所述服务器发送的所述第二用户的开场白;
其中, 所述第二用户的开场白为所述第二用户预先保存在所述服务器的 文字、 图片、 音频或视频文件。
本公开实施例提供了一种建立会话的方法, 通过在第一用户发出会话请 求后, 为第一用户匹配会话对象, 且只向终端返回第一用户的会话对象第二 用户的标识以建立会话, 使得终端通过标识区分对话, 而不经过用户授权的 情况下不会输出任何用户的个人信息, 既完成了为用户建立临时会话的任 务, 而又不会使用户的个人信息被泄露, 增强了用户的个人信息的安全性。
如图 3所示,本公开实施例提供了一种建立会话的方法, 包括如下步骤:
5301、 第一用户通过手机中的 IM工具发出会话请求;
在本实施例中, 为例便于说明, 以终端为手机为例进行说明, 第一用户 在手机中安装有 IM工具,且第一用户在手机中使用其 IM账号进行成功登陆, 本实施例中的会话请求均指的是要求建立与非好友用户的聊天请求, 也即要 求服务器为自身匹配一个聊天对象(会话对象) 。
需要注意的是, 在进行本公开实施例的实施时, 终端除了手机之外, 还 可以为平板电脑、 笔记本电脑、 PC机等, 并不限定于手机。
较佳地, 在服务器中设立有时间轴, 用于记录每个用户向服务器发出会 话请求的时刻, 相应地, 当服务器接收到第一用户发送的会话请求时, 记录 当前时刻为第一时刻。
5302、 服务器为第一用户匹配实时会话对象, 如果匹配成功, 执行步骤 S303 , 如果匹配失败, 执行步骤 S304;
在本实施例中, 实时会话对象可以被定义为:
以所述第一时刻为中心点, 在所述第一时刻之前或之后第一时长范围内 发出会话请求的其他用户。 在有关技术中, 在为用户匹配会话对象时, 只能做到随机匹配。 在本公 开实施例中, 采用为第一用户匹配实时会话对象的方式, 可以增加用户的体 验,达到匹配建立会话的实时性,使得用户在体验上感觉发出会话请求之后, 匹配得到的会话对象也是正好有会话需求的用户。
较佳地, 如图 4所示, 服务器为第一用户匹配实时会话对象, 可以采用 口下方式:
S302-1、 判断本地保存的注册表中是否记录有与所述第一用户的实时会 话对象, 当本地保存的注册表中记录有与所述第一用户的实时会话对象时, 执行步骤 S302-2, 当本地保存的注册表中未记录有与所述第一用户的实时会 话对象时, 执行步骤 S302-3;
优选地, 在服务器本地建立一个注册表, 在注册表中实时的记录每个用 户的会话对象, 当服务器具有为用户匹配实时会话对象的需求时, 优选地在 注册表中进行查找匹配。
步骤 S302-2、 将所述本地保存的注册表中记录的与所述第一用户的实时 会话对象作为所述第一用户的会话对象, 操作结束;
步骤 S302-3、 在本地的候选队列中按照预设的第一规则选取所述第一用 户的实时会话对象, 当选取成功时, 执行步骤 S302-4, 当选取失败时, 执行 步骤 S302-5;
优选地, 在服务器本地还保存有候选队列, 用于为在步骤 S302-1中未匹 配到实时会话对象的用户匹配实时会话对象。
较佳地, 所述第一规则, 可以以下任一规则或任意规则的组合: 规则 1 : 以预设的第一概率在候选队列中选取与第一用户的性别不相同 的用户作为第一用户的实时会话对象;
规则 2:以预设的第二概率在所述候选队列中选取与所述第一用户所处的 城市相同的用户作为所述与所述第一用户匹配的实时会话对象。
其中, 在服务器中保存有每一个用户的用户资料, 用户资料中包括有用 户的地理位置信息和性别。 所述第一规则仅仅是优选的方式, 还可以在第一 规则中定义根据用户的爱好、 学校等信息进行会话对象的匹配。
在本实施例中, 以第一概率和第二概率均为 100%为例进行说明, 则在 本地的候选队列中按照预设的第一规则选取所述第一用户的实时会话对象, 可以为:
在本地的候选队列中, 随机选取一个与所述第一用户的性别不同且同城 的用户作为第一用户的实时会话对象。
步骤 S302-4、 将按照所述第一规则在本地的候选队列中选取得到的所述 第一用户匹配的实时会话对象作为所述第一用户的会话对象, 并将所述第一 用户与所述第一用户的实时会话对象记录在所述注册表中, 操作结束;
步骤 S302-5、 将所述第一用户加入所述候选队列, 并返回所述步骤 S302-1 , 当达到第一时长时仍未成功匹配得到所述与所述第一用户匹配的实 时会话对象,则认为不存在与所述第一用户匹配的实时会话对象,操作结束。
优选地, 当超过第一时长仍未为第一用户匹配得到实时会话对象时, 则 认为第一用户不存在实时会话对象。
作为一种优选的方案, 在第一用户发出会话请求时, 所述第一用户的手 机显示查找动画, 且查找动画的时长大于或等于第一时长, 以便于服务器在 第一时长内为第一用户匹配实时会话对象。
第一时长可由开发人员或用户进行设定, 例如在本实施例中可设定为 5 秒。
较佳地, 在将所述第一用户加入所述候选队列达到预设的第一时长之 后, 将所述第一用户从所述候选队列中删除。
5303、 将为第一用户匹配得到的实时会话对象作为第一用户的会话对象 第二用户, 执行步骤 S305;
5304、 查找在所述第一时刻之前, 发送会话请求的时刻距所述第一时刻 最近的用户作为第一用户的会话对象第二用户, 执行步骤 S305;
较佳地, 本步骤 S304可以采用如下方式:
在服务器建立的时间轴上, 以第一时刻为起点, 依次向前排查向服务器 发出会话请求的用户, 当排查得到满足预设的第二规则的用户时, 将所述满 足预设的第二规则的用户作为所述第一用户的会话对象。
优选地, 第二规则可以为以下任一规则或任意规则的组合:
规则 3: 以预设的第三概率选取与第一用户的性别不相同的用户作为第 一用户的会话对象;
规则 4: 以预设的第四概率选取与所述第一用户所处的城市相同的用户 作为所述与所述第一用户匹配的实时会话对象。
其中, 在服务器中保存有每一个用户的用户资料, 用户资料中包括有用 户的地理位置信息和性别。 所述第二规则仅仅是优选的方式, 还可以在第二 规则中定义根据用户的爱好、 学校等信息进行会话对象的匹配。
在本实施例中, 以第三概率和第四概率均为 70%为例进行说明, 则在服 务器建立的时间轴上, 以第一时刻为起点, 依次向前排查向服务器发出会话 请求的用户, 当排查得到满足预设的第二规则的用户时, 将所述满足预设的 第二规则的用户作为所述第一用户的会话对象, 可以为:
根据第三概率和第四概率确定所述第一用户的会话对象的性别和所处 城市;
在服务器建立的时间轴上, 以第一时刻为起点, 依次向前排查向服务器 发出会话请求的用户, 当排查得到满足根据第三概率和第四概率确定得到的 所述第一用户的会话对象的性别和所处城市的用户时, 将满足根据第三概率 和第四概率确定得到的所述第一用户的会话对象的性别和所处城市的用户 作为第一用户的会话对象。
以第三概率为 70%, 且所述第一用户为男性为例进行举例说明, 根据第 三概率确定所述第一用户的会话对象的性别, 可以采用如下方式:
建立一个令牌桶, 并将其中的 70%的令牌标记为女性, 30%的令牌标记 为男性, 随机为所述第一用户分配一个令牌, 将该令牌上所标记的性别作为 第一用户的会话对象的性别。
同理, 以第四概率为 70%, 且所述第一用户为北京为例进行举例说明, 根据第四概率确定所述第一用户的会话对象的城市, 可以采用如下方式: 建立一个令牌桶, 并将其中的 70%的令牌标记为北京, 30%的令牌标记 为非北京, 随机为所述第一用户分配一个令牌, 将该令牌上所标记的城市作 为第一用户的会话对象的城市。
S305、 服务器向所述终端发送所述第二用户的标识;
其中, 该标识用于终端区分第一用户的会话对象, 且对于第一用户不可 见。
较佳地, 当第一用户通过终端向服务器发出会话请求后, 在终端建立第 一用户与第二用户的临时会话时, 对所述第二用户的标识进行隐藏, 也即不 输出第二用户标识, 可选的只输出第一用户和第二用户的会话内容, 使得第 一用户不能得到第二用户的标识, 故第一用户在未经第二用户授权的情况 下, 不能得到第二用户的个人信息。
较佳地,该标识对于用户是不可见的,在终端接收到第二用户的标识后, 即可建立第一用户和第二用户的会话, 优选地可以在 IM工具中以会话组的 形式输出, 以便于第一用户与第二用户进行会话。
该标识可以为用户的 IM账号, 但是对于会话对象并不可见, 也可为用 户在 IM账号下注册的二级账号, 该二级账号只用于用户之间的即时会话, 用户不可通过二级账号查找到对方的用户资料。
例如, 当第一用户当前存在多组对话时, 则可依靠第二用户的标识来区 分会话属于哪一组; 或当第一用户接收服务器发送的会话内容时, 可以根据 与会话内容同时发送过来的标识, 区别该对话内容是由哪一用户发送的。
S306、 建立第一用户与第二用户的会话, 结束操作。
优选地, 在建立第一用户与第二用户的会话后, 仅仅在会话中显示各自 的对话信息, 以保证用户隐私不被泄露。
在本实施例中, 以用户的会话内容通过音频文件传递为例进行说明, 如 图 5所示, 为第一用户和第二用户建立会话之后的界面示意图:
10用于表示手机, 20为手机的显示区域;
201为会话的通知栏, 其中, 2011为功能键, 用于返回上一界面, 2012 用于显示会话对象的城市, 2013也为功能键, 用于设置参数;
202为会话对象的开场白, 其中, 2021为播放键, 用于播放会话对象的 开场白, 2022为播放进度条, 2013用于表示会话对象的开场白的时长;
203为聊天框, 其中, 2031为服务器生成的随机提示, 2032表示第一用 户发出的会话内容(音频文件) , 并且设有播放键, 2033表示第一用户发出 的会话内容的时长, 2034表示第二用户发出的会话内容(音频文件) , 并且 设有播放键, 2035表示第二用户发出的会话内容的时长, 2036表示功能键, 用于录制音频文件以作为会话内容发送, 2037表示功能键, 用于显示聊天状 态, 2038表示功能键, 用于更换会话对象。
如图 5所示, 在建立第一用户和第二用户的会话之后, 第一用户和第二 用户即可互发会话内容, 在本实施例中, 仅以会话内容为音频文件为例进行 说明, 在实际实施时, 会话内容还可以为: 文字、 图片或视频文件等可以通 过网络传输的内容。
可选的另一种实施方式是:
在第一用户与第二用户的会话中, 显示对方的经过处理的用户资料, 经 过处理后的用户资料不会泄露用户的个人信息。
优选地, 对于对方的用户资料的处理, 可由服务器完成, 也可由终端完 成。
例如:
在聊天框内显示对方的头像, 且头像经过预设的模糊处理, 该模糊处理 可由为将对方的头像增加毛玻璃效果, 或对于用户头像进行编辑, 使得用户 的脸部主要特征被遮挡住, 可由有效的保护用户的个人隐私。
较佳地, 在第一用户与第二用户的会话达到第一条件时, 则第一用户和 第二用户之间可互相申请查看对方的用户资料。
本公开实施例提供了一种建立会话的方法, 通过在第一用户发出会话请 求后, 服务器为第一用户匹配会话对象, 且只向终端返回第一用户的会话对 象第二用户的标识以建立会话, 使得终端通过标识区分对话, 而不经过用户 授权的情况下不会输出任何用户的个人信息, 既完成了为用户建立临时会话 的任务, 而又不会使用户的个人信息被泄露, 增强了用户的个人信息的安全 性。
如图 6所示, 本实施例提供了一种用于建立会话的服务器, 所述服务器 包括:
第一接收模块 401 , 用于接收第一用户通过终端发出的会话请求; 匹配模块 402, 用于为所述第一用户进行匹配得到所述第一用户的会话 对象第二用户;
第一发送模块 403 , 用于向所述终端发送所述第二用户的标识, 以使所 述终端建立所述第一用户与所述第二用户的会话;
其中, 所述标识用于所述终端区分所述第一用户的会话对象, 且对于所 述第一用户不可见。
较佳地, 如图 7所示, 所述服务器还可以包括:
第二发送模块 404, 用于在所述第一发送模块 403向所述终端发送所述 第二用户的标识, 以使所述终端建立所述第一用户与所述第二用户的会话之 后, 向所述终端发送携带有所述第二用户的标识和所述第二用户的会话内容 的会话消息。
较佳地, 如图 8所示, 所述服务器还可以包括:
第二接收模块 405, 用于在所述第一发送模块 403向所述终端发送所述 第二用户的标识, 以使所述终端建立所述第一用户与所述第二用户的会话之 后,接收所述终端发送的所述第一用户在与所述第二用户的会话中输入的会 话内容与所述第二用户的标识;
第三发送模块 406, 用于将携带有所述第一用户的标识、 所述第二用户 的标识和所述第一用户的会话内容的会话消息发送给所述第二用户。
较佳地, 如图 9或图 10所示, 所述服务器还可以包括:
第四发送模块 407, 用于在所述第一发送模块 403向所述终端发送所述 第二用户的标识, 以使所述终端建立所述第一用户与所述第二用户的会话之 后, 向所述终端发送经过所述第二用户的用户资料;
或,
处理模块 408, 用于在所述第一发送模块 403向所述终端发送所述第二 用户的标识, 以使所述终端建立所述第一用户与所述第二用户的会话之后, 将所述第二用户的用户资料进行处理, 使得经过处理后的第二用户的用户资 料不会泄露所述第二用户的个人信息, 将经过处理后的第二用户的用户资料 发送给所述终端。
较佳地, 如图 11所示, 所述第一接收模块 401 , 包括:
第一接收单元 4011 , 用于接收第一用户通过终端发出的会话请求; 记录单元 4012,用于记录接收到所述第一用户的会话请求的时刻为第一 时刻。
如图 12所示, 所述匹配模块 402, 包括:
第一判断单元 4021 , 用于根据所述第一时刻, 判断是否存在与所述第一 用户匹配的实时会话对象;
第一处理单元 4022, 用于当所述第一判断单元 4021判断得到存在所述 与所述第一用户匹配的实时会话对象时, 将所述与所述第一用户匹配的实时 会话对象作为第二用户; 第二处理单元 4023 , 用于当所述第一判断单元 4021判断得到不存在所 述与所述第一用户匹配的实时会话对象时, 查找在所述第一时刻之前, 发送 会话请求的时刻距所述第一时刻最近的用户作为第二用户;
其中, 所述与所述第一用户匹配的实时会话对象为在所述第一时刻之前 或之后的第一时长范围内发出会话请求的用户。
较佳地, 所述第一判断单元 4021 , 用于执行如下步骤的操作:
步骤 A、 判断本地保存的注册表中是否记录有与所述第一用户匹配的会 话对象, 当本地保存的注册表中记录有与所述第一用户匹配的会话对象时, 执行步骤 B, 当本地保存的注册表中未记录有与所述第一用户匹配的会话对 象时, 执行步骤 C;
步骤 B、 将所述本地保存的注册表中记录的与所述第一用户匹配的会话 对象作为所述与所述第一用户匹配的实时会话对象, 操作结束;
步骤 C、 在本地的候选队列中按照预设的第一规则选取与所述第一用户 匹配的会话对象, 当选取成功时, 执行步骤 D, 当选取失败时, 执行步骤 E; 步骤 D、 将按照所述第一规则在本地的候选队列中选取得到的与所述第 一用户匹配的会话对象作为所述与所述第一用户匹配的实时会话对象, 并将 所述第一用户与所述与所述第一用户匹配的实时会话对象记录在所述注册 表中, 操作结束;
步骤 E、 将所述第一用户加入所述候选队列, 并返回所述步骤 A, 当达 到第一时长时仍未成功匹配得到所述与所述第一用户匹配的实时会话对象, 则认为不存在所述与所述第一用户匹配的实时会话对象, 操作结束。
较佳地, 所述第一规则为以下规则中的任意一个或任意组合:
以预设的第一概率在所述候选队列中选取与所述第一用户的性别不相 同的用户作为所述与所述第一用户匹配的实时会话对象的规则;
以预设的第二概率在所述候选队列中选取与所述第一用户所处的城市 相同的用户作为所述与所述第一用户匹配的实时会话对象的规则。
较佳地, 所述第二处理单元 4023 , 用于按照发送会话请求的时刻依次向 前的顺序排查在所述第一时刻之前, 发送会话请求用户, 当排查得到满足预 设的第二规则的用户时, 将所述满足预设的第二规则的用户作为所述第二用 户。 较佳地, 所述第二规则为以下规则中的任意一个或任意组合: 以预设的第三概率选取与所述第一用户的性别不相同的用户作为所述 第二用户的规则;
以预设的第四概率选取与所述第一用户所处的城市相同的用户作为所 述第二用户的规则。
较佳地, 如图 13所示, 所述服务器还可以包括:
第三接收模块 409, 用于在所述第一发送模块 403向所述终端发送所述 第二用户的标识, 以使所述终端建立所述第一用户与所述第二用户的会话之 后, 当所述第一用户与所述第二用户的会话达到预设的第一条件时, 接收所 述第一用户发送的获取所述第二用户的用户资料的请求;
第五发送模块 410, 用于向所述第二用户发送所述第一用户获取用户资 料的请求。
较佳地, 如图 14所示, 所述服务器还可以包括:
第六发送模块 411 , 用于当所述第二用户同意所述第一用户获取用户资 料的请求时, 向所述终端发送所述第二用户的用户资料。
较佳地, 所述第一条件为:
在所述第一用户与所述第二用户的会话中, 对话数量达到预设数量。 较佳地, 如图 15所示, 所述服务器还可以包括:
第七发送模块 412, 用于在所述第一发送模块 403向所述终端发送所述 第二用户的标识, 以使所述终端建立所述第一用户与所述第二用户的会话之 后, 向所述终端发送所述第二用户的开场白;
其中, 所述第二用户的开场白为所述第二用户预先保存在本地的文字、 图片、 音频或视频文件。
本公开实施例提供了一种用于建立会话的服务器, 通过在第一用户发出 会话请求后, 为第一用户匹配会话对象, 且只向终端返回第一用户的会话对 象第二用户的标识以建立会话, 使得终端通过标识区分对话, 而不经过用户 授权的情况下不会输出任何用户的个人信息, 既完成了为用户建立临时会话 的任务, 而又不会使用户的个人信息被泄露, 增强了用户的个人信息的安全 性。
如图 16所示, 本实施例提供了一种用于建立会话的装置, 所述装置包 括:
第一发送模块 501 , 用于向服务器发送第一用户的会话请求;
第一接收模块 502, 用于接收所述服务器发送的第二用户的标识; 建立模块 503 , 用于根据所述第二用户的标识为所述第一用户与所述第 二用户建立会话, 并隐藏所述第二用户的标识;
其中, 所述第二用户为所述服务器为所述第一用户进行匹配得到的所述 第一用户的会话对象, 所述标识用于区分所述第一用户的会话对象。
较佳地, 如图 17所示, 所述装置还可以包括:
第二接收模块 504, 用于在所述建立模块 503根据所述第二用户的标识 为所述第一用户与所述第二用户建立会话之后,接收所述服务器发送的携带 有所述第二用户的标识和所述第二用户的会话内容的会话消息;
输出模块 505 , 用于在所述第一用户与所述第二用户的会话中输出所述 第二用户的会话内容。
较佳地, 如图 18所示, 所述装置还可以包括:
第三接收模块 506, 用于在所述建立模块 503根据所述第二用户的标识 为所述第一用户与所述第二用户建立会话之后,接收所述第一用户在与所述 第二用户的会话中输入的会话内容;
第二发送模块 507, 用于将所述第一用户的会话内容和所述第二用户的 标识发送给所述服务器。
较佳地, 如图 19所示, 所述装置还可以包括:
第四接收模块 508, 用于在所述建立模块 503根据所述第二用户的标识 为所述第一用户与所述第二用户建立会话之后,接收所述服务器发送的所述 第二用户的用户资料, 并对所述第二用户的用户资料进行处理后输出, 使得 输出的第二用户的用户资料不会泄露所述第二用户的个人信息。
较佳地, 如图 20所示, 所述装置还可以包括:
第五接收模块 509, 用于在所述建立模块 503根据所述第二用户的标识 为所述第一用户与所述第二用户建立会话之后,接收所述第一用户的用户资 料, 并对所述第一用户的用户资料进行处理, 使得经过处理后的第一用户的 用户资料不会泄露所述第一用户的个人信息。
较佳地, 如图 21所示, 所述装置还可以包括: 第六接收模块 510, 用于在所述建立模块 503根据所述第二用户的标识 为所述第一用户与所述第二用户建立会话之后, 当所述第一用户与所述第二 用户的会话达到预设的第一条件时,接收并向所述服务器转发所述第一用户 发出的获取所述第二用户的用户资料的请求。
较佳地, 如图 22所示, 所述装置还可以包括:
第七接收模块 511 , 用于当所述第二用户同意所述第一用户获取用户资 料的请求时, 接收所述服务器发送的所述第二用户的用户资料。
较佳地, 所述第一条件为:
在所述第一用户与所述第二用户的会话中, 对话数量达到预设数量。 如图 23所示, 所述装置还可以包括:
第八接收模块 512, 用于在所述建立模块 503根据所述第二用户的标识 为所述第一用户与所述第二用户建立会话之后,接收并输出所述服务器发送 的所述第二用户的开场白;
其中, 所述第二用户的开场白为所述第二用户预先保存在所述服务器的 文字、 图片、 音频或视频文件。
本公开实施例提供了一种用于建立会话的装置, 通过在第一用户发出会 话请求后, 由服务器为第一用户匹配会话对象, 且只接收服务器返回的第一 用户的会话对象第二用户的标识以建立会话, 使得终端通过标识区分对话, 而不经过用户授权的情况下不会输出任何用户的个人信息, 既完成了为用户 建立临时会话的任务, 而又不会使用户的个人信息被泄露, 增强了用户的个 人信息的安全性。
本实施例还提供了一种用于建立会话的系统, 所述系统包括: 如上所述 的任一用于建立会话的服务器和如上所述的任一用于建立会话的装置。
本公开实施例提供了一种用于建立会话的系统, 通过在第一用户发出会 话请求后, 为第一用户匹配会话对象, 且只向终端返回第一用户的会话对象 第二用户的标识以建立会话, 使得终端通过标识区分对话, 而不经过用户授 权的情况下不会输出任何用户的个人信息, 既完成了为用户建立临时会话的 任务,而又不会使用户的个人信息被泄露,增强了用户的个人信息的安全性。
本公开实施例还提供了一种设备, 该设备可以为服务器。
所述设备包括: 一个或多个处理器;
存储器; 和
一个或多个模块( programs ) , 所述一个或多个模块存储于所述存储器 中并被配置成由所述一个或多个处理器执行, 其中, 所述一个或多个模块具 有如下功能:
接收第一用户通过终端发出的会话请求;
为所述第一用户进行匹配得到所述第一用户的会话对象第二用户; 向所述终端发送所述第二用户的标识, 以使所述终端建立所述第一用户 与所述第二用户的会话;
其中, 所述标识用于所述终端区分所述第一用户的会话对象, 且对于所 述第一用户不可见。
较佳地, 所述一个或多个模块还具有如下功能:
在所述向所述终端发送所述第二用户的标识, 以使所述终端建立所述第 一用户与所述第二用户的会话之后, 向所述终端发送携带有所述第二用户的 标识和所述第二用户的会话内容的会话消息。
较佳地, 所述一个或多个模块还具有如下功能:
在所述向所述终端发送所述第二用户的标识, 以使所述终端建立所述第 一用户与所述第二用户的会话之后,接收所述终端发送的所述第一用户在与 所述第二用户的会话中输入的会话内容与所述第二用户的标识, 并将携带有 所述第一用户的标识、 所述第二用户的标识和所述第一用户的会话内容的会 话消息发送给所述第二用户。
较佳地, 所述一个或多个模块还具有如下功能:
在所述向所述终端发送所述第二用户的标识, 以使所述终端建立所述第 一用户与所述第二用户的会话之后, 向所述终端发送经过所述第二用户的用 户资料;
或,
将所述第二用户的用户资料进行处理, 使得经过处理后的第二用户的用 户资料不会泄露所述第二用户的个人信息, 将经过处理后的第二用户的用户 资料发送给所述终端。
较佳地, 所述接收第一用户通过终端发出的会话请求, 可以采用如下方 式:
接收第一用户通过终端发出的会话请求, 并记录接收到所述第一用户的 会话请求的时刻为第一时刻。
较佳地, 所述为所述第一用户进行匹配得到所述第一用户的会话对象第 二用户, 可以采用如下方式:
根据所述第一时刻, 判断是否存在与所述第一用户匹配的实时会话对 如果存在所述与所述第一用户匹配的实时会话对象, 则将所述与所述第 一用户匹配的实时会话对象作为第二用户;
如果不存在所述与所述第一用户匹配的实时会话对象, 则查找在所述第 一时刻之前, 发送会话请求的时刻距所述第一时刻最近的用户作为第二用 户;
其中, 所述与所述第一用户匹配的实时会话对象为在所述第一时刻之前 或之后的第一时长范围内发出会话请求的用户。
较佳地, 所述判断是否存在与所述第一用户匹配的实时会话对象, 可以 采用如下方式:
步骤 A、 判断本地保存的注册表中是否记录有与所述第一用户匹配的会 话对象, 当本地保存的注册表中记录有与所述第一用户匹配的会话对象时, 执行步骤 B, 当本地保存的注册表中未记录有与所述第一用户匹配的会话对 象时, 执行步骤 C;
步骤 B、 将所述本地保存的注册表中记录的与所述第一用户匹配的会话 对象作为所述与所述第一用户匹配的实时会话对象, 操作结束;
步骤 C、 在本地的候选队列中按照预设的第一规则选取与所述第一用户 匹配的会话对象, 当选取成功时, 执行步骤 D, 当选取失败时, 执行步骤 E; 步骤 D、 将按照所述第一规则在本地的候选队列中选取得到的与所述第 一用户匹配的会话对象作为所述与所述第一用户匹配的实时会话对象, 并将 所述第一用户与所述与所述第一用户匹配的实时会话对象记录在所述注册 表中, 操作结束;
步骤 E、 将所述第一用户加入所述候选队列, 并返回所述步骤 A, 当达 到第一时长时仍未成功匹配得到所述与所述第一用户匹配的实时会话对象, 则认为不存在所述与所述第一用户匹配的实时会话对象, 操作结束。
较佳地, 所述第一规则可以为以下规则中的任意一个或任意组合: 以预设的第一概率在所述候选队列中选取与所述第一用户的性别不相 同的用户作为所述与所述第一用户匹配的实时会话对象的规则;
以预设的第二概率在所述候选队列中选取与所述第一用户所处的城市 相同的用户作为所述与所述第一用户匹配的实时会话对象的规则。
较佳地, 所述查找在所述第一时刻之前, 发送会话请求的时刻距所述第 一时刻最近的用户作为所述第二用户, 可以采用如下方式:
按照发送会话请求的时刻依次向前的顺序排查在所述第一时刻之前, 发 送会话请求用户, 当排查得到满足预设的第二规则的用户时, 将所述满足预 设的第二规则的用户作为所述第二用户。
较佳地, 所述第二规则可以为以下规则中的任意一个或任意组合: 以预设的第三概率选取与所述第一用户的性别不相同的用户作为所述 第二用户的规则;
以预设的第四概率选取与所述第一用户所处的城市相同的用户作为所 述第二用户的规则。
较佳地, 所述一个或多个模块还具有如下功能:
在所述向所述终端发送所述第二用户的标识, 以使所述终端建立所述第 一用户与所述第二用户的会话之后, 当所述第一用户与所述第二用户的会话 达到预设的第一条件时,接收所述第一用户发送的获取所述第二用户的用户 资料的请求;
向所述第二用户发送所述第一用户获取用户资料的请求。
较佳地, 所述一个或多个模块还具有如下功能:
当所述第二用户同意所述第一用户获取用户资料的请求时, 向所述终端 发送所述第二用户的用户资料。
较佳地, 所述第一条件可以为:
在所述第一用户与所述第二用户的会话中, 对话数量达到预设数量。 较佳地, 所述一个或多个模块还具有如下功能:
在所述向所述终端发送所述第二用户的标识, 以使所述终端建立所述第 一用户与所述第二用户的会话之后, 向所述终端发送所述第二用户的开场 白;
其中, 所述第二用户的开场白为所述第二用户预先保存在本地的文字、 图片、 音频或视频文件。
本公开实施例提供了一种设备, 通过在第一用户通过终端发出会话请求 后, 为第一用户匹配会话对象, 且只向终端返回第一用户的会话对象第二用 户的标识以建立会话, 使得终端通过标识区分对话, 而不经过用户授权的情 况下不会输出任何用户的个人信息, 既完成了为用户建立临时会话的任务, 而又不会使用户的个人信息被泄露, 增强了用户的个人信息的安全性。
另外, 本实施例还提供了一种非易失性可读存储介质, 该存储介质中存 储有一个或多个模块(programs ) , 该一个或多个模块被应用在具有触摸屏 幕的设备时, 可以使得该设备执行如下步骤的指令(instructions ) :
接收第一用户通过终端发出的会话请求;
为所述第一用户进行匹配得到所述第一用户的会话对象第二用户; 向所述终端发送所述第二用户的标识, 以使所述终端建立所述第一用户 与所述第二用户的会话;
其中, 所述标识用于所述终端区分所述第一用户的会话对象, 且对于所 述第一用户不可见。
较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令: 在所述向所述终端发送所述第二用户的标识, 以使所述终端建立所述第 一用户与所述第二用户的会话之后, 向所述终端发送携带有所述第二用户的 标识和所述第二用户的会话内容的会话消息。
较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令: 在所述向所述终端发送所述第二用户的标识, 以使所述终端建立所述第 一用户与所述第二用户的会话之后,接收所述终端发送的所述第一用户在与 所述第二用户的会话中输入的会话内容与所述第二用户的标识, 并将携带有 所述第一用户的标识、 所述第二用户的标识和所述第一用户的会话内容的会 话消息发送给所述第二用户。
较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令: 在所述向所述终端发送所述第二用户的标识, 以使所述终端建立所述第 一用户与所述第二用户的会话之后, 向所述终端发送经过所述第二用户的用 户资料;
或,
将所述第二用户的用户资料进行处理, 使得经过处理后的第二用户的用 户资料不会泄露所述第二用户的个人信息, 将经过处理后的第二用户的用户 资料发送给所述终端。
较佳地, 所述接收第一用户通过终端发出的会话请求, 可以采用如下方 式:
接收第一用户通过终端发出的会话请求, 并记录接收到所述第一用户的 会话请求的时刻为第一时刻。
较佳地, 所述为所述第一用户进行匹配得到所述第一用户的会话对象第 二用户, 可以采用如下方式:
根据所述第一时刻, 判断是否存在与所述第一用户匹配的实时会话对 象;
如果存在所述与所述第一用户匹配的实时会话对象, 则将所述与所述第 一用户匹配的实时会话对象作为第二用户;
如果不存在所述与所述第一用户匹配的实时会话对象, 则查找在所述第 一时刻之前, 发送会话请求的时刻距所述第一时刻最近的用户作为第二用 户;
其中, 所述与所述第一用户匹配的实时会话对象为在所述第一时刻之前 或之后的第一时长范围内发出会话请求的用户。
较佳地, 所述判断是否存在与所述第一用户匹配的实时会话对象, 可以 采用如下方式:
步骤 A、 判断本地保存的注册表中是否记录有与所述第一用户匹配的会 话对象, 当本地保存的注册表中记录有与所述第一用户匹配的会话对象时, 执行步骤 B, 当本地保存的注册表中未记录有与所述第一用户匹配的会话对 象时, 执行步骤 C;
步骤 B、 将所述本地保存的注册表中记录的与所述第一用户匹配的会话 对象作为所述与所述第一用户匹配的实时会话对象, 操作结束;
步骤 C、 在本地的候选队列中按照预设的第一规则选取与所述第一用户 匹配的会话对象, 当选取成功时, 执行步骤 D, 当选取失败时, 执行步骤 E; 步骤 D、 将按照所述第一规则在本地的候选队列中选取得到的与所述第 一用户匹配的会话对象作为所述与所述第一用户匹配的实时会话对象, 并将 所述第一用户与所述与所述第一用户匹配的实时会话对象记录在所述注册 表中, 操作结束;
步骤 E、 将所述第一用户加入所述候选队列, 并返回所述步骤 A, 当达 到第一时长时仍未成功匹配得到所述与所述第一用户匹配的实时会话对象, 则认为不存在所述与所述第一用户匹配的实时会话对象, 操作结束。
较佳地, 所述第一规则可以为以下规则中的任意一个或任意组合: 以预设的第一概率在所述候选队列中选取与所述第一用户的性别不相 同的用户作为所述与所述第一用户匹配的实时会话对象的规则;
以预设的第二概率在所述候选队列中选取与所述第一用户所处的城市 相同的用户作为所述与所述第一用户匹配的实时会话对象的规则。
较佳地, 所述查找在所述第一时刻之前, 发送会话请求的时刻距所述第 一时刻最近的用户作为所述第二用户, 可以采用如下方式:
按照发送会话请求的时刻依次向前的顺序排查在所述第一时刻之前, 发 送会话请求用户, 当排查得到满足预设的第二规则的用户时, 将所述满足预 设的第二规则的用户作为所述第二用户。
较佳地, 所述第二规则可以为以下规则中的任意一个或任意组合: 以预设的第三概率选取与所述第一用户的性别不相同的用户作为所述 第二用户的规则;
以预设的第四概率选取与所述第一用户所处的城市相同的用户作为所 述第二用户的规则。
较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令: 在所述向所述终端发送所述第二用户的标识, 以使所述终端建立所述第 一用户与所述第二用户的会话之后, 当所述第一用户与所述第二用户的会话 达到预设的第一条件时,接收所述第一用户发送的获取所述第二用户的用户 资料的请求;
向所述第二用户发送所述第一用户获取用户资料的请求。
较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令: 当所述第二用户同意所述第一用户获取用户资料的请求时, 向所述终端 发送所述第二用户的用户资料。
较佳地, 所述第一条件可以为:
在所述第一用户与所述第二用户的会话中, 对话数量达到预设数量。 较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令: 在所述向所述终端发送所述第二用户的标识, 以使所述终端建立所述第 一用户与所述第二用户的会话之后, 向所述终端发送所述第二用户的开场 白;
其中, 所述第二用户的开场白为所述第二用户预先保存在本地的文字、 图片、 音频或视频文件。
本公开实施例提供了一种非易失性存储介质, 具有该非易失性存储介质 的设备可通过在第一用户发出会话请求后, 为第一用户匹配会话对象, 且只 向终端返回第一用户的会话对象第二用户的标识以建立会话, 使得终端通过 标识区分对话, 而不经过用户授权的情况下不会输出任何用户的个人信息, 既完成了为用户建立临时会话的任务, 而又不会使用户的个人信息被泄露, 增强了用户的个人信息的安全性。
本公开实施例还提供了一种设备, 例如可以为手机、 平板电脑、 移动电 脑等。
所述设备包括:
一个或多个处理器;
存储器; 和
一个或多个模块, 所述一个或多个模块存储于所述存储器中并被配置成 由所述一个或多个处理器执行, 其中, 所述一个或多个模块具有如下功能: 向服务器发送第一用户的会话请求;
接收所述服务器发送的第二用户的标识;
根据所述第二用户的标识为所述第一用户与所述第二用户建立会话, 并 隐藏所述第二用户的标识;
其中, 所述第二用户为所述服务器为所述第一用户进行匹配得到的会话 对象, 所述标识用于区分所述第一用户的会话对象。
较佳地, 所述一个或多个模块还具有如下功能:
在所述根据所述第二用户的标识为所述第一用户与所述第二用户建立 会话之后,接收所述服务器发送的携带有所述第二用户的标识和所述第二用 户的会话内容的会话消息;
在所述第一用户与所述第二用户的会话中输出所述第二用户的会话内 谷。
较佳地, 所述一个或多个模块还具有如下功能:
在所述根据所述第二用户的标识为所述第一用户与所述第二用户建立 会话之后, 接收所述第一用户在与所述第二用户的会话中输入的会话内容, 并将所述第一用户的会话内容和所述第二用户的标识发送给所述服务器。
较佳地, 所述一个或多个模块还具有如下功能:
在所述根据所述第二用户的标识为所述第一用户与所述第二用户建立 会话之后, 接收所述服务器发送的所述第二用户的用户资料, 并对所述第二 用户的用户资料进行处理后输出, 使得输出的第二用户的用户资料不会泄露 所述第二用户的个人信息。
较佳地, 所述一个或多个模块还具有如下功能:
在所述根据所述第二用户的标识为所述第一用户与所述第二用户建立 会话之后, 接收所述第一用户的用户资料, 并对所述第一用户的用户资料进 行处理, 使得经过处理后的第一用户的用户资料不会泄露所述第一用户的个 人信息。
较佳地, 所述一个或多个模块还具有如下功能:
在所述根据所述第二用户的标识为所述第一用户与所述第二用户建立 会话之后, 当所述第一用户与所述第二用户的会话达到预设的第一条件时, 接收并向所述服务器转发所述第一用户发出的获取所述第二用户的用户资 料的请求。
较佳地, 所述一个或多个模块还具有如下功能:
在当所述第二用户同意所述第一用户获取用户资料的请求时, 接收所述 服务器发送的所述第二用户的用户资料。
较佳地, 所述第一条件为:
在所述第一用户与所述第二用户的会话中, 对话数量达到预设数量。 较佳地, 所述一个或多个模块还具有如下功能:
在所述根据所述第二用户的标识为所述第一用户与所述第二用户建立 会话之后, 接收并输出所述服务器发送的所述第二用户的开场白; 其中, 所述第二用户的开场白为所述第二用户预先保存在所述服务器的 文字、 图片、 音频或视频文件。
本公开实施例提供了一种设备, 通过在第一用户发出会话请求且服务器 为第一用户匹配会话对象之后, 只接收服务器返回的第一用户的会话对象第 二用户的标识以建立会话, 使得设备通过标识区分对话, 而不经过用户授权 的情况下不会输出任何用户的个人信息, 既完成了为用户建立临时会话的任 务, 而又不会使用户的个人信息被泄露, 增强了用户的个人信息的安全性。
另外, 本实施例还提供了一种非易失性可读存储介质, 该存储介质中存 储有一个或多个模块(programs ) , 该一个或多个模块被应用在具有触摸屏 幕的设备时, 可以使得该设备执行如下步骤的指令(instructions ) :
向服务器发送第一用户的会话请求;
接收所述服务器发送的第二用户的标识;
根据所述第二用户的标识为所述第一用户与所述第二用户建立会话, 并 隐藏所述第二用户的标识;
其中, 所述第二用户为所述服务器为所述第一用户进行匹配得到的会话 对象, 所述标识用于区分所述第一用户的会话对象。
较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令: 在所述根据所述第二用户的标识为所述第一用户与所述第二用户建立 会话之后,接收所述服务器发送的携带有所述第二用户的标识和所述第二用 户的会话内容的会话消息;
在所述第一用户与所述第二用户的会话中输出所述第二用户的会话内 谷。
较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令: 在所述根据所述第二用户的标识为所述第一用户与所述第二用户建立 会话之后, 接收所述第一用户在与所述第二用户的会话中输入的会话内容, 并将所述第一用户的会话内容和所述第二用户的标识发送给所述服务器。
较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令: 在所述根据所述第二用户的标识为所述第一用户与所述第二用户建立 会话之后, 接收所述服务器发送的所述第二用户的用户资料, 并对所述第二 用户的用户资料进行处理后输出 , 使得输出的第二用户的用户资料不会泄露 所述第二用户的个人信息。
较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令: 在所述根据所述第二用户的标识为所述第一用户与所述第二用户建立 会话之后, 接收所述第一用户的用户资料, 并对所述第一用户的用户资料进 行处理, 使得经过处理后的第一用户的用户资料不会泄露所述第一用户的个 人信息。
较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令: 在所述根据所述第二用户的标识为所述第一用户与所述第二用户建立 会话之后, 当所述第一用户与所述第二用户的会话达到预设的第一条件时, 接收并向所述服务器转发所述第一用户发出的获取所述第二用户的用户资 料的请求。
较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令: 在当所述第二用户同意所述第一用户获取用户资料的请求时, 接收所述 服务器发送的所述第二用户的用户资料。
较佳地, 所述第一条件为:
在所述第一用户与所述第二用户的会话中, 对话数量达到预设数量。 较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令: 在所述根据所述第二用户的标识为所述第一用户与所述第二用户建立 会话之后, 接收并输出所述服务器发送的所述第二用户的开场白;
其中, 所述第二用户的开场白为所述第二用户预先保存在所述服务器的 文字、 图片、 音频或视频文件。
本公开实施例提供了一种非易失性存储介质, 具有该非易失性存储介质 的设备通过执行存储在该非易失性存储介质中的一个或多个模块可以在第 一用户发出会话请求且服务器为第一用户匹配会话对象之后, 只接收服务器 返回的第一用户的会话对象第二用户的标识以建立会话, 使得设备通过标识 区分对话, 而不经过用户授权的情况下不会输出任何用户的个人信息, 既完 成了为用户建立临时会话的任务, 而又不会使用户的个人信息被泄露, 增强 了用户的个人信息的安全性。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本公 开实施例可以通过硬件实现, 也可以借助软件加必要的通用硬件平台的方式 来实现。 基于这样的理解, 本公开实施例的技术方案可以以软件产品的形式 体现出来,该软件产品可以存储在一个非易失性存储介质 (可以是 CD-ROM, U盘, 移动硬盘等) 中, 包括若干指令用以使得一台计算机设备(可以是个 人计算机, 服务器, 或者网络设备等)执行本公开各个实施例所述的方法。
本领域技术人员可以理解附图只是一个优选实施例的示意图, 附图中的 模块或流程并不一定是实施本公开所必须的。
本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描 述进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的 一个或多个装置中。 上述实施例的模块可以合并为一个模块, 也可以进一步 拆分成多个子模块。
上述本公开实施例序号仅仅为了描述, 不代表实施例的优劣。 公开的精神和范围。 这样, 倘若本公开的这些修改和变型属于本公开权利要 求及其等同技术的范围之内, 则本公开也意图包含这些改动和变型在内。

Claims

权利要求
1、 一种建立会话的方法, 其特征在于, 所述方法包括:
接收第一用户通过终端发出的会话请求;
为所述第一用户进行匹配得到所述第一用户的会话对象第二用户; 向所述终端发送所述第二用户的标识, 以使所述终端建立所述第一用户 与所述第二用户的会话;
其中, 所述标识用于所述终端区分所述第一用户的会话对象, 且对于所 述第一用户不可见。
2、 根据权利要求 1 所述的方法, 其特征在于, 所述向所述终端发送所 述第二用户的标识, 以使所述终端建立所述第一用户与所述第二用户的会话 之后, 所述方法还包括:
向所述终端发送携带有所述第二用户的标识和所述第二用户的会话内 容的会话消息。
3、 根据权利要求 1 所述的方法, 其特征在于, 所述向所述终端发送所 述第二用户的标识, 以使所述终端建立所述第一用户与所述第二用户的会话 之后, 所述方法还包括:
接收所述终端发送的所述第一用户在与所述第二用户的会话中输入的 会话内容与所述第二用户的标识, 并将携带有所述第一用户的标识、 所述第 二用户的标识和所述第一用户的会话内容的会话消息发送给所述第二用户。
4.根据权利要求 1所述的方法, 其特征在于, 所述向所述终端发送所述 第二用户的标识, 以使所述终端建立所述第一用户与所述第二用户的会话之 后, 所述方法还包括:
向所述终端发送经过所述第二用户的用户资料;
或,
将所述第二用户的用户资料进行处理, 使得经过处理后的第二用户的用 户资料不会泄露所述第二用户的个人信息, 将经过处理后的第二用户的用户 资料发送给所述终端。
5、 根据权利要求 1 所述的方法, 其特征在于, 所述接收第一用户通过 终端发出的会话请求, 采用如下方式:
接收第一用户通过终端发出的会话请求, 并记录接收到所述第一用户的 会话请求的时刻为第一时刻。
6、 根据权利要求 5 所述的方法, 其特征在于, 所述为所述第一用户进 行匹配得到所述第一用户的会话对象第二用户, 采用如下方式:
根据所述第一时刻, 判断是否存在与所述第一用户匹配的实时会话对 象;
如果存在所述与所述第一用户匹配的实时会话对象, 则将所述与所述第 一用户匹配的实时会话对象作为第二用户;
如果不存在所述与所述第一用户匹配的实时会话对象, 则查找在所述第 一时刻之前, 发送会话请求的时刻距所述第一时刻最近的用户作为第二用 户;
其中, 所述与所述第一用户匹配的实时会话对象为在所述第一时刻之前 或之后的第一时长范围内发出会话请求的用户。
7、 根据权利要求 6所述的方法, 其特征在于, 所述判断是否存在与所 述第一用户匹配的实时会话对象, 采用如下方式:
步骤 A、 判断本地保存的注册表中是否记录有与所述第一用户匹配的会 话对象, 当本地保存的注册表中记录有与所述第一用户匹配的会话对象时, 执行步骤 B, 当本地保存的注册表中未记录有与所述第一用户匹配的会话对 象时, 执行步骤 C;
步骤 B、 将所述本地保存的注册表中记录的与所述第一用户匹配的会话 对象作为所述与所述第一用户匹配的实时会话对象, 操作结束;
步骤 C、 在本地的候选队列中按照预设的第一规则选取与所述第一用户 匹配的会话对象, 当选取成功时, 执行步骤 D, 当选取失败时, 执行步骤 E; 步骤 D、 将按照所述第一规则在本地的候选队列中选取得到的与所述第 一用户匹配的会话对象作为所述与所述第一用户匹配的实时会话对象, 并将 所述第一用户与所述与所述第一用户匹配的实时会话对象记录在所述注册 表中, 操作结束;
步骤 E、 将所述第一用户加入所述候选队列, 并返回所述步骤 A, 当达 到第一时长时仍未成功匹配得到所述与所述第一用户匹配的实时会话对象, 则认为不存在所述与所述第一用户匹配的实时会话对象, 操作结束。
8、 根据权利要求 7所述的方法, 其特征在于, 所述第一规则为以下规 则中的任意一个或任意组合:
以预设的第一概率在所述候选队列中选取与所述第一用户的性别不相 同的用户作为所述与所述第一用户匹配的实时会话对象的规则;
以预设的第二概率在所述候选队列中选取与所述第一用户所处的城市 相同的用户作为所述与所述第一用户匹配的实时会话对象的规则。
9、 根据权利要求 7所述的方法, 其特征在于, 所述查找在所述第一时 刻之前, 发送会话请求的时刻距所述第一时刻最近的用户作为所述第二用 户, 采用如下方式:
按照发送会话请求的时刻依次向前的顺序排查在所述第一时刻之前, 发 送会话请求用户, 当排查得到满足预设的第二规则的用户时, 将所述满足预 设的第二规则的用户作为所述第二用户。
10、 根据权利要求 9所述的方法, 其特征在于, 所述第二规则为以下规 则中的任意一个或任意组合:
以预设的第三概率选取与所述第一用户的性别不相同的用户作为所述 第二用户的规则;
以预设的第四概率选取与所述第一用户所处的城市相同的用户作为所 述第二用户的规则。
11、 根据权利要求 1所述的方法, 其特征在于, 所述向所述终端发送所 述第二用户的标识, 以使所述终端建立所述第一用户与所述第二用户的会话 之后, 所述方法还包括:
当所述第一用户与所述第二用户的会话达到预设的第一条件时, 接收所 述第一用户发送的获取所述第二用户的用户资料的请求;
向所述第二用户发送所述第一用户获取用户资料的请求。
12、根据权利要求 11所述的方法, 其特征在于, 当所述第二用户同意所 述第一用户获取用户资料的请求时, 所述方法还包括:
向所述终端发送所述第二用户的用户资料。
13、根据权利要求 11或 12所述的方法, 其特征在于, 所述第一条件为: 在所述第一用户与所述第二用户的会话中, 对话数量达到预设数量。
14、 根据权利要求 1所述的方法, 其特征在于, 所述向所述终端发送所 述第二用户的标识, 以使所述终端建立所述第一用户与所述第二用户的会话 之后, 所述方法还包括:
向所述终端发送所述第二用户的开场白;
其中, 所述第二用户的开场白为所述第二用户预先保存在本地的文字、 图片、 音频或视频文件。
15、 一种建立会话的方法, 其特征在于, 所述方法包括:
向服务器发送第一用户的会话请求;
接收所述服务器发送的第二用户的标识;
根据所述第二用户的标识为所述第一用户与所述第二用户建立会话, 并 隐藏所述第二用户的标识;
其中, 所述第二用户为所述服务器为所述第一用户进行匹配得到的会话 对象, 所述标识用于区分所述第一用户的会话对象。
16、根据权利要求 15所述的方法, 其特征在于, 所述根据所述第二用户 的标识为所述第一用户与所述第二用户建立会话之后, 所述方法还包括: 接收所述服务器发送的携带有所述第二用户的标识和所述第二用户的 会话内容的会话消息;
在所述第一用户与所述第二用户的会话中输出所述第二用户的会话内 谷。
17、根据权利要求 15所述的方法, 其特征在于, 所述根据所述第二用户 的标识为所述第一用户与所述第二用户建立会话之后, 所述方法还包括: 接收所述第一用户在与所述第二用户的会话中输入的会话内容, 并将所 述第一用户的会话内容和所述第二用户的标识发送给所述服务器。
18、根据权利要求 15所述的方法, 其特征在于, 所述根据所述第二用户 的标识为所述第一用户与所述第二用户建立会话之后, 所述方法还包括: 接收所述服务器发送的所述第二用户的用户资料, 并对所述第二用户的 用户资料进行处理后输出, 使得输出的第二用户的用户资料不会泄露所述第 二用户的个人信息。
19、根据权利要求 15所述的方法, 其特征在于, 所述根据所述第二用户 的标识为所述第一用户与所述第二用户建立会话之后, 所述方法还包括: 接收所述第一用户的用户资料, 并对所述第一用户的用户资料进行处 理, 使得经过处理后的第一用户的用户资料不会泄露所述第一用户的个人信
20、根据权利要求 15所述的方法, 其特征在于, 所述根据所述第二用户 的标识为所述第一用户与所述第二用户建立会话之后, 所述方法还包括: 当所述第一用户与所述第二用户的会话达到预设的第一条件时, 接收并 向所述服务器转发所述第一用户发出的获取所述第二用户的用户资料的请 求。
21、根据权利要求 20所述的方法, 其特征在于, 当所述第二用户同意所 述第一用户获取用户资料的请求时, 所述方法还包括:
接收所述服务器发送的所述第二用户的用户资料。
22、根据权利要求 20或 21所述的方法, 其特征在于, 所述第一条件为: 在所述第一用户与所述第二用户的会话中, 对话数量达到预设数量。
23、根据权利要求 15所述的方法, 其特征在于, 所述根据所述第二用户 的标识为所述第一用户与所述第二用户建立会话之后, 所述方法还包括: 接收并输出所述服务器发送的所述第二用户的开场白;
其中, 所述第二用户的开场白为所述第二用户预先保存在所述服务器的 文字、 图片、 音频或视频文件。
24、 一种用于建立会话的服务器, 其特征在于, 所述服务器包括: 第一接收模块, 用于接收第一用户通过终端发出的会话请求;
匹配模块, 用于为所述第一用户进行匹配得到所述第一用户的会话对象 第二用户;
第一发送模块, 用于向所述终端发送所述第二用户的标识, 以使所述终 端建立所述第一用户与所述第二用户的会话;
其中, 所述标识用于所述终端区分所述第一用户的会话对象, 且对于所 述第一用户不可见。
25、 根据权利要求 24所述的服务器, 其特征在于, 所述服务器还包括: 第二发送模块, 用于在所述第一发送模块向所述终端发送所述第二用户 的标识, 以使所述终端建立所述第一用户与所述第二用户的会话之后, 向所 述终端发送携带有所述第二用户的标识和所述第二用户的会话内容的会话 消息。
26、 根据权利要求 24所述的服务器, 其特征在于, 所述服务器还包括: 第二接收模块, 用于在所述第一发送模块向所述终端发送所述第二用户 的标识, 以使所述终端建立所述第一用户与所述第二用户的会话之后, 接收 所述终端发送的所述第一用户在与所述第二用户的会话中输入的会话内容 与所述第二用户的标识;
第三发送模块, 用于将携带有所述第一用户的标识、 所述第二用户的标 识和所述第一用户的会话内容的会话消息发送给所述第二用户。
27、根据权利要求 24所述的服务器, 其特征在于, 所述服务器还包括: 第四发送模块, 用于在所述第一发送模块向所述终端发送所述第二用户 的标识, 以使所述终端建立所述第一用户与所述第二用户的会话之后, 向所 述终端发送经过所述第二用户的用户资料;
或,
处理模块, 用于在所述第一发送模块向所述终端发送所述第二用户的标 识, 以使所述终端建立所述第一用户与所述第二用户的会话之后, 将所述第 二用户的用户资料进行处理, 使得经过处理后的第二用户的用户资料不会泄 露所述第二用户的个人信息, 将经过处理后的第二用户的用户资料发送给所 述终端。
28、 根据权利要求 24所述的服务器, 其特征在于, 所述第一接收模块, 包括:
第一接收单元, 用于接收第一用户通过终端发出的会话请求;
记录单元, 用于记录接收到所述第一用户的会话请求的时刻为第一时 刻。
29、根据权利要求 28所述的服务器,其特征在于,所述匹配模块, 包括: 第一判断单元, 用于根据所述第一时刻, 判断是否存在与所述第一用户 匹配的实时会话对象;
第一处理单元, 用于当所述第一判断单元判断得到存在所述与所述第一 用户匹配的实时会话对象时, 将所述与所述第一用户匹配的实时会话对象作 为第二用户;
第二处理单元, 用于当所述第一判断单元判断得到不存在所述与所述第 一用户匹配的实时会话对象时, 查找在所述第一时刻之前, 发送会话请求的 时刻距所述第一时刻最近的用户作为第二用户; 其中, 所述与所述第一用户匹配的实时会话对象为在所述第一时刻之前 或之后的第一时长范围内发出会话请求的用户。
30、 根据权利要求 29所述的服务器, 其特征在于, 所述第一判断单元, 用于执行如下步骤的操作:
步骤 A、 判断本地保存的注册表中是否记录有与所述第一用户匹配的会 话对象, 当本地保存的注册表中记录有与所述第一用户匹配的会话对象时, 执行步骤 B, 当本地保存的注册表中未记录有与所述第一用户匹配的会话对 象时, 执行步骤 C;
步骤 B、 将所述本地保存的注册表中记录的与所述第一用户匹配的会话 对象作为所述与所述第一用户匹配的实时会话对象, 操作结束;
步骤 c、 在本地的候选队列中按照预设的第一规则选取与所述第一用户 匹配的会话对象, 当选取成功时, 执行步骤 D, 当选取失败时, 执行步骤 E; 步骤 D、 将按照所述第一规则在本地的候选队列中选取得到的与所述第 一用户匹配的会话对象作为所述与所述第一用户匹配的实时会话对象, 并将 所述第一用户与所述与所述第一用户匹配的实时会话对象记录在所述注册 表中, 操作结束;
步骤 E、 将所述第一用户加入所述候选队列, 并返回所述步骤 A, 当达 到第一时长时仍未成功匹配得到所述与所述第一用户匹配的实时会话对象, 则认为不存在所述与所述第一用户匹配的实时会话对象, 操作结束。
31、根据权利要求 30所述的服务器, 其特征在于, 所述第一规则为以下 规则中的任意一个或任意组合:
以预设的第一概率在所述候选队列中选取与所述第一用户的性别不相 同的用户作为所述与所述第一用户匹配的实时会话对象的规则;
以预设的第二概率在所述候选队列中选取与所述第一用户所处的城市 相同的用户作为所述与所述第一用户匹配的实时会话对象的规则。
32、 根据权利要求 30所述的服务器, 其特征在于, 所述第二处理单元, 用于按照发送会话请求的时刻依次向前的顺序排查在所述第一时刻之前, 发 送会话请求用户, 当排查得到满足预设的第二规则的用户时, 将所述满足预 设的第二规则的用户作为所述第二用户。
33、根据权利要求 32所述的服务器, 其特征在于, 所述第二规则为以下 规则中的任意一个或任意组合:
以预设的第三概率选取与所述第一用户的性别不相同的用户作为所述 第二用户的规则;
以预设的第四概率选取与所述第一用户所处的城市相同的用户作为所 述第二用户的规则。
34、 根据权利要求 24所述的服务器, 其特征在于, 所述服务器还包括: 第三接收模块, 用于在所述第一发送模块向所述终端发送所述第二用户 的标识, 以使所述终端建立所述第一用户与所述第二用户的会话之后, 当所 述第一用户与所述第二用户的会话达到预设的第一条件时,接收所述第一用 户发送的获取所述第二用户的用户资料的请求;
第五发送模块, 用于向所述第二用户发送所述第一用户获取用户资料的 请求。
35、 根据权利要求 34所述的服务器, 其特征在于, 所述服务器还包括: 第六发送模块, 用于当所述第二用户同意所述第一用户获取用户资料的 请求时, 向所述终端发送所述第二用户的用户资料。
36、 根据权利要求 34或 35所述的服务器, 其特征在于, 所述第一条件 为:
在所述第一用户与所述第二用户的会话中, 对话数量达到预设数量。
37、 根据权利要求 24所述的服务器, 其特征在于, 所述服务器还包括: 第七发送模块, 用于在所述第一发送模块向所述终端发送所述第二用户 的标识, 以使所述终端建立所述第一用户与所述第二用户的会话之后, 向所 述终端发送所述第二用户的开场白;
其中, 所述第二用户的开场白为所述第二用户预先保存在本地的文字、 图片、 音频或视频文件。
38、 一种用于建立会话的装置, 其特征在于, 所述装置包括:
第一发送模块, 用于向服务器发送第一用户的会话请求;
第一接收模块, 用于接收所述服务器发送的第二用户的标识;
建立模块, 用于根据所述第二用户的标识为所述第一用户与所述第二用 户建立会话, 并隐藏所述第二用户的标识;
其中, 所述第二用户为所述服务器为所述第一用户进行匹配得到的所述 第一用户的会话对象, 所述标识用于区分所述第一用户的会话对象。
39、 根据权利要求 38所述的装置, 其特征在于, 所述装置还包括: 第二接收模块, 用于在所述建立模块根据所述第二用户的标识为所述第 一用户与所述第二用户建立会话之后,接收所述服务器发送的携带有所述第 二用户的标识和所述第二用户的会话内容的会话消息;
输出模块, 用于在所述第一用户与所述第二用户的会话中输出所述第二 用户的会话内容。
40、 根据权利要求 38所述的装置, 其特征在于, 所述装置还包括: 第三接收模块, 用于在所述建立模块根据所述第二用户的标识为所述第 一用户与所述第二用户建立会话之后,接收所述第一用户在与所述第二用户 的会话中输入的会话内容;
第二发送模块, 用于将所述第一用户的会话内容和所述第二用户的标识 发送给所述服务器。
41、 根据权利要求 38所述的装置, 其特征在于, 所述装置还包括: 第四接收模块, 用于在所述建立模块根据所述第二用户的标识为所述第 一用户与所述第二用户建立会话之后,接收所述服务器发送的所述第二用户 的用户资料, 并对所述第二用户的用户资料进行处理后输出, 使得输出的第 二用户的用户资料不会泄露所述第二用户的个人信息。
42、 根据权利要求 38所述的装置, 其特征在于, 所述装置还包括: 第五接收模块, 用于在所述建立模块根据所述第二用户的标识为所述第 一用户与所述第二用户建立会话之后, 接收所述第一用户的用户资料, 并对 所述第一用户的用户资料进行处理, 使得经过处理后的第一用户的用户资料 不会泄露所述第一用户的个人信息。
43、 根据权利要求 38所述的装置, 其特征在于, 所述装置还包括: 第六接收模块, 用于在所述建立模块根据所述第二用户的标识为所述第 一用户与所述第二用户建立会话之后, 当所述第一用户与所述第二用户的会 话达到预设的第一条件时,接收并向所述服务器转发所述第一用户发出的获 取所述第二用户的用户资料的请求。
44、 根据权利要求 43所述的装置, 其特征在于, 所述装置还包括: 第七接收模块, 用于当所述第二用户同意所述第一用户获取用户资料的 请求时, 接收所述服务器发送的所述第二用户的用户资料。
45、根据权利要求 43或 44所述的装置, 其特征在于, 所述第一条件为: 在所述第一用户与所述第二用户的会话中, 对话数量达到预设数量。
46、 根据权利要求 38所述的装置, 其特征在于, 所述装置还包括: 第八接收模块, 用于在所述建立模块根据所述第二用户的标识为所述第 一用户与所述第二用户建立会话之后,接收并输出所述服务器发送的所述第 二用户的开场白;
其中, 所述第二用户的开场白为所述第二用户预先保存在所述服务器的 文字、 图片、 音频或视频文件。
47、 一种用于建立会话的系统, 其特征在于, 所述系统包括: 如权利要 求 24-37中任一权利要求所述的服务器和如权利要求 38-46中任一权利要求 所述的装置。
48、 一种设备, 其特征在于, 所述设备包括:
一个或多个处理器;
存储器; 和
一个或多个模块, 所述一个或多个模块存储于所述存储器中并被配置成 由所述一个或多个处理器执行, 其中, 所述一个或多个模块具有如下功能: 接收第一用户通过终端发出的会话请求;
为所述第一用户进行匹配得到所述第一用户的会话对象第二用户; 向所述终端发送所述第二用户的标识, 以使所述终端建立所述第一用户 与所述第二用户的会话;
其中, 所述标识用于所述终端区分所述第一用户的会话对象, 且对于所 述第一用户不可见。
49、 一种设备, 其特征在于, 所述设备包括:
一个或多个处理器;
存储器; 和
一个或多个模块, 所述一个或多个模块存储于所述存储器中并被配置成 由所述一个或多个处理器执行, 其中, 所述一个或多个模块具有如下功能: 向服务器发送第一用户的会话请求;
接收所述服务器发送的第二用户的标识; 根据所述第二用户的标识为所述第一用户与所述第二用户建立会话, 并 隐藏所述第二用户的标识;
其中, 所述第二用户为所述服务器为所述第一用户进行匹配得到的所述 第一用户的会话对象, 所述标识用于区分所述第一用户的会话对象。
PCT/CN2013/084116 2012-09-25 2013-09-24 一种建立会话的方法、服务器、装置、系统及设备 Ceased WO2014048305A1 (zh)

Priority Applications (7)

Application Number Priority Date Filing Date Title
EP13840739.0A EP2849411B1 (en) 2012-09-25 2013-09-24 Session establishment methods and corresponding server
MX2014015354A MX342518B (es) 2012-09-25 2013-09-24 Metodo, servidor, dispositivo, sistema y aparato para establecer sesion.
JP2015516454A JP5909597B2 (ja) 2012-09-25 2013-09-24 会話確立方法、サーバ、装置、会話確立システム、機器、プログラム、及び記録媒体
BR112014032981A BR112014032981A2 (pt) 2012-09-25 2013-09-24 método de estabelecimento de sessão, servidor, dispositivo, sistema e aparelho
RU2014153908/08A RU2604418C2 (ru) 2012-09-25 2013-09-24 Способ, сервер, устройство, система и приспособление для установления сеанса
KR1020147035146A KR101825781B1 (ko) 2012-09-25 2013-09-24 대화 확립 방법, 서버, 장치, 시스템, 기기, 프로그램 및 기록매체
US14/586,889 US9602516B2 (en) 2012-09-25 2014-12-30 Method, server and terminal device for establishing communication session

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210362545.8 2012-09-25
CN201210362545.8A CN102904936B (zh) 2012-09-25 2012-09-25 一种建立会话的方法、服务器、装置、系统及设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/586,889 Continuation-In-Part US9602516B2 (en) 2012-09-25 2014-12-30 Method, server and terminal device for establishing communication session

Publications (1)

Publication Number Publication Date
WO2014048305A1 true WO2014048305A1 (zh) 2014-04-03

Family

ID=47576971

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/084116 Ceased WO2014048305A1 (zh) 2012-09-25 2013-09-24 一种建立会话的方法、服务器、装置、系统及设备

Country Status (9)

Country Link
US (1) US9602516B2 (zh)
EP (1) EP2849411B1 (zh)
JP (1) JP5909597B2 (zh)
KR (1) KR101825781B1 (zh)
CN (1) CN102904936B (zh)
BR (1) BR112014032981A2 (zh)
MX (1) MX342518B (zh)
RU (1) RU2604418C2 (zh)
WO (1) WO2014048305A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9602516B2 (en) 2012-09-25 2017-03-21 Xiaomi Inc. Method, server and terminal device for establishing communication session

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516065B (zh) 2014-09-26 2018-08-14 华为技术有限公司 一种媒体控制方法和设备
CN105577504B (zh) * 2014-10-08 2020-06-05 腾讯科技(深圳)有限公司 建立通信通道的方法和装置
CN104468583B (zh) * 2014-12-11 2018-08-07 北京奇虎科技有限公司 单方采用匿名方式发送私信的方法及服务器
WO2017025780A1 (en) * 2015-08-13 2017-02-16 Redknee Inc. Method, system and apparatus for data session management in core mobile networks
CN105847115A (zh) * 2016-03-21 2016-08-10 重庆市鲲化科技有限公司 网络社交模糊头像渐变机制
US20170346770A1 (en) * 2016-05-25 2017-11-30 Teledini LLC Link-invoked omni-channel chat, voice and video
KR101815176B1 (ko) 2016-06-03 2018-01-05 주식회사 하이퍼커넥트 중개 방법, 장치 및 시스템
CN106953889B (zh) * 2017-01-26 2021-03-05 贵阳朗玛信息技术股份有限公司 基于移动终端的客户端匹配方法、服务器及客户端
KR20180133593A (ko) * 2017-06-07 2018-12-17 주식회사 하이퍼커넥트 중개 방법 및 장치
CN108055297A (zh) * 2017-11-30 2018-05-18 贝壳旅行科技(深圳)有限公司 用于出行人员的临时对话方法及装置
KR101979650B1 (ko) 2018-03-07 2019-05-17 주식회사 하이퍼커넥트 서버 및 그것의 동작 방법
CN109039861A (zh) * 2018-07-27 2018-12-18 福建兑信科技有限公司 设有限时互动的社交服务器及社交系统
CN111130986B (zh) * 2018-11-01 2022-04-05 腾讯科技(深圳)有限公司 消息发送方法、装置、设备及存储介质
CN111861483B (zh) * 2019-04-26 2024-11-15 阿里巴巴集团控股有限公司 一种通信方法、计算机设备、存储介质
KR102308636B1 (ko) 2019-08-27 2021-10-06 주식회사 하이퍼커넥트 영상 통화 중개 장치, 방법 및 컴퓨터 판독 가능한 기록매체
KR102329481B1 (ko) 2019-09-09 2021-11-24 주식회사 하이퍼커넥트 복수의 단말기를 중개하는 서버, 및 그것의 중개 방법
CN110677610A (zh) * 2019-10-08 2020-01-10 Oppo广东移动通信有限公司 一种视频流控制方法、视频流控制装置及电子设备
US11368535B2 (en) 2019-11-18 2022-06-21 Connectify, Inc. Apparatus and method for client connection establishment
KR102455966B1 (ko) * 2019-12-16 2022-10-18 주식회사 하이퍼커넥트 중개 장치, 방법 및 컴퓨터 판독 가능한 기록매체
KR102373764B1 (ko) 2020-02-21 2022-03-15 주식회사 하이퍼커넥트 단말기 및 그것의 동작 방법
US11756567B2 (en) * 2020-08-26 2023-09-12 International Business Machines Corporation Autocreation of conversational image representation
CN112104546B (zh) * 2020-09-27 2022-10-04 上海云鱼智能科技有限公司 “临时会话”实现方法、装置、服务器、客户端、终端及存储介质
CN112468831B (zh) 2020-10-19 2023-01-13 百果园技术(新加坡)有限公司 多人直播方法、装置、终端、服务器及存储介质
CN113014564B (zh) * 2021-02-19 2022-10-21 提亚有限公司 一种用户的匹配方法、装置、计算机设备和存储介质
CN114679436B (zh) * 2022-05-27 2022-08-30 武汉中科通达高新技术股份有限公司 一种会话管理方法、服务器及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645933A (zh) * 2008-07-15 2010-02-10 科塔企业有限责任公司 用于呼叫geosoc的系统和方法
WO2012035149A1 (en) * 2010-09-16 2012-03-22 Connected Zinking S.L. Social discovery network system and method based on mobile positioning
CN101309514B (zh) * 2008-06-10 2012-07-04 中兴通讯股份有限公司 会话接入方法及系统
CN102904936A (zh) * 2012-09-25 2013-01-30 北京小米科技有限责任公司 一种建立会话的方法、服务器、装置、系统及设备

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6665389B1 (en) * 1999-12-09 2003-12-16 Haste, Iii Thomas E. Anonymous interactive internet-based dating service
US20030004782A1 (en) * 2001-06-27 2003-01-02 Kronby Miles Adam Method and apparatus for determining and revealing interpersonal preferences within social groups
JP2003077001A (ja) 2001-09-03 2003-03-14 Minolta Co Ltd 顔画像通信装置およびプログラム
US20030084103A1 (en) * 2001-10-29 2003-05-01 Comverse, Ltd. Method and system for third-party initiation of an anonymous tele-chat session
JP2004240124A (ja) * 2003-02-05 2004-08-26 Matsushita Electric Ind Co Ltd 通信端末装置
US20050190898A1 (en) * 2004-02-26 2005-09-01 Craig Priest Message exchange server allowing near real-time exchange of messages, and method
US20060282538A1 (en) * 2005-06-14 2006-12-14 Anglin Howard N Persistent chat data across different sessions
AT10406U1 (de) * 2007-12-05 2009-02-15 Schmidt Horst Verfahren zum austausch von daten
JP2010034658A (ja) 2008-07-25 2010-02-12 Oki Telecommunication Systems Co Ltd 通信システム、通信方法、通信サービス提供装置、通信サービス提供プログラム、通信装置及び通信プログラム。
US20100057857A1 (en) * 2008-08-27 2010-03-04 Szeto Christopher T Chat matching
US8780163B2 (en) * 2011-02-23 2014-07-15 Airtime Media, Inc. Platform for pseudo-anonymous video chat with intelligent matching of chat partners
US8589393B2 (en) * 2011-11-08 2013-11-19 Google Inc. Methods and apparatus for discovery of attributes using a social mobile application
KR101951761B1 (ko) * 2012-01-27 2019-02-25 라인 가부시키가이샤 모바일 환경에서 제공되는 서비스에서 아바타를 제공하는 아바타 서비스 시스템 및 방법

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309514B (zh) * 2008-06-10 2012-07-04 中兴通讯股份有限公司 会话接入方法及系统
CN101645933A (zh) * 2008-07-15 2010-02-10 科塔企业有限责任公司 用于呼叫geosoc的系统和方法
WO2012035149A1 (en) * 2010-09-16 2012-03-22 Connected Zinking S.L. Social discovery network system and method based on mobile positioning
CN102904936A (zh) * 2012-09-25 2013-01-30 北京小米科技有限责任公司 一种建立会话的方法、服务器、装置、系统及设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2849411A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9602516B2 (en) 2012-09-25 2017-03-21 Xiaomi Inc. Method, server and terminal device for establishing communication session

Also Published As

Publication number Publication date
MX2014015354A (es) 2015-03-05
US9602516B2 (en) 2017-03-21
JP2015519852A (ja) 2015-07-09
BR112014032981A2 (pt) 2017-06-27
CN102904936A (zh) 2013-01-30
KR101825781B1 (ko) 2018-02-05
EP2849411A1 (en) 2015-03-18
RU2604418C2 (ru) 2016-12-10
CN102904936B (zh) 2015-06-10
US20150113591A1 (en) 2015-04-23
JP5909597B2 (ja) 2016-04-26
MX342518B (es) 2016-10-03
KR20150010988A (ko) 2015-01-29
EP2849411A4 (en) 2015-06-03
EP2849411B1 (en) 2017-11-08
RU2014153908A (ru) 2016-07-20

Similar Documents

Publication Publication Date Title
WO2014048305A1 (zh) 一种建立会话的方法、服务器、装置、系统及设备
US9967245B2 (en) User authentication using unique hidden identifiers
KR102327571B1 (ko) 영상 통화 데이터의 디스플레이
KR102077354B1 (ko) 통신 시스템
EP3926920A1 (en) Method and device for allocating augmented reality-based virtual objects
US11470023B2 (en) Session initiation method and device
US20160104253A1 (en) Device, System, and Method of Enhancing User Privacy and Security Within a Location-Based Virtual Social Networking Context
CN104734941A (zh) 一种基于实名/匿名切换的即时通信系统及其方法
CN106484737A (zh) 一种网络社交方法及网络社交装置
CN106063256A (zh) 创建连接和共享空间
JP7078707B2 (ja) 情報処理方法、情報処理装置、プログラム、及び情報処理端末
TW200931917A (en) Authentication system and method
CN113645320B (zh) 关联关系的建立方法、数据交互方法及装置
WO2018036116A1 (zh) 电话会议中的通话方法、媒体服务器及终端
CN112929353B (zh) 远程会议的实现方法、装置、服务器及存储介质
CN102811369B (zh) 在视频共享时进行安全认证方法及手持设备
US20170180492A1 (en) Unified Location & Presence Communication Across Real and Virtual Worlds
WO2021147728A1 (zh) 一种即时通讯接收方法、装置和设备
CN107294902A (zh) 一种风险识别方法和设备
US12058182B2 (en) User of identity services to auto-discover subscribers of social networking sites
US20170171393A1 (en) Method and Device for Call
CN108476402A (zh) 在客户服务站点处递送客户之间的匿名通信
CN119109896A (zh) 一种通信方法、装置、计算机设备及存储介质
JP2019101999A (ja) プログラム、情報処理方法、及び情報処理端末

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13840739

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2013840739

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013840739

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 20147035146

Country of ref document: KR

Kind code of ref document: A

Ref document number: 2015516454

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: MX/A/2014/015354

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 2014153908

Country of ref document: RU

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112014032981

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112014032981

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20141230