WO2018095216A1 - 关系链处理方法、终端及存储介质 - Google Patents

关系链处理方法、终端及存储介质 Download PDF

Info

Publication number
WO2018095216A1
WO2018095216A1 PCT/CN2017/109748 CN2017109748W WO2018095216A1 WO 2018095216 A1 WO2018095216 A1 WO 2018095216A1 CN 2017109748 W CN2017109748 W CN 2017109748W WO 2018095216 A1 WO2018095216 A1 WO 2018095216A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
identifier
user
relationship chain
state
Prior art date
Application number
PCT/CN2017/109748
Other languages
English (en)
French (fr)
Inventor
张雷
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2018095216A1 publication Critical patent/WO2018095216A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • 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/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • 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

Definitions

  • the embodiments of the present invention relate to the field of Internet technologies, and in particular, to a relationship chain processing method, a terminal, and a storage medium.
  • a relationship chain is a general term for a relationship between people established through a network, software, etc., and a user can add at least one contact identifier to their own relationship chain, thereby using these contact identifiers as their friends, and contacting them. People logo for convenient and quick communication.
  • the user can register a user identifier, and the terminal of the user can log in based on the user identifier, and establish a relationship chain based on the user identifier, where the user can view all the contact identifiers in the relationship chain. You can also add any contact ID to the relationship chain or remove any contact ID from the relationship chain.
  • the embodiments of the present invention provide a relationship chain processing method, a terminal, and a storage medium, which can solve the problems of the related art.
  • the technical solution is as follows:
  • a relationship chain processing method which is applied to a terminal, where the method includes:
  • the public contact identifiers constitute a first relationship chain of users held by the terminal, and the private contact identifiers constitute a second relationship chain of users held by the terminal;
  • the first status is a status based on the primary user identifier
  • the second status is a status based on the primary user identifier and the login from the user identifier, where the secondary user identifier is attached to the primary user identifier.
  • User ID is a status based on the primary user identifier
  • the second status is a status based on the primary user identifier and the login from the user identifier, where the secondary user identifier is attached to the primary user identifier.
  • a relationship chain processing method which is applied to a server, the method comprising:
  • Determining a current status of the terminal where the contact identifier of the terminal includes at least one public contact identifier and at least one private contact identifier;
  • the first relationship chain is sent to the terminal, and the first relationship chain is displayed on the display interface of the terminal by the terminal, and is hidden on the display interface.
  • the privacy contact identifier
  • the terminal When the terminal is in the second state, the first relationship chain and the second relationship chain are sent to the terminal, and the terminal displays the first relationship chain and the location on the display interface of the terminal The second relationship chain;
  • the first status is a status based on the primary user identifier
  • the second status is a status based on the primary user identifier and the login from the user identifier, where the secondary user identifier is attached to the primary user identifier.
  • User ID is a status based on the primary user identifier
  • the second status is a status based on the primary user identifier and the login from the user identifier, where the secondary user identifier is attached to the primary user identifier.
  • a relationship chain processing apparatus for use in a terminal, the apparatus comprising:
  • a dividing module configured to divide the contact identifier stored in the terminal into a public contact identifier and a private contact identifier, where the public contact identifier constitutes a first relationship chain of the user held by the terminal, and the privacy contact Identifying a second relationship chain constituting a user held by the terminal;
  • a determining module configured to determine a current state of the terminal
  • An acquiring module configured to acquire the first relationship chain when the terminal is in a first state
  • a display module configured to display the first relationship chain on a display interface of the terminal, and hide the private contact identifier on the display interface;
  • the acquiring module is further configured to acquire the second relationship chain when the terminal is in the second state;
  • the display module is further configured to display the first relationship chain and the second relationship chain on a display interface of the terminal;
  • the first status is a status based on the primary user identifier
  • the second status is a status based on the primary user identifier and the login from the user identifier, where the secondary user identifier is attached to the primary user identifier.
  • User ID is a status based on the primary user identifier
  • the second status is a status based on the primary user identifier and the login from the user identifier, where the secondary user identifier is attached to the primary user identifier.
  • a relationship chain processing apparatus for use in a server, the apparatus comprising:
  • a dividing module configured to divide a contact identifier of the terminal into a public contact identifier and a private contact identifier, where the public contact identifier constitutes a first relationship chain of the user held by the terminal, and the privacy contact identifier comprises the The second relationship chain of the user held by the terminal;
  • a determining module configured to determine a current state of the terminal
  • a sending module configured to send the first relationship chain to the terminal when the terminal is in a first state, where the terminal displays the first relationship chain on a display interface of the terminal, and The privacy contact identifier is hidden on the display interface;
  • the sending module is further configured to: when the terminal is in the second state, send the first relationship chain and the second relationship chain to the terminal, where the terminal displays on the display interface of the terminal The first relationship chain and the second relationship chain;
  • the first status is a status based on the primary user identifier
  • the second status is a status based on the primary user identifier and the login from the user identifier, where the secondary user identifier is attached to the primary user identifier.
  • User ID is a status based on the primary user identifier
  • the second status is a status based on the primary user identifier and the login from the user identifier, where the secondary user identifier is attached to the primary user identifier.
  • a terminal comprising: a processor and a memory, the memory storing at least one instruction loaded by the processor and executed to implement the first aspect The action performed in the method.
  • a server comprising: a processor and a memory, the memory storing at least one instruction loaded by the processor and executed to implement the second aspect The action performed in the method.
  • a computer readable storage medium stores at least one instruction loaded by a processor and executed to implement the first aspect The action performed in the method.
  • a computer readable storage medium stores at least one instruction loaded by a processor and executed to implement the second aspect The action performed in the method.
  • a relationship chain processing system comprising: a terminal and a server;
  • the server is configured to divide the contact identifier of the terminal into a public contact identifier and a private contact identifier, where the public contact identifier constitutes a first relationship chain of the user held by the terminal, and the privacy contact identifier Forming a second relationship chain of users held by the terminal;
  • the server is further configured to determine a current state of the terminal
  • the server is further configured to: when the terminal is in the first state, send the first relationship chain to the terminal;
  • the terminal when receiving the first relationship chain, displaying the first relationship chain on a display interface of the terminal, and hiding the privacy contact identifier on the display interface;
  • the server is further configured to: when the terminal is in the second state, send the first relationship chain and the second relationship chain to the terminal;
  • the terminal is further configured to display the first relationship chain and the second relationship chain on a display interface of the terminal;
  • the first status is a status based on the primary user identifier
  • the second status is a status based on the primary user identifier and the login from the user identifier, where the secondary user identifier is attached to the primary user identifier.
  • User ID is a status based on the primary user identifier
  • the second status is a status based on the primary user identifier and the login from the user identifier, where the secondary user identifier is attached to the primary user identifier.
  • the method, the terminal, and the storage medium provided by the embodiments of the present invention divide the contact identifier of the terminal into two types: a public contact identifier and a private contact identifier, where the public contact identifier constitutes a first relationship chain of the user held by the terminal, at the terminal.
  • the first relationship chain is displayed on the display interface of the terminal, and the privacy contact identifier is hidden on the display interface, so that when the user other than the original user holds the terminal, only
  • the ability to view public contact IDs, but not to view private contact IDs protects user privacy, avoids privacy breaches, and improves security.
  • FIG. 1 is a schematic structural diagram of a relationship chain processing system according to an embodiment of the present invention.
  • 2A is a flowchart of a relationship chain processing method according to an embodiment of the present invention.
  • FIG. 2B is a schematic diagram of an identity management page provided by an embodiment of the present invention.
  • 2C is a schematic diagram of a password setting interface according to an embodiment of the present invention.
  • 2D is a schematic diagram of a login interface from a user identifier according to an embodiment of the present invention.
  • 2E is a schematic diagram of a privacy contact setting interface provided by an embodiment of the present invention.
  • 2F is a flowchart of a relationship chain processing method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a relationship chain processing apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a relationship chain processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • First state A state registered based on the primary user identity.
  • the terminal hides the privacy contact identifier, so that the user holding the terminal can only view the public contact identifier, but cannot view the private contact identifier.
  • the second state based on the primary user identifier and the status of logging in from the user identifier, in the second state, the terminal discloses the private contact identifier, so that the user holding the terminal can view the public contact identifier. You can also view the privacy contact ID.
  • Primary user identification refers to the user identifier used by the user and the contact to transmit the message, which is used to identify the user's identity, and can be a user account, a phone number, and the like.
  • User ID refers to the user ID attached to the primary user ID. In order to guarantee privacy, the user is required to enter a password each time he or she logs in from the user ID.
  • the first relationship chain consists of at least one public contact identifier, and the first relationship chain is displayed when the terminal is in the first state.
  • the second relationship chain is composed of at least one privacy contact identifier.
  • Public contact identification and private contact identification The public contact identification is used to indicate a public contact, and the private contact identification is used to indicate a private contact.
  • the public contact identification is used to indicate a public contact
  • the private contact identification is used to indicate a private contact.
  • FIG. 1 is a schematic structural diagram of a relationship chain processing system according to an embodiment of the present invention.
  • the relationship chain processing system includes a terminal 101 and a server 102, and the terminal 101 can log in to the server 102.
  • the terminal 101 has two states: a first state and a second state.
  • the first state is a state registered based on the primary user identity.
  • the terminal 101 can display the first relationship chain of the held user on the display interface of the terminal 101, and hide the private contact identifier on the display interface.
  • the first relationship chain is composed of the public contact identifier of the terminal 101, and the user can view at least one public contact identifier through the first relationship chain or perform message delivery with any public contact identifier.
  • the second state is a state based on the primary user identity and the login from the user identity.
  • the terminal 101 can display a first relationship chain and a second relationship chain of the held user on the display interface of the terminal 101, where the second relationship chain is composed of a private contact identifier, and the user At least one public contact identifier and at least one private contact identifier may be viewed through the first relationship chain and the second relationship chain, or communicated with any public contact identifier or private contact identifier.
  • the terminal 101 switches from the first state to the second state, the user is required to input the password of the slave user identifier, so that when the user other than the original user holds the terminal 101, Even if the first relationship chain can be viewed, the second relationship chain cannot be viewed.
  • the terminal 101 can install a social application through which the server 102 interacts.
  • the terminal 101 may log in to the social application based on the primary user identifier, display the first relationship chain by using the social application, or log in the social application based on the primary user identifier and the user identifier, and display the second relationship chain by using the social application. .
  • the social application may be any application having a social function, such as an instant messaging application, an information display application, and a payment application.
  • the specific type of the social application is not limited in the embodiment of the present invention.
  • the server 102 is a server associated with the social application, and the server 102 can be a server, or a server cluster composed of several servers, or a cloud computing service center. The embodiment does not limit the type of the server 102.
  • any user holding the terminal 101 can view all the contact identifiers corresponding to the user identifier, and the identity of the user identifier and any contact identifier. Pass the message.
  • the privacy contact identifier is hidden on the display interface, and only after the user inputs the password from the user identifier, the user can switch to the second state to display the privacy contact identifier.
  • the message is transmitted with these private contact identifiers to protect the privacy of the user, avoiding privacy leaks and improving security.
  • the user in the scenario of creating a secondary user identifier for the user identifier, the user sets two relationship chains, one includes a public contact, the other relationship includes a private contact, and the user logs in the user identifier.
  • the user ID is also logged in based on the user login, the user can not only chat with the public contact, see the public contact information, chat history, and the status of the posting, but also chat with the private contact and see the privacy contact. People's profile, chat history, and status of the release.
  • FIG. 2A is a flowchart of a relationship chain processing method according to an embodiment of the present invention.
  • the execution body of the embodiment of the present invention is a terminal. Referring to FIG. 2A, the method includes:
  • the contact identifier stored in the terminal is divided into a public contact identifier and a private contact identifier, where the public contact identifier constitutes a first relationship chain of the user held by the terminal, and the private contact identifier constitutes a user of the terminal. Two relationship chains.
  • the terminal may be a mobile phone, a computer, a tablet, a wearable device, a virtual reality device, or other smart device that can be used for communication, which is not limited in this embodiment of the present invention.
  • the user sets a relationship chain, and the relationship chain includes at least one contact identifier, which is a friend of the user.
  • the terminal may divide the contact identifier stored in the terminal into a public contact identifier and a private contact identifier, where the public contact identifier constitutes a first relationship chain of the user held by the terminal, and the privacy contact identifier constitutes a user of the terminal.
  • the contact identifier is used to uniquely determine the corresponding contact, and may be the name, the phone number, and the like of the contact, which is not limited in this embodiment of the present invention.
  • the terminal can be in the first state or in the second state.
  • the first state is based on the primary user
  • the status of the login is identified
  • the second status is a status based on the primary user identity and the login from the user identity.
  • the primary user identifier refers to the user identifier registered by the user on the server, and the user identifier is usually logged in based on the primary user identifier on the terminal, and the secondary user identifier refers to the user identifier attached to the primary user identifier. Only when the server is logged in based on the primary user ID can the server be further logged in based on the secondary user identity.
  • the primary user identifier may be a user account, a user nickname, a phone number, or the like, and is used to determine a unique user.
  • the secondary user identifier may be a character, a number, a letter, and the like associated with the primary user identifier.
  • the type of the slave user identifier is not limited.
  • the same primary user identifier may have multiple secondary user identifiers, and the number of secondary user identifiers of the same primary user identifier is not limited in the embodiment of the present invention.
  • the terminal may have a status identifier, where the status identifier is used to indicate the current status of the terminal, and may be a number, a letter, or the like.
  • the specific content of the status identifier is not limited in the embodiment of the present invention, and the status identifier may be stored in the In the terminal or server.
  • the status identifier may be divided into a first status identifier and a second status identifier. The first status identifier is used to indicate that the terminal is currently in the first state, and the second status identifier is used to indicate that the terminal is currently in the second state.
  • the contact identifier of the terminal includes at least one public contact identifier and at least one private contact identifier.
  • the terminal hides the private contact identifier, and only in the second state. The terminal will display the private contact ID.
  • the terminal first determines whether the current state is the first state or the second state. Specifically, the terminal may determine whether the current status identifier is the first status identifier or the second status identifier.
  • the terminal determines the current state as an example.
  • the server may determine the current state of the terminal according to the user identifier currently logged in by the server. Moreover, the server may also perform the determination according to the current state identifier of the terminal in a manner similar to the terminal.
  • the user identity generation operation may be triggered to request to generate a slave user identifier.
  • the slave user identifier may be generated by the terminal, and when the terminal is in the first state, if the slave user identifier generating operation is detected, the slave user identifier is generated, and the association between the master user identifier and the slave user identifier is established. relationship.
  • the slave user identity can be generated by the server when the terminal is In the first state, if the user identity generation operation is detected, the slave user identity generation request is sent to the server, and the slave user identity generation request carries the master user identity, and the slave user identity generation request is used to request the server to generate the slave user identity. And establishing an association relationship between the primary user identifier and the secondary user identifier.
  • the terminal may display an option for generating a user identifier, and when detecting a confirmation operation for generating an option for the slave user identifier, determining to detect the slave user identifier generating operation.
  • the user identification generation option may be displayed in the identification management page of the social application, or may be displayed in other pages.
  • the confirmation operation may be a click operation, a long press operation, etc., and the confirmation operation is not limited in the embodiment of the present invention.
  • the identifier management page may be as shown in FIG. 2B, and the identifier management page may include a “generate” option for triggering generation of a new slave user identifier.
  • the identifier may be added to the primary user identifier to obtain a secondary user identifier, or according to the primary user identifier, the secondary user identifier may be generated according to a preset algorithm, or multiple pre-acquisitions may be acquired.
  • the user identifier is randomly assigned a slave user identifier from the plurality of slave user identifiers, and the manner of generating the slave user identifier is not limited in the embodiment of the present invention.
  • the server may create a user identification relationship table including a primary user identifier and all secondary user identifiers attached to the primary user identifier, so as to distinguish different primary user identifiers from the user identifier.
  • the password of the slave user identifier needs to be set when generating the slave user identifier.
  • the user inputs a password set for the slave user identifier on the password setting interface of the terminal.
  • the terminal stores the slave user identifier corresponding to the password, or after the terminal obtains the password, sends the password to the server, and after receiving the password, the server may identify the slave user and the password.
  • the password is stored accordingly.
  • the password setting interface includes an input field and an "OK" option in which the user can enter a password set for the slave user ID 87654 and click the "OK" option to send the password to the server.
  • the password may be in the form of text data, a gesture pattern, a fingerprint, or the like.
  • the manner in which the terminal obtains the password may include the following:
  • the slave user identification password setting interface may include input The column, when detecting the input operation of the user in the input field, acquires text data input by the user as the password of the slave user identification.
  • the user identification password setting interface may include a gesture drawing area, and when detecting a sliding operation of the user on the gesture drawing area, acquiring a gesture pattern corresponding to the sliding operation, the gesture The pattern acts as the password for the slave user ID.
  • the user identification password setting interface may include a fingerprint entry field.
  • the fingerprint entry field When detecting a touch operation of the user in the fingerprint entry field, the fingerprint of the user is obtained, and the fingerprint is used as the secondary user identifier. Password.
  • the terminal may also obtain the password in other manners, and details are not described herein again.
  • the terminal may display a password setting interface, and after obtaining the password set by the user from the user identifier, send a request for generating a user identifier from the server, and after the server generates the slave user identifier, the slave user identifier is stored correspondingly. And the password.
  • the server may also send a request for obtaining the password from the user identifier to the terminal.
  • the terminal displays a password setting interface, and obtains a password set by the user for the slave user identifier.
  • the password is sent to the server, and the server stores the slave user identifier and the password correspondingly.
  • the timing of obtaining the password of the user identifier from the server is not limited in the embodiment of the present invention.
  • the terminal When the terminal is in the first state, obtain the first relationship chain, display the first relationship chain on the display interface of the terminal, and hide the privacy contact identifier on the display interface.
  • the contact identifier that has the corresponding relationship with the primary user identifier is used as the public contact identifier
  • the contact identifier that has the corresponding relationship with the secondary user identifier is used as the privacy contact identifier.
  • the display interface may be an address book interface of the terminal, or may be a main interface of a social application on the terminal.
  • the user's relationship chain can be as shown in Table 2.
  • the user has four contact identifiers 111111, 222222, 333333, and 444444, where the contact identifiers 111111 and 222222 are public contact identifiers, and the contact identifiers 333333 and 444444 are private contacts.
  • the terminal When the terminal is logged in to the server based on the primary user identifier 123456789, the terminal is in the first state, and only the first relationship chain composed of two contact identifiers 111111 and 222222 is displayed on the display interface, and the contact is hidden on the display interface.
  • the person identification 333333 and the 444444 contact identifier constitute a second relationship chain.
  • the terminal is based on the primary user identity 123456789 and when logging in to the server from the user identifier 87654, in a second state, a second relationship chain consisting of four contact identifiers 111111, 222222, 333333, and 444444 is displayed on the display interface.
  • the first relationship chain and the second relationship chain may be stored in the terminal, or may be stored in the server, when the first relationship chain and the second relationship chain are stored in the server, the terminal A relationship chain may be requested from the server, and the corresponding relationship chain sent by the server to the terminal according to the current state of the terminal. Then, when the terminal is in the first state, the server sends the first relationship chain to the terminal. And when the second terminal is in the second state, the server sends the first relationship chain and the second relationship chain to the terminal.
  • the information information of the at least one public contact identifier may be extracted and provided to the user.
  • the terminal may be configured with a first storage space, where the first storage space is used to store the material information of the public contact identifier, and when the terminal displays the first relationship chain, the at least one publicity may be extracted from the first storage space.
  • the information of the contact identification is provided to the user.
  • the first storage space may also be configured by the server, and the profile information of the public contact identifier may be provided by the server to the terminal.
  • the material information of the public contact identifier may include attribute information, where the attribute information includes a signature, an avatar, a geographic location, and the like of the public contact identifier.
  • the terminal may extract the attribute information of the public contact identifier from the first storage space, thereby displaying the attribute information of the public contact identifier, and the user may view the public contact identifier. Attribute information.
  • the obtaining instruction of the attribute information may be triggered by a click operation of the public contact identifier in the session page of the primary user identifier and the public contact identifier, or a click operation of the public contact avatar, or This is not limited by the embodiment of the present invention.
  • the profile information may include a historical session record.
  • the terminal may extract the primary user from the first storage space. Identifying a historical session record with the public contact identification and displaying a session page with the public contact identification, the session page including the historical session record, the user can view the historical session record in the session page.
  • the user when the terminal is in the first state, the user may further transmit session information with at least one public contact identifier. For example, when the terminal detects a click operation on any of the public contact identities, a session page with the public contact identities can be displayed.
  • the terminal detects the input operation of the user on the session page, the terminal obtains the session information input by the user, and sends a session request to the terminal where the public contact identifier is located, where the session request carries the primary user identifier and the session information.
  • the terminal where the public contact identifier is located receives the session request, and may display a session page with the primary user identifier, where the session page includes the session information, and the corresponding public contact can view the session information.
  • the public contact identifier may also send session information to the primary user identifier in a similar manner, thereby implementing two-way interaction of the session information.
  • the terminal when the terminal is in the first state, the terminal may further display a status information aggregation page of the primary user identifier, where the status information aggregation page includes status information of at least one public contact identifier release, where the user may Viewing status information of the release of the at least one public contact identifier on the status information aggregation page.
  • the status information may include an identifier of the public contact, an avatar, text information posted by the public contact, picture information, video information, location information, and comment information and like information of any public contact identifier for the status information.
  • the content of the status information is not limited in the embodiment of the present invention.
  • the terminal may also perform a comment operation or a like operation on the status information of any public contact identifier, and the server sends the reminder information to the public contact identifier, where the reminder information carries the primary user identifier, and the public contact identifier According to the reminder information, it can be known that the primary user identifier performs a comment operation or a like operation on the status information.
  • the first state switching operation when the terminal is in the first state, the first state switching operation may be triggered, where the first state switching operation is used to indicate that the terminal is switched from the first state to the second state, that is, The server is instructed to log in to the server based on the primary user identity and the secondary user identity.
  • the terminal acquires a password input by the user, and acquires a password set by the second state, that is, a password of the slave user identifier, when determining a password input by the user and the second state setting.
  • the terminal is switched from the first state to the second state.
  • the status identifier of the terminal may be modified from the first status identifier to the second status identifier, thereby switching the terminal from the first state to the second state.
  • the terminal may display a login option from the user identifier, where the login option may be displayed in the identifier management page of the social application, or displayed in another page, and the first state switching operation may be to log in to the slave identifier. Confirmation of options, such as click operations or long press operations.
  • the login interface of the slave user identifier is displayed, and the user can input the password of the slave user identifier in the login interface.
  • the login interface may include a user identification input field and a password input field, when detecting an input operation of the user in the slave user identification input field and the password input field, Get the user ID and password entered by the user.
  • the login interface may include a slave user identifier and a password input field, and when the user inputs the password input field, the user is acquired. Enter the password.
  • the terminal when the terminal detects the first state switching operation, the secondary user switching identifier corresponding to the first state switching operation may be determined, and the user input is obtained.
  • the password when it is determined that the password input by the user matches the password set by the user identifier, the terminal is switched from the first state to the second state.
  • the login interface may also display multiple slave user identifiers.
  • a confirmation operation for any slave user identifier is detected, a corresponding password input field is displayed, thereby obtaining the slave user identifier and password input by the user.
  • the embodiment of the present invention is only described by taking the state switching of the terminal as an example, but in an actual application, the server may also switch the state of the terminal. That is, in another embodiment provided by the embodiment of the present invention, the step 204 may be replaced by: when the terminal detects the first state switching operation, acquiring a password input by the user, and sending the first to the server. a state switching request, the first state switching request carries the slave user identifier and the password input by the user, and when the server receives the first state switching request, the server obtains the password of the slave user identifier, and determines the password entered by the user and the password When the password matches, the terminal is switched from the first state to the second state.
  • the server will end The state identifier of the terminal is modified from the first state identifier to the second state identifier, thereby switching the terminal from the first state to the second state.
  • the first relationship chain and the second relationship chain may be displayed, and the terminal may extract the material information of the at least one public contact identifier and the information information of the at least one private contact identifier, and provide the information to the user.
  • the terminal may configure a second storage space, where the second storage space is used to store the material information of the private contact identifier, and when the terminal displays the first relationship chain and the second relationship chain, when the terminal receives the privacy contact
  • the information information of the private contact identifier may be extracted from the second storage space and provided to the user.
  • the second storage space may also be configured by the server, and the profile information of the private contact identifier may be provided by the server to the terminal.
  • the difference between the data information of the private contact identifier and the data information of the public contact identifier in the above step 204 is only that the material information of the private contact identifier is stored in the second storage space, and the material information of the public contact identifier is disclosed. It is stored in the first storage space, and the extraction method and display mode are similar, and will not be described here.
  • the session information when the terminal is in the second state, the session information may be delivered not only with at least one public contact identifier, but also with at least one private contact identifier.
  • the terminal detects a click operation on any of the private contact identifiers, a session page with the private contact identifier can be displayed.
  • the terminal detects the input operation of the user on the session page, the terminal acquires the session information input by the user, and sends a session request to the private contact identifier, where the session request carries the primary user identifier and the session information.
  • the terminal where the private contact identifier is located receives the session request, and can display a session page with the primary user identifier, where the session page includes the session information, and the corresponding private contact can view the session information.
  • the private contact identifier can also send session information to the primary user identifier in a similar manner, thereby implementing two-way interaction of the session information. Because the privacy contact identifier can only know the user's primary user identifier during the session, the user's secondary user identifier cannot be known, thereby ensuring the user's information security.
  • the terminal when the terminal is in the second state, the terminal may further display a status information aggregation page, where the status information convergence page includes at least one public contact identifier and status information of at least one private contact identifier advertisement, the user The status information of the at least one public contact identifier and the at least one private contact identifier may be viewed on the status information aggregation page.
  • the terminal may also perform a comment operation or a like operation on the status information of any contact identifier in the first relationship chain and the second relationship chain, and the server sends a reminder message to the contact identifier, the reminder
  • the information carries the primary user identifier, and the contact identifier can learn from the reminder information that the primary user identifier performs a comment operation or a like operation on the status information, and cannot obtain the slave user identifier, thereby protecting the user's information security.
  • the user may add a new contact identifier to the relationship chain
  • the terminal may obtain a new contact identifier set by the user, and add the obtained contact identifier to the corresponding relationship chain.
  • the terminal may obtain the contact identifier input by the user, or scan the two-dimensional code including the contact identifier, and the method for obtaining the contact identifier is not limited in the embodiment of the present invention.
  • the acquired contact identifiers are processed differently.
  • the terminal When the terminal is in the first state, when the terminal obtains the specified contact identifier added by the user, the terminal may add the specified contact identifier to the first relationship chain, and the designated contact identifier may be used as a public contact. People identification.
  • the terminal When the terminal is in the second state, when the terminal obtains the specified contact identifier added by the user, the terminal may add the specified contact identifier to the first relationship chain, or may add the specified contact identifier to the first In the relationship chain. Which relationship chain is specifically added to it can be determined according to the user's selection operation.
  • the embodiment of the present invention provides the following two possible implementation manners for the process of adding the privacy contact identifier:
  • the terminal detects a privacy contact adding operation, acquiring a specified contact identifier selected by the user from the first relationship chain; deleting the designated contact from the first relationship chain. Identify and add the specified contact ID to the second relationship chain.
  • the terminal or the server may extract the material information of the specified contact identifier from the first storage space, and store the material information in the second storage space.
  • the designated contact identifier When the designated contact identifier is located in the first relationship chain, the designated contact identifier is a public contact identifier, and when the designated contact identifier is located in the second relationship chain, the designated contact identifier is private. Contact ID.
  • the contact identification 222222 is a public contact identification.
  • the terminal detects the privacy contact adding operation, and determines that the contact identifier 222222 is selected, the contact identifier 222222 is added to the second relationship chain.
  • the contact identifier 222222 is a private contact identifier.
  • the user's relationship chain can be as shown in Table 3 below.
  • the terminal detects a privacy contact adding operation, sending a privacy contact adding request to the server, the server receiving a privacy contact adding request sent by the terminal, and adding the privacy contact And requesting to carry the specified contact identifier selected by the terminal from the first relationship chain; deleting the designated contact identifier from the first relationship chain, and adding the specified contact identifier to the second relationship chain.
  • the terminal or the server may further extract the material information of the specified contact identifier from the second storage space, and store the material information in the first storage space.
  • a privacy contact deletion operation when the terminal is in the second state, if a privacy contact deletion operation is detected, acquiring a specified contact identifier selected by the user from the second relationship chain; The specified contact identifier is deleted in the relationship chain, and the specified contact identifier is added to the first relationship chain.
  • the contact identification 222222 is a private contact identification.
  • the terminal detects the privacy contact deletion operation, and determines that the contact identifier 222222 is selected, the contact identifier 222222 is added to the first relationship chain. At this time, the contact identifier 222222 becomes a public contact. Identification, the user's relationship chain can be as shown in Table 2.
  • the terminal when the terminal is in the second state, if a privacy contact deletion operation is detected, acquiring a specified contact identifier selected by the user from the second relationship chain, and sending privacy to the server a contact deletion request, the private contact deletion request carries a specified contact identifier selected from the second relationship chain, and the server receives the privacy contact deletion request sent by the terminal, and deletes the designated contact from the second relationship chain. Identify and add the specified contact ID to the first relationship chain.
  • the privacy contact setting interface may be displayed.
  • the privacy contact setting interface is used to set a privacy contact label.
  • the private contact setting interface includes an add option and a delete option. Referring to FIG. 2E, the add option is used to trigger the privacy contact add operation, and the delete option is used to trigger the privacy contact delete operation.
  • the method may further include the following steps:
  • the terminal detects the second state switching operation, the terminal is switched from the second state to the first state, where the second state switching operation is used to indicate that the terminal is switched from the second state to the first state .
  • sending a second state switching request to the server where the second state switching request is used to request to switch the terminal from the second state to the first state, and the server receives The second state switching request switches the terminal from the second state to the first state.
  • the option to exit from the user identifier may be displayed, and the option of exiting from the user identifier may be displayed in the identifier management page of the social application, or displayed in other pages, and the second state switching operation may be
  • the confirmation operation may be a click operation or a long press operation, etc., which is not limited by the embodiment of the present invention.
  • the terminal when the terminal is in the first state, the option of deleting from the user identifier may be displayed.
  • the terminal detects the confirmation operation for deleting the option from the user identifier the user identifier is deleted.
  • the private contact identifier corresponding to the user identifier is to be restored to the public contact identifier. Therefore, the terminal adds the contact identifier in the second relationship chain to the first relationship chain.
  • the existing user identifier is used as the primary user identifier, and an auxiliary identifier is added to the primary user identifier, that is, from the user identifier, after the user identifier is created, the user can perform privacy management on the contact, Add some of the more private contacts to the slave user ID so that the contact and any information about the contact will not be saved under the master user ID, ensuring information security. Moreover, the user still uses the primary user identity to interact with each other, and no one else knows whether the user has the identity of the user.
  • the method provided by the embodiment of the present invention divides the contact identifier of the terminal into a public contact identifier and a private contact identifier, where the public contact identifier constitutes a first relationship chain of the user held by the terminal, when the terminal is in the first state, Displaying the first relationship chain on the display interface of the terminal, and hiding the private contact identifier on the display interface, so as to ensure that only the other users other than the original user can view the public contact identifier when the terminal is held by the user.
  • the inability to view the private contact ID protects the user's privacy, avoids privacy leaks, and improves security.
  • the terminal may switch to the second state, and display the first relationship chain and the second relationship chain, where the second relationship chain is composed of the privacy contact identifier, and the user is You can view all your contact IDs.
  • the contact identifier can only know the The primary user ID does not know the user ID, avoids the risk of leaking from the user ID, and protects the user's information security.
  • the user can set the public contact identifier and the private contact identifier, so that the user can set according to their own needs, expand the function, and improve the flexibility.
  • FIG. 2F is a flowchart of a relationship chain processing method according to an embodiment of the present invention.
  • the interaction entity of the embodiment of the present invention is a terminal and a server. Referring to FIG. 2F, the method includes:
  • the server divides the contact identifier stored in the terminal into a public contact identifier and a private contact identifier, where the public contact identifier constitutes a first relationship chain of the user held by the terminal, and the private contact identifier constitutes a user held by the terminal.
  • the second chain of relationships where the public contact identifier constitutes a first relationship chain of the user held by the terminal, and the private contact identifier constitutes a user held by the terminal. The second chain of relationships.
  • the server determines the current state of the terminal according to the user identifier currently logged in by the terminal, and performs step 213 or 216.
  • the server sends the first relationship chain to the terminal.
  • the terminal receives the first relationship chain
  • the first relationship chain is displayed on the display interface of the terminal, and the privacy contact identifier is hidden on the display interface.
  • a slave user identity generation request is sent to the server, and the slave user identity generation request carries a master user identity, and the slave user identity generation request is used for The server is requested to generate a slave user identity, and establish an association relationship between the master user identity and the slave user identity.
  • the terminal detects the first state switching operation, obtain the password input by the user, and send a first state switching request to the server, where the first state switching request carries the password input from the user identifier and the user.
  • the server When the server receives the first state switching request, obtain the password of the slave user identifier, and determine that the password input by the user matches the password, and then switch the terminal from the first state to the second state.
  • the server sends the first relationship chain and the second relationship chain to the terminal.
  • the terminal when the terminal detects the second state switching operation, sending a second state switching request to the server, where the second state switching request is used to request to switch the terminal from the second state to the first state, where The server receives the second state switching request, and switches the terminal from the second state to the first state.
  • the terminal when the terminal is in the second state, if the terminal detects the privacy contact adding operation, sending a privacy contact adding request to the server, the server receiving the privacy contact adding request sent by the terminal, the privacy contact
  • the person addition request carries the specified contact identifier selected by the terminal from the first relationship chain; the specified contact identifier is deleted from the first relationship chain, and the specified contact identifier is added to the second relationship chain.
  • the material information of the specified contact identifier may be extracted from the first storage space, and the material information is stored in the second storage space.
  • the terminal when the terminal is in the second state, if a privacy contact deletion operation is detected, acquiring a specified contact identifier selected by the user from the second relationship chain, and sending a privacy contact deletion request to the server, where The privacy contact deletion request carries the specified contact identifier selected from the second relationship chain, and the server receives the privacy contact deletion request sent by the terminal, deletes the designated contact identifier from the second relationship chain, and specifies the A contact identifier is added to the first relationship chain.
  • the material information of the specified contact identifier may be extracted from the second storage space, and the material information is stored in the first storage space.
  • the server divides the contact identifier of the terminal into a public contact identifier and a private contact identifier, where the public contact identifier constitutes a first relationship chain of the user held by the terminal, when the terminal is in the first state. Sending a first relationship chain to the terminal, displaying the first relationship chain on the display interface of the terminal, and hiding the private contact identifier on the display interface, so as to ensure that other users except the original user hold the terminal.
  • the public contact ID can be viewed, the private contact ID cannot be viewed, the privacy of the user is protected, privacy leakage is avoided, and security is improved.
  • the terminal is switched to the second state, and The terminal sends the first relationship chain and the second relationship chain, and displays the first relationship chain and the second relationship chain on the display interface of the terminal, and the user can view all the contact identifiers.
  • FIG. 3 is a schematic structural diagram of a relationship chain processing apparatus according to an embodiment of the present invention.
  • the device is applied to a terminal.
  • the device includes: a dividing module 301, a determining module 302, an obtaining module 303, and a display module 304.
  • the dividing module 301 is configured to perform step 201 in the embodiment shown in FIG. 2A.
  • the determining module 302 is configured to perform the step 202 in the embodiment shown in FIG. 2A.
  • the obtaining module 303 is configured to perform the obtaining steps in step 203 and step 205 in the foregoing embodiment shown in FIG. 2A.
  • the display module 304 is configured to perform the display steps in step 203 and step 205 in the embodiment shown in FIG. 2A above.
  • the obtaining module 303 is further configured to obtain a password input by the user.
  • the apparatus further includes: a first state switching module, the first state switching module configured to switch the terminal from the first state to the second state.
  • the obtaining module 303 includes: a display unit and an acquiring unit;
  • the display unit is configured to display a login interface that is identified by the user, and the obtaining unit is configured to obtain a password input by the user in the login interface.
  • the device further includes: a second state switching module, configured to switch the terminal from the second state to the first state.
  • a second state switching module configured to switch the terminal from the second state to the first state.
  • the device further includes: a first setting module
  • the obtaining module 303 is configured to obtain a specified contact identifier selected by the user, where the first setting module is configured to add the specified contact identifier to the second relationship chain.
  • the first setting module is configured to extract the material information of the specified contact identifier from the first storage space, and store the material information in the second storage space.
  • the device further includes: a second setting module
  • the obtaining module 303 is configured to obtain a specified contact identifier selected by the user, and the second setting module is configured to add the specified contact identifier to the first relationship chain.
  • the second setting module is further configured to extract the material information of the specified contact identifier from the second storage space, and store the material information in the first storage space.
  • the device further includes: a sending module; the sending module is configured to send the generated from the user identifier request.
  • FIG. 4 is a schematic structural diagram of a relationship chain processing apparatus according to an embodiment of the present invention.
  • the device is applied to a server.
  • the device includes: a dividing module 401, a determining module 402, and a sending module 403.
  • the dividing module 401 is configured to divide the contact identifier into a public contact identifier and a private contact identifier.
  • the determining module 402 is configured to determine the current state of the terminal.
  • the sending module 403 is configured to send a corresponding relationship chain to the terminal according to the current state of the terminal.
  • the device includes a first receiving module and a first state switching module;
  • the first receiving module is configured to receive a first state switching request, where the first state switching module is configured to switch the terminal from the first state to the second state.
  • the device includes a second receiving module and a second state switching module;
  • the second receiving module is configured to receive a second state switching request, where the second state switching module is configured to switch the terminal from the second state to the first state.
  • the device includes a third receiving module and a first setting module
  • the third receiving module is configured to receive a privacy contact adding request, where the first setting module is configured to add the specified contact identifier to the second relationship chain.
  • the first setting module is further configured to extract the material information of the specified contact identifier from the first storage space, and store the material information in the second storage space.
  • the device includes a fourth receiving module and a second setting module;
  • the third receiving module is configured to receive a privacy contact deletion request, where the first setting module is configured to add the specified contact identifier to the first relationship chain.
  • the second setting module is further configured to extract the material information of the specified contact identifier from the second storage space, and store the material information in the first storage space.
  • the device includes a fifth receiving module, a generating module, and an establishing module;
  • the fifth receiving module is configured to receive a request for generating a user identifier
  • the establishing module is configured to establish an association relationship between the primary user identifier and the secondary user identifier.
  • relationship chain processing apparatus provided by the foregoing embodiment only processes the relationship chain.
  • the division of each of the above functional modules is illustrated by an example.
  • the foregoing function allocation may be completed by different functional modules according to requirements, that is, the internal structure of the terminal and the server are divided into different functional modules to complete all of the above descriptions or Some features.
  • the relationship chain processing device and the relationship chain processing method embodiment provided by the foregoing embodiments are in the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • the embodiment of the invention provides a terminal, which can be used to execute the relationship chain processing method provided in the foregoing embodiments.
  • the terminal 500 includes:
  • the terminal 500 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, and a WiFi (Wireless Fidelity, wireless).
  • the fidelity module 170 includes a processor 180 having one or more processing cores, and a power supply 190 and the like. It will be understood by those skilled in the art that the terminal structure shown in FIG. 5 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
  • the RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting signals. Specifically, after receiving downlink information of the base station, the downlink information is processed by one or more processors 180. In addition, the data related to the uplink is sent to the base station. .
  • the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc.
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • GSM Global System for Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • e-mail Short Messaging Service
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the terminal 500 (such as audio data, phone book, etc.) Wait.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
  • the input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Display unit 140 can be used to display information entered by the user or information provided to the user and various graphical user interfaces of terminal 500, which can be constructed from graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Terminal 500 can also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may When the terminal 500 is moved to the ear, the display panel 141 and/or the backlight are turned off.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the terminal 500 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Let me repeat.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal 500.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal, for example, via the RF circuit 110, or outputted to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal 500.
  • WiFi is a short-range wireless transmission technology
  • the terminal 500 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides wireless broadband Internet access for users.
  • FIG. 5 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the terminal 500, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is the control center of the terminal 500, connecting various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the terminal 500 are performed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the terminal 500 also includes a power source 190 (such as a battery) for powering various components.
  • a power source 190 such as a battery
  • the power source can be logically coupled to the processor 180 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the display unit of the terminal is a touch screen display, and the terminal further includes a memory.
  • one or more programs, one or more of which are stored in a memory and configured to be executed by one or more processors.
  • the one or more programs include instructions for implementing the operations performed by the terminal in the above-described embodiments.
  • FIG. 6 is a block diagram of a relationship chain processing apparatus 600, according to an exemplary embodiment.
  • device 600 can be provided as a server.
  • apparatus 600 includes a processing component 622 that further includes one or more processors, and memory resources represented by memory 632 for storing instructions executable by processing component 622, such as an application.
  • An application stored in memory 632 can include one or more modules each corresponding to a set of instructions.
  • processing component 622 is configured to execute instructions to perform the relationship chain processing method described above.
  • Device 600 may also include a power supply component 626 configured to perform power management of device 600, a wired or wireless network interface 650 configured to connect device 600 to the network, and an input/output (I/O) interface 658.
  • Device 600 can operate based on an operating system stored in memory 632.
  • the above device 600 can be used to perform the steps performed by the server in the above embodiment.
  • the embodiment of the present invention further provides a computer readable storage medium having stored therein at least one instruction loaded by a processor and executed to implement the operations performed in the method of the above embodiments.
  • the computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • a person skilled in the art can understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a machine readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例公开了一种关系链处理方法、终端及存储介质,属于互联网技术领域。方法包括:将终端内存储的联系人标识划分为公开联系人标识和隐私联系人标识,公开联系人标识组成终端所持用户的第一关系链;判断终端当前的状态;当终端处于第一状态时,获取第一关系链;于终端的显示界面上显示第一关系链,并在显示界面上隐藏隐私联系人标识;其中,第一状态为基于主用户标识登录的状态。本发明实施例在终端处于第一状态时,隐藏该隐私联系人标识,可以保证除了原有用户以外的其他用户持有该终端时,仅能查看公开联系人标识,而无法查看隐私联系人标识,保护了用户的隐私,避免了隐私泄露,提高了安全性。

Description

关系链处理方法、终端及存储介质
本申请要求于2016年11月24日提交中国专利局、申请号为201611049673.1、发明名称为“关系链处理方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及互联网技术领域,特别涉及一种关系链处理方法、终端及存储介质。
背景技术
随着互联网技术的快速发展以及互联网规模的逐渐扩大,用户拓展社交圈的需求越来越高,而建立关系链是拓展社交圈的一种常用方式。关系链是指通过网络、软件等建立的人与人之间关系的统称,用户可以将至少一个联系人标识添加到自己的关系链中,从而将这些联系人标识作为自己的好友,与这些联系人标识进行方便快捷的沟通。
为了便于管理关系链,用户可以注册一个用户标识,该用户的终端可以基于该用户标识进行登录,并基于该用户标识建立关系链,用户可以在该终端上查看该关系链中的所有联系人标识,还可以向该关系链中添加任一联系人标识,或者从该关系链中删除任一联系人标识。
一旦该终端基于该用户标识进行登录后,除该用户以外的其他用户持有该终端时,也能查看该关系链中的所有联系人标识,存在隐私泄露的风险,安全性差。
发明内容
本发明实施例提供了一种关系链处理方法、终端及存储介质,可以解决相关技术的问题。所述技术方案如下:
一方面,提供了一种关系链处理方法,应用于终端中,所述方法包括:
将所述终端内存储的联系人标识划分为公开联系人标识和隐私联系人标 识,所述公开联系人标识组成所述终端所持用户的第一关系链,所述隐私联系人标识组成所述终端所持用户的第二关系链;
判断所述终端当前的状态;
当所述终端处于第一状态时,获取所述第一关系链;于所述终端的显示界面上显示所述第一关系链,并在所述显示界面上隐藏所述隐私联系人标识;
当所述终端处于第二状态时,获取所述第二关系链;于所述终端的显示界面上显示所述第一关系链和所述第二关系链;
其中,所述第一状态为基于主用户标识登录的状态,所述第二状态为基于所述主用户标识和从用户标识登录的状态,所述从用户标识为附属于所述主用户标识的用户标识。
另一方面,提供了一种关系链处理方法,应用于服务器中,所述方法包括:
将终端的联系人标识划分为公开联系人标识和隐私联系人标识,所述公开联系人标识组成所述终端所持用户的第一关系链,所述隐私联系人标识组成所述终端所持用户的第二关系链;
判断所述终端当前的状态,所述终端的联系人标识包括至少一个公开联系人标识和至少一个隐私联系人标识;
当所述终端处于第一状态时,向所述终端发送所述第一关系链,由所述终端于所述终端的显示界面上显示所述第一关系链,并在所述显示界面上隐藏所述隐私联系人标识;
当所述终端处于第二状态时,向所述终端发送所述第一关系链和所述第二关系链,由所述终端于所述终端的显示界面上显示所述第一关系链和所述第二关系链;
其中,所述第一状态为基于主用户标识登录的状态,所述第二状态为基于所述主用户标识和从用户标识登录的状态,所述从用户标识为附属于所述主用户标识的用户标识。
另一方面,提供了一种关系链处理装置,应用于终端中,所述装置包括:
划分模块,用于将所述终端内存储的联系人标识划分为公开联系人标识和隐私联系人标识,所述公开联系人标识组成所述终端所持用户的第一关系链,所述隐私联系人标识组成所述终端所持用户的第二关系链;
判断模块,用于判断所述终端当前的状态;
获取模块,用于当所述终端处于第一状态时,获取所述第一关系链;
显示模块,用于于所述终端的显示界面上显示所述第一关系链,并在所述显示界面上隐藏所述隐私联系人标识;
所述获取模块,还用于当所述终端处于第二状态时,获取所述第二关系链;
所述显示模块,还用于于所述终端的显示界面上显示所述第一关系链和所述第二关系链;
其中,所述第一状态为基于主用户标识登录的状态,所述第二状态为基于所述主用户标识和从用户标识登录的状态,所述从用户标识为附属于所述主用户标识的用户标识。
另一方面,提供了一种关系链处理装置,应用于服务器中,所述装置包括:
划分模块,用于将终端的联系人标识划分为公开联系人标识和隐私联系人标识,所述公开联系人标识组成所述终端所持用户的第一关系链,所述隐私联系人标识组成所述终端所持用户的第二关系链;
判断模块,用于判断所述终端当前的状态;
发送模块,用于当所述终端处于第一状态时,向所述终端发送所述第一关系链,由所述终端于所述终端的显示界面上显示所述第一关系链,并在所述显示界面上隐藏所述隐私联系人标识;
所述发送模块,还用于当所述终端处于第二状态时,向所述终端发送所述第一关系链和所述第二关系链,由所述终端于所述终端的显示界面上显示所述第一关系链和所述第二关系链;
其中,所述第一状态为基于主用户标识登录的状态,所述第二状态为基于所述主用户标识和从用户标识登录的状态,所述从用户标识为附属于所述主用户标识的用户标识。
在其他方面,提供了一种终端,所述终端包括:处理器和存储器,所述存储器中存储有至少一条指令,所述指令由所述处理器加载并执行以实现如第一方面所述的方法中所执行的操作。
在其他方面,提供了一种服务器,所述服务器包括:处理器和存储器,所述存储器中存储有至少一条指令,所述指令由所述处理器加载并执行以实现如第二方面所述的方法中所执行的操作。
在其他方面,提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如第一方面所述的方法中所执行的操作。
在其他方面,提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如第二方面所述的方法中所执行的操作。
在其他方面,提供了一种关系链处理系统,所述系统包括:终端和服务器;
所述服务器,用于将所述终端的联系人标识划分为公开联系人标识和隐私联系人标识,所述公开联系人标识组成所述终端所持用户的第一关系链,所述隐私联系人标识组成所述终端所持用户的第二关系链;
所述服务器,还用于判断所述终端当前的状态;
所述服务器,还用于当所述终端处于第一状态时,向所述终端发送所述第一关系链;
所述终端,用于接收到所述第一关系链时,于所述终端的显示界面上显示所述第一关系链,并在所述显示界面上隐藏所述隐私联系人标识;
所述服务器,还用于当所述终端处于第二状态时,向所述终端发送所述第一关系链和所述第二关系链;
所述终端,还用于于所述终端的显示界面上显示所述第一关系链和所述第二关系链;
其中,所述第一状态为基于主用户标识登录的状态,所述第二状态为基于所述主用户标识和从用户标识登录的状态,所述从用户标识为附属于所述主用户标识的用户标识。
本发明实施例提供的方法、终端及存储介质,将终端的联系人标识划分为公开联系人标识和隐私联系人标识两类,该公开联系人标识组成终端所持用户的第一关系链,在终端处于第一状态时,于该终端的显示界面上显示该第一关系链,并在该显示界面上隐藏该隐私联系人标识,可以保证除了原有用户以外的其他用户持有该终端时,仅能查看公开联系人标识,而无法查看隐私联系人标识,保护了用户的隐私,避免了隐私泄露,提高了安全性。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的关系链处理系统的结构示意图;
图2A是本发明实施例提供的关系链处理方法的流程图;
图2B是本发明实施例提供的标识管理页面的示意图;
图2C是本发明实施例提供的密码设置界面的示意图;
图2D是本发明实施例提供的从用户标识的登录界面的示意图;
图2E是本发明实施例提供的隐私联系人设置界面的示意图;
图2F是本发明实施例提供的关系链处理方法的流程图;
图3是本发明实施例提供的关系链处理装置的结构示意图;
图4是本发明实施例提供的关系链处理装置的结构示意图;
图5是本发明实施例提供的一种终端的结构示意图;
图6是本发明实施例提供的一种服务器的结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
在对本发明实施例进行详细说明之前,首先对本发明实施例涉及的概念进行如下解释:
1、第一状态:基于主用户标识登录的状态。在该第一状态下,终端将隐私联系人标识隐藏起来,使得持有该终端的用户只能查看到公开联系人标识,而不能查看到隐私联系人标识。
2、第二状态:基于主用户标识和从用户标识登录的状态,在该第二状态下,该终端将隐私联系人标识公开,使得持有该终端的用户既可以查看到公开联系人标识,也可以查看到隐私联系人标识。
3、主用户标识:是指用户和联系人传递消息时所使用的用户标识,用于识别用户的身份,可以为用户账号、电话号码等。
4、从用户标识:是指附属于主用户标识的用户标识。为了保证隐私,每次要登录从用户标识时需要用户输入密码。
5、第一关系链:由至少一个公开联系人标识组成,当终端处于该第一状态时会显示该第一关系链。
6、第二关系链:由至少一个隐私联系人标识组成,当终端处于该第二状态时,会同时显示该第一关系链和该第二关系链。
7、公开联系人标识和隐私联系人标识:公开联系人标识用于指示公开联系人,隐私联系人标识用于指示隐私联系人。通过将用户的联系人标识划分为公开联系人标识和隐私联系人标识两类,在终端处于第一状态时,在显示界面上仅显示公开联系人标识,而隐藏隐私联系人标识,在终端处于第二状态时在显示界面上显示公开联系人标识和隐私联系人标识。
图1是本发明实施例提供的一种关系链处理系统的结构示意图。参见图1,该关系链处理系统包括终端101和服务器102,该终端101可以登录该服务器102。
本发明实施例中,该终端101具有两种状态:第一状态和第二状态。
该第一状态为基于主用户标识登录的状态。当该终端101处于该第一状态时,该终端101于该终端101的显示界面上可以显示所持用户的第一关系链,并在该显示界面上隐藏该隐私联系人标识。该第一关系链由该终端101的公开联系人标识组成,用户可以通过该第一关系链查看至少一个公开联系人标识,或者与任一公开联系人标识进行消息传递。
该第二状态为基于主用户标识和从用户标识登录的状态。当该终端101处于该第二状态时,该终端101于该终端101的显示界面上可以显示所持用户的第一关系链和第二关系链,该第二关系链由隐私联系人标识组成,用户可以通过该第一关系链和该第二关系链,查看至少一个公开联系人标识和至少一个隐私联系人标识,或者与任一公开联系人标识或隐私联系人标识进行消息传递。
为了保护用户隐私,当该终端101从该第一状态切换到该第二状态时,需要用户输入该从用户标识的密码,则可以保证除原有用户以外的其他用户持有该终端101时,即使能够查看到该第一关系链,也无法查看到该第二关系链。
进一步地,该终端101可以安装社交应用,通过该社交应用与该服务器102进行交互。则该终端101可以基于主用户标识登录该社交应用,通过该社交应用显示该第一关系链,或者,基于主用户标识和从用户标识登录该社交应用,通过该社交应用显示该第二关系链。
其中,该社交应用可以为即时通讯应用、信息展示应用、支付应用等任一具有社交功能的应用,本发明实施例对该社交应用的具体类型不做限定。该服务器102为与该社交应用关联的服务器,该服务器102可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心,本发明实 施例对该服务器102的类型不做限定。
在相关技术中,一旦终端101基于用户标识登录社交应用后,持有该终端101的任一用户均能查看该用户标识对应的所有联系人标识,以该用户标识的身份与任一联系人标识传递消息。而本发明实施例中,在终端101处于第一状态时,在显示界面上隐藏隐私联系人标识,只有在用户输入从用户标识的密码后,才能切换为第二状态,才能显示隐私联系人标识,进而与这些隐私联系人标识传递消息,保护了用户的隐私,避免了隐私泄露,提高了安全性。
本发明实施例应用于为用户标识创建附属的从用户标识的场景下,用户设置两个关系链,一个关系链中包括公开联系人,另一个关系链中包括隐私联系人,在用户登录用户标识时仅能与公开联系人聊天、看到公开联系人的资料、聊天记录以及发布的状态,而无法感知到隐私联系人的存在。在用户登录用户标识的基础上还登录从用户标识时,不仅可以与公开联系人聊天、看到公开联系人的资料、聊天记录以及发布的状态,还可以与隐私联系人聊天、看到隐私联系人的资料、聊天记录以及发布的状态。
图2A是本发明实施例提供的一种关系链处理方法的流程图。本发明实施例的执行主体为终端,参见图2A,该方法包括:
201、将终端内存储的联系人标识划分为公开联系人标识和隐私联系人标识,该公开联系人标识组成该终端所持用户的第一关系链,该隐私联系人标识组成该终端所持用户的第二关系链。
其中,该终端可以为手机、计算机、平板电脑、可穿戴设备、虚拟现实设备或其他可用于通信的智能设备,本发明实施例对此不做限定。
通常用户会设置关系链,该关系链包括至少一个联系人标识,这些联系人标识即为用户的好友。该终端可以将该终端内存储的联系人标识划分为公开联系人标识和隐私联系人标识,公开联系人标识组成该终端所持用户的第一关系链,隐私联系人标识组成该终端所持用户的第二关系链。其中,联系人标识用于唯一确定对应的联系人,可以为该联系人的名称、电话号码等,本发明实施例对此不做限定。
202、判断该终端当前的状态,执行步骤203或205。
该终端可以处于第一状态,或者处于第二状态。该第一状态为基于主用户 标识登录的状态,该第二状态为基于主用户标识和从用户标识登录的状态。该主用户标识是指用户在该服务器上注册的用户标识,通常会在该终端上基于该主用户标识登录该服务器,而该从用户标识是指附属于该主用户标识的用户标识,该终端只有在基于该主用户标识登录该服务器的状态下,才可以进一步基于该从用户标识登录该服务器。
其中,该主用户标识可以为用户账户、用户昵称、电话号码等,用于确定唯一的用户,该从用户标识可以为与该主用户标识关联的字符、数字、字母等,本发明实施例对该从用户标识的类型不做限定。另外,同一个主用户标识可以有多个从用户标识,本发明实施例对同一主用户标识的从用户标识数量不做限定。
具体地,该终端可以具有状态标识,该状态标识用于指示该终端当前的状态,可以为数字、字母等,本发明实施例对于该状态标识的具体内容不做限定,该状态标识可以存储于终端或者服务器中。针对本发明实施例该终端登录服务器的两种不同情况,该状态标识可以分为第一状态标识和第二状态标识。其中,该第一状态标识用于指示该终端当前处于第一状态,该第二状态标识用于指示该终端当前处于第二状态。
本发明实施例中,该终端的联系人标识包括至少一个公开联系人标识和至少一个隐私联系人标识,在第一状态下,该终端会隐藏该隐私联系人标识,只有在第二状态下,该终端才会显示该隐私联系人标识。
因此,为了确定要显示的联系人标识,该终端先判断当前的状态为第一状态还是第二状态。具体地,该终端可以判断当前的状态标识为第一状态标识还是第二状态标识。
需要说明的是,本发明实施例仅是以终端判断当前的状态为例进行说明,而在实际应用中,还可以由该服务器根据该终端当前所登录的用户标识判断该终端当前的状态。且,该服务器也可以采用与该终端类似的方式,根据该终端当前的状态标识进行判断。
本发明实施例中,在该终端处于第一状态时,可以触发从用户标识生成操作,请求生成一个从用户标识。
可选地,该从用户标识可以由该终端生成,该终端处于第一状态时,若检测到从用户标识生成操作,则生成从用户标识,并建立该主用户标识与该从用户标识的关联关系。或者,该从用户标识可以由该服务器生成,当该终端处于 第一状态时,若检测到从用户标识生成操作,向服务器发送从用户标识生成请求,该从用户标识生成请求携带主用户标识,该从用户标识生成请求用于请求该服务器生成从用户标识,并建立该主用户标识与该从用户标识的关联关系。
其中,该终端可以显示从用户标识生成选项,当检测到对该从用户标识生成选项的确认操作时,确定检测到该从用户标识生成操作。该从用户标识生成选项可以在社交应用的标识管理页面中显示,或者在其他页面中显示,该确认操作可以为点击操作、长按操作等,本发明实施例对该确认操作不做限定。例如,该标识管理页面可以如图2B所示,该标识管理页面中可以包括“生成”选项,用于触发生成新的从用户标识。
其中,生成该从用户标识时,可以在该主用户标识上添加标识位,得到一个从用户标识,或者,根据该主用户标识,按照预设算法生成从用户标识,或者,预先获取多个从用户标识,从该多个从用户标识中,为该主用户标识随机分配一个从用户标识,本发明实施例对该从用户标识的生成方式不做限定。
如表1所示,该服务器可以创建用户标识关系表,该用户标识关系表包括主用户标识和附属于该主用户标识的所有从用户标识,以便将不同主用户标识的从用户标识进行区分。
表1
Figure PCTCN2017109748-appb-000001
为了保护用户的隐私,在生成从用户标识时需要设置该从用户标识的密码。具体地,用户在该终端的密码设置界面上,输入为该从用户标识设置的密码。该终端获取该密码后,将该从用户标识与该密码对应存储,或者,该终端获取该密码后,向该服务器发送该密码,该服务器接收到该密码后,可以将该从用户标识与该密码对应存储。参见图2C,该密码设置界面包括输入栏和“确定”选项,用户可以在该输入栏中输入为该从用户标识87654设置的密码,并点击“确定”选项,以向该服务器发送该密码。
其中,该密码可以为文本数据、手势图案、指纹等多种类型,针对不同类型的密码,该终端获取该密码的方式可以包括以下几种:
在第一种可能的实现方式中,该从用户标识密码设置界面可以包括输入 栏,当检测到用户在该输入栏的输入操作时,获取用户输入的文本数据,作为该从用户标识的密码。
在第二种可能的实现方式中,该从用户标识密码设置界面可以包括手势绘制区域,当检测到用户在该手势绘制区域上的滑动操作时,获取该滑动操作对应的手势图案,将该手势图案作为该从用户标识的密码。
在第三种可能的实现方式中,该从用户标识密码设置界面可以包括指纹录入栏,当检测到用户在该指纹录入栏的触摸操作时,获取用户的指纹,将该指纹作为该从用户标识的密码。
当然,该终端也可以采用其他方式获取密码,本发明实施例在此不再赘述。
需要说明的是,该终端可以显示密码设置界面,在获取用户为从用户标识设置的密码后,向服务器发送从用户标识生成请求,由该服务器生成该从用户标识后,对应存储该从用户标识和该密码。另外,服务器也可以在生成从用户标识后,向该终端发送从用户标识密码获取请求,终端在接收到从用户标识密码获取请求后,显示密码设置界面,获取用户为该从用户标识设置的密码,向服务器发送该密码,则服务器对应存储该从用户标识和该密码,本发明实施例对该服务器获取该从用户标识的密码的时机不做限定。
203、当该终端处于第一状态时,获取第一关系链,于该终端的显示界面上显示该第一关系链,并在该显示界面上隐藏该隐私联系人标识。
本发明实施例中将与该主用户标识存在对应关系的联系人标识作为公开联系人标识,将与该从用户标识存在对应关系的联系人标识作为隐私联系人标识。
当终端处于第一状态时,于该终端的显示界面上显示第一关系链,并在该显示界面上隐藏该隐私联系人标识。当终端处于第二状态时,显示该第一关系链和该第二关系链,从而实现了将该隐私联系人标识公开的效果。其中,该显示界面可以为终端的通讯录界面,也可以为终端上社交应用的主界面等。
用户的关系链可以如表2所示,用户具有111111、222222、333333和444444这四个联系人标识,其中,联系人标识111111和222222为公开联系人标识,联系人标识333333和444444为隐私联系人标识,则终端基于主用户标识123456789登录服务器时,处于第一状态,在显示界面上只显示由两个联系人标识111111和222222组成的第一关系链,而在该显示界面上隐藏由联系人标识333333和444444联系人标识组成的第二关系链。而终端基于主用户标识 123456789和从用户标识87654登录服务器时,处于第二状态,在显示界面上显示由四个联系人标识111111、222222、333333和444444组成的第二关系链。
表2
Figure PCTCN2017109748-appb-000002
本发明实施例中,该第一关系链和该第二关系链可以存储于该终端,或者可以存储于该服务器,当该第一关系链和该第二关系链存储于该服务器时,该终端可以从该服务器请求关系链,由该服务器根据该终端当前的状态,向该终端发送的对应的关系链。那么,当该终端处于第一状态时,该服务器会向该终端发送该第一关系链。而当该第二终端处于第二状态时,该服务器会向该终端发送该第一关系链和该第二关系链。
该终端显示第一关系链后,可以提取该至少一个公开联系人标识的资料信息,提供给用户。
具体地,该终端可以配置第一存储空间,该第一存储空间用于存储公开联系人标识的资料信息,当该终端显示第一关系链时,可以从该第一存储空间提取该至少一个公开联系人标识的资料信息,提供给用户。或者,该第一存储空间也可以由该服务器配置,该公开联系人标识的资料信息可以由该服务器提供给该终端。
在第一种可能的实现方式中,该公开联系人标识的资料信息可以包括属性信息,该属性信息包括该公开联系人标识的签名、头像、地理位置等。终端在接收到对该属性信息的获取指令后,可以从第一存储空间中提取该公开联系人标识的属性信息,从而显示该公开联系人标识的属性信息,用户即可查看该公开联系人标识的属性信息。
其中,对该属性信息的获取指令可以由在该主用户标识与该公开联系人标识的会话页面中对该公开联系人标识的点击操作触发,或者对该公开联系人头像的点击操作触发,或者由其他操作触发,本发明实施例对此不做限定。
在第二种可能的实现方式中,该资料信息可以包括历史会话记录。终端在接收到对该历史会话记录的获取指令后,可以从第一存储空间中提取该主用户 标识与该公开联系人标识的历史会话记录,并显示与该公开联系人标识的会话页面,该会话页面包括该历史会话记录,用户可以在该会话页面中查看该历史会话记录。
本发明实施例中,在该终端处于该第一状态时,用户还可以与至少一个公开联系人标识传递会话信息。例如,当终端检测到对任一公开联系人标识的点击操作时,可以显示与该公开联系人标识的会话页面。当终端检测到用户在该会话页面的输入操作时,获取用户输入的会话信息,向该公开联系人标识所在的终端发送会话请求,该会话请求携带该主用户标识和该会话信息。该公开联系人标识所在的终端接收该会话请求,可以显示与该主用户标识的会话页面,该会话页面包括该会话信息,对应的公开联系人即可查看该会话信息。相应地,该公开联系人标识也可以采用类似的方式向该主用户标识发送会话信息,从而实现了会话信息的双向交互。
本发明实施例中,该终端处于该第一状态时,该终端还可以显示该主用户标识的状态信息汇聚页面,该状态信息汇聚页面包括至少一个公开联系人标识发布的状态信息,用户可以在该状态信息汇聚页面上查看该至少一个公开联系人标识发布的状态信息。该状态信息可以包括该公开联系人的标识、头像、该公开联系人发布过的文本信息、图片信息、视频信息、位置信息以及任一公开联系人标识对该状态信息的评论信息、点赞信息等,本发明实施例对该状态信息的内容不做限定。
另外,该终端还可以对任一公开联系人标识发布的状态信息进行评论操作或者点赞操作,则服务器向该公开联系人标识发送提醒信息,该提醒信息携带主用户标识,该公开联系人标识根据该提醒信息可以得知该主用户标识对该状态信息进行了评论操作或者点赞操作。
204、当检测到第一状态切换操作时,获取用户输入的密码,当确定该密码与该第二状态设置的密码匹配时,将该终端从该第一状态切换至该第二状态。
本发明实施例中,在该终端处于第一状态时,可以触发第一状态切换操作,该第一状态切换操作用于指示将该终端从该第一状态切换至第二状态,也即是用于指示将该终端基于该主用户标识和该从用户标识登录该服务器。该终端检测到该第一状态切换操作时,获取用户输入的密码,并获取该第二状态设置的密码,也即是该从用户标识的密码,当确定用户输入的密码与该第二状态设置 的密码匹配时,将该终端从该第一状态切换至该第二状态。
具体地,在该终端的状态标识为该第一状态标识的情况下,可以将终端的状态标识由第一状态标识修改为第二状态标识,从而将该终端从第一状态切换为第二状态。
其中,该终端可以显示从用户标识登录选项,该从用户标识登录选项可以在社交应用的标识管理页面中显示,或者在其他页面中显示,该第一状态切换操作可以为对该从用户标识登录选项的确认操作,如点击操作或者长按操作等。
另外,该终端检测到该第一状态切换操作时,显示该从用户标识的登录界面,用户即可在该登录界面中输入该从用户标识的密码。
在第一种可能的实现方式中,参见图2D,该登录界面可以包括从用户标识输入栏和密码输入栏,当检测到用户在该从用户标识输入栏和该密码输入栏的输入操作时,获取用户输入的从用户标识和密码。
在第二种可能的实现方式中,考虑到用户较难记住从用户标识,该登录界面可以包括从用户标识和密码输入栏,当检测到用户在该密码输入栏的输入操作时,获取用户输入的密码。
另外,由于可以有多个从用户标识附属于同一个主用户标识,当该终端检测到该第一状态切换操作时,可以确定该第一状态切换操作对应的从用户标识,并获取用户输入的密码,当确定用户输入的密码与该从用户标识设置的密码匹配时,将该终端从第一状态切换至第二状态。
相应地,该登录界面也可以显示多个从用户标识,当检测到对任一从用户标识的确认操作时,显示对应的密码输入栏,从而获取用户输入的从用户标识和密码。
需要说明的是,本发明实施例仅是以该终端进行状态切换为例进行说明,而在实际应用中,该服务器也可以对该终端的状态进行切换。也即是,在本发明实施例提供的另一实施例中,该步骤204可以由以下步骤代替:当该终端检测到第一状态切换操作时,获取用户输入的密码,向该服务器发送第一状态切换请求,该第一状态切换请求携带该从用户标识和该用户输入的密码,该服务器接收到该第一状态切换请求时,获取该从用户标识的密码,并确定用户输入的密码与该密码匹配时,将该终端从该第一状态切换至该第二状态。
具体地,在该终端的状态标识为该第一状态标识的情况下,该服务器将终 端的状态标识由第一状态标识修改为第二状态标识,从而将该终端从第一状态切换为第二状态。
205、当该终端处于第二状态时,获取第二关系链,显示该第一关系链和该第二关系链,该第二关系链由该隐私联系人标识组成。
在终端处于第二状态时,可以显示第一关系链和第二关系链,该终端可以提取该至少一个公开联系人标识的资料信息以及该至少一个隐私联系人标识的资料信息,提供给用户。
具体地,该终端可以配置第二存储空间,该第二存储空间用于存储隐私联系人标识的资料信息,当该终端显示第一关系链和第二关系链时,当终端接收到对隐私联系人标识的资料信息获取指令后,可以从该第二存储空间提取隐私联系人标识的资料信息,提供给用户。或者,该第二存储空间也可以由该服务器配置,该隐私联系人标识的资料信息可以由该服务器提供给该终端。
其中,隐私联系人标识的资料信息与上述步骤204中公开联系人标识的资料信息的区别之处仅在于,隐私联系人标识的资料信息存储于第二存储空间,而公开联系人标识的资料信息存储于第一存储空间,至于提取方式、展示方式等方面均类似,在此不做赘述。
本发明实施例中,在该终端处于该第二状态时,不仅可以与至少一个公开联系人标识传递会话信息,还可以与至少一个隐私联系人标识传递会话信息。例如,当终端检测到对任一隐私联系人标识的点击操作时,可以显示与该隐私联系人标识的会话页面。当终端检测到用户在该会话页面的输入操作时,获取用户输入的会话信息,向该隐私联系人标识发送会话请求,该会话请求携带该主用户标识和该会话信息。该隐私联系人标识所在的终端接收该会话请求,可以显示与该主用户标识的会话页面,该会话页面包括该会话信息,对应的隐私联系人即可查看该会话信息。相应的,该隐私联系人标识也可以采用类似的方式向该主用户标识发送会话信息,从而实现了会话信息的双向交互。由于该隐私联系人标识在会话过程中只能获知用户的主用户标识,无法获知用户的从用户标识,从而保证了用户的信息安全。
本发明实施例中,当该终端处于第二状态时,该终端还可以显示状态信息汇聚页面,该状态信息汇聚页面包括至少一个公开联系人标识和至少一个隐私联系人标识发布的状态信息,用户可以在该状态信息汇聚页面查看该至少一个公开联系人标识和至少一个隐私联系人标识发布的状态信息。
另外,该终端还可以对该第一关系链和该第二关系链中的任一联系人标识发布的状态信息进行评论操作或者点赞操作,则服务器向该联系人标识发送提醒信息,该提醒信息携带主用户标识,该联系人标识从该提醒信息可以得知该主用户标识对该状态信息进行了评论操作或者点赞操作,而无法获知从用户标识,从而保护了用户的信息安全。
需要说明的是,用户可能会向关系链中添加新的联系人标识,该终端可以获取用户设置的新的联系人标识,将获取的联系人标识添加至相应的关系链中。具体地,该终端可以获取用户输入的联系人标识,或者扫描包括该联系人标识的二维码等,本发明实施例对获取联系人标识的方式不做限定。而在该终端处于不同的状态下时,对获取到的联系人标识的处理方式不同。
当终端处于第一状态时,该终端获取到用户添加的指定联系人标识时,可以将该指定联系人标识添加到该第一关系链中,此时即可将该指定联系人标识作为公开联系人标识。
当终端处于第二状态时,该终端获取到用户添加的指定联系人标识时,可以将该指定联系人标识添加到该第一关系链中,或者也可以将该指定联系人标识添加到该第二关系链中。具体添加到哪个关系链中可以根据用户的选择操作确定。
实际应用中,在终端处于该第二状态时,针对添加隐私联系人标识的过程,本发明实施例提供以下两种可能的实现方式:
在第一种可能的实现方式中,若该终端检测到隐私联系人添加操作,则获取用户从该第一关系链中选择的指定联系人标识;从该第一关系链中删除该指定联系人标识,并将该指定联系人标识添加至该第二关系链中。
具体地,该终端或者该服务器可以从第一存储空间中提取该指定联系人标识的资料信息,并将该资料信息存储于第二存储空间中。
其中,当该指定联系人标识位于该第一关系链中时,该指定联系人标识为公开联系人标识,当该指定联系人标识位于该第二关系链中时,该指定联系人标识为隐私联系人标识。
例如,参见表2,该联系人标识222222为公开联系人标识。当终端检测到隐私联系人添加操作,并确定选择了该联系人标识222222时,将该联系人标识222222添加至该第二关系链中,此时,该联系人标识222222为隐私联系人标识,该用户的关系链可以如下表3所示。
表3
Figure PCTCN2017109748-appb-000003
在第二种可能的实现方式中,若该终端检测到隐私联系人添加操作,则向该服务器发送隐私联系人添加请求,该服务器接收该终端发送的隐私联系人添加请求,该隐私联系人添加请求携带该终端从该第一关系链中选择的指定联系人标识;从该第一关系链中删除该指定联系人标识,并将该指定联系人标识添加至该第二关系链中。
进一步的,该终端或者该服务器还可以从第二存储空间中提取该指定联系人标识的资料信息,并将该资料信息存储于第一存储空间中。
针对删除隐私联系人标识的过程,本发明实施例提供以下两种可能的实现方式:
在第一种可能的实现方式中,当该终端处于该第二状态时,若检测到隐私联系人删除操作,则获取用户从该第二关系链中选择的指定联系人标识;从该第二关系链中删除该指定联系人标识,并将该指定联系人标识添加至该第一关系链中。
例如,参见表3,该联系人标识222222为隐私联系人标识。当终端检测到隐私联系人删除操作时,并确定选择了该联系人标识222222时,将该联系人标识222222添加至该第一关系链中,此时,该联系人标识222222变为公开联系人标识,该用户的关系链可以如表2所示。
在第二种可能的实现方式中,当该终端处于该第二状态时,若检测到隐私联系人删除操作,则获取用户从该第二关系链中选择的指定联系人标识,向服务器发送隐私联系人删除请求,该隐私联系人删除请求携带从该第二关系链中选择的指定联系人标识,服务器接收该终端发送的隐私联系人删除请求,从该第二关系链中删除该指定联系人标识,并将该指定联系人标识添加至该第一关系链中。
另外,当该终端检测到对该从用户标识的隐私联系人设置操作时,可以显示隐私联系人设置界面。其中,该隐私联系人设置界面用于设置隐私联系人标 识,该隐私联系人设置界面包括添加选项和删除选项,可以参见图2E,该添加选项用于触发该隐私联系人添加操作,该删除选项用于触发该隐私联系人删除操作。
实际应用中,在该步骤205之后,该方法还可以包括以下步骤:
当该终端检测到第二状态切换操作时,将该终端从该第二状态切换至该第一状态,该第二状态切换操作用于指示将该终端从该第二状态切换至该第一状态。或者,当该终端检测到第二状态切换操作时,向该服务器发送第二状态切换请求,该第二状态切换请求用于请求将该终端从该第二状态切换至第一状态,该服务器接收该第二状态切换请求,将该终端从该第二状态切换至该第一状态。
其中,该终端处于第二状态时,可以显示从用户标识退出选项,该从用户标识退出选项可以在社交应用的标识管理页面中显示,或者在其他页面中显示,该第二状态切换操作可以为对从用户标识退出选项的确认操作,该确认操作可以为点击操作或者长按操作等,本发明实施例对此不做限定。
需要说明的是,当该终端处于该第一状态时,可以显示从用户标识删除选项,当该终端检测到对从用户标识删除选项的确认操作时,删除从用户标识,此时可以认为用户想要将从用户标识对应的隐私联系人标识重新恢复为公开联系人标识,因此,该终端将该第二关系链中的联系人标识均添加至该第一关系链中。
本发明实施例将现有的用户标识作为主用户标识,并为该主用户标识追加了一个附属标识,即从用户标识,从用户标识创建完成后,用户就可以对联系人进行隐私管理,可以将一些较为隐私的联系人添加到从用户标识下,这样在主用户标识下就不会留存该联系人以及该联系人的任何信息,保证了信息安全。而且,用户对外还是采用主用户标识进行交互,别人也不会知道用户有没有从用户标识。
本发明实施例提供的方法,将终端的联系人标识划分为公开联系人标识和隐私联系人标识,该公开联系人标识组成该终端所持用户的第一关系链,在终端处于第一状态时,于该终端的显示界面上显示该第一关系链,并在该显示界面上隐藏该隐私联系人标识,可以保证除了原有用户以外的其他用户持有该终端时,仅能查看公开联系人标识,而无法查看隐私联系人标识,保护了用户的隐私,避免了隐私泄露,提高了安全性。
进一步地,在用户输入从用户标识的密码后,该终端可以切换为第二状态,并显示第一关系链和第二关系链,该第二关系链由该隐私联系人标识组成,此时用户即可查看所有的联系人标识。
进一步地,该终端处于第二状态时,在与任一联系人标识传递会话信息,或者对任一联系人标识发布的状态信息进行评论操作或者点赞操作时,该联系人标识只能获知该主用户标识,无法获知从用户标识,避免了从用户标识泄露的风险,保护了用户的信息安全。另外,用户可以设置公开联系人标识和隐私联系人标识,使得用户能够根据自身的需求进行设置,扩展了功能,提高了灵活性。
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。
图2F是本发明实施例提供的一种关系链处理方法的流程图。本发明实施例的交互主体为终端和服务器,参见图2F,该方法包括:
210、服务器将终端内存储的联系人标识划分为公开联系人标识和隐私联系人标识,该公开联系人标识组成该终端所持用户的第一关系链,该隐私联系人标识组成该终端所持用户的第二关系链。
211、服务器根据终端当前所登录的用户标识,判断终端当前的状态,执行步骤213或216。
212、当终端处于第一状态时,服务器向终端发送第一关系链。
213、终端接收到该第一关系链时,于终端的显示界面上显示该第一关系链,并在该显示界面上隐藏该隐私联系人标识。
可选地,当该终端处于第一状态时,若检测到从用户标识生成操作,向服务器发送从用户标识生成请求,该从用户标识生成请求携带主用户标识,该从用户标识生成请求用于请求该服务器生成从用户标识,并建立该主用户标识与该从用户标识的关联关系。
214、当终端检测到第一状态切换操作时,获取用户输入的密码,向服务器发送第一状态切换请求,该第一状态切换请求携带从用户标识和用户输入的密码。
215、服务器接收到该第一状态切换请求时,获取该从用户标识的密码,并确定用户输入的密码与该密码匹配时,将终端从第一状态切换至第二状态。
216、当终端处于第二状态时,服务器向终端发送第一关系链和第二关系链。
217、终端接收到第二关系链时,于终端的显示界面上显示该第一关系链和该第二关系链。
可选地,当该终端检测到第二状态切换操作时,向该服务器发送第二状态切换请求,该第二状态切换请求用于请求将该终端从该第二状态切换至第一状态,该服务器接收该第二状态切换请求,将该终端从该第二状态切换至该第一状态。
可选地,当终端处于第二状态时,若该终端检测到隐私联系人添加操作,则向该服务器发送隐私联系人添加请求,该服务器接收该终端发送的隐私联系人添加请求,该隐私联系人添加请求携带该终端从该第一关系链中选择的指定联系人标识;从该第一关系链中删除该指定联系人标识,并将该指定联系人标识添加至该第二关系链中。
其中,将该指定联系人标识从第一关系链转移到第二关系链时,可以从第一存储空间中提取指定联系人标识的资料信息,并将资料信息存储于第二存储空间中。
可选地,当该终端处于该第二状态时,若检测到隐私联系人删除操作,则获取用户从该第二关系链中选择的指定联系人标识,向服务器发送隐私联系人删除请求,该隐私联系人删除请求携带从该第二关系链中选择的指定联系人标识,服务器接收该终端发送的隐私联系人删除请求,从该第二关系链中删除该指定联系人标识,并将该指定联系人标识添加至该第一关系链中。
其中,将该指定联系人标识从第二关系链转移到第一关系链时,可以从第二存储空间中提取指定联系人标识的资料信息,并将资料信息存储于第一存储空间中。
本发明实施例提供的方法,服务器将终端的联系人标识划分为公开联系人标识和隐私联系人标识,该公开联系人标识组成该终端所持用户的第一关系链,在终端处于第一状态时,向终端发送第一关系链,于该终端的显示界面上显示该第一关系链,并在该显示界面上隐藏该隐私联系人标识,可以保证除了原有用户以外的其他用户持有该终端时,仅能查看公开联系人标识,而无法查看隐私联系人标识,保护了用户的隐私,避免了隐私泄露,提高了安全性。
进一步地,在用户输入从用户标识的密码后,将终端切换为第二状态,向 终端发送第一关系链和第二关系链,于终端的显示界面上显示第一关系链和第二关系链,此时用户即可查看所有的联系人标识。
图3是本发明实施例提供的一种关系链处理装置的结构示意图。该装置应用于终端中,参见图3,该装置包括:划分模块301、判断模块302、获取模块303、显示模块304。
该划分模块301用于执行上述图2A所示实施例中的步骤201。
该判断模块302用于执行上述图2A所示实施例中的步骤202。
该获取模块303用于执行上述图2A所示实施例中的步骤203和步骤205中的获取步骤。
该显示模块304用于执行上述图2A所示实施例中的步骤203和步骤205中的显示步骤。
可选地,该获取模块303还用于获取用户输入的密码。
该装置还包括:第一状态切换模块,该第一状态切换模块用于将该终端从该第一状态切换至该第二状态。
可选地,该获取模块303包括:显示单元和获取单元;
该显示单元,用于显示从用户标识的登录界面,该获取单元用于获取用户在该登录界面中输入的密码。
可选地,该装置还包括:第二状态切换模块,该第二状态切换模块用于将该终端从该第二状态切换至该第一状态。
可选地,该装置还包括:第一设置模块;
该获取模块303用于获取用户选择的指定联系人标识,该第一设置模块用于将该指定联系人标识添加至该第二关系链中。
可选地,该第一设置模块用于从第一存储空间中提取该指定联系人标识的资料信息,并将该资料信息存储于第二存储空间中。
可选地,该装置还包括:第二设置模块;
该获取模块303用于获取用户选择的指定联系人标识,该第二设置模块用于将该指定联系人标识添加至该第一关系链中。
可选地,该第二设置模块还用于从第二存储空间中提取该指定联系人标识的资料信息,并将该资料信息存储于第一存储空间中。
可选地,该装置还包括:发送模块;该发送模块用于发送从用户标识生成 请求。
图4是本发明实施例提供的一种关系链处理装置的结构示意图。该装置应用于服务器中,参见图4,该装置包括:划分模块401、判断模块402和发送模块403。
划分模块401用于将联系人标识划分为公开联系人标识和隐私联系人标识。
判断模块402用于判断终端当前的状态。
发送模块403用于根据终端当前的状态,向该终端发送对应的关系链。
可选地,该装置包括第一接收模块和第一状态切换模块;
该第一接收模块,用于接收第一状态切换请求,该第一状态切换模块用于将该终端从该第一状态切换至该第二状态。
可选地,该装置包括第二接收模块和第二状态切换模块;
该第二接收模块,用于接收第二状态切换请求,该第二状态切换模块用于将该终端从该第二状态切换至该第一状态。
可选地,该装置包括第三接收模块和第一设置模块;
该第三接收模块,用于接收隐私联系人添加请求,该第一设置模块用于将该指定联系人标识添加至该第二关系链中。
可选地,第一设置模块还用于从第一存储空间中提取该指定联系人标识的资料信息,并将该资料信息存储于第二存储空间中。
可选地,该装置包括第四接收模块和第二设置模块;
该第三接收模块,用于接收隐私联系人删除请求,该第一设置模块用于将该指定联系人标识添加至该第一关系链中。
可选地,第二设置模块还用于从第二存储空间中提取该指定联系人标识的资料信息,并将该资料信息存储于第一存储空间中。
可选地,该装置包括第五接收模块、生成模块和建立模块;
该第五接收模块,用于接收从用户标识生成请求;
生成模块,用于生成从用户标识;
建立模块,用于建立该主用户标识与该从用户标识的关联关系。
需要说明的是:上述实施例提供的关系链处理装置在处理关系链时,仅以 上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将终端和服务器的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的关系链处理装置与关系链处理方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
本发明实施例提供了一种终端,该终端可以用于执行上述各个实施例中提供的关系链处理方法。参见图5,该终端500包括:
终端500可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、WiFi(Wireless Fidelity,无线保真)模块170、包括有一个或者一个以上处理核心的处理器180、以及电源190等部件。本领域技术人员可以理解,图5中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器180处理;另外,将涉及上行的数据发送给基站。通常,RF电路110包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System for Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端500的使用所创建的数据(比如音频数据、电话本等) 等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器120还可以包括存储器控制器,以提供处理器180和输入单元130对存储器120的访问。
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及终端500的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图5中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。
终端500还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可 在终端500移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端500还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路160、扬声器161,传声器162可提供用户与终端500之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与终端500的通信。
WiFi属于短距离无线传输技术,终端500通过WiFi模块170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块170,但是可以理解的是,其并不属于终端500的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器180是终端500的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行终端500的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。
终端500还包括给各个部件供电的电源190(比如电池),优选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管未示出,终端500还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,终端的显示单元是触摸屏显示器,终端还包括有存储器, 以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行。所述一个或者一个以上程序包含用于实施上述实施例中终端所执行操作的指令。
图6是根据一示例性实施例示出的一种关系链处理装置600的框图。例如,装置600可以被提供为一服务器。参照图6,装置600包括处理组件622,其进一步包括一个或多个处理器,以及由存储器632所代表的存储器资源,用于存储可由处理部件622的执行的指令,例如应用程序。存储器632中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件622被配置为执行指令,以执行上述关系链处理方法。
装置600还可以包括一个电源组件626被配置为执行装置600的电源管理,一个有线或无线网络接口650被配置为将装置600连接到网络,和一个输入输出(I/O)接口658。装置600可以操作基于存储在存储器632的操作系统。
上述装置600可以用于执行上述实施例中服务器执行的步骤。
本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有至少一条指令,该指令由处理器加载并执行以实现上述实施例的方法中所执行的操作。例如,计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种获取机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明实施例的一些可选实施例,并不用以限制本发明,凡在本发明实施例的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。

Claims (19)

  1. 一种关系链处理方法,其特征在于,应用于终端中,所述方法包括:
    将所述终端内存储的联系人标识划分为公开联系人标识和隐私联系人标识,所述公开联系人标识组成所述终端所持用户的第一关系链,所述隐私联系人标识组成所述终端所持用户的第二关系链;
    判断所述终端当前的状态;
    当所述终端处于第一状态时,获取所述第一关系链;于所述终端的显示界面上显示所述第一关系链,并在所述显示界面上隐藏所述隐私联系人标识;
    当所述终端处于第二状态时,获取所述第二关系链;于所述终端的显示界面上显示所述第一关系链和所述第二关系链;
    其中,所述第一状态为基于主用户标识登录的状态,所述第二状态为基于所述主用户标识和从用户标识登录的状态,所述从用户标识为附属于所述主用户标识的用户标识。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当检测到第一状态切换操作时,获取用户输入的密码;
    当确定所述密码与所述从用户标识的密码匹配时,将所述终端从所述第一状态切换至所述第二状态。
  3. 根据权利要求2所述的方法,其特征在于,所述当检测到第一状态切换操作时,获取用户输入的密码,包括:
    当检测到所述第一状态切换操作时,显示从用户标识的登录界面;
    获取用户在所述登录界面中输入的密码。
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当检测到第二状态切换操作时,将所述终端从所述第二状态切换至所述第一状态。
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述终端处于所述第二状态时,若检测到隐私联系人添加操作,则获取 用户从所述第一关系链中选择的指定联系人标识;
    从所述第一关系链中删除所述指定联系人标识,并将所述指定联系人标识添加至所述第二关系链中。
  6. 根据权利要求5所述的方法,其特征在于,所述从所述第一关系链中删除所述指定联系人标识,并将所述指定联系人标识添加至所述第二关系链中,包括:
    从第一存储空间中提取所述指定联系人标识的资料信息,并将所述资料信息存储于第二存储空间中,所述第一存储空间用于存储公开联系人标识的资料信息,所述第二存储空间用于存储隐私联系人标识的资料信息。
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述终端处于所述第二状态时,若检测到隐私联系人删除操作,则获取用户从所述第二关系链中选择的指定联系人标识;
    从所述第二关系链中删除所述指定联系人标识,并将所述指定联系人标识添加至所述第一关系链中。
  8. 根据权利要求7所述的方法,其特征在于,所述从所述第二关系链中删除所述指定联系人标识,并将所述指定联系人标识添加至所述第一关系链中,包括:
    从第二存储空间中提取所述指定联系人标识的资料信息,并将所述资料信息存储于第一存储空间中,所述第一存储空间用于存储公开联系人标识的资料信息,所述第二存储空间用于存储隐私联系人标识的资料信息。
  9. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述终端处于所述第一状态时,若检测到从用户标识生成操作,则向服务器发送从用户标识生成请求,所述从用户标识生成请求用于请求所述服务器生成所述从用户标识,并建立所述主用户标识与所述从用户标识的关联关系。
  10. 一种终端,其特征在于,所述终端包括:处理器和存储器,所述存储器中存储有至少一条指令,所述指令由所述处理器加载并执行以实现如下操作:
    将所述终端内存储的联系人标识划分为公开联系人标识和隐私联系人标识,所述公开联系人标识组成所述终端所持用户的第一关系链,所述隐私联系人标识组成所述终端所持用户的第二关系链;
    判断所述终端当前的状态;
    当所述终端处于第一状态时,获取所述第一关系链;于所述终端的显示界面上显示所述第一关系链,并在所述显示界面上隐藏所述隐私联系人标识;
    当所述终端处于第二状态时,获取所述第二关系链;于所述终端的显示界面上显示所述第一关系链和所述第二关系链;
    其中,所述第一状态为基于主用户标识登录的状态,所述第二状态为基于所述主用户标识和从用户标识登录的状态,所述从用户标识为附属于所述主用户标识的用户标识。
  11. 根据权利要求10所述的终端,其特征在于,所述指令由所述处理器加载并执行以实现如下操作:
    当检测到第一状态切换操作时,获取用户输入的密码;
    当确定所述密码与所述从用户标识的密码匹配时,将所述终端从所述第一状态切换至所述第二状态。
  12. 根据权利要求11所述的终端,其特征在于,所述指令由所述处理器加载并执行以实现如下操作:
    当检测到所述第一状态切换操作时,显示从用户标识的登录界面;
    获取用户在所述登录界面中输入的密码。
  13. 根据权利要求10所述的终端,其特征在于,所述指令由所述处理器加载并执行以实现如下操作:
    当检测到第二状态切换操作时,将所述终端从所述第二状态切换至所述第一状态。
  14. 根据权利要求10所述的终端,其特征在于,所述指令由所述处理器加载并执行以实现如下操作:
    当所述终端处于所述第二状态时,若检测到隐私联系人添加操作,则获取 用户从所述第一关系链中选择的指定联系人标识;
    从所述第一关系链中删除所述指定联系人标识,并将所述指定联系人标识添加至所述第二关系链中。
  15. 根据权利要求14所述的终端,其特征在于,所述指令由所述处理器加载并执行以实现如下操作:
    从第一存储空间中提取所述指定联系人标识的资料信息,并将所述资料信息存储于第二存储空间中,所述第一存储空间用于存储公开联系人标识的资料信息,所述第二存储空间用于存储隐私联系人标识的资料信息。
  16. 根据权利要求10所述的终端,其特征在于,所述指令由所述处理器加载并执行以实现如下操作:
    当所述终端处于所述第二状态时,若检测到隐私联系人删除操作,则获取用户从所述第二关系链中选择的指定联系人标识;
    从所述第二关系链中删除所述指定联系人标识,并将所述指定联系人标识添加至所述第一关系链中。
  17. 根据权利要求16所述的终端,其特征在于,所述指令由所述处理器加载并执行以实现如下操作:
    从第二存储空间中提取所述指定联系人标识的资料信息,并将所述资料信息存储于第一存储空间中,所述第一存储空间用于存储公开联系人标识的资料信息,所述第二存储空间用于存储隐私联系人标识的资料信息。
  18. 根据权利要求10所述的终端,其特征在于,所述指令由所述处理器加载并执行以实现如下操作:
    当所述终端处于所述第一状态时,若检测到从用户标识生成操作,则向服务器发送从用户标识生成请求,所述从用户标识生成请求用于请求所述服务器生成所述从用户标识,并建立所述主用户标识与所述从用户标识的关联关系。
  19. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如权利要求1至9 任一项所述的方法中所执行的操作。
