CN113746794B - Account processing method and device, electronic equipment and computer storage medium - Google Patents

Account processing method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN113746794B
CN113746794B CN202011308209.6A CN202011308209A CN113746794B CN 113746794 B CN113746794 B CN 113746794B CN 202011308209 A CN202011308209 A CN 202011308209A CN 113746794 B CN113746794 B CN 113746794B
Authority
CN
China
Prior art keywords
login
user agent
account
accounts
agent nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011308209.6A
Other languages
Chinese (zh)
Other versions
CN113746794A (en
Inventor
王晶
王小平
吴飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
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 Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202011308209.6A priority Critical patent/CN113746794B/en
Publication of CN113746794A publication Critical patent/CN113746794A/en
Application granted granted Critical
Publication of CN113746794B publication Critical patent/CN113746794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • 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
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • 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
    • H04L63/0884Network architectures or network communication protocols for network security for authentication of entities by delegation of authentication, e.g. a proxy authenticates an entity to be authenticated on behalf of this entity vis-à-vis an authentication entity

Abstract

The embodiment of the invention provides an account processing method, an account processing device, electronic equipment and a computer storage medium, wherein the method comprises the following steps: obtaining login account information of the same instant messaging application; under the condition that the login account information comprises the identification of at least two accounts, at least two user agent nodes corresponding to the at least two accounts are created; each user agent node of the at least two user agent nodes is at least used for realizing account login; and circularly initiating login requests by utilizing the at least two user agent nodes, and receiving login authentication results of the login requests initiated by each user agent node.

Description

Account processing method and device, electronic equipment and computer storage medium
Technical Field
The invention relates to the field of instant messaging application, in particular to an account processing method and device, electronic equipment and a computer storage medium.
Background
In the related technology, for the same instant messaging application, only one account can be logged in at the same time, and under the condition that a user has multiple accounts, different accounts can be logged in only by clicking and switching accounts, so that the simultaneous communication of the multiple accounts is not facilitated, and the actual communication requirement about the multiple accounts is not met.
Disclosure of Invention
The embodiment of the invention provides an account processing method, an account processing device, electronic equipment and a computer storage medium, which can meet the requirement of simultaneous communication of multiple accounts.
The embodiment of the invention provides an account processing method, which comprises the following steps:
obtaining login account information of the same instant messaging application;
under the condition that the login account information comprises the identification of at least two accounts, at least two user agent nodes corresponding to the at least two accounts are created; each user agent node of the at least two user agent nodes is at least used for realizing account login;
and circularly initiating login requests by utilizing the at least two user agent nodes, and receiving login authentication results of the login requests initiated by each user agent node.
In some embodiments of the present invention, in a case that the login account information includes an identifier of at least two accounts, creating at least two user agent nodes corresponding to the at least two accounts respectively includes:
and under the condition that the login account information comprises the identifications of at least two accounts and further comprises the user login state and/or the identification of the instant messaging application, at least two user agent nodes corresponding to the at least two accounts are created.
In some embodiments of the present invention, said initiating the login request circularly using the at least two user agent nodes comprises:
after the at least two user agent nodes circularly initiate login connection requests based on the login account information, establishing login connection based on the login connection requests;
and circularly initiating login authentication requests by utilizing the at least two user agent nodes, and receiving the login authentication result of the login request initiated by each user agent node.
In some embodiments of the present invention, said circularly initiating a login authentication request with said at least two user agent nodes comprises:
and circularly sending the login authentication request comprising login credentials and/or a user login state by utilizing the at least two user agent nodes.
In some embodiments of the invention, after receiving the login authentication result of the login request initiated by each user agent node, the method further comprises:
receiving a communication message of the instant communication application; determining a home account for processing the communication message;
searching a user agent node corresponding to the home account in the at least two user agent nodes; and processing the communication message by utilizing the searched user agent node.
An embodiment of the present invention further provides an account processing apparatus, where the apparatus includes:
the acquisition module is used for acquiring login account information of the same instant messaging application;
a creating module, configured to create at least two user agent nodes corresponding to at least two accounts, when the login account information includes identifiers of the at least two accounts; each user agent node of the at least two user agent nodes is at least used for realizing account login;
and the processing module is used for circularly initiating login requests by utilizing the at least two user agent nodes and receiving login authentication results of the login requests initiated by each user agent node.
In some embodiments of the present invention, the creating module, configured to create, when the login account information includes identities of at least two accounts, at least two user agent nodes corresponding to the at least two accounts, includes:
and under the condition that the login account information comprises the identifications of at least two accounts and further comprises the user login state and/or the identification of the instant messaging application, at least two user agent nodes corresponding to the at least two accounts are created.
In some embodiments of the present invention, the processing module, configured to initiate the login request cyclically by using the at least two user agent nodes, includes:
after the at least two user agent nodes circularly initiate login connection requests based on the login account information, establishing login connection based on the login connection requests;
and circularly initiating login authentication requests by utilizing the at least two user agent nodes, and receiving login authentication results of the login requests initiated by each user agent node.
In some embodiments of the present invention, the processing module, configured to initiate a login authentication request cyclically by using the at least two user agent nodes, includes:
and circularly sending the login authentication request comprising login credentials and/or a user login state by utilizing the at least two user agent nodes.
In some embodiments of the present invention, the processing module is further configured to receive a login authentication result of the login request initiated by each user agent node, and then receive a messaging message of the instant messaging application; determining a home account for processing the communication message;
searching a user agent node corresponding to the home account in the at least two user agent nodes; and processing the communication message by utilizing the searched user agent node.
The embodiment of the invention also provides electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the processing method of any one account.
The embodiment of the invention also provides a computer storage medium, wherein a computer program is stored on the computer storage medium, and when being executed by a processor, the computer program realizes the processing method of any account.
According to the account processing method and device, the electronic equipment and the computer storage medium, login account information of the same instant messaging application is obtained; under the condition that the login account information comprises the identifications of at least two accounts, at least two user agent nodes corresponding to the at least two accounts are created; each user agent node of the at least two user agent nodes is at least used for realizing account login; and circularly initiating login requests by utilizing the at least two user agent nodes, and receiving login authentication results of the login requests initiated by each user agent node. It can be seen that in the embodiment of the present invention, user agent nodes can be respectively established for different accounts; the account numbers of different account numbers can be simultaneously logged in through different user agent nodes, the requirement of simultaneous login of multiple account numbers can be met, and the simultaneous receiving and sending of messages of multiple account numbers are facilitated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
Fig. 1 is an optional architecture diagram for implementing processing of an account according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a hierarchical architecture of a client device according to an embodiment of the present invention;
fig. 3 is a flowchart of an account processing method according to an embodiment of the present invention;
FIG. 4 is an alternative flow diagram of login authentication for multiple accounts in an embodiment of the invention;
fig. 5 is a schematic view illustrating a message processing flow of an account according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a component of an account processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In the related art, if one customer service person has a plurality of store accounts, the customer service person can only log in different accounts by clicking and switching accounts, and the customer service person can only reply customer consultation of a current store (corresponding to the current store account) at the same time, so that the customer consultation of the plurality of store accounts is not convenient to reply, and long-distance requirements of service development are not met.
In the related technology, the multi-account communication requirement in the instant messaging application is a target to be achieved by a merchant or a common user, and in actual implementation, the user can switch among a plurality of accounts but cannot receive and send messages simultaneously; in some embodiments, a user of the instant messaging application can collect a friend message, and cannot really receive and send messages of multiple accounts at the same time; in some embodiments, the instant messaging application generally cannot truly realize simultaneous transmission and reception of multiple account messages, even if the simultaneous transmission and reception of multiple account messages are to be realized, relatively complicated modification needs to be performed at one end of the server, and the implementation cost is relatively high.
In order to solve the problems in the related art, the technical scheme of the embodiment of the invention is provided.
The present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present invention and are not intended to limit the present invention. In addition, the following embodiments are provided as partial embodiments for implementing the present invention, not all embodiments for implementing the present invention, and the technical solutions described in the embodiments of the present invention may be implemented in any combination without conflict.
It should be noted that, in the embodiments of the present invention, the terms "comprises", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the explicitly recited elements but also other elements not explicitly listed or inherent to the method or apparatus. Without further limitation, the use of the phrase "including a. -. Said." does not exclude the presence of other elements (e.g., steps in a method or elements in a device, such as portions of circuitry, processors, programs, software, etc.) in the method or device in which the element is included.
The term "and/or" herein is merely an associative relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or C, may mean: a exists alone, A and C exist simultaneously, and C exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality.
For example, the account processing method provided in the embodiment of the present invention includes a series of steps, but the account processing method provided in the embodiment of the present invention is not limited to the described steps, and similarly, the account processing apparatus provided in the embodiment of the present invention includes a series of modules, but the account processing apparatus provided in the embodiment of the present invention is not limited to include the modules explicitly described, and may also include modules that are required to acquire relevant information or perform processing based on the information.
Embodiments of the invention may be implemented on a terminal and/or a server, where the terminal may be a thin client, a thick client, a hand-held or laptop device, a microprocessor-based system, a set-top box, a programmable consumer electronics, a network personal computer, a small computer system, and so forth. The server may be a small computer system, a mainframe computer system, a distributed cloud computing environment including any of the systems described above, and so forth.
The electronic device, such as a server, may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
In order to implement the processing method for implementing an account according to the embodiments of the present invention, in some embodiments, a framework for implementing processing of an account may be deployed at a client that logs in to the account.
Fig. 1 is an optional architecture schematic diagram for implementing account processing in the embodiment of the present invention, and as shown in fig. 1, the architecture may include:
the controller module Uersmanager is used for receiving and sending Data through a user agent (Userproxy) module, performing database operation through a database (Data Base, DB) submodule in the user agent module, and sending Data through a sender (sender) in the user agent module.
The message processing module, the ChatMessageHandler, is connected with the user agent module and is used for processing login messages, text messages, picture messages and the like; in some embodiments, the message processing module is respectively connected to the login message processing module AuthChatMessageHandler, the text message processing module TextChatMessageHandler, and the picture message processing module PictureChatMessageHandler, the login message processing module is configured to perform login message processing, the text message processing module is configured to perform text message processing, and the picture message processing module is configured to perform picture message processing.
The login management module ddlogcmodule is configured to manage a user account, and may determine and verify login and logout of the user account, where the user account may include multiple accounts, and for example, the user account may include a primary account and an associated account associated with the primary account.
A connection manager JdTLProtocol for managing communication connection under the control of the controller module; in some embodiments, the connection manager may receive a connection state callback notification and/or a data reception notification of the controller module, perform management of the communication connection based on the connection state callback notification and/or the data reception notification; in some embodiments, the connection manager connects a TCP tracker management module located in a Transmission Control Protocol (TCP) server, and the TCP tracker management module obtains a tracker service Internet Protocol (IP) address by sending a HyperText Transfer Protocol (HTTP) request to a tracker state machine tracker state, and sorts configured IPs according to a network optimal policy at a current time; the TCP tracker management module can return a TCP server needing to be connected to the connection manager; in some embodiments, the connection manager is connected to a Socket management module, which may perform Socket encapsulation and establish connection based on a TCP server; socket encapsulation can be done, for example, based on the tool GCDASyncsocket.
The database access module is mainly used for operations such as adding, deleting and modifying of a database, modifying of a database operation queue, storing messages and user information, inquiring messages, deleting messages, receiving messages, processing and sending notifications, sending data and the like.
The user information storage module is mainly used for operating and storing information of local login of the user of the application, for example, the information to be stored may be used to indicate whether the device that logs in locally attempts to log in a deleted account, whether a check code is needed when logging in the account again, and the information to be stored may further include a set-top function of a session list.
A setting management module ConfigManager, which may be used to manage some setting items in Application (APP) settings, such as whether to play sound, whether to receive message push, and the like; but also for managing connection configurations, network configurations, etc.
And the IP list configuration module Tracker Cfg is connected with the configuration management module ConfigManager and is used for configuring a network IP list request and a local cache and using the network IP list request in the local cache.
And the network configuration module NetConfig is connected with the setting management module ConfigManager and used for carrying out network initialization configuration.
And the network detection module DDReacapability is connected with the controller module Uersmanager and is used for detecting the network state.
And the message model creating module MessageModelCreator is connected with the controller module Uersmanager and used for creating a message model.
And the message registering and distributing module MessageModelDispatch is connected with the Uersmanager and is used for realizing message registering and distributing.
The message body building module protocaladapter is respectively connected with the message registering and distributing module messagemodedispatch, the user agent module and the message registering and distributing module messagemodedispatch and is used for building a message body in a unified way.
And the engineering basic controller DDBaseViewController is connected with the controller module Uersmanager and is used for processing sessions, organization structures and the like.
And the session list processing module DongDongChatListViewcontroller is used for processing the session list under the control of the engineering basic controller DDBaseViewcontroller.
A session list search module DDChatListSearchController for performing a session list search under the control of the engineering base controller DDBaseViewController.
An organizational structure processing module DDMateListController for processing the organizational structure contact list under the control of the engineering base controller DDBaseViewController.
And the session page processing module DDCHhatViewController is used for processing the session page under the control of the engineering basic controller DDBaseViewController.
Fig. 2 is a schematic diagram of a layered architecture of a client device according to an embodiment of the present invention, as shown in fig. 2, the layered structure may include a service layer, an adaptation layer, and a common layer; wherein the content of the first and second substances,
the service layer is mainly used for providing a user state management function, a list display function, a conversation/message function and a setting/organizing architecture function; in some embodiments, user state management may enable user login, logout, kicking, and state switching; based on the list display function, a related account, a primary display message list, a related message list and a search function can be displayed, wherein the related account represents at least one account related to the primary account in the accounts of the user, the primary display message list represents a message list of the primary account, and the related message list represents a message list of the related account; the conversation/message function comprises the functions of message display, transfer, order list management, message receiving and sending, message withdrawing, shortcut phrase, draft, video call and the like; the setup/organization architecture functions mainly include setup, organization architecture, contact list, and the like.
The adaptation layer is equivalent to a middleware module and is mainly used for realizing the functions of account management, state management, event distribution, message processing, data storage, communication management and the like.
The public layer is mainly used for providing some basic service support of the bottom layer, for example, the public layer can support basic communication functions, basic components, monitoring/performance functions and the like; here, the basic communication functions include functions of long connection, heartbeat, keep-alive service, message queue, communication state management, channel management, and the like, and the basic components include a database, a TCP/HyperText Transfer Protocol (HTTP) web library, a picture library, a security encryption component, a component for implementing network optimization, a log component, a thread management component, an environment configuration component, an exception handling component, and the like; the monitoring/performance functions include performance point burying, exception reporting, network fault diagnosis and the like.
An embodiment of the present invention provides an account processing method, and fig. 3 is a flowchart of the account processing method according to the embodiment of the present invention, where as shown in fig. 3, the flowchart may include:
step 301: and obtaining the login account information of the same instant messaging application.
In the embodiment of the present invention, the login account information of the instant messaging application may include an identifier of an account, and the identifier of the account may be information such as an Identity identification number (ID) of the account, an account name, and the like.
In some embodiments, when a user initiates an account login of an instant messaging application, an identifier of the account of the instant messaging application may be input in a human-computer interaction manner.
In some embodiments, the login account information of the instant messaging application may further include a user login state, where the user login state is used to identify a client of the user, and after the user login state is obtained, the user information of the instant messaging application may be determined; when an instant messaging application of the same client is logged in by using different accounts respectively, the login states corresponding to the different accounts of the instant messaging application are the same.
In some embodiments, the user login state may be represented by the second-generation authentication credential A2.
In some embodiments, when a user initiates an account login of an instant messaging application, a user login state may be generated by a server end according to a login account through interaction between a client and the server.
In some embodiments, the login account information of the instant messaging application may further include identification information of the instant messaging application; the identification information of the instant messaging application may be an application ID or an application name. When an instant messaging application of the same client is logged in by using different accounts respectively, the identification information of the instant messaging application is the same.
Step 302: under the condition that the login account information comprises the identifications of at least two accounts, at least two user agent nodes corresponding to the at least two accounts are created; each of the at least two user agent nodes is at least for enabling account login.
In the embodiment of the invention, each time a user logs in the instant messaging application by using one account, one user agent node can be created, and different user agent nodes manage different accounts; each user agent node can also store information such as the identification of the corresponding account.
In some embodiments, an account management module (UsersManage) may also be created, and the account management module may store information such as the identities of a plurality of accounts.
In some embodiments, at least two user agent nodes corresponding to at least two accounts may be created in a case that the login account information includes an identification of at least two accounts, and the login account information further includes a user login status and/or an identification of the instant messaging application.
In some embodiments, in the case that the login account information only includes the identifications of at least two accounts, a login failure message may be returned, and the procedure is directly ended.
It can be understood that, for the case that the login account information only includes the identifier of the account, it may be determined that the content of the login account information is incomplete, so that the user may be notified of the login failure in real time, which is convenient for the user to process the login failure case; under the condition that the login account information comprises the identifications of at least two accounts and also comprises the user login state and/or the identification of the instant messaging application, the content of the login account information can be determined to be complete, so that the account login can be realized more reliably in the follow-up process.
In some embodiments, each user agent node may also be used to implement the receipt and transmission of messages after account login.
Step 303: and circularly initiating login requests by utilizing at least two user agent nodes, and receiving login authentication results of the login requests initiated by each user agent node.
In the embodiment of the present invention, the login request may include a login connection request and a login authentication request, where the login connection request is used to request to establish a login connection, and the login connection may be a long TCP connection or other types of connections.
For the implementation of circularly initiating the login request by using at least two user agent nodes, illustratively, the login connection can be established based on the login connection request after the login connection request is circularly initiated by the at least two user agent nodes based on the login account information; and circularly initiating login authentication requests by utilizing at least two user agent nodes, and receiving the login authentication result of the login request initiated by each user agent node.
In some embodiments, after the login connection is established, the at least two user agent nodes may circularly initiate a login authentication request to the login authentication module auth.
Here, the login authentication request is for requesting login authentication, and the login authentication result may be authentication success or authentication failure.
In practical applications, the steps 301 to 303 may be implemented based on a Processor of an electronic Device, where the Processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor.
It can be understood that, in the embodiment of the present invention, user agent nodes may be respectively established for different accounts; the account numbers of different account numbers can be simultaneously logged in through different user agent nodes, the requirement of simultaneous logging in of multiple account numbers can be met, and the simultaneous receiving and sending of messages of multiple account numbers are facilitated.
For implementations where at least two user agent nodes are utilized to initiate the login authentication request in a round-robin manner, the login authentication request including the login credentials and/or the user login state may be sent in a round-robin manner using at least two user agent nodes, for example.
Here, the user agent node may send the login authentication request including the login credential aid and/or the user login status to the server; after receiving the login authentication request, the server can generate a login authentication result according to the login credential and/or the user login state.
It can be understood that, after the user agent node sends the login authentication request including the login credential and/or the user login state, the end receiving the login authentication request is facilitated to obtain an accurate login authentication result according to the login credential and/or the user login state.
Fig. 4 is an optional flowchart of login authentication of multiple accounts according to an embodiment of the present invention, and as shown in fig. 4, when a user logs in using each account of an instant messaging application, a condition checking module may check whether an account ID, a second-generation authentication credential A2, and an ID of the instant messaging application exist; if at least one of the account ID, the second-generation authentication certificate A2 and the ID of the instant messaging application does not exist, the condition checking module directly returns a login failure message to the instant messaging application of the client; if the account ID, the second-generation authentication credential A2 and the ID of the instant messaging application all exist, the condition checking module may initiate a login request to the login request module, and the login request may carry information such as the account ID, the second-generation authentication credential A2 and the ID of the instant messaging application.
After the login request module receives login requests corresponding to a plurality of accounts, a login connection request can be circularly initiated by using a plurality of user agent nodes in the login request module, wherein each user agent node corresponds to one account, and accounts corresponding to different user agent nodes are different.
Here, each user agent node may request a domain name configuration from an address request module, which in some embodiments may be a Tracker that requests a set of IP addresses to which it may connect; after receiving the information requesting the domain name configuration, the address request module can perform the domain name configuration, determine the IP address to be connected, and complete the speed measurement of the connection to be established, and then the address request module can return a configuration completion message to the login request module, wherein the configuration completion message can carry the configured information; the login request module can establish login connection through interaction with the DD _ TCP after receiving the configuration completion message, and the connection establishment is completed at the moment; in some embodiments, DD TCP may represent a TCP connection management module and the login connection may be a TCP long connection.
After the login connection corresponding to the multiple accounts is established, the DD _ TCP may circularly initiate a login authentication request to the login authentication module, where the login authentication request may carry a login credential and a second-generation authentication credential A2.
The login authentication module may forward the login authentication request to the server; in some embodiments, the server may check the login authentication request, and if both the login credential and the second-generation authentication credential A2 are determined to be invalid, the server may return an authentication failure message to the login request module through the login authentication module; if the login credential is valid, directly checking the account pin packet according to the current login credential, and returning an authentication failure message or an authentication success message to the login request module according to the checking result of the account pin packet; and if the login credential is judged to be invalid, but the second-generation authentication credential A2 is judged to be valid, generating a new login credential through the account and the second-generation authentication credential A2, then checking the account pin packet based on the new login credential, and returning an authentication failure message or an authentication success message to the login request module according to the checking result of the account pin packet.
After the login request module receives the authentication success message, the authentication success message can be returned to the instant messaging application of the client, so that the user can confirm that the corresponding account is successfully logged in.
In some embodiments, after the login request module receives the authentication failure message for the first time, the authentication failure message may be returned to the instant messaging application of the client, so that the user confirms that the corresponding account has failed to be logged in.
In some embodiments, after the login request module receives the authentication failure message for the first time, the login authentication request may be initiated to the server repeatedly n times, and the server may perform the verification of the login authentication request again based on the aforementioned description and return an authentication failure message or an authentication success message to the login request module, where n is an integer greater than or equal to 1.
In some embodiments, if the login request module receives the authentication failure message after initiating the login authentication request to the server repeatedly for n times, the authentication failure message may be returned to the instant messaging application of the client, so that the user confirms that the corresponding account has failed to login.
In some embodiments, after receiving a login authentication result of the login request initiated by each user agent node, the method further comprises:
receiving a communication message of the instant communication application; determining a home account for processing the communication message;
searching a user agent node corresponding to the home account in the at least two user agent nodes; and processing the communication message by utilizing the searched user agent node.
Here, the communication message carries the identifier of the account needing to be communicated, so that the home account of the communication message can be determined according to the identifier of the account needing to be communicated.
In some embodiments, if the user agent node corresponding to the home account cannot be found, the communication message may be discarded.
In some embodiments, the process of processing messages by each user agent node is the same as the process of processing messages by a single account in the related art.
In the embodiment of the invention, the communication message can be processed by utilizing the user agent node corresponding to the home account when the communication message is received, so that the independent processing of the messages of a plurality of accounts is realized, namely the communication messages of a plurality of accounts can be processed simultaneously.
In order to realize message processing of multiple accounts, the functions of one end of a server and a client can be improved adaptively; in one scenario, the instant messaging application may be used to implement communication between a customer service person and a customer, and for a client of the customer service person, the client may have a plurality of account numbers of stores, and the customer service person may use each account number of the store to communicate with the customer, and for this scenario, a message processing flow of one account number is illustrated in fig. 5.
As shown in fig. 5, the server sends the TCP message sent by the client to the client of the customer service staff, where the client is an electronic device used by the customer.
In the client of the customer service staff, the message length of the TCP message is verified by using the connection manager, and if the message length does not meet the preset requirement, the TCP message can be ignored; and if the message length meets the preset requirement, initiating a request for searching the home account of the TCP message to an account management module.
In the client of the customer service staff, the account management module can search the home account of the TCP message by the source and/or the receiver of the TCP message; when the home account of the TCP message is not found, a finding failure message can be returned to the connection manager, and the connection manager can ignore the TCP message; and when finding the home account of the TCP message, the account management module binds with the user agent node corresponding to the home account.
In the client of the customer service staff, the connection manager sends a TCP message to the user agent node bound with the home account, the user agent node initiates a message processing request to the message processing module, and the message processing request carries the message to be processed.
In a client of a customer service staff, a message processing module judges whether a message to be processed exists in a database; if the message to be processed does not exist in the database, the message to be processed is stored in the database, then the message to be processed is processed, and after the message processing is completed, a message reception completion notification is sent to the server, so that the server can determine that the message to be processed is completely processed.
It will be appreciated that in order to ensure the reliability of message sending, in some scenarios, the same message may be sent to the client repeatedly multiple times to ensure that the client receives the message; in this case, if there is a pending message in the database, it indicates that the historical message that the client has received and processed includes the current pending message, and at this time, the message processing module may ignore the pending message and return response information that the message has been processed to the user agent node.
It should be noted that the flow shown in fig. 5 is only a message sending and receiving flow of one account, and in a scenario of message sending and receiving of multiple accounts, a user agent node corresponding to multiple accounts may circularly initiate a message processing request according to the flow shown in fig. 5.
It can be seen that, in a scene where customer service staff communicate with customers, by applying the account processing method of the embodiment of the invention, a client can be supported to log in a plurality of mobile terminal accounts and receive and send messages at the same time, and process customer information and the like. For example, when there are one store and multiple stores, the same customer service person can log in the customer service account number in different stores to receive customers.
At present, a plurality of merchants with various types and large scale can open a plurality of shops, for example, different shops sell different commodities in a targeted manner. However, the customer service staff of the same merchant are overlapped, so in the scene of one merchant and multiple stores, the same customer service staff needs to log in the customer service accounts of different stores to receive customers, aiming at the scene, the method provided by the embodiment of the invention solves the service pain of a plurality of merchants with larger scales, greatly meets the business requirements of the merchants, improves the service efficiency and has remarkable effect.
On the basis of the account processing method provided in the foregoing embodiment, an embodiment of the present invention further provides an account processing apparatus.
Fig. 6 is a schematic structural diagram of a component of an account processing device according to an embodiment of the present invention, and as shown in fig. 6, the device may include:
an obtaining module 601, configured to obtain login account information of the same instant messaging application;
a creating module 602, configured to create at least two user agent nodes corresponding to at least two accounts when the login account information includes identifiers of the at least two accounts; each user agent node of the at least two user agent nodes is at least used for realizing account login;
the processing module 603 is configured to circularly initiate a login request by using the at least two user agent nodes, and receive a login authentication result of the login request initiated by each user agent node.
In some embodiments of the present invention, the creating module 602, configured to create, when the login account information includes identities of at least two accounts, at least two user agent nodes corresponding to the at least two accounts, includes:
and under the condition that the login account information comprises the identifications of at least two accounts and also comprises the user login state and/or the identification of the instant messaging application, creating at least two user agent nodes corresponding to the at least two accounts respectively.
In some embodiments of the present invention, the processing module 603 is configured to circularly initiate a login request by using the at least two user agent nodes, and includes:
after the at least two user agent nodes circularly initiate login connection requests based on the login account information, establishing login connection based on the login connection requests;
and circularly initiating login authentication requests by utilizing the at least two user agent nodes, and receiving the login authentication result of the login request initiated by each user agent node.
In some embodiments of the present invention, the processing module 603 is configured to circularly initiate login authentication requests by using the at least two user agent nodes, and includes:
and circularly sending the login authentication request comprising login credentials and/or a user login state by utilizing the at least two user agent nodes.
In some embodiments of the present invention, the processing module 603 is further configured to receive a login authentication result of the login request initiated by each user agent node, and then receive a communication message of the instant messaging application; determining a home account for processing the communication message;
searching a user agent node corresponding to the home account in the at least two user agent nodes; and processing the communication message by utilizing the searched user agent node.
The obtaining module 601, the creating module 602, and the processing module 603 may be implemented by a processor located in an electronic device, where the processor is at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor.
In addition, each functional module in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Specifically, the computer program instructions corresponding to the processing of an account in this embodiment may be stored on a storage medium such as an optical disc, a hard disc, or a usb disk, and when the computer program instructions corresponding to the processing method of an account in the storage medium are read or executed by an electronic device, the processing method of an account in any of the foregoing embodiments is implemented.
Based on the same technical concept of the foregoing embodiment, referring to fig. 7, it illustrates an electronic device 70 provided in an embodiment of the present invention, which may include: a memory 71, a processor 72, and a computer program stored on the memory 71 and executable on the processor 72; wherein, the first and the second end of the pipe are connected with each other,
a memory 71 for storing computer programs and data;
a processor 72, configured to execute the computer program stored in the memory to implement the processing method of any one of the account numbers of the foregoing embodiments.
In practical applications, the memory 71 may be a volatile memory (RAM); or a non-volatile memory (non-volatile memory) such as a ROM, a flash memory (flash memory), a Hard Disk Drive (HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 72.
The processor 72 may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor.
In some embodiments, the functions of the apparatus provided in the embodiments of the present invention or the modules included in the apparatus may be used to execute the method described in the above method embodiments, and for specific implementation, reference may be made to the description of the above method embodiments, and for brevity, details are not described here again
The foregoing description of the various embodiments is intended to highlight various differences between the embodiments, and the same or similar parts may be referred to each other, which are not repeated herein for brevity
The methods disclosed in the method embodiments provided by the present application can be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in various product embodiments provided by the application can be combined arbitrarily to obtain new product embodiments without conflict.
The features disclosed in the various method or apparatus embodiments provided herein may be combined in any combination to arrive at new method or apparatus embodiments without conflict.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An account processing method is characterized by comprising the following steps:
obtaining login account information of the same instant messaging application;
under the condition that the login account information comprises the identification of at least two accounts, at least two user agent nodes corresponding to the at least two accounts are created; each user agent node of the at least two user agent nodes is at least used for realizing account login;
and circularly initiating login requests by utilizing the at least two user agent nodes, and receiving login authentication results of the login requests initiated by each user agent node.
2. The method of claim 1, wherein, in the case that the login account information includes identities of at least two accounts, creating at least two user agent nodes corresponding to the at least two accounts respectively comprises:
and under the condition that the login account information comprises the identifications of at least two accounts and also comprises the user login state and/or the identification of the instant messaging application, creating at least two user agent nodes corresponding to the at least two accounts respectively.
3. The method according to claim 1 or 2, wherein said initiating a login request using said at least two user agent nodes in a round-robin fashion comprises:
after the at least two user agent nodes circularly initiate login connection requests based on the login account information, establishing login connection based on the login connection requests;
and circularly initiating login authentication requests by utilizing the at least two user agent nodes, and receiving login authentication results of the login requests initiated by each user agent node.
4. The method of claim 3, wherein the circularly initiating a login authentication request with the at least two user agent nodes comprises:
and circularly sending the login authentication request comprising login credentials and/or a user login state by utilizing the at least two user agent nodes.
5. The method of claim 1, wherein after receiving a login authentication result of the login request initiated by each user agent node, the method further comprises:
receiving a communication message of the instant communication application; determining a home account for processing the communication message;
searching a user agent node corresponding to the home account in the at least two user agent nodes; and processing the communication message by utilizing the searched user agent node.
6. An apparatus for processing an account, the apparatus comprising:
the acquisition module is used for acquiring login account information of the same instant messaging application;
a creating module, configured to create at least two user agent nodes corresponding to at least two accounts, when the login account information includes identifiers of the at least two accounts; each user agent node of the at least two user agent nodes is at least used for realizing account login;
and the processing module is used for circularly initiating login requests by utilizing the at least two user agent nodes and receiving login authentication results of the login requests initiated by each user agent node.
7. The apparatus of claim 6, wherein the creating module, if the login account information includes identities of at least two accounts, is configured to create at least two user agent nodes corresponding to the at least two accounts, and includes:
and under the condition that the login account information comprises the identifications of at least two accounts and further comprises the user login state and/or the identification of the instant messaging application, at least two user agent nodes corresponding to the at least two accounts are created.
8. The apparatus according to claim 6 or 7, wherein the processing module is configured to initiate the login request cyclically using the at least two user agent nodes, and comprises:
after the at least two user agent nodes circularly initiate login connection requests based on the login account information, establishing login connection based on the login connection requests;
and circularly initiating login authentication requests by utilizing the at least two user agent nodes, and receiving login authentication results of the login requests initiated by each user agent node.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 5 when executing the program.
10. A computer storage medium on which a computer program is stored, characterized in that the computer program realizes the method of any of claims 1 to 5 when executed by a processor.
CN202011308209.6A 2020-11-20 2020-11-20 Account processing method and device, electronic equipment and computer storage medium Active CN113746794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011308209.6A CN113746794B (en) 2020-11-20 2020-11-20 Account processing method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011308209.6A CN113746794B (en) 2020-11-20 2020-11-20 Account processing method and device, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN113746794A CN113746794A (en) 2021-12-03
CN113746794B true CN113746794B (en) 2023-03-10

Family

ID=78728107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011308209.6A Active CN113746794B (en) 2020-11-20 2020-11-20 Account processing method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN113746794B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338581B (en) * 2022-01-10 2023-09-29 土巴兔集团股份有限公司 Multi-account communication management method and related device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244845B (en) * 2010-05-11 2015-08-12 中兴通讯股份有限公司 The method of access IM operation system storage server and IM operation system
CN105306203A (en) * 2014-06-26 2016-02-03 中兴通讯股份有限公司 Account login method, device and system
US20180096130A1 (en) * 2016-09-30 2018-04-05 Salesforce.Com, Inc. Associating multiple e-learning development environments with a single user

Also Published As

Publication number Publication date
CN113746794A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
JP7203444B2 (en) Selectively provide mutual transport layer security using alternate server names
US10263958B2 (en) Internet mediation
CN104205774B (en) network address repository management
CN108712485B (en) Resource subscription method and device for Internet of things equipment
TW201543243A (en) Capability monitoring in a service oriented architecture
CN104869143A (en) Data sharing method and device, client and server
CN110166577B (en) Distributed application group session processing system and method
CN105577602A (en) Data pushing method and data pushing device based on open application programming interface
CN109246078B (en) Data interaction method and server
CN104852919A (en) Method and apparatus for realizing portal authentication
CN104639555B (en) request processing method, system and device
US20150371327A1 (en) System for dynamically selecting a communications fabric
US20120246215A1 (en) Identying users of remote sessions
CN113746794B (en) Account processing method and device, electronic equipment and computer storage medium
US8793383B2 (en) Transparent transfer of a two-way communication
CN106571968B (en) Service switching method and system
CN114666245A (en) IPv6 single stack support degree determining method of B/S system and related equipment
CN110943962B (en) Authentication method, network equipment, authentication server and forwarding equipment
US11381665B2 (en) Tracking client sessions in publish and subscribe systems using a shared repository
CN111262779A (en) Method, device, server and system for acquiring data in instant messaging
WO2016091141A1 (en) Method and apparatus for information collection
US11575574B2 (en) Heterogeneous cross-cloud service interoperability
US11637737B2 (en) Network data management framework
CN105721231A (en) Service quality sensing detection method and service quality sensing detection device
CN111176782B (en) Online experiment method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant