WO2020164232A1 - 会话建立方法、终端、第三方应用服务器及系统 - Google Patents

会话建立方法、终端、第三方应用服务器及系统 Download PDF

Info

Publication number
WO2020164232A1
WO2020164232A1 PCT/CN2019/098763 CN2019098763W WO2020164232A1 WO 2020164232 A1 WO2020164232 A1 WO 2020164232A1 CN 2019098763 W CN2019098763 W CN 2019098763W WO 2020164232 A1 WO2020164232 A1 WO 2020164232A1
Authority
WO
WIPO (PCT)
Prior art keywords
user identification
identification code
terminal
target user
party application
Prior art date
Application number
PCT/CN2019/098763
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 WO2020164232A1 publication Critical patent/WO2020164232A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Definitions

  • the present invention relates to the field of communication technology, in particular to a session establishment method, terminal, third-party application server and system.
  • the third-party instant messaging SDK (Software Development Kit, software development kit) refers to a complete client, database, network protocol, etc., which can complete a closed loop of communication functions according to the protocol, and integrate it with the third party.
  • the SDK application address book needs to record all the information of the company's personnel into a third-party database. On the one hand, the workload is large, and the messages to be entered are large. On the other hand, it will also cause the leakage of employee messages and cause security risks.
  • the present invention provides a session establishment method, terminal, third-party application server and system, which are used to solve the existing problems in the prior art when they are integrated into the third-party SDK application address book, the workload is large, the input messages are large, and the cause The leakage of employee information has caused potential safety hazards.
  • a first aspect of the embodiments of the present invention provides a session establishment method, including:
  • the user identification code of the terminal is the identification information of the terminal user who has undergone a preset operation
  • the target user identification code is the identification information of the target user that has undergone the preset operation
  • the user of the terminal and the target user are objects for establishing a session, wherein the terminal and the server are in the same local area network;
  • the user identification code is in the conversation interface between the user account corresponding to the third-party application and the target user identification code is the target user account corresponding to the third-party application.
  • the step of obtaining the user identification code of the terminal through the server includes:
  • the user identification code corresponding to the terminal is filtered out from the user identification code list.
  • the step of obtaining the target user identification code through the server includes:
  • the step of filtering out several relevant user identification codes of the target user identification code according to the character string instruction includes:
  • the method further includes:
  • the step of sending a session establishment request to a third-party application server includes:
  • a single chat session establishment request is sent to the third-party application server, wherein the single chat session request carries the target of the third-party application corresponding to the target user identification code user account;
  • a group chat session establishment request is sent to the third-party application server, wherein the group chat session request carries multiple third parties corresponding to multiple target user identification codes The target user account of the application.
  • the method further includes:
  • the user identification code corresponding to the updated user is obtained.
  • a second aspect of the embodiments of the present invention provides a session establishment method, the method includes:
  • the session interface information between the user account and the target user account is established according to the session establishment request, and the session interface information is sent to the terminal for display through a third-party application.
  • the method further includes:
  • the user account and registration password corresponding to the third-party application are obtained according to the registration request and sent to the terminal.
  • the step of establishing session interface information between the user account and the target user account according to the session establishment request includes:
  • a single chat session establishment request sent by the terminal is received, wherein the single chat session request carries the target user account of the third-party application corresponding to the target user identification code, then the user account and the target user are established Single chat sessions between accounts;
  • a group chat session establishment request sent by the terminal is received, where the group chat session request carries multiple target user accounts of multiple third-party applications corresponding to multiple target user identification codes, the user account and Group chat sessions between multiple target user accounts.
  • a third aspect of the embodiments of the present invention provides a terminal, where the terminal and the server are in the same local area network, and the terminal includes:
  • the first obtaining module is configured to obtain the user identification code of the terminal and the target user identification code through the server.
  • the user identification code of the terminal is the identification information of the terminal user who has undergone a preset operation
  • the target user identification code is the preset operation.
  • Identification information of the target user of the operation, the user of the terminal and the target user are the objects of establishing a session;
  • the first sending module is configured to send a session establishment request to a third-party application server, where the session establishment request carries a user identification code and a target user identification code corresponding to the terminal;
  • the first receiving module is configured to receive the session interface information sent by the third-party application server, and display the session interface corresponding to the session interface information through the third-party application.
  • the session interface is the third-party application server according to the session.
  • the establishment request is a conversation interface between the established user identification code in the user account corresponding to the third-party application and the target user identification code in the target user account corresponding to the third-party application.
  • the first acquisition module further includes a first acquisition sub-module and a first screening sub-module;
  • the first obtaining submodule is used to obtain a list of user identification codes of all users through the server;
  • the first screening submodule is used to screen out the user identification code corresponding to the terminal from the user identification code list.
  • the first obtaining module further includes: a first receiving submodule, a second screening submodule, and a first confirmation submodule;
  • the first receiving sub-module is used to receive input string instructions
  • the second screening sub-module is used to screen out several related user identification codes of the target user identification code according to the string instruction;
  • the first confirmation sub-module is used for confirming the target user identification code according to several related user identification codes of the target user identification code.
  • the second screening submodule further includes: a preprocessing submodule, a first judgment submodule, and a second receiving submodule;
  • the preprocessing sub-module is used for the terminal to preprocess the specific symbol in the string instruction
  • the first judgment sub-module is used to judge the length of the preprocessed character string, and if the length of the character string is greater than a preset threshold, send the preprocessed character string instruction to the server;
  • the second receiving submodule is configured to receive several related user identification codes of the target user identification code matched by the server according to the preprocessed character string instruction.
  • the terminal further includes:
  • the encryption module is used to obtain the login password corresponding to the user identification code through the server, and encrypt the login password;
  • the second sending module is configured to send a registration request to the third-party application server, and the registration request carries a user identification code corresponding to the terminal and an encrypted login password;
  • the second receiving module is configured to receive that the third-party application server obtains the user account and registration password corresponding to the third-party application according to the registration request.
  • the first sending module includes: a second obtaining submodule, a second judgment submodule, a single chat session sending module, and a group chat session sending module;
  • the second obtaining submodule is configured to obtain the corresponding target user account of the third-party application according to the target user identification code
  • the second judgment sub-module is used to judge whether the number of the target user identification codes is greater than 1;
  • the single chat session sending module is configured to send a single chat session establishment request to the third-party application server if the number of the target user identification codes is not greater than 1, wherein the single chat session request carries the target user identification code The target user account of the corresponding third-party application;
  • the group chat session sending module is configured to send a group chat session establishment request to the third-party application server if the number of target user identification codes is greater than 1, wherein the group chat session request carries multiple target user identifications Target user accounts of multiple third-party applications corresponding to the code.
  • the terminal further includes:
  • the third receiving module is configured to receive update messages of users in the server, where the update messages include newly added, deleted, and modified user information, and the user information includes a user identification code;
  • the second obtaining module is configured to obtain the user identification code corresponding to the updated user according to the update message of the user.
  • a fourth aspect of the embodiments of the present invention provides a third-party application server, where the third-party application server includes:
  • the first receiving module is configured to receive a session establishment request sent by a terminal, and the session establishment request carries a user identification code and a target user identification code corresponding to the terminal;
  • the search module is used to search for the user account and target user account of the corresponding third-party application according to the user identification code and the target user identification code;
  • the establishment module is configured to establish the session interface information between the user account and the target user account according to the session establishment request, and send the session interface information to the terminal for display through a third-party application.
  • the third-party application server further includes:
  • the second receiving module is configured to receive a registration request sent by a terminal or a server, and the registration request carries a user identification code corresponding to the terminal and an encrypted login password;
  • the sending module is configured to obtain the user account and registration password corresponding to the third-party application according to the registration request and send them to the terminal.
  • the establishment module includes a single chat session establishment module and a group chat session establishment module;
  • the single chat session establishment module is configured to, if a single chat session establishment request sent by the terminal is received, wherein the single chat session request carries the target user account of the third-party application corresponding to the target user identification code, then establish the A single chat session between the user account and the target user account;
  • the group chat session establishment module is configured to, if a group chat session establishment request sent by the terminal is received, wherein the group chat session request carries multiple target user accounts of multiple third-party applications corresponding to multiple target user identification codes, Then, a group chat session between the user account and multiple target user accounts is established.
  • a fifth aspect of the embodiments of the present invention provides a session establishment system, including the terminal described in the third aspect and the third-party application server described in the fourth aspect.
  • a sixth aspect of the embodiments of the present invention provides an electronic device, including a memory and a processor, the memory stores a computer program that can run on the processor, and the processor implements the foregoing first when the computer program is executed. The steps of the method described in one aspect.
  • a seventh aspect of the embodiments of the present invention provides an electronic device, including a memory and a processor, the memory stores a computer program that can run on the processor, and the processor implements the above-mentioned first when the computer program is executed. The steps of the method described in the second aspect.
  • An eighth aspect of the embodiments of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
  • a ninth aspect of the embodiments of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the second aspect are implemented.
  • the terminal only obtains the user identification code and target user identification code of the terminal through the server, and sends a session establishment request to the third-party application server.
  • the session establishment request carries the terminal corresponding User identification code and target user identification code, receive the session interface information sent by the third-party application server, and display the session interface corresponding to the session interface information through the third-party application, so that only the user identification code and target user identification code can pass the
  • the three-party application establishes a conversation, which not only improves the efficiency of instant messaging, but also prevents the leakage of employee information and improves the security of employee information.
  • FIG. 1 is a schematic flowchart of a session establishment method provided by an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a session establishment method provided by another embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a session establishment method provided by another embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a session establishment method provided by another embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a terminal structure according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal provided by another embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a terminal structure according to another embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a terminal structure according to another embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a terminal structure according to another embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a terminal according to another embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a terminal structure according to another embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a third-party application server provided by an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a third-party application server provided by another embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a third-party application server provided by another embodiment of the present invention.
  • 15 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 16 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a session establishment method provided by an embodiment of the present invention.
  • the terminal in this method can be a computer, a mobile phone, a tablet computer, etc.
  • the server can be a computer, a server, etc.
  • the third-party application server can be a computer, a server, etc.
  • the third-party application can be WeChat, Dingding Instant messaging software such as QQ, QQ, etc., in the embodiment of the present invention, there is no specific limitation here.
  • the server and the terminal are in the same local area network, and the communication method between the terminal and the third-party application server may be a mobile network, wireless broadband, or other communication methods.
  • the communication method between the terminal and the third-party application server may be a mobile network, wireless broadband, or other communication methods.
  • the communication method between the terminal and the third-party application server may be a mobile network, wireless broadband, or other communication methods.
  • member information of a unit, company, or organization may be stored in the server.
  • it is not limited to a unit, company or organization, but also other groups.
  • the user of the terminal can also be an employee of the unit or company, or a member of an organization, or a member of a group.
  • the example does not impose specific restrictions on this.
  • the following is a detailed description of the process of establishing a session through a third-party application by company employees as users:
  • the session establishment method includes:
  • the user identification code of the terminal is the identification information of the terminal user who has undergone a preset operation
  • the target user identification code is the identification information of the target user who has undergone the preset operation.
  • the user and the target user are the objects to establish a session, and the terminal and the server are in the same local area network.
  • the terminal and the server are in the same local area network means that the user corresponding to the terminal can register on the server, and the user corresponding to the terminal can log in to the terminal, so that the terminal can obtain the information inside the server and display it to the user corresponding to the terminal.
  • the terminal can obtain the user identification code and the target user identification code through the server, so that in subsequent steps, the terminal can send a session establishment request to the third-party application server according to the obtained user identification code and target user identification code.
  • the identification information of the terminal user can be the user ID information of the user corresponding to the terminal
  • the identification information of the target user can be the ID information of the target user
  • the target user is the object to which the user needs to establish a session.
  • the preset operation of the identification information of the terminal user can be to encrypt the user ID information of the terminal user, or add other characters to the user ID information of the terminal user, or it can be the ID information of the terminal user.
  • Information undergoes other processing, which is not specifically limited in the embodiment of the present invention.
  • the preset operation of the target user’s identification information namely the target user identification code
  • This server is an internal server, not other third-party application servers.
  • the server can be an internal server of the company.
  • the server can store the information of the internal employees of the company.
  • the information of the employees can include all employee ID information, name information, pinyin information of the name, mailbox information, position information, and work location. Information etc. All employees include terminal users and target users.
  • S102 Send a session establishment request to a third-party application server, where the session establishment request carries a user identification code and a target user identification code corresponding to the terminal.
  • the terminal after the terminal obtains the user identification code and target user identification code of the terminal from the server, it can send the user identification code and target user identification code to the third-party application server, so that the third-party application server A session can be established based on the user identification code and the target user identification code.
  • the user identification code corresponding to the terminal may be the user ID information of the terminal user who has undergone a preset operation
  • the target user ID may be the user ID information of the target user who has undergone the preset operation, that is, the session request carries the user ID information of the user who has undergone the preset operation.
  • the preset operation can be to encrypt the user ID information of the terminal user or the ID information of the target user, or add other characters to the ID information of the terminal user or the ID information of the target user.
  • Other processing may be performed on the user ID information of the terminal user or the ID information of the target user, which is not specifically limited in the embodiment of the present invention.
  • S103 Receive the session interface information sent by the third-party application server, and display the session interface corresponding to the session interface information through the third-party application.
  • the session interface is the third-party application server according to the session establishment request, and the established user identification code corresponds to the third-party application.
  • the session interface information when the session establishment request is a single chat session request, the session interface information may be single chat session interface information, and the corresponding session interface may be a single chat session interface.
  • the session interface information when the session establishment request is a group chat session request, the session interface information may be group chat session interface information, and the corresponding session interface may be a group chat session interface.
  • the terminal receives the session interface information sent by the third-party application server, it indicates that the session between the user corresponding to the terminal and the target user is successfully created, and the terminal can display the session interface to the user and/or target user corresponding to the terminal. To prompt the user corresponding to the terminal and/or the target user that the session is successfully established.
  • the terminal only obtains the user identification code and target user identification code of the terminal through the server, and sends a session establishment request to the third-party application server.
  • the session establishment request carries the user identification code and the target user identification code corresponding to the terminal.
  • the target user identification code receives the session interface information sent by the third-party application server, and displays the session interface corresponding to the session interface information through the third-party application, so that only the user identification code and the target user identification code are needed to establish a session through the third-party application. It not only improves the efficiency of instant messaging, but also prevents the leakage of employee information and improves the security of employee information.
  • the step of obtaining the user identification code of the terminal through the server includes: obtaining the user identification code list of all users through the server; and filtering the user identification code corresponding to the terminal from the user identification code list.
  • the user identification code list of all users may include the user ID information of all users after encryption processing.
  • the terminal can filter out the user ID information of the encrypted terminal user based on the obtained user ID information after encryption processing, that is, filter out the user identification code corresponding to the terminal, and the terminal can obtain the encrypted user ID information. Job number information.
  • the terminal can display a list of user identification codes of all users on the address book interface. According to the size of its own address book interface, the terminal can display all user identification code lists of all users, or display a partial user identification code list.
  • the step of obtaining the target user identification code through the server includes: receiving the input string instruction; filtering out several related user identification codes of the target user identification code according to the string instruction, and according to the several related users of the target user identification code Identification code Confirm the identification code of the target user.
  • the character string command can be generated according to the user input operation corresponding to the terminal.
  • the user corresponding to the terminal can input the user ID information, name pinyin information, mailbox information, position information, and work location information corresponding to the target user.
  • the character string instruction may include the job ID information, name pinyin information, mailbox information, position information, and work location information corresponding to the target user.
  • the terminal can send the character string instruction to the server.
  • the server can receive the character string instruction, match several related users according to the string instruction, and send several related user identifications corresponding to the several related users to the terminal.
  • Code the terminal can obtain several related user identification codes of the target user identification code, and can display several related user identification codes of the target user identification code on the address book interface.
  • the plurality of related user identification codes may be the user ID information of a plurality of related users after encryption processing.
  • the terminal can confirm the target user identification code from several related user identification codes of the target user identification code in response to an operation triggered by the user, and then the terminal obtains the target user identification code, that is, the encrypted user ID information of the target user.
  • the terminal may display several related user identification codes of the target user identification code on the interface, and each related user identification code has a corresponding selection box.
  • the user corresponding to the terminal can determine the target user identification code by selecting one or more corresponding selection boxes.
  • the terminal can respond to the input operation of the user corresponding to the terminal to obtain the target user identification code.
  • the user corresponding to the terminal can input the corresponding string command in the terminal, so that several related user identification codes of the target user identification code, the user corresponding to the terminal can select on the terminal to determine the target user identification code This makes the process of determining the target user identification code more convenient for the user corresponding to the terminal.
  • filtering out several related user identification code steps of the target user identification code according to the string instruction includes: preprocessing the specific symbol in the string instruction; judging the length of the preprocessed string, if the string length is greater than If the threshold is preset, the preprocessed string instruction is sent to the server; and the server receives several related user identification codes of the target user identification code matched by the preprocessed string instruction.
  • the terminal can preprocess the specific symbol in the string instruction, obtain the preprocessed string, and determine the length of the string. If it is determined that the length of the string is greater than the preset threshold, the The processed string command is sent to the server.
  • the server can receive the preprocessed string instruction, and perform matching according to the processed string instruction, obtain several related users, and send several related user identification codes corresponding to several related users to the terminal. Several related user identification codes of the target user identification code can be obtained.
  • the terminal when the specific symbol is a space, when the terminal detects the space in the string instruction, it can delete the space in the string instruction, obtain the preprocessed string instruction, and delete it to avoid some invalid character instructions.
  • the method further includes: obtaining the login password corresponding to the user identification code through the server, and encrypting the login password; sending the registration to the third-party application server Request, the registration request carries the user identification code and the encrypted login password corresponding to the terminal; the receiving third-party application server obtains the user account and registration password corresponding to the third-party application according to the registration request.
  • the terminal after the terminal obtains the user identification code corresponding to the terminal, the user corresponding to the terminal can be registered, so that in subsequent steps, a session between the user corresponding to the terminal and the target user can be established.
  • the server may use an encryption algorithm to encrypt the login password corresponding to the user identification code, obtain the encrypted login password, and send the encrypted login password to the terminal. Accordingly, the terminal may receive the encrypted login password. password.
  • the terminal can receive the user account and registration password corresponding to the third-party application sent by the third-party application server, and can display the user account and registration password corresponding to the third-party application through the interface, so that the user corresponding to the terminal can know the third party The user account and registration password corresponding to the application.
  • the user identification code and login password corresponding to the terminal can be filtered out by the server, and the login password is encrypted, and the server sends the user identification code and encryption corresponding to the terminal to the third-party application server.
  • the third-party application service can register according to the user identification code corresponding to the terminal sent by the server. After logging in to the terminal, the user corresponding to the terminal does not need to register with the third-party application server again.
  • the server sends the user identification code corresponding to the terminal to the third-party application server, which can avoid the situation that the user corresponding to the terminal in the above-mentioned embodiment needs to register with the third-party application server every time they log in to the terminal. , Resulting in a waste of resources.
  • the user identification code obtained by the server has been registered in the third-party application software, and the terminal can display the user identification code obtained by the server.
  • the user corresponding to the terminal selects the target user identification code on the interface displayed on the terminal , To avoid the situation where the session creation fails because the target user identification code is not registered in the third-party application software.
  • the step of the terminal sending a session establishment request to the third-party application server includes: obtaining the target user account of the corresponding third-party application according to the target user identification code; judging whether the number of target user identification codes is greater than one; if the target user identification code If the number of is not greater than 1, a single chat session establishment request is sent to the third-party application server, where the single chat session request carries the target user account of the third-party application corresponding to the target user identification code; if the number of target user identification codes is greater than 1.
  • the terminal when the terminal sends a session establishment request to the third-party application server, it can be assumed that the user corresponding to the terminal has already logged in at the terminal, and the terminal has obtained the user ID corresponding to the user account of the third-party application. Therefore, the terminal only The target user identification code needs to be obtained to obtain the target user account of the corresponding third-party application.
  • the target user account of the third-party application corresponding to the target user identification code may be the target user account that is generated correspondingly when the user ID information of the target user is encrypted and registered in the third-party application.
  • the terminal can apply to third parties
  • the server sends a single chat session request.
  • the terminal can send to a third-party application server Group chat session request.
  • the third-party application server by judging the number of target user identification codes, it is determined to send a single chat session request or a group chat session request to the third-party application server, so that the third-party application server establishes different session interface information according to the session request.
  • the update message of the user in the server is received, where the update message includes new, deleted and modified user information, and the user information includes a user identification code; according to the user's update message, the user identification code corresponding to the updated user is obtained.
  • the server may send the updated user identification code to the terminal.
  • the terminal may receive the updated user identification code, and may display the updated user identification code on the interface. User ID corresponding to the user.
  • the user identification code corresponding to the updated user may be the user ID information corresponding to the updated user.
  • the user identification code corresponding to the updated user may be the updated user identification code, that is, the updated user ID information; it may also be all the updated user identification codes, that is, the updated user ID information of all users.
  • the server when the user’s information in the server changes, the server can send an update message to the terminal.
  • the terminal can receive the update message of the user in the server and display it to the user corresponding to the terminal, so that the user corresponding to the terminal.
  • the update message in the server can be obtained in time, avoiding the change of the user's information in the server, but the user corresponding to the terminal cannot know it, and the situation in which the target user cannot be found cannot be found.
  • FIG. 2 is a schematic flowchart of a session establishment method provided by another embodiment of the present invention.
  • the execution subject of this method may be a third-party application server, which is not specifically limited in the embodiment of the present invention.
  • the session establishment method includes:
  • S201 Receive a session establishment request sent by a terminal, where the session establishment request carries a user identification code and a target user identification code corresponding to the terminal.
  • the terminal can send the user identification code and the target user identification code to the server, and the third-party application server can receive the user identification code and the target user identification code, so that the third-party application server can Find the user account and target user account of the third-party application, and establish a session between the user account and the target user account.
  • S202 Search for the user account and target user account of the corresponding third-party application according to the user identification code and the target user identification code.
  • the user account of the third-party application is an account corresponding to the user identification code generated when the third-party application server is registered
  • the target user account of the third-party application is the account correspondingly generated when the third-party application server is registered.
  • the third-party application server can learn that the target user identification code has not been registered with the third-party application server, and the third-party application server can notify the terminal Sending the information that the target user identification code is not registered, correspondingly, the terminal can receive the information that the target user identification code is not registered, and can display the information that the target user identification code is not registered to the user.
  • S203 Establish the session interface information between the user account and the target user account according to the session establishment request, and send the session interface information to the terminal for display through a third-party application.
  • the third-party application server may establish session interface information according to the session establishment request.
  • the session establishment request may be a single chat session request or a group chat session request.
  • the session interface information may be single chat session interface information or Group chat session interface information.
  • the third-party application server may call the function of creating a session in the third-party application server, and the third-party application server will establish a session interface between the user account and the target user account according to the session establishment request and through the session creation function. information.
  • the third-party application server obtains the session establishment request as a single chat session request, the third-party application server establishes the single chat session interface information between the user account and the target user account according to the single chat session request.
  • the third-party application server acquires the session establishment request as a group chat session request, the third-party application server establishes the group chat session interface information between the user account and the target user account according to the group chat session request.
  • the third-party application server receives the session establishment request sent by the terminal.
  • the session establishment request carries the user identification code and target user identification code corresponding to the terminal, and the third-party application server searches for the user identification.
  • the user account and target user account of the third-party application corresponding to the code and the target user identification code, and the session interface information between the user account and the target user account is established according to the session establishment request. Therefore, only the user identification code and the target user identification code can be used to establish a session through a third-party application server, which not only improves the efficiency of instant messaging, but also prevents employee information leakage and improves the security of employee information.
  • step of establishing session interface information between the user account and the target user account according to the session establishment request includes:
  • a single chat session establishment request sent by the terminal is received, where the single chat session request carries the target user account of the third-party application corresponding to the target user identification code, a single chat session between the user account and the target user account is established.
  • a group chat session establishment request sent by the terminal is received, where the group chat session request carries multiple target user identification codes corresponding to multiple target user accounts of third-party applications, then the user account and the multiple target user accounts are established. Group chat session between.
  • the third-party application server when the third-party application server receives the session establishment request, it can default to that the user corresponding to the terminal has logged in at the terminal, and the third-party application server has obtained the user account corresponding to the third-party application, so the single chat session request or the group chat session request Include the target user account of the third-party application.
  • the method further includes: receiving a registration request sent by a terminal or a server, the registration request carrying a user identification code corresponding to the terminal and an encrypted login password; according to the registration request, the user account and registration password corresponding to the third-party application are obtained and sent to terminal.
  • the third-party application server receives the registration request sent by the terminal or the server, and registers the user identification code corresponding to the terminal according to the registration request, obtains the user account and registration password corresponding to the third-party application, and sends the third-party application to the terminal.
  • the user account and registration password corresponding to the third-party application so that the terminal can obtain the user account and registration password corresponding to the third-party application.
  • the third-party application server may use the encrypted login password carried in the registration request as the registration password corresponding to the user account.
  • the user account corresponding to the third-party application can be the user identification code corresponding to the terminal, that is, the user ID information of the terminal user after encryption processing, or the user identification code corresponding to the terminal after adding other characters. It may be other information processed on the user account corresponding to the terminal, which is not specifically limited in the embodiment of the present invention.
  • FIG. 3 and 4 are schematic flowcharts of a session establishment method provided by another embodiment of the present invention.
  • the terminal and the server are in the same local area network.
  • the user ID of the terminal is the encrypted user ID information of the terminal user
  • the target user ID is the encrypted ID information of the target user as an example.
  • the specific process of the session establishment method is described as follows:
  • the terminal obtains the encrypted list of all user ID information through the server;
  • the terminal filters out the encrypted user ID information of the terminal user from the user ID information list;
  • the terminal obtains the login password corresponding to the encrypted terminal user ID information through the server, and encrypts the login password;
  • the terminal sends a registration request to the third-party application server, and the registration request carries the encrypted terminal user ID information and the encrypted login password;
  • the third-party application server receives the registration request sent by the terminal or the server, and the registration request carries the encrypted terminal user ID information and the encrypted login password;
  • the third-party application server obtains the user account and registration password corresponding to the third-party application according to the registration request and sends it to the terminal;
  • the terminal receives the third-party application server to obtain the user account and registration password corresponding to the third-party application according to the registration request;
  • S310 The terminal judges the length of the preprocessed character string
  • S312 The server receives the preprocessed string instruction
  • S314 The server obtains a number of related user ID information of the target user ID information
  • S315 The server sends a number of encrypted user ID information to the terminal;
  • S316 The terminal receives a number of encrypted related user ID information matched by the server according to the preprocessed string instruction;
  • S317 The terminal confirms the encrypted target user ID information according to the encrypted user ID information
  • S318 The terminal sends a session establishment request to the third-party application server, and the session establishment request carries encrypted terminal user ID information and encrypted target user ID information;
  • the third-party application server receives the session establishment request sent by the terminal, and the session establishment request carries encrypted terminal user ID information and encrypted target user ID information;
  • the third-party application server searches for the user account and target user account of the corresponding third-party application according to the encrypted terminal user ID information and the encrypted target user ID information;
  • S321 The terminal obtains the target user account of the corresponding third-party application according to the encrypted target user ID information
  • S322 The terminal judges whether the number of encrypted target user ID information is greater than one
  • the terminal sends a single chat session establishment request to the third-party application server.
  • the single chat session request carries the third party corresponding to the encrypted target user ID information
  • the target user account of the application
  • the third-party application server receives the single chat session establishment request sent by the terminal, and establishes a single chat session between the user account and the target user account;
  • the terminal sends a group chat session establishment request to the third-party application server, where the group chat session request carries multiple encrypted target user ID information corresponding to Target user accounts of multiple third-party applications;
  • the third-party application server receives the group chat session establishment request sent by the terminal, and establishes a group chat session between the user account and multiple target user accounts;
  • S327 The third-party application server sends the session interface information to the terminal;
  • S328 The terminal receives the session interface information sent by the third-party application server,
  • S329 The terminal displays the conversation interface corresponding to the conversation interface information through a third-party application
  • S330 The server sends the user's update message to the terminal
  • S331 The terminal receives the update message of the user in the server
  • S332 The terminal obtains the user ID information corresponding to the updated user according to the user's update message.
  • the encrypted user ID information in the server is used as the information for the terminal to interact with the third-party application server, so that only the encrypted user ID information and the encrypted user ID information are needed.
  • the target user’s ID information can be used to establish a session through third-party applications, which not only improves the efficiency of instant messaging, but also prevents employee information leakage and improves the security of employee information.
  • FIG. 5 is a schematic diagram of a terminal structure according to an embodiment of the present invention.
  • the terminal includes a first acquiring module 501, a first sending module 502, and a first receiving module 503.
  • the first obtaining module 501 is configured to obtain the user identification code of the terminal and the target user identification code through the server.
  • the first sending module 502 is configured to send a session establishment request to a third-party application server.
  • the session establishment request carries a user identification code and a target user identification code corresponding to the terminal.
  • the first receiving module 503 is used to receive the session interface information sent by the third-party application server, and display the session interface corresponding to the session interface information through the third-party application.
  • the session interface is the user established by the third-party application server according to the session establishment request.
  • the identification code is a conversation interface between the user account corresponding to the third-party application and the target user identification code is the target user account corresponding to the third-party application.
  • the first obtaining module 501 further includes a first obtaining submodule 5011 and a first screening submodule 5012.
  • the first obtaining submodule 5011 is used to obtain a list of user identification codes of all users through the server.
  • the first screening submodule 5012 is used for screening the user identification code corresponding to the terminal from the user identification code list.
  • the first obtaining module 501 further includes: a first receiving submodule 5013, a second screening submodule 5014, and a first confirmation submodule 5015.
  • the first receiving sub-module 5013 is used to receive the input string command.
  • the second screening sub-module 5014 is used to screen out a number of related user identification codes of the target user identification code according to the string instructions.
  • the first confirmation sub-module 5015 is used to confirm the target user identification code according to several related user identification codes of the target user identification code.
  • the second screening submodule 5014 further includes: a preprocessing submodule 5014a, a first judgment submodule 5014b, and a second receiving submodule 5014c.
  • the preprocessing sub-module 5014a is used for the terminal to preprocess specific symbols in the string instruction.
  • the first judging sub-module 5014b is used to judge the length of the preprocessed character string, and if the length of the character string is greater than the preset threshold, send the preprocessed character string command to the server.
  • the second receiving submodule 5014c is configured to receive several related user identification codes of the target user identification code matched by the server according to the preprocessed string instruction.
  • the terminal further includes:
  • the encryption module 504 is used to obtain the login password corresponding to the user identification code through the server, and encrypt the login password.
  • the second sending module 505 is configured to send a registration request to a third-party application server, and the registration request carries a user identification code corresponding to the terminal and an encrypted login password.
  • the second receiving module 506 is configured to receive the user account and registration password corresponding to the third-party application obtained by the third-party application server according to the registration request.
  • the first sending module 502 includes: a second obtaining submodule 5021, a second judgment submodule 5022, a single chat session sending module 5023, and a group chat session sending module 5024.
  • the second obtaining submodule 5021 is configured to obtain the target user account of the corresponding third-party application according to the target user identification code.
  • the second judgment sub-module 5022 is used to judge whether the number of target user identification codes is greater than one.
  • the single chat session sending module 5023 is configured to send a single chat session establishment request to the third-party application server if the number of target user identification codes is not greater than 1, where the single chat session request carries the third-party application corresponding to the target user identification code The target user account.
  • the group chat session sending module 5024 is configured to send a group chat session establishment request to the third-party application server if the number of target user identification codes is greater than 1, wherein the group chat session request carries multiple target user identification codes corresponding to The target user account of the third-party application.
  • the terminal further includes:
  • the third receiving module 507 is configured to receive an update message of a user in the server, where the update message includes newly added, deleted, and modified user information, and the user information includes a user identification code.
  • the second obtaining module 508 is configured to obtain the user identification code corresponding to the updated user according to the user's update message.
  • FIG. 12 is a schematic structural diagram of a third-party application server provided by an embodiment of the present invention.
  • the third-party application server includes a first receiving module 1201, a searching module 1202, and a establishing module 1203.
  • the first receiving module 1201 is configured to receive a session establishment request sent by a terminal.
  • the session establishment request carries a user identification code and a target user identification code corresponding to the terminal.
  • the search module 1202 is configured to search for the user account and target user account of the corresponding third-party application according to the user identification code and the target user identification code.
  • the establishment module 1203 is configured to establish session interface information between the user account and the target user account according to the session establishment request, and send the session interface information to the terminal for display through a third-party application.
  • the third-party application server also includes:
  • the second receiving module 1204 is configured to receive a registration request sent by a terminal or a server.
  • the registration request carries a user identification code corresponding to the terminal and an encrypted login password.
  • the sending module 1205 is configured to obtain the user account and registration password corresponding to the third-party application according to the registration request and send it to the terminal.
  • the establishment module 1203 includes a single chat session establishment module 1203a and a group chat session establishment module 1203b.
  • the single chat session establishment module 1203a is configured to establish a user account and a target user if a single chat session establishment request from the terminal is received, where the single chat session request carries the target user account of the third-party application corresponding to the target user identification code Single chat sessions between accounts.
  • the group chat session establishment module 1203b is configured to establish a user if a group chat session establishment request sent by the terminal is received, wherein the group chat session request carries multiple target user identification codes corresponding to multiple target user accounts of third-party applications. Group chat sessions between accounts and multiple target user accounts.
  • the foregoing device is used to execute the foregoing method embodiment, and may be integrated in client devices such as computers, mobile phones, and tablet computers.
  • client devices such as computers, mobile phones, and tablet computers.
  • the above units may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (ASIC for short), or one or more microprocessors (digital singnal processor, DSP for short), or, one or more Field Programmable Gate Array (FPGA for short), etc.
  • ASIC application specific integrated circuit
  • DSP digital singnal processor
  • FPGA Field Programmable Gate Array
  • the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU for short) or other processors that can call program codes.
  • these units can be integrated together and implemented in the form of a system-on-a-chip (SOC for short).
  • the embodiment of the present invention provides a session establishment system, which includes the terminal described in any one of FIGS. 5 to 11 and the third-party application server described in any one of FIGS. 12 to 14.
  • FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention; as shown in FIG. 15, the electronic device includes: a processor 1501 and a memory 1502, where:
  • the memory 1502 is used to store programs, and the processor 1501 calls the programs stored in the memory 1502 to execute the method embodiment corresponding to FIG. 1.
  • the specific implementation is similar to the technical effect, and will not be repeated here.
  • FIG. 16 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention. As shown in FIG. 16, the electronic device includes: a processor 1601 and a memory 1602, where:
  • the memory 1602 is used to store programs, and the processor 1601 calls the programs stored in the memory 1602 to execute the method embodiment corresponding to FIG. 2 above.
  • the specific implementation is similar to the technical effect, and will not be repeated here.
  • the embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method corresponding to FIG. 1 are implemented.
  • the embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method corresponding to FIG. 2 are implemented.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be realized in the form of hardware, or in the form of hardware plus software functional unit.
  • the above-mentioned integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium.
  • the above-mentioned software functional unit is stored in a storage medium and includes several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (English: processor) execute the method of each embodiment of the present invention Part of the steps.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated as: ROM), random access memory (English: Random Access Memory, abbreviated as: RAM), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种会话建立方法、终端、第三方应用服务器及系统,该方法包括:通过服务器获取终端的用户识别码和目标用户识别码,向第三方应用服务器发送会话建立请求,会话建立请求中携带有终端对应的用户识别码和目标用户识别码;接收第三方应用服务器发送的会话界面信息,并通过第三方应用展示会话界面信息对应的会话界面,会话界面是第三方应用服务器根据会话建立请求,所建立的用户识别码在第三方应用对应的用户账号和目标用户识别码在第三方应用对应的目标用户账号之间的会话界面。本发明实施例仅需要用户识别码和目标用户识别码即可通过第三方应用建立会话,既提高了即时通讯的效率,还可以防止员工的信息泄露,提高员工信息的安全性。