PCT/CN2017/109748 2016-11-24 2017-11-07 关系链处理方法、终端及存储介质 WO2018095216A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611049673.1 2016-11-24
CN201611049673.1A CN106533917B (zh) 2016-11-24 2016-11-24 关系链处理方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2018095216A1 true WO2018095216A1 (zh) 2018-05-31

Family

ID=58357964

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/109748 WO2018095216A1 (zh) 2016-11-24 2017-11-07 关系链处理方法、终端及存储介质

Country Status (2)

Country Link
CN (1) CN106533917B (zh)
WO (1) WO2018095216A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157630A (zh) * 2020-09-07 2022-03-08 腾讯科技(深圳)有限公司 社交关系链的迁移方法、装置、设备及存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106533917B (zh) * 2016-11-24 2019-10-08 腾讯科技(深圳)有限公司 关系链处理方法、装置及系统
CN107273024B (zh) * 2017-05-25 2019-07-30 努比亚技术有限公司 一种实现应用数据处理的方法及设备
CN112114720A (zh) * 2019-06-20 2020-12-22 腾讯科技(深圳)有限公司 关系建立方法
CN111556021A (zh) * 2020-03-30 2020-08-18 宇龙计算机通信科技(深圳)有限公司 数据传输方法、装置、存储介质和相关设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384048A (zh) * 2008-09-08 2009-03-11 中兴通讯股份有限公司 信息管理方法以及移动终端
CN104486372A (zh) * 2014-11-21 2015-04-01 深圳市中兴移动通信有限公司 一种联系显示方法、装置及终端
US20150222701A1 (en) * 2014-01-31 2015-08-06 Vonage Network Llc Method and systems for syncing contacts on multiple devices
CN105868648A (zh) * 2016-03-28 2016-08-17 珠海格力电器股份有限公司 移动终端及用于移动终端访客模式的数据处理方法和装置
CN106126999A (zh) * 2016-06-15 2016-11-16 维沃移动通信有限公司 一种智能识别访客的解锁方法及移动终端
CN106533917A (zh) * 2016-11-24 2017-03-22 腾讯科技(深圳)有限公司 关系链处理方法、装置及系统

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7325012B2 (en) * 1999-12-06 2008-01-29 Interface Software, Inc. Relationship management system determining contact pathways in a contact relational database
CN101170521B (zh) * 2007-12-04 2010-12-08 腾讯科技(深圳)有限公司 基于即时通讯工具的隐蔽通讯对象的方法及装置
WO2010133899A1 (en) * 2009-05-22 2010-11-25 Call Juggler.Com Limited Security for communication apparatus
CN101800795A (zh) * 2010-03-16 2010-08-11 北京邮电大学 用手机通讯录实现社会性网络服务的通信系统和方法
CN103327152A (zh) * 2013-05-24 2013-09-25 东莞宇龙通信科技有限公司 一种联系人协同功能项显示方法、装置及移动终端
CN105279159B (zh) * 2014-06-05 2019-11-22 腾讯科技(北京)有限公司 联系人的提示方法和装置
CN105025157B (zh) * 2015-05-28 2018-03-27 广东欧珀移动通信有限公司 一种私密联系人隐藏方法及用户终端
CN105187599B (zh) * 2015-08-27 2018-05-25 魅族科技(中国)有限公司 一种联系人信息管理方法及终端

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384048A (zh) * 2008-09-08 2009-03-11 中兴通讯股份有限公司 信息管理方法以及移动终端
US20150222701A1 (en) * 2014-01-31 2015-08-06 Vonage Network Llc Method and systems for syncing contacts on multiple devices
CN104486372A (zh) * 2014-11-21 2015-04-01 深圳市中兴移动通信有限公司 一种联系显示方法、装置及终端
CN105868648A (zh) * 2016-03-28 2016-08-17 珠海格力电器股份有限公司 移动终端及用于移动终端访客模式的数据处理方法和装置
CN106126999A (zh) * 2016-06-15 2016-11-16 维沃移动通信有限公司 一种智能识别访客的解锁方法及移动终端
CN106533917A (zh) * 2016-11-24 2017-03-22 腾讯科技(深圳)有限公司 关系链处理方法、装置及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157630A (zh) * 2020-09-07 2022-03-08 腾讯科技(深圳)有限公司 社交关系链的迁移方法、装置、设备及存储介质
CN114157630B (zh) * 2020-09-07 2023-08-04 腾讯科技(深圳)有限公司 社交关系链的迁移方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN106533917A (zh) 2017-03-22
CN106533917B (zh) 2019-10-08

Similar Documents

Publication Publication Date Title
US10547609B2 (en) Method, apparatus, and system for controlling intelligent device, and storage medium
US10958459B2 (en) Method and apparatus for processing group chat message
US10187855B2 (en) Message processing method and apparatus
WO2018095216A1 (zh) 关系链处理方法、终端及存储介质
US20190197226A1 (en) Information Displaying Method for Terminal Device and Terminal Device
WO2016107501A1 (zh) 智能设备控制方法及装置
WO2016169465A1 (zh) 一种显示弹幕信息的方法、装置和系统
US9351165B2 (en) Identity verifying method, account acquiring method, and mobile terminal
US10304461B2 (en) Remote electronic service requesting and processing method, server, and terminal
WO2017118437A1 (zh) 进行业务处理的方法、装置和系统
CN104852885B (zh) 一种进行验证码验证的方法、装置和系统
WO2018019261A1 (zh) 资源转移方法及装置
US10652287B2 (en) Method, device, and system for managing information recommendation
WO2014206101A1 (zh) 一种基于手势的会话处理方法、装置及终端设备
WO2015143900A1 (zh) 网络会议中进行数据共享的方法、装置及系统
WO2016161913A1 (zh) 资源转移系统及方法
US11337060B2 (en) Electronic business card privacy protection system prevents displaying user account information
US20200076876A1 (en) Image Sharing Method and System, and Electronic Device
WO2016078504A1 (zh) 身份鉴权方法和装置
US20160301530A1 (en) Sensitive operation verification method, apparatus, and system
US10454905B2 (en) Method and apparatus for encrypting and decrypting picture, and device
CN109639569B (zh) 一种社交通信方法及终端
TW201541337A (zh) 移動終端中訊息的顯示方法、裝置和系統
TWI575458B (zh) 基於應用的服務提供方法、裝置及系統
WO2019095156A1 (zh) 一种信息搜索的方法、终端、网络设备和系统

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: 17874055

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17874055

Country of ref document: EP

Kind code of ref document: A1