Description

会话建立方法、终端、第三方应用服务器及系统 技术领域
本发明涉及通信技术领域,尤其涉及一种会话建立方法、终端、第三方应用服务器及系统。
背景技术
近年来,通信技术快速发展,使得信息传递和人类的沟通方式更加便捷,尤其是对即时通讯类的应用需求也越来越多,如果对即时通讯类应用从网络协议,数据库以及客户端的进行开发,对研发人员的要求相对较高,同时会消耗大量的人力和物力,因此,都会运用成熟的第三方即时通讯应用的框架,结合自己需要的一些特色服务,做二次开发。
现有技术中,第三方即时通讯的SDK(Software Development Kit,软件开发工具包)是指拥有完整的客户端,数据库,网络协议等,能够按照协议完成一个通讯功能的闭环,而集成在第三方SDK应用通讯录,需要将公司内部的人员的信息全部录入第三方数据库,一方面是工作量大,需要录入的消息大,另一个方面还会造成员工消息的泄漏,造成安全隐患。
发明内容
本发明提供一种会话建立方法、终端、第三方应用服务器及系统,用于解决现有技术中存在的集成在第三方SDK应用通讯录时,出现的工作量大,录入的消息大,以及造成员工消息的泄漏,造成安全隐患的问题。
为实现上述目的,本发明实施例第一方面提供一种会话建立方法,包括:
通过服务器获取终端的用户识别码和目标用户识别码,所述终端的用户识别码为经过预设操作的终端用户的标识信息,所述目标用户识别码为经过预设操作的目标用户的标识信息,所述终端的用户和所述目标用户为 建立会话的对象,其中,所述终端与服务器处于同一局域网;
向第三方应用服务器发送会话建立请求,所述会话建立请求中携带有终端对应的用户识别码和目标用户识别码;
接收第三方应用服务器发送的会话界面信息,并通过第三方应用展示所述会话界面信息对应的会话界面,所述会话界面是所述第三方应用服务器根据所述会话建立请求,所建立的所述用户识别码在所述第三方应用对应的用户账号和所述目标用户识别码在所述第三方应用对应的目标用户账号之间的会话界面。
可选的,所述通过服务器获取终端的用户识别码的步骤,包括:
通过服务器获取所有用户的用户识别码列表;
从所述用户识别码列表中筛选出所述终端对应的用户识别码。
可选的,所述通过服务器获取目标用户识别码的步骤,包括:
接收输入的字符串指令;
根据所述字符串指令筛选出目标用户识别码的若干个相关用户识别码,根据所述目标用户识别码的若干个相关用户识别码确认目标用户识别码。
可选的,所述根据所述字符串指令筛选出目标用户识别码的若干个相关用户识别码步骤,包括:
对所述字符串指令中的特定符号进行预处理;
判断预处理后的字符串长度,如果所述字符串长度大于预设阈值,则将预处理后的所述字符串指令发送给所述服务器;
接收所述服务器根据预处理后的所述字符串指令匹配到的所述目标用户识别码的若干个相关用户识别码。
可选的,从所述用户识别码列表中筛选出所述终端对应的用户识别码步骤之后,所述方法还包括:
通过服务器获取所述用户识别码对应的登陆密码,并对所述登陆密码进行加密处理;
向所述第三方应用服务器发送注册请求,所述注册请求中携带有终端对应的用户识别码和加密后的登陆密码;
接收所述第三方应用服务器根据所述注册请求得到所述第三方应用对应的用户账号和注册密码。
可选的,所述向第三方应用服务器发送会话建立请求的步骤,包括:
根据所述目标用户识别码获取对应的所述第三方应用的目标用户账号;
判断所述目标用户识别码的数量是否大于1;
若所述目标用户识别码的数量不大于1,则发送建立单聊会话请求给所述第三方应用服务器,其中,所述单聊会话请求中携带有目标用户识别码对应的第三方应用的目标用户账号;
若所述目标用户识别码的数量大于1,则发送建立群聊会话请求给所述第三方应用服务器,其中,所述群聊会话请求中携带有多个目标用户识别码对应的多个第三方应用的目标用户账号。
可选的,所述方法还包括:
接收所述服务器中用户的更新消息,其中,所述更新消息包括新增、删除和修改的用户信息,所述用户信息包括用户识别码;
根据所述用户的更新消息,获取更新后用户对应的用户识别码。
本发明实施例第二方面提供一种会话建立方法,所述方法包括:
接收终端发送的会话建立请求,所述会话建立请求中携带有终端对应的用户识别码和目标用户识别码;
根据用户识别码和目标用户识别码查找对应的第三方应用的用户账号和目标用户账号;
根据所述会话建立请求建立所述用户账号和所述目标用户账号之间的会话界面信息,并将所述会话界面信息发送给终端通过第三方应用进行展示。
可选的,所述方法还包括:
接收终端或者服务器发送的注册请求,所述注册请求中携带有终端对应的用户识别码和加密后的登陆密码;
根据所述注册请求得到所述第三方应用对应的用户账号和注册密码发送给所述终端。
可选的,根据所述会话建立请求建立所述用户账号和所述目标用户账号之间的会话界面信息的步骤,包括:
若接收到所述终端发送的建立单聊会话请求,其中,所述单聊会话请求中携带有目标用户识别码对应的第三方应用的目标用户账号,则建立所 述用户账号和所述目标用户账号之间的单聊会话;
若接收到所述终端发送的建立群聊会话请求,其中,所述群聊会话请求中携带有多个目标用户识别码对应的多个第三方应用的目标用户账号,则建立所述用户账号和多个所述目标用户账号之间的群聊会话。
本发明实施例第三方面提供一种终端,所述终端与服务器处于同一局域网,所述终端包括:
第一获取模块,用于通过服务器获取终端的用户识别码和目标用户识别码,所述终端的用户识别码为经过预设操作的终端用户的标识信息,所述目标用户识别码为经过预设操作的目标用户的标识信息,所述终端的用户和所述目标用户为建立会话的对象;
第一发送模块,用于向第三方应用服务器发送会话建立请求,所述会话建立请求中携带有终端对应的用户识别码和目标用户识别码;
第一接收模块,用于接收第三方应用服务器发送的会话界面信息,并通过第三方应用进行展示所述会话界面信息对应的会话界面,所述会话界面是所述第三方应用服务器根据所述会话建立请求,所建立的所述用户识别码在所述第三方应用对应用户账号和所述目标用户识别码在所述第三方应用对应的目标用户账号之间的会话界面。
可选的,所述第一获取模块还包括第一获取子模块和第一筛选子模块;
所述第一获取子模块用于通过服务器获取所有用户的用户识别码列表;
所述第一筛选子模块用于从所述用户识别码列表中筛选出所述终端对应的用户识别码。
可选的,所述第一获取模块还包括:第一接收子模块、第二筛选子模块和第一确认子模块;
所述第一接收子模块用于接收输入的字符串指令;
所述第二筛选子模块用于根据所述字符串指令筛选出目标用户识别码的若干个相关用户识别码;
第一确认子模块用于根据所述目标用户识别码的若干个相关用户识别码确认目标用户识别码。
可选的,所述第二筛选子模块还包括:预处理子模块、第一判断子模块和第二接收子模块;
所述预处理子模块用于所述终端对所述字符串指令中的特定符号进行预处理;
所述第一判断子模块用于判断预处理后的字符串长度,如果所述字符串长度大于预设阈值,则将预处理后的所述字符串指令发送给所述服务器;
第二接收子模块用于接收所述服务器根据预处理后的所述字符串指令匹配到的所述目标用户识别码的若干个相关用户识别码。
可选的,所述终端还包括:
加密模块,用于通过服务器获取所述用户识别码对应的登陆密码,并对所述登陆密码进行加密处理;
第二发送模块,用于向所述第三方应用服务器发送注册请求,所述注册请求中携带有终端对应的用户识别码和加密后的登陆密码;
第二接收模块,用于接收所述第三方应用服务器根据所述注册请求得到所述第三方应用对应的用户账号和注册密码。
可选的,所述第一发送模块包括:第二获取子模块、第二判断子模块、单聊会话发送模块和群聊会话发送模块;
第二获取子模块用于根据所述目标用户识别码获取对应的所述第三方应用的目标用户账号;
第二判断子模块用于判断所述目标用户识别码的数量是否大于1;
单聊会话发送模块用于若所述目标用户识别码的数量不大于1,则发送建立单聊会话请求给所述第三方应用服务器,其中,所述单聊会话请求中携带有目标用户识别码对应的第三方应用的目标用户账号;
群聊会话发送模块用于若所述目标用户识别码的数量大于1,则发送建立群聊会话请求给所述第三方应用服务器,其中,所述群聊会话请求中携带有多个目标用户识别码对应的多个第三方应用的目标用户账号。
可选的,所述终端还包括:
第三接收模块,用于接收所述服务器中用户的更新消息,其中,所述更新消息包括新增、删除和修改的用户信息,所述用户信息包括用户识别码;
第二获取模块,用于根据所述用户的更新消息,获取更新后用户对应的用户识别码。
本发明实施例第四方面提供一种第三方应用服务器,所述第三方应用服务器包括:
第一接收模块,用于接收终端发送的会话建立请求,所述会话建立请求中携带有终端对应的用户识别码和目标用户识别码;
查找模块,用于根据用户识别码和目标用户识别码查找对应的第三方应用的用户账号和目标用户账号;
建立模块,用于根据所述会话建立请求建立所述用户账号和所述目标用户账号之间的会话界面信息,并将所述会话界面信息发送给终端通过第三方应用进行展示。
可选的,所述第三方应用服务器还包括:
第二接收模块,用于接收终端或者服务器发送的注册请求,所述注册请求中携带有终端对应的用户识别码和加密后的登陆密码;
发送模块,用于根据所述注册请求得到所述第三方应用对应的用户账号和注册密码发送给所述终端。
可选的,所述建立模块包括单聊会话建立模块和群聊会话建立模块;
单聊会话建立模块用于若接收到所述终端发送的建立单聊会话请求,其中,所述单聊会话请求中携带有目标用户识别码对应的第三方应用的目标用户账号,则建立所述用户账号和所述目标用户账号之间的单聊会话;
群聊会话建立模块用于若接收到所述终端发送的建立群聊会话请求,其中,所述群聊会话请求中携带有多个目标用户识别码对应的多个第三方应用的目标用户账号,则建立所述用户账号和多个所述目标用户账号之间的群聊会话。
本发明实施例第五方面提供一种会话建立系统,包括:第三方面所述的终端和第四方面所述的第三方应用服务器。
本发明实施例第六方面提供一种电子设备,包括存储器、处理器,所述存储器中存储有可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面所述的方法的步骤。
本发明实施例第七方面提供一种电子设备,包括存储器、处理器,所述存储器中存储有可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第二方面所述的方法的步骤。
本发明实施例第八方面提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面所述方法的步骤。
本发明实施例第九方面提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述第二方面所述方法的步骤。
综上所述,采用本发明实施例提供的会话建立方法,终端仅通过服务器获取终端的用户识别码和目标用户识别码,向第三方应用服务器发送会话建立请求,会话建立请求中携带有终端对应的用户识别码和目标用户识别码,接收第三方应用服务器发送的会话界面信息,并通过第三方应用展示会话界面信息对应的会话界面,从而仅需要用户识别码和目标用户识别码即可通过第三方应用建立会话,既提高了即时通讯的效率,还可以防止员工的信息泄露,提高员工信息的安全性。
附图说明
图1为本发明一实施例提供的会话建立方法流程示意图;
图2为本发明另一实施例提供的会话建立方法流程示意图;
图3为本发明又一实施例提供的会话建立方法流程示意图;
图4为本发明又一实施例提供的会话建立方法流程示意图;
图5为本发明一实施例提供的一种终端结构示意图;
图6为本发明另一实施例提供的一种终端结构示意图;
图7为本发明又一实施例提供的一种终端结构示意图;
图8为本发明又一实施例提供的一种终端结构示意图;
图9为本发明又一实施例提供的一种终端结构示意图;
图10为本发明又一实施例提供的一种终端结构示意图;
图11为本发明又一实施例提供的一种终端结构示意图;
图12为本发明一实施例提供的一种第三方应用服务器结构示意图;
图13为本发明另一实施例提供的一种第三方应用服务器结构示意图;
图14为本发明又一实施例提供的一种第三方应用服务器结构示意图;
图15为本发明实施例提供的一种电子设备结构示意图;
图16为本发明实施例提供的另一种电子设备结构示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。
图1为本发明一实施例提供的会话建立方法流程示意图。该方法的中的终端可以是计算机、手机、平板电脑等设备,服务器可以是计算机、伺服器等设备,第三方应用服务器可以是计算机、伺服器等设备,该第三方应用可以是微信、钉钉、QQ等即时通讯软件,本发明实施例中,在此不做具体限定。
另外,在本发明实施例中服务器与终端为同一局域网,终端与第三方应用服务器之间的通讯方式可以为移动网络,也可以为无线宽带,也可以为其他的通讯方式,本发明实施例中,在此不做具体限定。
在本发明实施例中,服务器内可以存储有一个单位、公司或者组织内的成员信息。当然,在本发明实施例中,不仅限于单位、公司或者组织,还可以为其他的团体,那终端的用户也可以是单位、公司的员工,或者组织的组员,团体的团员,本发明实施例对此不进行具体限制。下面以公司员工作为用户来通过第三方应用建立会话的过程来进行详细说明如下:
如图1所示,该会话建立方法,包括:
S101、通过服务器获取终端的用户识别码和目标用户识别码,终端的用户识别码为经过预设操作的终端用户的标识信息,目标用户识别码为经过预设操作的目标用户的标识信息,终端的用户和目标用户为建立会话的对象,其中,终端与服务器处于同一局域网。
其中,终端与服务器处于同一局域网是指终端对应的用户可以在服务 器进行注册,终端对应的用户可以在终端进行登陆,从而使得终端可以获取服务器内部的信息,并向终端对应的用户进行展示。
在本实施例中,终端可以通过服务器获取用户识别码和目标用户识别码,以便后续的步骤中,终端可以根据获取的用户识别码和目标用户识别码向第三方应用服务器发送会话建立请求。
其中,终端用户的标识信息可以为终端对应的用户的工号信息,目标用户的标识信息可以为目标用户的工号信息,该目标用户为用户需要建立会话的对象。
另外,对终端用户的标识信息进行预设操作,可以为对终端用户的工号信息进行加密处理,也可以为对终端用户的工号信息添加其他的字符,还可以为对终端用户的工号信息进行其他的处理,本发明实施例对此不进行具体限制。
而且,对目标用户的标识信息进行预设操作,即目标用户识别码,可以为对目标用户的工号信息进行加密处理,也可以为对目标用户的工号信息添加其他的字符,还可以为对终端用户的工号信息进行其他的处理,本发明实施例对此不进行具体限制。
该服务器为内部服务器,并非其他的第三方应用服务器。例如,该服务器可以为公司内部的服务器,该服务器内可以存储有公司内部员工的信息,员工的信息可以包括所有员工工号信息、姓名信息、姓名的拼音信息、邮箱信息、职位信息和工作地点信息等。所有员工中包括终端对应的用户以及目标用户。
S102、向第三方应用服务器发送会话建立请求,会话建立请求中携带有终端对应的用户识别码和目标用户识别码。
在本实施例中,终端从服务器获取到终端的用户识别码和目标用户识别码后,可以向第三方应用服务器发送该用户识别码和目标用户识别码,以便后续的步骤中,第三方应用服务器可以根据该用户识别码和目标用户识别码建立会话。
其中,终端对应的用户识别码可以为经过预设操作的终端用户的工号信息,目标用户识别码可以为经过预设操作的目标用户的工号信息,即会话请求中携带有经过预设操作的终端用户的工号信息和经过预设操作的目 标用户的工号信息。
需要说明的是,预设操作可以为对终端用户的工号信息或者目标用户的工号信息进行加密,也可以为对终端用户的工号信息或者目标用户的工号信息添加其他的字符,还可以为对终端用户的工号信息或者目标用户的工号信息进行其他的处理,本发明实施例对此不进行具体限制。
S103、接收第三方应用服务器发送的会话界面信息,并通过第三方应用展示会话界面信息对应的会话界面,会话界面是第三方应用服务器根据会话建立请求,所建立的用户识别码在第三方应用对应的用户账号和目标用户识别码在第三方应用对应的目标用户账号之间的会话界面。
其中,当会话建立请求为单聊会话请求时,会话界面信息可以为单聊会话界面信息,则对应的会话界面可以为单聊会话界面。相应的,当会话建立请求为群聊会话请求时,会话界面信息可以为群聊会话界面信息,则对应的会话界面可以为群聊会话界面。
需要说明的是,终端接收到第三方应用服务器发送的会话界面信息,则表示终端对应的用户和目标用户之间的会话创建成功,终端可以向终端对应的用户和/或目标用户展示会话界面,以提示终端对应的用户和/或目标用户会话建立成功。
采用本发明实施例提供的会话建立方法,终端仅通过服务器获取终端的用户识别码和目标用户识别码,向第三方应用服务器发送会话建立请求,会话建立请求中携带有终端对应的用户识别码和目标用户识别码,接收第三方应用服务器发送的会话界面信息,并通过第三方应用展示会话界面信息对应的会话界面,从而仅需要用户识别码和目标用户识别码即可通过第三方应用建立会话,既提高了即时通讯的效率,还可以防止员工的信息泄露,提高员工信息的安全性。
进一步地,通过服务器获取终端的用户识别码的步骤,包括:通过服务器获取所有用户的用户识别码列表;从用户识别码列表中筛选出终端对应的用户识别码。
其中,所有用户的用户识别码列表可以包括加密处理后的所有用户的工号信息。终端可以根据获取的加密处理后的所有用户的工号信息,筛选出加密处理后的终端用户的工号信息,即筛选出终端对应的用户识别码, 则终端可以获取加密处理后的终端用户的工号信息。
而且,终端可以在通讯录界面显示所有用户的用户识别码列表。终端可以具体根据自身通讯录界面的大小,全部显示所有用户的用户识别码列表,也可以显示部分用户识别码列表。
进一步地,通过服务器获取目标用户识别码的步骤,包括:接收输入的字符串指令;根据字符串指令筛选出目标用户识别码的若干个相关用户识别码,根据目标用户识别码的若干个相关用户识别码确认目标用户识别码。
其中,字符串指令可以根据终端对应的用户输入操作所产生。终端对应的用户可以在终端输入,目标用户对应的工号信息、姓名拼音信息、邮箱信息、职位信息和工作地点信息等。相应的,字符串指令中可以包括目标用户对应的工号信息、姓名拼音信息、邮箱信息、职位信息和工作地点信息等。
具体地,终端可以向服务器发送该字符串指令,相应的,服务器可以接收该字符串指令,根据该字符串指令匹配若干个相关用户,并向终端发送若干个相关用户对应的若干个相关用户识别码,则终端可以获取目标用户识别码的若干个相关用户识别码,并可以在通讯录界面展示目标用户识别码的若干个相关用户识别码。
其中,若干个相关用户识别码可以为加密处理后的若干个相关用户的工号信息。
另外,终端可以响应用户触发的操作,从目标用户识别码的若干个相关用户识别码确认目标用户识别码,则终端获取目标用户识别码,即加密处理后的目标用户的工号信息。
例如,终端在界面可以显示目标用户识别码的若干个相关用户识别码,并且每个相关用户识别码有对应的选择框。终端对应的用户可以通过选择一个或者多个对应的选择框,来确定目标用户识别码。相应的,终端可以响应终端对应的用户的输入操作,获取目标用户识别码。
在本实施例中,终端对应的用户可以在终端输入对应的字符串指令,从而目标用户识别码的若干个相关用户识别码,终端对应的用户可以在终端进行选择,便可以确定目标用户识别码,这使得终端对应的用户确定目 标用户识别码的过程更加便捷。
进一步地,根据字符串指令筛选出目标用户识别码的若干个相关用户识别码步骤,包括:对字符串指令中的特定符号进行预处理;判断预处理后的字符串长度,如果字符串长度大于预设阈值,则将预处理后的字符串指令发送给服务器;接收服务器根据预处理后的字符串指令匹配到的目标用户识别码的若干个相关用户识别码。
具体地,终端可以对字符串指令中的特定符号进行预处理,获取预处理后的字符串,并判断该字符串的长度,若判断到该字符串的长度大于预设阈值,则可以将预处理后的字符串指令发送给服务器。服务器则可以接收该预处理后的字符串指令,并根据该处理后的字符串指令进行匹配,获取若干个相关用户,并向终端发送若干个相关用户对应的若干个相关用户识别码,则终端可以获取目标用户识别码的若干个相关用户识别码。
例如,特定符号为空格时,当终端检测到字符串指令中的空格时,可以删除字符串指令中的空格,获取到预处理后的字符串指令,删除从而可以避免一些无效的字符指令。
需要说明的是,特定符号可以为空格,也可以为括号,还可以为其他的需要进行处理的符号,本发明实施例对此不进行具体限制。
本实施例中,通过对字符串指令中的特定符号进行预处理,从而可以避免字符串中的一些无效的字符,使得确认若干个相关用户识别码的过程,效率更高。
进一步地,从用户识别码列表中筛选出终端对应的用户识别码步骤之后,方法还包括:通过服务器获取用户识别码对应的登陆密码,并对登陆密码进行加密处理;向第三方应用服务器发送注册请求,注册请求中携带有终端对应的用户识别码和加密后的登陆密码;接收第三方应用服务器根据注册请求得到第三方应用对应的用户账号和注册密码。
在本发明实施例中,终端获取终端对应的用户识别码之后,可以对终端对应的用户进行注册,以便在后续的步骤中,可以建立终端对应的用户以及目标用户之间的会话。
具体地,服务器可以采用加密算法,对用户识别码对应的登陆密码进行加密处理,获取到了加密后的登陆密码,向终端发送该加密后的登陆密 码,相应的,终端可以接收该加密后的登陆密码。
另外,终端可以接收第三方应用服务器发送的第三方应用对应的用户账号和注册密码,并且可以通过界面显示该第三方应用对应的用户账号和注册密码,以使终端对应的用户可以得知第三方应用对应的用户账号和注册密码。
在一种可能的实施例中,可以通过服务器可以筛选出终端对应的用户识别码和登陆密码,并对该登陆密码进行加密处理,服务器向第三方应用服务器发送该终端对应的用户识别码和加密后的密码,以使第三方应用服务根据服务器发送的终端对应的用户识别码进行注册。终端对应的用户在登陆终端后,无需再次进行去第三方应用服务器注册的操作。
在本实施例中,通过服务器向第三方应用服务器发送该终端对应的用户识别码,可以避免上述的实施例中终端对应的用户每次在终端登陆时,都需要去第三方应用服务器注册的情况,造成资源的浪费。同时,通过这种方式,服务器获取的用户的识别码,均已在第三方应用软件注册,终端可以显示服务器获取的用户的识别码,终端对应的用户在终端显示的界面选择目标用户识别码时,避免因目标用户识别码未在第三方应用软件注册,出现会话创建失败的情况。
进一步地,终端向第三方应用服务器发送会话建立请求的步骤,包括:根据目标用户识别码获取对应的第三方应用的目标用户账号;判断目标用户识别码的数量是否大于1;若目标用户识别码的数量不大于1,则发送建立单聊会话请求给第三方应用服务器,其中,单聊会话请求中携带有目标用户识别码对应的第三方应用的目标用户账号;若目标用户识别码的数量大于1,则发送建立群聊会话请求给第三方应用服务器,其中,群聊会话请求中携带有多个目标用户识别码对应的多个第三方应用的目标用户账号。
在本实施例中,终端向第三方应用服务器发送会话建立请求时,可以默认为终端对应的用户已经在终端登陆,则终端已获取用户识别码在第三方应用对应的用户账号,所以,终端仅需要获取目标用户识别码获取对应的第三方应用的目标用户账号。
其中,目标用户识别码对应的第三方应用的目标用户账号,可以为通过加密处理后的目标用户的工号信息在第三方应用注册时,对应产生的目 标用户账号。
需要说明的是,若目标用户识别码的数量不大于1,则说明目标用户的数量不大于1,则终端对应的用户与目标用户之间为一对一会话,所以,终端可以向第三方应用服务器发送单聊会话请求。
相应的,若目标用户识别码的数量大于1,则说明目标用户的数量大于1,则终端对应的用户与多个目标用户之间为一对多会话,所以,终端可以向第三方应用服务器发送群聊会话请求。
在本实施例中,通过判断目标用户识别码的数量,从而确定向第三方应用服务器发送单聊会话请求或者群聊会话请求,以便第三方应用服务器根据该会话请求建立不同的会话界面信息。
进一步地,接收服务器中用户的更新消息,其中,更新消息包括新增、删除和修改的用户信息,用户信息包括用户识别码;根据用户的更新消息,获取更新后用户对应的用户识别码。
具体地,当服务器中用户的信息变更时,服务器可以向终端发送更新后用户对应的用户识别码,相应的,终端可以接收该更新后用户对应的用户识别码,并可以在界面显示该更新后用户对应的用户识别码。
其中,更新后用户对应的用户识别码可以为更新后用户对应的工号信息。更新后用户对应的用户识别码可以是更新的用户识别码,即更新的用户的工号信息;也可以为更新后所有的用户识别码,即更新后所有用户的工号信息。
本实施例中,当服务器中用户的信息发生变更时,服务器可以向终端发送更新消息,相应的,终端可以接收服务器中用户的更新消息,并向终端对应的用户进行展示,使得终端对应的用户可以及时得到服务器中的更新消息,避免了服务器中用户的信息变更,而终端对应的用户却不能得知,出现的不能查找出目标用户的情况。
图2为本发明另一实施例提供的会话建立方法流程示意图。该方法的执行主体可以是第三方应用服务器,本发明实施例中,在此不做具体限定。
如图2所示,该会话建立方法包括:
S201、接收终端发送的会话建立请求,会话建立请求中携带有终端对应的用户识别码和目标用户识别码。
在本发明实施例中,终端可以向服务器发送用户识别码和目标用户识别码,第三方应用服务器则可以接收该用户识别码和目标用户识别码,以便第三方应用服务器在后续的步骤中,可以查找第三方应用的用户账号和目标用户账号,并建立用户账号和目标用户账号之间的会话。
S202、根据用户识别码和目标用户识别码查找对应的第三方应用的用户账号和目标用户账号。
其中,第三方应用的用户账号为用户识别码在第三方应用服务器注册时对应产生的账户,第三方应用的目标用户账号为在第三方应用服务器注册时对应产生的账户。
另外,若根据目标用户识别码不能查找到对应的第三方应用的目标用户账号,则第三方应用服务器可以获知该目标用户识别码并未在第三方应用服务器进行注册,第三方应用服务器可以向终端发送目标用户识别码未注册的信息,相应的,终端可以接收该目标用户识别码未注册的信息,并可以向用户显示该目标用户识别码未注册的信息。
S203、根据会话建立请求建立用户账号和目标用户账号之间的会话界面信息,并将会话界面信息发送给终端通过第三方应用进行展示。
在本发明实施例中,第三方应用服务器可以根据会话建立请求建立会话界面信息,会话建立请求可以为单聊会话请求或者群聊会话请求,相应的,会话界面信息可以为单聊会话界面信息或者群聊会话界面信息。
具体地,第三方应用服务器可以调取第三方应用服务器中的创建会话的功能,则第三方应用服务器根据会话建立请求,并通过创建会话的功能,建立用户账号和目标用户账号之间的会话界面信息。
其中,若第三方应用服务器获取会话建立请求为单聊会话请求时,则第三方应用服务器根据该单聊会话请求,建立用户账号与目标用户账号之间的单聊会话界面信息。
相应的,若第三方应用服务器获取会话建立请求为群聊会话请求时,则第三方应用服务器根据该群聊会话请求,建立用户账号与目标用户账号之间的群聊会话界面信息。
综上,采用本实施例提供的会话建立方法,第三方应用服务器接收终端发送的会话建立请求,会话建立请求中携带有终端对应的用户识别码和 目标用户识别码,第三方应用服务器查找用户识别码和目标用户识别码对应的第三方应用的用户账号和目标用户账号,并根据会话建立请求建立用户账号和目标用户账号之间的会话界面信息。从而仅需要用户识别码和目标用户识别码即可通过第三方应用服务器建立会话,既提高了即时通讯的效率,还可以防止员工的信息泄露,提高员工信息的安全性。
进一步地,根据会话建立请求建立用户账号和目标用户账号之间的会话界面信息的步骤,包括:
若接收到终端发送的建立单聊会话请求,其中,单聊会话请求中携带有目标用户识别码对应的第三方应用的目标用户账号,则建立用户账号和目标用户账号之间的单聊会话。
若接收到终端发送的建立群聊会话请求,其中,群聊会话请求中携带有多个目标用户识别码对应的多个第三方应用的目标用户账号,则建立用户账号和多个目标用户账号之间的群聊会话。
其中,第三方应用服务器接收到会话建立请求时,可以默认为终端对应的用户已经在终端登陆,第三方应用服务器中已经获取第三方应用对应的用户账号,所以单聊会话请求或者群聊会话请求中包括第三方应用的目标用户账号即可。
进一步地,方法还包括:接收终端或者服务器发送的注册请求,注册请求中携带有终端对应的用户识别码和加密后的登陆密码;根据注册请求得到第三方应用对应的用户账号和注册密码发送给终端。
具体地,第三方应用服务器接收终端或者服务器发送的注册请求,并根据该注册请求对终端对应的用户识别码进行注册,获取到第三方应用对应的用户账号和注册密码,并向终端发送该第三方应用对应的用户账号和注册密码,以使终端获取第三方应用对应的用户账号和注册密码。
其中,第三方应用服务器可以将注册请求中携带的加密后的登陆密码,作为用户账号对应的注册密码。
需要说明的是,第三方应用对应的用户账号可以为终端对应的用户识别码,即加密处理后的终端用户的工号信息,也可以为终端对应的用户识别码添加其他字符之后的信息,还可以为其他对终端对应的用户账号处理后的信息,本发明实施例对此不进行具体限制。
图3和图4为本发明又一实施例提供的会话建立方法流程示意图。如图3和图4所示,终端与服务器处于同一局域网,下面以终端的用户识别码为加密后的终端用户的工号信息,目标用户识别码为加密后的目标用户的工号信息为例,对会话建立方法的具体流程说明如下:
S301、终端通过服务器获取加密后的所有用户工号信息列表;
S302:终端从用户工号信息列表中筛选出加密后的终端用户的工号信息;
S303:终端通过服务器获取加密后的终端用户工号信息对应的登陆密码,并对登陆密码进行加密处理;
S304:终端向第三方应用服务器发送注册请求,注册请求中携带有加密后的终端用户工号信息和加密后的登陆密码;
S305:第三方应用服务器接收终端或者服务器发送的注册请求,注册请求中携带有加密后的终端用户工号信息和加密后的登陆密码;
S306:第三方应用服务器根据注册请求得到第三方应用对应的用户账号和注册密码发送给终端;
S307:终端接收第三方应用服务器根据注册请求得到第三方应用对应的用户账号和注册密码;
S308:终端接收输入的字符串指令;
S309:终端对字符串指令中的特定符号进行预处理;
S310:终端判断预处理后的字符串长度;
S311:如果字符串长度大于预设阈值,则将终端预处理后的字符串指令发送给服务器;
S312:服务器接收预处理后的字符串指令;
S313:服务器对预处理后的字符串指令进行匹配;
S314:服务器获取到目标用户工号信息的若干个相关用户工号信息;
S315:服务器向终端发送加密后的若干个相关用户工号信息;
S316:终端接收服务器根据预处理后的字符串指令匹配到的加密后的若干个相关用户工号信息;
S317:终端根据加密后的若干个相关用户工号信息确认加密后的目标用户工号信息;
S318:终端向第三方应用服务器发送会话建立请求,会话建立请求中携带有加密后的终端用户工号信息和加密后的目标用户工号信息;
S319:第三方应用服务器接收终端发送的会话建立请求,会话建立请求中携带有加密后的终端用户工号信息和加密后的目标用户工号信息;
S320:第三方应用服务器根据加密后的终端用户工号信息和加密后的目标用户工号信息查找对应的第三方应用的用户账号和目标用户账号;
S321:终端根据加密后的目标用户工号信息获取对应的第三方应用的目标用户账号;
S322:终端判断加密后的目标用户工号信息的数量是否大于1;
S323:若加密后的目标用户工号信息的数量不大于1,则终端发送建立单聊会话请求给第三方应用服务器,单聊会话请求中携带有加密后的目标用户工号信息对应的第三方应用的目标用户账号;
S324:第三方应用服务器接收到终端发送的建立单聊会话请求,则建立用户账号和目标用户账号之间的单聊会话;
S325:若加密后的目标用户工号信息的数量大于1,则终端发送建立群聊会话请求给第三方应用服务器,其中,群聊会话请求中携带有多个加密后的目标用户工号信息对应的多个第三方应用的目标用户账号;
S326:第三方应用服务器接收到终端发送的建立群聊会话请求,则建立用户账号和多个目标用户账号之间的群聊会话;
S327:第三方应用服务器将会话界面信息发送给终端;
S328:终端接收第三方应用服务器发送的会话界面信息,
S329:终端通过第三方应用展示会话界面信息对应的会话界面;
S330:服务器向终端发送用户的更新消息;
S331:终端接收服务器中用户的更新消息;
S332:终端根据用户的更新消息,获取更新后用户对应的用户工号信息。
综上所述,采用本发明实施例提供的会话建立方法,将服务器内的加密后的工号信息作为终端与第三方应用服务器交互的信息,从而仅需要加密后的用户工号信息和加密后的目标用户工号信息即可通过第三方应用建立会话,既提高了即时通讯的效率,还可以防止员工的信息泄露,提高员 工信息的安全性。
基于同样的发明构思,图5为本发明一实施例提供的一种终端结构示意图。如图5所示,该终端包括第一获取模块501、第一发送模块502和第一接收模块503。
第一获取模块501,用于通过服务器获取终端的用户识别码和目标用户识别码。
第一发送模块502,用于向第三方应用服务器发送会话建立请求,会话建立请求中携带有终端对应的用户识别码和目标用户识别码。
第一接收模块503,用于接收第三方应用服务器发送的会话界面信息,并通过第三方应用进行展示会话界面信息对应的会话界面,会话界面是第三方应用服务器根据会话建立请求,所建立的用户识别码在第三方应用对应用户账号和目标用户识别码在第三方应用对应的目标用户账号之间的会话界面。
可选的,如图6所示,第一获取模块501还包括第一获取子模块5011和第一筛选子模块5012。
第一获取子模块5011用于通过服务器获取所有用户的用户识别码列表。
第一筛选子模块5012用于从用户识别码列表中筛选出终端对应的用户识别码。
可选的,如图7所示,第一获取模块501还包括:第一接收子模块5013、第二筛选子模块5014和第一确认子模块5015。
第一接收子模块5013用于接收输入的字符串指令。
第二筛选子模块5014用于根据字符串指令筛选出目标用户识别码的若干个相关用户识别码。
第一确认子模块5015用于根据目标用户识别码的若干个相关用户识别码确认目标用户识别码。
可选的,如图8所示,第二筛选子模块5014还包括:预处理子模块5014a、第一判断子模块5014b和第二接收子模块5014c。
预处理子模块5014a用于终端对字符串指令中的特定符号进行预处理。
第一判断子模块5014b用于判断预处理后的字符串长度,如果字符串长度大于预设阈值,则将预处理后的字符串指令发送给服务器。
第二接收子模块5014c用于接收服务器根据预处理后的字符串指令匹配到的目标用户识别码的若干个相关用户识别码。
可选的,如图9所示,终端还包括:
加密模块504,用于通过服务器获取用户识别码对应的登陆密码,并对登陆密码进行加密处理。
第二发送模块505,用于向第三方应用服务器发送注册请求,注册请求中携带有终端对应的用户识别码和加密后的登陆密码。
第二接收模块506,用于接收第三方应用服务器根据注册请求得到第三方应用对应的用户账号和注册密码。
可选的,如图10所示,第一发送模块502包括:第二获取子模块5021、第二判断子模块5022、单聊会话发送模块5023和群聊会话发送模块5024。
第二获取子模块5021用于根据目标用户识别码获取对应的第三方应用的目标用户账号。
第二判断子模块5022用于判断目标用户识别码的数量是否大于1。
单聊会话发送模块5023用于若目标用户识别码的数量不大于1,则发送建立单聊会话请求给第三方应用服务器,其中,单聊会话请求中携带有目标用户识别码对应的第三方应用的目标用户账号。
群聊会话发送模块5024用于若目标用户识别码的数量大于1,则发送建立群聊会话请求给第三方应用服务器,其中,群聊会话请求中携带有多个目标用户识别码对应的多个第三方应用的目标用户账号。
可选的,如图11所示,终端还包括:
第三接收模块507,用于接收服务器中用户的更新消息,其中,更新消息包括新增、删除和修改的用户信息,用户信息包括用户识别码。
第二获取模块508,用于根据用户的更新消息,获取更新后用户对应的用户识别码。
图12为本发明一实施例提供的一种第三方应用服务器结构示意图。如图12所示,该第三方应用服务器包括第一接收模块1201、查找模块1202和建立模块1203。
第一接收模块1201,用于接收终端发送的会话建立请求,会话建立请求中携带有终端对应的用户识别码和目标用户识别码。
查找模块1202,用于根据用户识别码和目标用户识别码查找对应的第三方应用的用户账号和目标用户账号。
建立模块1203,用于根据会话建立请求建立用户账号和目标用户账号之间的会话界面信息,并将会话界面信息发送给终端通过第三方应用进行展示。
可选的,如图13所示,第三方应用服务器还包括:
第二接收模块1204,用于接收终端或者服务器发送的注册请求,注册请求中携带有终端对应的用户识别码和加密后的登陆密码。
发送模块1205,用于根据注册请求得到第三方应用对应的用户账号和注册密码发送给终端。
可选的,如图14所示,建立模块1203包括单聊会话建立模块1203a和群聊会话建立模块1203b。
单聊会话建立模块1203a用于若接收到终端发送的建立单聊会话请求,其中,单聊会话请求中携带有目标用户识别码对应的第三方应用的目标用户账号,则建立用户账号和目标用户账号之间的单聊会话。
群聊会话建立模块1203b用于若接收到终端发送的建立群聊会话请求,其中,群聊会话请求中携带有多个目标用户识别码对应的多个第三方应用的目标用户账号,则建立用户账号和多个目标用户账号之间的群聊会话。
上述装置用于执行前述方法实施例,可以集成于计算机、手机、平板电脑等客户端设备,其实现原理和技术效果可以参照前述方法实施例,在此不再赘述。
以上这些单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,简称ASIC),或,一个或多个微处理器(digital singnal processor,简称DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,简称FPGA)等。再如,当以上某个单元通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(Central Processing Unit,简称CPU)或其它可以调用程序代码的处理器。再如,这些单元可以集成在一起,以片上系统(system-on-a-chip,简称SOC)的形式实现。
本发明实施例提供一种会话建立系统,包括,图5至图11任意一项所述的终端和图12至图14任意一项所述的第三方应用服务器。
图15为本发明实施例提供的一种电子设备结构示意图;如图15所示,该电子设备包括:处理器1501和存储器1502,其中:
存储器1502用于存储程序,处理器1501调用存储器1502存储的程序,以执行上述图1对应的方法实施例。具体实现方式和技术效果类似,这里不再赘述。
图16为本发明实施例提供的另一种电子设备结构示意图。如图16所示,该电子设备包括:处理器1601和存储器1602,其中:
存储器1602用于存储程序,处理器1601调用存储器1602存储的程序,以执行上述图2对应的方法实施例。具体实现方式和技术效果类似,这里不再赘述。
本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现图1对应的所述方法的步骤。
本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现图2对应的所述方法的步骤。
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬 件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本发明各个实施例方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取存储器(英文:Random Access Memory,简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (17)

  1. 一种会话建立方法,应用于终端,其特征在于,包括:
    通过服务器获取终端的用户识别码和目标用户识别码,所述终端的用户识别码为经过预设操作的终端用户的标识信息,所述目标用户识别码为经过预设操作的目标用户的标识信息,所述终端用户和所述目标用户为建立会话的对象,其中,所述终端与服务器处于同一局域网;
    向第三方应用服务器发送会话建立请求,所述会话建立请求中携带有终端对应的用户识别码和目标用户识别码;
    接收第三方应用服务器发送的会话界面信息,并通过第三方应用展示所述会话界面信息对应的会话界面,所述会话界面是所述第三方应用服务器根据所述会话建立请求,所建立的所述用户识别码在所述第三方应用对应的用户账号和所述目标用户识别码在所述第三方应用对应的目标用户账号之间的会话界面。
  2. 根据权利要求1所述的方法,其特征在于,所述通过服务器获取终端的用户识别码的步骤,包括:
    通过服务器获取所有用户的用户识别码列表;
    从所述用户识别码列表中筛选出所述终端对应的用户识别码。
  3. 根据权利要求1所述的方法,其特征在于,所述通过服务器获取目标用户识别码的步骤,包括:
    接收输入的字符串指令;
    根据所述字符串指令筛选出目标用户识别码的若干个相关用户识别码,根据所述目标用户识别码的若干个相关用户识别码确认目标用户识别码。
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述字符串指令筛选出目标用户识别码的若干个相关用户识别码步骤,包括:
    对所述字符串指令中的特定符号进行预处理;
    判断预处理后的字符串长度,如果所述字符串长度大于预设阈值,则将预处理后的所述字符串指令发送给所述服务器;
    接收所述服务器根据预处理后的所述字符串指令匹配到的所述目标用户识别码的若干个相关用户识别码。
  5. 根据权利要求2所述的方法,其特征在于,从所述用户识别码列表中筛选出所述终端对应的用户识别码步骤之后,所述方法还包括:
    通过服务器获取所述用户识别码对应的登陆密码,并对所述登陆密码进行加密处理;
    向所述第三方应用服务器发送注册请求,所述注册请求中携带有终端对应的用户识别码和加密后的登陆密码;
    接收所述第三方应用服务器根据所述注册请求得到所述第三方应用对应的用户账号和注册密码。
  6. 根据权利要求1所述的方法,其特征在于,所述向第三方应用服务器发送会话建立请求的步骤,包括:
    根据所述目标用户识别码获取对应的所述第三方应用的目标用户账号;
    判断所述目标用户识别码的数量是否大于1;
    若所述目标用户识别码的数量不大于1,则发送建立单聊会话请求给所述第三方应用服务器,其中,所述单聊会话请求中携带有目标用户识别码对应的第三方应用的目标用户账号;
    若所述目标用户识别码的数量大于1,则发送建立群聊会话请求给所述第三方应用服务器,其中,所述群聊会话请求中携带有多个目标用户识别码对应的多个第三方应用的目标用户账号。
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    接收所述服务器中用户的更新消息,其中,所述更新消息包括新增、删除和修改的用户信息,所述用户信息包括用户识别码;
    根据所述用户的更新消息,获取更新后用户对应的用户识别码。
  8. 一种终端,其特征在于,所述终端与服务器处于同一局域网,所述终端包括:
    第一获取模块,用于通过服务器获取终端的用户识别码和目标用户识别码,所述终端的用户识别码为经过预设操作的终端用户的标识信息,所述目标用户识别码为经过预设操作的目标用户的标识信息,所述终端用户和所述目标用户为建立会话的对象;
    第一发送模块,用于向第三方应用服务器发送会话建立请求,所述会话建立请求中携带有终端对应的用户识别码和目标用户识别码;
    第一接收模块,用于接收第三方应用服务器发送的会话界面信息,并通过第三方应用进行展示所述会话界面信息对应的会话界面,所述会话界面是所述第三方应用服务器根据所述会话建立请求,所建立的所述用户识别码在所述第三方应用对应的用户账号和所述目标用户识别码在所述第三方应用对应的目标用户账号之间的会话界面。
  9. 根据权利要求8所述的终端,其特征在于,所述第一获取模块还包括第一获取子模块和第一筛选子模块;
    所述第一获取子模块用于通过服务器获取所有用户的用户识别码列表;
    所述第一筛选子模块用于从所述用户识别码列表中筛选出所述终端对应的用户识别码。
  10. 根据权利要求8所述的终端,其特征在于,所述第一获取模块还包括:第一接收子模块、第二筛选子模块和第一确认子模块;
    所述第一接收子模块用于接收输入的字符串指令;
    所述第二筛选子模块用于根据所述字符串指令筛选出目标用户识别码的若干个相关用户识别码;
    第一确认子模块用于根据所述目标用户识别码的若干个相关用户识别码确认目标用户识别码。
  11. 根据权利要求10所述的终端,其特征在于,所述第二筛选子模块还包括:预处理子模块、第一判断子模块和第二接收子模块;
    所述预处理子模块用于所述终端对所述字符串指令中的特定符号进行预处理;
    所述第一判断子模块用于判断预处理后的字符串长度,如果所述字符串长度大于预设阈值,则将预处理后的所述字符串指令发送给所述服务器;
    第二接收子模块用于接收所述服务器根据预处理后的所述字符串指令匹配到的所述目标用户识别码的若干个相关用户识别码。
  12. 根据权利要求9所述的终端,其特征在于,所述终端还包括:
    加密模块,用于通过服务器获取所述用户识别码对应的登陆密码,并对所述登陆密码进行加密处理;
    第二发送模块,用于向所述第三方应用服务器发送注册请求,所述注册请求中携带有终端对应的用户识别码和加密后的登陆密码;
    第二接收模块,用于接收所述第三方应用服务器根据所述注册请求得到所述第三方应用对应的用户账号和注册密码。
  13. 根据权利要求8所述的终端,其特征在于,所述第一发送模块包括:第二获取子模块、第二判断子模块、单聊会话发送模块和群聊会话发送模块;
    第二获取子模块用于根据所述目标用户识别码获取对应的所述第三方应用的目标用户账号;
    第二判断子模块用于判断所述目标用户识别码的数量是否大于1;
    单聊会话发送模块用于若所述目标用户识别码的数量不大于1,则发送建立单聊会话请求给所述第三方应用服务器,其中,所述单聊会话请求中携带有目标用户识别码对应的第三方应用的目标用户账号;
    群聊会话发送模块用于若所述目标用户识别码的数量大于1,则发送建立群聊会话请求给所述第三方应用服务器,其中,所述群聊会话请求中携带有多个目标用户识别码对应的多个第三方应用的目标用户账号。
  14. 根据权利要求9所述的终端,其特征在于,所述终端还包括:
    第三接收模块,用于接收所述服务器中用户的更新消息,其中,所述更新消息包括新增、删除和修改的用户信息,所述用户信息包括用户识别码;
    第二获取模块,用于根据所述用户的更新消息,获取更新后用户对应的用户识别码。
  15. 一种会话建立系统,其特征在于,包括:如权利要求8-14任一项所述的终端。
  16. 一种电子设备,包括存储器、处理器,所述存储器中存储有可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现上述权利要求1至7任一项所述的方法的步骤。
  17. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述方法的步骤。
PCT/CN2019/098763 2019-02-14 2019-08-01 会话建立方法、终端、第三方应用服务器及系统 WO2020164232A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910113658.6A CN109510758B (zh) 2019-02-14 2019-02-14 会话建立方法、终端及系统
CN201910113658.6 2019-02-14

Publications (1)

Publication Number Publication Date
WO2020164232A1 true WO2020164232A1 (zh) 2020-08-20

Family

ID=65757604

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/098763 WO2020164232A1 (zh) 2019-02-14 2019-08-01 会话建立方法、终端、第三方应用服务器及系统

Country Status (2)

Country Link
CN (1) CN109510758B (zh)
WO (1) WO2020164232A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109510758B (zh) * 2019-02-14 2019-05-17 紫光云数科技有限公司 会话建立方法、终端及系统
CN111953801A (zh) * 2020-08-31 2020-11-17 北京猎户星空科技有限公司 机器人的远程控制方法、装置、电子设备及存储介质
CN112367714B (zh) * 2020-10-23 2023-04-07 北京声智科技有限公司 一种会话连接的建立方法及装置
CN112637540B (zh) * 2020-12-14 2023-02-28 招商局金融科技有限公司 多客户端的音视频通话连接方法、装置、设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125138A (zh) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 一种语音通讯方法及装置、系统
US20150350251A1 (en) * 2014-06-02 2015-12-03 Blackberry Limited System and method for assigning security levels for instant messaging contacts across device partitions
US20170147182A1 (en) * 2015-11-25 2017-05-25 Facebook, Inc. Techniques to remotely configure interface settings
CN108432200A (zh) * 2015-10-29 2018-08-21 谷歌有限责任公司 使能够通信的同时限制对用户信息的访问
CN109167755A (zh) * 2017-07-28 2019-01-08 成都牵牛草信息技术有限公司 管理系统中即时通讯账号的管理方法
CN109510758A (zh) * 2019-02-14 2019-03-22 紫光云数科技有限公司 会话建立方法、终端、第三方应用服务器及系统

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060026237A1 (en) * 2004-07-30 2006-02-02 Wang Richard G Method and system for instant message using HTTP URL technology
CN101159778B (zh) * 2007-09-10 2010-06-02 汤淼 一种基于虚拟号码进行多媒体通信的系统
CN101252596A (zh) * 2008-04-17 2008-08-27 李沫 号码信息隐私保护方法及系统
CN101834878B (zh) * 2010-01-29 2012-08-29 陈时军 多用户系统权限管理方法和应用该方法的即时通信系统
CN105530640B (zh) * 2014-09-30 2019-02-22 国际商业机器公司 用于通信控制的方法和装置
CN105592013B (zh) * 2014-10-24 2019-03-12 阿里巴巴集团控股有限公司 一种敏感信息处理方法、装置及客户端
CN107483521A (zh) * 2016-06-08 2017-12-15 阿里巴巴集团控股有限公司 一种信息展示方法、装置及系统
CN109102153A (zh) * 2018-07-06 2018-12-28 腾讯科技(深圳)有限公司 一种身份管理方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125138A (zh) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 一种语音通讯方法及装置、系统
US20150350251A1 (en) * 2014-06-02 2015-12-03 Blackberry Limited System and method for assigning security levels for instant messaging contacts across device partitions
CN108432200A (zh) * 2015-10-29 2018-08-21 谷歌有限责任公司 使能够通信的同时限制对用户信息的访问
US20170147182A1 (en) * 2015-11-25 2017-05-25 Facebook, Inc. Techniques to remotely configure interface settings
CN109167755A (zh) * 2017-07-28 2019-01-08 成都牵牛草信息技术有限公司 管理系统中即时通讯账号的管理方法
CN109510758A (zh) * 2019-02-14 2019-03-22 紫光云数科技有限公司 会话建立方法、终端、第三方应用服务器及系统

Also Published As

Publication number Publication date
CN109510758A (zh) 2019-03-22
CN109510758B (zh) 2019-05-17

Similar Documents

Publication Publication Date Title
WO2020164232A1 (zh) 会话建立方法、终端、第三方应用服务器及系统
CN102970362B (zh) 一种云端数据共享的方法及装置
JP2003330861A (ja) ユーザデータ自動変更システム
US11558322B2 (en) Communication management system
CN105027596A (zh) 在通信会话期间在客户端设备之间交换联系简档
WO2012155602A1 (zh) 一种推送信息的方法、装置及系统
US11489831B2 (en) Communication system and computer readable storage medium
US20170054814A1 (en) Communication Establishment Method, Device, and System
CN106570405B (zh) 一种在输入法中对文字进行加密/解密的方法和装置
JP7272097B2 (ja) 通信システム、端末装置、通信方法、プログラム
WO2017032076A1 (zh) 一种组建朋友圈以及基于朋友圈进行通信的方法及装置
CN104363163A (zh) 一种创建自动生成树状通讯目录的即时通信app的方法
CN113746722A (zh) 信息处理方法、装置、设备以及存储介质
KR20180112349A (ko) Ars 제공 모바일 단말 및 모바일 단말에서의 ars 제공 방법
JP2015090993A (ja) 暗号制御装置、暗号制御方法、及びプログラム
KR101710824B1 (ko) 제삼자 서비스 플랫폼 로그인을 위한 방법 및 시스템
JP2009239614A (ja) ブラウザ搭載装置・電話連携方法、ブラウザ搭載装置・電話連携システム、およびブラウザ搭載装置・電話連携装置
CN109040331B (zh) 电子名片的处理方法、装置、计算设备和存储介质
US20140287787A1 (en) Connection System and Method to Dynamically Create and Collect a Group of Contextual Contacts
CN106534238B (zh) 为用户提供离线应用服务的方法与装置
CN106912032B (zh) 一种信息处理方法、系统、客户端和服务器
US9787644B2 (en) System and method for machine-to-machine privacy and security brokered transactions
CA2534650A1 (en) Communications apparatus and method
CN112785312A (zh) 信息共享方法、装置、电子设备和可读存储介质
JP2009302868A (ja) サービス提供方法及びサーバ装置

Legal Events

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

Ref document number: 19915503

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

Country of ref document: EP

Kind code of ref document: A1