CN116800546A - User switching method, system, terminal and storage medium - Google Patents

User switching method, system, terminal and storage medium Download PDF

Info

Publication number
CN116800546A
CN116800546A CN202311070458.XA CN202311070458A CN116800546A CN 116800546 A CN116800546 A CN 116800546A CN 202311070458 A CN202311070458 A CN 202311070458A CN 116800546 A CN116800546 A CN 116800546A
Authority
CN
China
Prior art keywords
account
terminal
login
local
acquiring
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.)
Granted
Application number
CN202311070458.XA
Other languages
Chinese (zh)
Other versions
CN116800546B (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.)
Shanxi Yuanda Zongheng Technology Co ltd
Beijing University of Civil Engineering and Architecture
Original Assignee
Shanxi Yuanda Zongheng Technology Co ltd
Beijing University of Civil Engineering and Architecture
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 Shanxi Yuanda Zongheng Technology Co ltd, Beijing University of Civil Engineering and Architecture filed Critical Shanxi Yuanda Zongheng Technology Co ltd
Priority to CN202311070458.XA priority Critical patent/CN116800546B/en
Publication of CN116800546A publication Critical patent/CN116800546A/en
Application granted granted Critical
Publication of CN116800546B publication Critical patent/CN116800546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to the technical field of account management, in particular to a user switching method, a system, a terminal and a storage medium, wherein the method comprises the following steps: judging whether a local login instruction is detected, if the local login instruction is detected, acquiring and storing local user session information, acquiring local terminal information based on the local user session information, judging whether an account switching instruction is received, if the account switching instruction is received, acquiring domain control account information based on the local terminal information, performing domain control login based on the domain control account information, acquiring and storing the domain control account session information, judging whether the account switching instruction is received again, and if the account switching instruction is received again, performing account switching based on the local user session information and the domain control account session information. The method and the device are beneficial to the user to switch between local account login and domain control account login.

Description

User switching method, system, terminal and storage medium
Technical Field
The present application relates to the field of account management technologies, and in particular, to a user switching method, a system, a terminal, and a storage medium.
Background
With the rapid development of computer network technology, particularly the development of mobile internet, the mobile internet is gradually penetrating into various fields of life and work of people, and great convenience is brought to life and work of people.
In the related art, in order to further improve the working efficiency and enhance the complete centralized management of terminal devices, more and more enterprises start to build domain control servers, and the domain control servers perform unified management and resource sharing on terminal devices in the domain, and autonomously switch between domain control account login and local account login, so as to meet the user requirements.
However, the inventor considers that when the domain control account number login and the local account number login are switched in the related technology, if the domain control account number is disclosed, information leakage is easy to occur, so that potential safety hazards exist in data leakage, and if the domain control account number is not disclosed, a new user cannot normally log in the domain control account number, so that the free switching between the local account number login and the domain control account number login is seriously affected.
Disclosure of Invention
In order to facilitate a user to switch between local account login and domain control account login, the application provides a user switching method, a system, a terminal and a storage medium.
In a first aspect, the present application provides a user switching method, which adopts the following technical scheme:
a user switching method, comprising:
judging whether a local login instruction is detected;
if the local login instruction is detected, acquiring and storing local user session information;
acquiring local terminal information based on the local user session information;
judging whether an account switching instruction is received or not;
if the account switching instruction is received, domain control account information is acquired based on the local terminal information;
performing domain control login based on the domain control account information, and acquiring and storing domain control account session information;
judging whether the account switching instruction is received again or not;
and if the account switching instruction is received again, performing account switching based on the local user session information and the domain control account session information.
By adopting the technical scheme, whether the local login instruction is detected is firstly judged, when the local login instruction is detected, local user session information is acquired and recorded, local terminal information is acquired through the local user session information, whether an account switching instruction is received is judged, when the account switching instruction sent by a user is received, domain control account information bound by the local terminal is inquired to a domain control management system according to the local terminal information, domain control login is carried out according to the domain control account information, the domain control account session information is recorded, when the account switching instruction is received again, the local terminal invokes a background service, automatic switching can be carried out between a local user and a domain control account according to the local user session information and the domain control account session information recorded before, and the user can carry out autonomous switching between the local user and the domain control account without knowing the domain control account information, so that isolation access of local resources and domain control resources is facilitated.
Optionally, the specific step of acquiring and storing the local user session information if the local login instruction is detected includes:
if the local login instruction is detected, acquiring a current login account based on the local login instruction;
judging whether historical login session information associated with the current login account exists or not;
if the historical login session information associated with the current login account exists, judging whether the account switching instruction is acquired;
if the account switching instruction is received, account switching is carried out based on the historical login session information;
and if the historical login session information associated with the current login account is not available, acquiring and storing local user session information based on the local login instruction.
By adopting the technical scheme, whether the historical login session information related to the current login account exists or not is judged, if the historical login session information related to the current login account exists, the fact that the connection between the current login account and the background server is established is indicated, so that only whether an account switching instruction is acquired or not is judged, when the account switching instruction is received, account switching is performed based on the historical login session information, account switching is performed through the historical session information, local terminal information is not required to be acquired repeatedly, time is saved, and memory space is saved; if there is no history login session information associated with the current login account, it indicates that no connection is established between the current login account and the background server, and therefore local user session information needs to be acquired and stored.
Optionally, before the domain control login is performed based on the domain control account information, the method further includes:
acquiring the maximum online quantity and the current online quantity based on the domain control account information;
judging whether the maximum online quantity is larger than the current online quantity or not;
if the maximum online quantity is equal to the current online quantity, judging whether a first terminal exists in terminal equipment corresponding to the current online account;
if the first terminal exists in the terminal equipment corresponding to the current online account, acquiring a first target terminal based on the first terminal;
and switching the first target terminal into a local user login state.
By adopting the technical scheme, the maximum online quantity and the current online quantity of the domain controller are obtained according to the domain control account information, whether the maximum online quantity is larger than the current online quantity is judged, when the maximum online quantity is equal to the current online quantity, the domain controller is in a saturated state and cannot log in the domain control account any more, so that whether a first terminal exists in terminal equipment corresponding to the current online account is required to be judged, if the first terminal exists in the terminal equipment corresponding to the current online account, a first target terminal is acquired based on the first terminal, the first target terminal is finally switched into a local user login state, and network resources are fully utilized and work efficiency is improved by selecting the first target terminal in the first terminal.
Optionally, after the determining whether the first terminal exists in the terminal device corresponding to the current online account if the maximum online number is equal to the current online number, the determining further includes:
if the first terminal does not exist in the terminal equipment corresponding to the current online account, respectively acquiring a first priority level and a second priority level based on a preset priority list;
judging whether the first priority level is lower than the second priority level or not;
if the first priority level is lower than the second priority level, acquiring a second terminal based on the first priority level and the second priority level;
acquiring a second target terminal based on the second terminal and a preset target rule;
and switching the second target terminal to a local user login state.
By adopting the technical scheme, if the first terminal does not exist in the terminal equipment corresponding to the current online account, the terminal equipment indicates that all the terminal equipment on line is in a data interaction state, so that a first priority level and a second priority level are respectively acquired according to a preset priority list, whether the first priority level is lower than the second priority level is judged, when the first priority level is lower than the second priority level, the terminal equipment corresponding to all the first priority levels lower than the second priority level is set as the second terminal, the terminal equipment with the lowest priority level is selected from the second terminal to serve as a second target terminal, and finally the second target terminal is switched to a local user login state;
The terminal with the lowest priority level is selected as the second target terminal, so that the user can switch between local account login and domain control account login, the second target terminal is selected according to the priority level, the local terminal with higher priority level can perform domain control login, and the login state of the local terminal with low priority level is switched from domain control login to local login, so that the user's own requirements are met.
Optionally, the specific step of obtaining the second target terminal based on the second terminal and the preset target rule includes:
sorting the second terminals according to the priority levels, and generating a sorting list;
acquiring a preferred terminal based on the ordered list;
judging whether the preferred terminal is in a special state or not;
and if the preferred terminal is not in the special state, taking the preferred terminal as the second target terminal.
By adopting the technical scheme, the second terminals are firstly ordered according to the priority levels, an ordering list is generated, the preferred terminal is selected from the ordering list, whether the preferred terminal is in a special state or not is judged, if the preferred terminal is not in the special state, the preferred terminal is used as the second target terminal, and the preferred terminal is further selected according to the priority levels, so that the switching effect is more suitable for the self requirements of users.
Optionally, after the determining whether the preferred terminal is in the special state, the method further includes:
if the preferred terminal is in the special state, acquiring other preferred terminals again based on the ordered list and judging whether the other preferred terminals are in the special state;
if all the preferred terminals are in the special state, acquiring importance degrees of flows corresponding to all the terminal equipment;
acquiring the priority levels of all terminal equipment based on the preset priority list;
acquiring a target weight based on the importance degree and the priority level;
and acquiring the second target terminal based on the target weight.
By adopting the technical scheme, when the preferred terminal is in the special state, the existing preferred terminal is abandoned, the preferred terminal is reselected based on the existing scheme, whether the preferred terminal is in the special state is judged until the proper preferred terminal is selected, if all the preferred terminals are in the special state, the importance degree of the flow corresponding to the terminal is obtained, the priority levels of all the terminal devices are obtained, the target weight of all the terminals is obtained by combining the importance degree and the priority levels, finally the terminal device with the minimum target weight is used as a second target terminal, and the second target terminal is selected through the target weight, so that the influence on the current on-line domain control login account caused by newly-added domain control account login is reduced.
Optionally, the method further comprises:
if the maximum online quantity is larger than the current online quantity, acquiring the current login quantity;
obtaining the numerical sum of the current online quantity and the current login quantity;
judging whether the numerical sum is larger than the maximum online number;
if the numerical sum is larger than the maximum online quantity, acquiring a numerical difference between the numerical sum and the maximum online quantity;
judging whether the first terminal exists in the terminal equipment corresponding to the current online account;
if the first terminal exists in the terminal equipment corresponding to the current online account, acquiring a first target terminal based on the first terminal and the numerical value difference;
and switching the first target terminal into a local user login state.
By adopting the technical scheme, when the maximum online quantity is larger than the current online quantity, the domain controller is indicated to be not in a saturated state yet, the current login quantity is obtained, whether the numerical sum of the current online quantity and the current login quantity is larger than the maximum online quantity or not is judged, if the numerical sum is larger than the maximum online quantity, the domain controller is indicated to be incapable of meeting the requirement of the current login account quantity, therefore, the numerical sum and the numerical difference of the maximum online quantity are obtained, whether the first terminal exists in the terminal equipment corresponding to the current online account is judged, if the first terminal exists in the terminal equipment corresponding to the current online account, the numerical difference is used for selecting the first target terminal from the first terminal, finally, the first target terminal is switched to the local user login state, and the current login quantity is increased on the basis of the maximum online quantity and the current online quantity, so that the data is more fit with the actual situation.
In a second aspect, the present application also discloses a user switching system, which adopts the following technical scheme:
a user switching system, comprising:
the first judging module is used for judging whether a local login instruction is detected or not;
the first acquisition module is used for acquiring and storing local user session information if the local login instruction is detected;
the second acquisition module is used for acquiring local terminal information based on the local user session information;
the second judging module is used for judging whether an account switching instruction is received or not;
the third acquisition module is used for acquiring domain control account information based on the local terminal information if the account switching instruction is received;
the fourth acquisition module is used for performing domain control login based on the domain control account information, and acquiring and storing domain control account session information;
the third judging module is used for judging whether the account switching instruction is received again or not;
and the switching module is used for switching the account numbers based on the local user session information and the domain control account number session information if the account number switching instruction is received again.
By adopting the technical scheme, whether the local login instruction is detected is firstly judged, when the local login instruction is detected, local user session information is acquired and recorded, local terminal information is acquired through the local user session information, whether an account switching instruction is received is judged, when the account switching instruction sent by a user is received, domain control account information bound by the local terminal is inquired to a domain control management system according to the local terminal information, domain control login is carried out according to the domain control account information, the domain control account session information is recorded, when the account switching instruction is received again, the local terminal invokes a background service, automatic switching can be carried out between a local user and a domain control account according to the local user session information and the domain control account session information recorded before, and the user can carry out autonomous switching between the local user and the domain control account without knowing the domain control account information, so that isolation access of local resources and domain control resources is facilitated.
In a third aspect, the present application provides a computer apparatus, which adopts the following technical scheme:
an intelligent terminal comprising a memory, a processor, wherein the memory is configured to store a computer program capable of running on the processor, and the processor, when loaded with the computer program, performs the method of the first aspect.
By adopting the technical scheme, the computer program is generated based on the method of the first aspect and is stored in the memory to be loaded and executed by the processor, so that the intelligent terminal is manufactured according to the memory and the processor, and the intelligent terminal is convenient for a user to use.
In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical scheme:
a computer readable storage medium having stored therein a computer program which, when loaded by a processor, performs the method of the first aspect.
By adopting the technical scheme, the method based on the first aspect generates the computer program, and stores the computer program in the computer readable storage medium to be loaded and executed by the processor, and the computer program is convenient to read and store through the computer readable storage medium.
In summary, the application has the following beneficial technical effects:
judging whether a local login instruction is detected firstly, acquiring and recording local user session information when the local login instruction is detected, acquiring local terminal information through the local user session information, judging whether an account switching instruction is received or not, inquiring domain control account information bound by the local terminal to a domain control management system according to the local terminal information when the account switching instruction sent by a user is received, performing domain control login and recording the domain control account session information according to the domain control account information, calling a background service by the local terminal when the account switching instruction is received again, automatically switching between the local user and the domain control account according to the local user session information and the domain control account session information recorded before, and automatically switching between the local user and the domain control account by the background service under the condition that the domain control account information is not required to be known by the user, so that isolation access of local resources and domain control resources is facilitated.
Drawings
FIG. 1 is a main flow chart of a user switching method according to an embodiment of the present application;
fig. 2 is a step flowchart of steps S201 to S205;
fig. 3 is a step flowchart of steps S301 to S305;
fig. 4 is a step flowchart of steps S401 to S405;
fig. 5 is a step flowchart of steps S501 to S504;
fig. 6 is a step flowchart of steps S601 to S605;
fig. 7 is a step flowchart of steps S701 to S707;
fig. 8 is a block diagram of a subscriber switching system according to an embodiment of the present application.
Reference numerals illustrate:
1. a first judgment module; 2. a first acquisition module; 3. a second acquisition module; 4. a second judging module; 5. a third acquisition module; 6. a fourth acquisition module; 7. a third judging module; 8. and a switching module.
Detailed Description
The application discloses a user switching method which is applied to a user switching system, wherein the user switching system comprises a domain control user management module, a client background service module and an application interaction program module, wherein the domain control user management module is used for managing domain control account information, domain control strategies, client IP addresses, a CPU, a network card, a hard disk and other information; the client background service module is used for acquiring information such as an IP address, a CPU, a network card, a hard disk and the like of the client, acquiring corresponding domain control account information based on the client information and used for a user to automatically log in the client, the process domain control account is transparent to the client user, and the client background service module can automatically record a session of the client login account and serve as a basic support for automatic switching among different accounts; and the application interactive program module is used for setting a shortcut key of a switching user, and calling a client background service to automatically switch the user after sensing the user operation of the client.
In a first aspect, the application discloses a user switching method.
Referring to fig. 1, a user switching method includes steps S101 to S108:
step S101: and judging whether a local login instruction is detected.
Specifically, in this embodiment, when a user inputs a local user name and a password to log in to the operating system, the client background service module can detect a local login instruction, that is, an instruction for logging in by a local account.
Step S102: and if the local login instruction is detected, acquiring and storing the local user session information.
Specifically, in this embodiment, the client background service module records local user session information, that is, a series of actions between the local user and the client server module from the beginning to the end of login; the client-side server module sends a session ID to the user, and when the user accesses the client-side server module again, the user carries the session ID, and the session ID is a globally unique identifier which is singly corresponding to the user, so that the client-side server module can identify the user by virtue of the unique session ID.
Specifically, if the local login instruction is not detected, no operation is performed.
Step S103: and acquiring the local terminal information based on the local user session information.
Specifically, in this embodiment, the local terminal information includes information such as a local IP, CPU, MAC address and a hard disk, and a connection is established with the terminal device through the local user session information, so as to obtain the local terminal information.
Step S104: and judging whether an account switching instruction is received.
Specifically, the account switching instruction is an instruction for switching the login state, and in this embodiment, when the login state is switched according to the account switching instruction, the current login state is switched to a state opposite to the current login state, for example, the local account login state is switched to the domain control account login state or the domain control account login state is switched to the local account login state.
Step S105: and if an account switching instruction is received, acquiring domain control account information based on the local terminal information.
Specifically, in this embodiment, local terminal information is input into the domain control management system, so that domain control account information bound to the terminal device is queried, where the domain control account information includes a domain control account, a password, a maximum online number, a current online number, and the like, and the maximum online number is the number of the domain control accounts allowed by the domain controller to be logged in by the terminal device at the same time, where the current online number refers to the number of the terminal devices currently logged in the domain control account.
Step S106: and performing domain control login based on the domain control account information, and acquiring and storing domain control account session information.
Specifically, in this embodiment, after the domain controlled account is logged in, the client background service module automatically records domain controlled account session information, where the domain controlled account session information is opposite to local account session information, that is, a series of actions between the user and the client server module from the beginning of logging in the domain controlled account to the end of logging in the domain controlled account.
Step S107: and judging whether an account switching instruction is received again.
Step S108: and if the account switching instruction is received again, performing account switching based on the local user session information and the domain control account session information.
Specifically, in this embodiment, when the account switching instruction is received again, that is, when the user presses the account switching shortcut key again, the local terminal device invokes the client background service module, and the client background service module performs account switching according to the local user session information and the domain control account session information.
According to the user switching method provided by the embodiment, whether a local login instruction is detected is judged, when the local login instruction is detected, local user session information is acquired and recorded, local terminal information is acquired through the local user session information, whether an account switching instruction is received is judged, when the account switching instruction sent by a user is received, domain control account information bound by the local terminal is inquired to a domain control management system according to the local terminal information, domain control login is performed according to the domain control account information, the domain control account session information is recorded, when the account switching instruction is received again, the local terminal invokes a background service, the background service can automatically switch between a local user and a domain control account according to the local user session information and the domain control account session information recorded before, and the user can autonomously switch between the local user and the domain control account without knowing the domain control account information, so that isolation access of local resources and domain control resources is facilitated.
Referring to fig. 2, in one implementation manner of the present embodiment, if a local login instruction is detected in step S102, steps S201 to S205 are further included before the local user session information is acquired and stored:
step S201: and acquiring the current login account based on the local login instruction.
Specifically, in this embodiment, the current login account is the account currently performing the login operation.
Step S202: it is determined whether there is historical login session information associated with the current login account.
Specifically, in this embodiment, the history login session information is the local user session information that has been stored.
Step S203: if historical login session information associated with the current login account exists, judging whether an account switching instruction is acquired.
Step S204: and if an account switching instruction is received, performing account switching based on the historical login session information.
Specifically, in this embodiment, after receiving the account switching instruction, account switching is performed according to the historical account switching path.
Step S205: and if the historical login session information associated with the current login account is not available, acquiring and storing the local user session information based on the local login instruction.
According to the user switching method provided by the embodiment, whether the historical login session information related to the current login account exists or not is judged, if the historical login session information related to the current login account exists, the fact that the current login account is connected with the background server is indicated, so that whether an account switching instruction is acquired or not only needs to be judged again, when the account switching instruction is received, account switching is conducted on the basis of the historical login session information, account switching is conducted through the historical session information, local terminal information does not need to be acquired repeatedly, time is saved, and memory space is saved; if there is no history login session information associated with the current login account, it indicates that no connection is established between the current login account and the background server, and therefore local user session information needs to be acquired and stored.
Referring to fig. 3, in one implementation manner of the present embodiment, before performing domain control login based on domain control account information in step S106, obtaining and storing domain control account session information includes steps S301 to S305:
step S301: and acquiring the maximum online quantity and the current online quantity based on the domain control account information.
Specifically, in this embodiment, the maximum online number is the number of domain control accounts allowed by the domain controller to be logged in by the terminal device at the same time, and the current online number refers to the number of terminal devices currently logged in the domain control account.
Step S302: and judging whether the maximum online quantity is larger than the current online quantity.
Step S303: if the maximum online quantity is equal to the current online quantity, judging whether a first terminal exists in the terminal equipment corresponding to the current online account.
Specifically, in this embodiment, the first terminal is a terminal device that has no data interaction after logging into the domain control account.
Step S304: and if the first terminal exists in the terminal equipment corresponding to the current online account, acquiring a first target terminal based on the first terminal.
Specifically, in this embodiment, the first target terminal is a terminal device selected from all the first terminals according to a preset selection rule, where the preset selection rule may be set according to a duration without data interaction, for example, selecting, from a plurality of first terminals, a terminal device with a longest duration without data interaction as the first target terminal.
Step S305: and switching the first target terminal to a local user login state.
According to the user switching method provided by the embodiment, the maximum online quantity and the current online quantity of the domain controller are obtained according to the domain control account information, whether the maximum online quantity is larger than the current online quantity is judged, when the maximum online quantity is equal to the current online quantity, the domain controller is in a saturated state and cannot log in the domain control account any more, so that whether a first terminal exists in terminal equipment corresponding to the current online account is required to be judged, if the first terminal exists in the terminal equipment corresponding to the current online account, the first target terminal is acquired based on the first terminal, finally the first target terminal is switched to a local user login state, and network resources are fully utilized and working efficiency is improved by selecting the first target terminal in the first terminal.
Referring to fig. 4, in one implementation manner of the present embodiment, if the maximum online number is equal to the current online number in step S303, step S401 to step S405 are further included after determining whether the first terminal exists in the terminal device corresponding to the current online account.
Step S401: if the first terminal does not exist in the terminal equipment corresponding to the current online account, the first priority level and the second priority level are respectively obtained based on a preset priority list.
Specifically, in this embodiment, a priority list, that is, a preset priority table, includes a priority level of each terminal device; the first priority level is the priority level of all terminal devices which are currently logged in the domain control account, and the second priority level is the priority level of the terminal device which is logging in the domain control account.
Step S402: it is determined whether there is a first priority level lower than a second priority level.
Specifically, in this embodiment, there may be one or more first priority levels lower than the second priority level.
Step S403: and if the first priority level is lower than the second priority level, acquiring the second terminal based on the first priority level and the second priority level.
Specifically, in this embodiment, a terminal device corresponding to a first priority level smaller than a second priority level is selected as the second terminal.
Step S404: and acquiring the second target terminal based on the second terminal and a preset target rule.
Specifically, in this embodiment, the second target terminal selects a specific terminal from the second terminals according to a preset target rule, where the preset target rule may be according to the priority level, for example, a terminal device with the lowest priority level is selected from the second terminals as the second target terminal.
Step S405: and switching the second target terminal to a local user login state.
According to the user switching method provided by the embodiment, if the first terminal does not exist in the terminal equipment corresponding to the current online account, the fact that all the terminal equipment on line is in a data interaction state is indicated, so that a first priority level and a second priority level are respectively acquired according to a preset priority list, whether the first priority level is lower than the second priority level is judged, when the first priority level is lower than the second priority level, the terminal equipment corresponding to all the first priority levels lower than the second priority level is set as the second terminal, the terminal equipment with the lowest priority level is selected from the second terminal to serve as a second target terminal, and finally the second target terminal is switched to a local user login state;
the terminal with the lowest priority level is selected as the second target terminal, so that the user can switch between local account login and domain control account login, the second target terminal is selected according to the priority level, the local terminal with higher priority level can perform domain control login, and the login state of the local terminal with low priority level is switched from domain control login to local login, so that the user's own requirements are met.
Referring to fig. 5, in one implementation manner of the present embodiment, step S404 includes steps S501 to S504, based on the second terminal and the preset target rule, of acquiring the second target terminal:
step S501: and sequencing the second terminal according to the priority level, and generating a sequencing list.
Specifically, in this embodiment, the second terminals are ranked according to the priority level from high to low.
Step S502: based on the ordered list, a preferred terminal is obtained.
Specifically, in this embodiment, the preferred terminal is set as the terminal device with the lowest priority level.
Step S503: and judging whether the preferred terminal is in a special state.
Specifically, in this embodiment, the special state is in the data transmission state or is about to be in the data transmission state in a preset time period, and the preset time period can be set by itself according to the actual situation, for example, a 5-minute level.
Step S504: and if the preferred terminal is not in the special state, taking the preferred terminal as a second target terminal.
According to the user switching method provided by the embodiment, the second terminals are firstly ordered according to the priority levels, an ordered list is generated, the preferred terminal is selected from the ordered list, whether the preferred terminal is in a special state or not is judged, if the preferred terminal is not in the special state, the preferred terminal is used as the second target terminal, and the preferred terminal is further selected according to the priority levels, so that the switching effect is more suitable for the self requirements of users.
Referring to fig. 6, in one implementation manner of the present embodiment, after determining in step S503 whether the preferred terminal is in the special state, steps S601 to S605 are further included:
step S601: if the preferred terminal is in the special state, the other preferred terminals are reacquired based on the ordered list and whether the other preferred terminals are in the special state is judged.
Specifically, in this embodiment, the other preferred terminals are those that have been determined to be in a special state, excluded from the ordered list.
Step S602: and if all the preferred terminals are in the special state, acquiring importance degrees of flows corresponding to all the terminal equipment.
Specifically, in this embodiment, the importance level may be divided or matched according to a preset standard, for example, the importance level corresponding to the operation flow a is 1 level.
Step S603: and acquiring the priority levels of all the terminal equipment based on a preset priority list.
Step S604: and acquiring the target weight based on the importance degree and the priority level.
Specifically, in this embodiment, the target weight=a×importance degree+b×priority level, where a+b=1, and a and b are both greater than 0, and may be set according to practical situations.
Step S605: and acquiring a second target terminal based on the target weight.
Specifically, in this embodiment, the second target terminal with the largest target weight is selected.
According to the user switching method provided by the embodiment, when the preferred terminal is in the special state, the existing preferred terminal is abandoned, the preferred terminal is reselected based on the existing scheme, whether the preferred terminal is in the special state is judged until the proper preferred terminal is selected, if all the preferred terminals are in the special state, the importance degree of the flow corresponding to the terminal is obtained, the priority levels of all the terminal devices are obtained, the target weights of all the terminals are obtained in combination with the importance degree and the priority levels, finally the terminal device with the minimum target weight is used as a second target terminal, and the second target terminal is selected through the target weights, so that the influence on the current domain control login account caused by newly added domain control account login is reduced.
Referring to fig. 7, in one implementation of the present embodiment, steps S701 to S707 are further included:
step S701: and if the maximum online number is greater than the current online number, acquiring the current login number.
Specifically, in this embodiment, the current login number is the number of terminal devices currently performing domain control account login.
Step S702: and obtaining the numerical sum of the current online quantity and the current login quantity.
Step S703: and judging whether the numerical sum is larger than the maximum online number.
Step S704: and if the numerical sum is larger than the maximum online number, acquiring a numerical difference between the numerical sum and the maximum online number.
Step S705: and judging whether a first terminal exists in the terminal equipment corresponding to the current online account.
Step S706: and if the first terminal exists in the terminal equipment corresponding to the current online account, acquiring a first target terminal based on the first terminal and the value difference.
Specifically, in this embodiment, a corresponding number of terminal devices are selected from the first terminals according to the numerical value difference as the first target terminals.
Step S707: and switching the first target terminal to a local user login state.
According to the user switching method provided by the embodiment, when the maximum online quantity is larger than the current online quantity, the domain controller is indicated to be not in a saturated state, the current login quantity is obtained, whether the numerical sum of the current online quantity and the current login quantity is larger than the maximum online quantity or not is judged, if the numerical sum is larger than the maximum online quantity, the domain controller is indicated to be incapable of meeting the requirement of the current login account quantity, therefore, the numerical sum and the numerical difference of the maximum online quantity are obtained, whether a first terminal exists in terminal equipment corresponding to the current online account is judged, if the first terminal exists in the terminal equipment corresponding to the current online account, the numerical difference is used for selecting the first target terminal from the first terminal, finally, the first target terminal is switched to the local user login state, and the current login quantity is increased on the basis of the maximum online quantity and the current online quantity, so that data are more fit with the actual situation.
The implementation principle of the user switching method in the embodiment of the application is as follows: judging whether a local login instruction is detected, if the local login instruction is detected, acquiring and storing local user session information, acquiring local terminal information based on the local user session information, judging whether an account switching instruction is received, if the account switching instruction is received, acquiring domain control account information based on the local terminal information, performing domain control login based on the domain control account information, acquiring and storing the domain control account session information, judging whether the account switching instruction is received again, and if the account switching instruction is received again, performing account switching based on the local user session information and the domain control account session information.
In a second aspect, the application also discloses a user switching system.
Referring to fig. 8, a user switching system includes:
the first judging module 1 is used for judging whether a local login instruction is detected or not;
the first acquisition module 2 is used for acquiring and storing local user session information if the local login instruction is detected;
a second obtaining module 3, configured to obtain local terminal information based on local user session information;
The second judging module 4 is used for judging whether an account switching instruction is received or not;
the third acquisition module 5 is used for acquiring domain control account information based on the local terminal information if an account switching instruction is received;
the fourth obtaining module 6 is configured to perform domain control login based on domain control account information, and obtain and store domain control account session information;
a third judging module 7, configured to judge whether an account switching instruction is received again;
and the switching module 8 is used for switching the account based on the local user session information and the domain control account session information if the account switching instruction is received again.
In a third aspect, an embodiment of the present application discloses an intelligent terminal, including a memory, and a processor, where the memory is configured to store a computer program capable of running on the processor, and when the processor loads the computer program, the processor executes a user switching method in the foregoing embodiment.
In a fourth aspect, an embodiment of the present application discloses a computer readable storage medium, and a computer program is stored in the computer readable storage medium, where the computer program, when loaded by a processor, performs a user switching method of the above embodiment.
The above embodiments are not intended to limit the scope of the present application, so: all equivalent changes in structure, shape and principle of the application should be covered in the scope of protection of the application.

Claims (10)

1. A user switching method, comprising:
judging whether a local login instruction is detected;
if the local login instruction is detected, acquiring and storing local user session information;
acquiring local terminal information based on the local user session information;
judging whether an account switching instruction is received or not;
if the account switching instruction is received, domain control account information is acquired based on the local terminal information;
performing domain control login based on the domain control account information, and acquiring and storing domain control account session information;
judging whether the account switching instruction is received again or not;
and if the account switching instruction is received again, performing account switching based on the local user session information and the domain control account session information.
2. The method for switching between users according to claim 1, wherein the specific step of acquiring and storing the local user session information if the local login command is detected comprises:
If the local login instruction is detected, acquiring a current login account based on the local login instruction;
judging whether historical login session information associated with the current login account exists or not;
if the historical login session information associated with the current login account exists, judging whether the account switching instruction is acquired;
if the account switching instruction is received, account switching is carried out based on the historical login session information;
and if the historical login session information associated with the current login account is not available, acquiring and storing local user session information based on the local login instruction.
3. The method for user switching according to claim 1, wherein before the performing domain control login based on the domain control account information, obtaining and storing domain control account session information further comprises:
acquiring the maximum online quantity and the current online quantity based on the domain control account information;
judging whether the maximum online quantity is larger than the current online quantity or not;
if the maximum online quantity is equal to the current online quantity, judging whether a first terminal exists in terminal equipment corresponding to the current online account;
If the first terminal exists in the terminal equipment corresponding to the current online account, acquiring a first target terminal based on the first terminal;
and switching the first target terminal into a local user login state.
4. A method for switching users according to claim 3, wherein after determining whether the first terminal exists in the terminal device corresponding to the current online account if the maximum online number is equal to the current online number, the method further comprises:
if the first terminal does not exist in the terminal equipment corresponding to the current online account, respectively acquiring a first priority level and a second priority level based on a preset priority list;
judging whether the first priority level is lower than the second priority level or not;
if the first priority level is lower than the second priority level, acquiring a second terminal based on the first priority level and the second priority level;
acquiring a second target terminal based on the second terminal and a preset target rule;
and switching the second target terminal to a local user login state.
5. The method for user switching according to claim 4, wherein the specific step of obtaining the second target terminal based on the second terminal and the preset target rule includes:
Sorting the second terminals according to the priority levels, and generating a sorting list;
acquiring a preferred terminal based on the ordered list;
judging whether the preferred terminal is in a special state or not;
and if the preferred terminal is not in the special state, taking the preferred terminal as the second target terminal.
6. The method for user switching according to claim 5, further comprising, after said determining whether said preferred terminal is in a special state:
if the preferred terminal is in the special state, acquiring other preferred terminals again based on the ordered list and judging whether the other preferred terminals are in the special state;
if all the preferred terminals are in the special state, acquiring importance degrees of flows corresponding to all the terminal equipment;
acquiring the priority levels of all terminal equipment based on the preset priority list;
acquiring a target weight based on the importance degree and the priority level;
and acquiring the second target terminal based on the target weight.
7. A method of switching users according to claim 3, further comprising:
If the maximum online quantity is larger than the current online quantity, acquiring the current login quantity;
obtaining the numerical sum of the current online quantity and the current login quantity;
judging whether the numerical sum is larger than the maximum online number;
if the numerical sum is larger than the maximum online quantity, acquiring a numerical difference between the numerical sum and the maximum online quantity;
judging whether the first terminal exists in the terminal equipment corresponding to the current online account;
if the first terminal exists in the terminal equipment corresponding to the current online account, acquiring a first target terminal based on the first terminal and the numerical value difference;
and switching the first target terminal into a local user login state.
8. A user switching system, comprising:
the first judging module (1) is used for judging whether a local login instruction is detected or not;
the first acquisition module (2) is used for acquiring and storing local user session information if the local login instruction is detected;
a second acquisition module (3) for acquiring local terminal information based on the local user session information;
the second judging module (4) is used for judging whether an account switching instruction is received or not;
The third acquisition module (5) is used for acquiring domain control account information based on the local terminal information if the account switching instruction is received;
a fourth obtaining module (6) for performing domain control login based on the domain control account information to obtain and store domain control account session information;
a third judging module (7) for judging whether the account switching instruction is received again;
and the switching module (8) is used for switching the account numbers based on the local user session information and the domain control account number session information if the account number switching instruction is received again.
9. A smart terminal comprising a memory, a processor, wherein the memory is adapted to store a computer program capable of running on the processor, and wherein the processor, when loaded with the computer program, performs the method of any of claims 1 to 7.
10. A computer readable storage medium having a computer program stored therein, characterized in that the computer program, when loaded by a processor, performs the method of any of claims 1 to 7.
CN202311070458.XA 2023-08-24 2023-08-24 User switching method, system, terminal and storage medium Active CN116800546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311070458.XA CN116800546B (en) 2023-08-24 2023-08-24 User switching method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311070458.XA CN116800546B (en) 2023-08-24 2023-08-24 User switching method, system, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN116800546A true CN116800546A (en) 2023-09-22
CN116800546B CN116800546B (en) 2023-11-03

Family

ID=88048314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311070458.XA Active CN116800546B (en) 2023-08-24 2023-08-24 User switching method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN116800546B (en)

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601529A (en) * 2013-10-31 2015-05-06 腾讯科技(深圳)有限公司 Terminal account number managing method and device
CN105337984A (en) * 2015-11-19 2016-02-17 华为技术有限公司 Account logining method and device
CN105338176A (en) * 2015-10-01 2016-02-17 陆俊 Account number switching method and mobile terminal
KR101702650B1 (en) * 2016-08-04 2017-02-03 주식회사 넷츠 Login control method and apparatus for active directory domain
CN107295153A (en) * 2016-03-31 2017-10-24 宇龙计算机通信科技(深圳)有限公司 A kind of management method and terminal for switching logon account
CN107733774A (en) * 2016-08-11 2018-02-23 北京国双科技有限公司 The correlating method and device of account
CN107817932A (en) * 2017-10-19 2018-03-20 福建中金在线信息科技有限公司 Account switching method, device and user terminal
CN108683679A (en) * 2018-05-30 2018-10-19 深圳壹账通智能科技有限公司 More account login methods, device, equipment and the storage medium of Web APP
CN109104423A (en) * 2018-08-08 2018-12-28 广东微云科技股份有限公司 A kind of method and system that multi-user uses same characteristic features to log in
US20190018697A1 (en) * 2017-07-12 2019-01-17 Vmware, Inc. Hybrid remote desktop logon
CN109302414A (en) * 2018-11-08 2019-02-01 山西省农村信用社联合社 Desktop cloud login method, terminal, SDN controller and system based on software defined network SDN
CN110324276A (en) * 2018-03-28 2019-10-11 腾讯科技(深圳)有限公司 A kind of method, system, terminal and electronic equipment logging in application
CN110430280A (en) * 2019-08-15 2019-11-08 上海达龙信息科技有限公司 Account automatic logging method and system, storage medium and cloud desktop server
CN112084478A (en) * 2020-09-03 2020-12-15 Oppo广东移动通信有限公司 Multi-user account switching method and device, electronic equipment and storage medium
CN112150030A (en) * 2020-10-10 2020-12-29 厦门悦讯信息科技股份有限公司 Account management method based on multiple units and multiple identities, terminal equipment and storage medium
CN112329054A (en) * 2020-10-29 2021-02-05 广东电网有限责任公司韶关供电局 Method, device, equipment and storage medium for improving software permission
CN112836198A (en) * 2021-01-22 2021-05-25 北京达佳互联信息技术有限公司 Account login method and device, server, electronic equipment and storage medium
CN113018869A (en) * 2021-03-15 2021-06-25 广州点云科技有限公司 Cloud game account login and payment method and system
CN113612865A (en) * 2021-07-29 2021-11-05 济南浪潮数据技术有限公司 Method, device and equipment for managing cloud platform LDAP domain account and readable medium
CN113886800A (en) * 2020-07-01 2022-01-04 杭州晨熹多媒体科技有限公司 Account management system, method and device
CN114422172A (en) * 2021-12-08 2022-04-29 深圳市明源云科技有限公司 Account switching method, device, equipment and storage medium
CN115529154A (en) * 2022-08-01 2022-12-27 深圳市酷开网络科技股份有限公司 Login management method, login management device, electronic device and readable storage medium

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601529A (en) * 2013-10-31 2015-05-06 腾讯科技(深圳)有限公司 Terminal account number managing method and device
CN105338176A (en) * 2015-10-01 2016-02-17 陆俊 Account number switching method and mobile terminal
CN105337984A (en) * 2015-11-19 2016-02-17 华为技术有限公司 Account logining method and device
CN107295153A (en) * 2016-03-31 2017-10-24 宇龙计算机通信科技(深圳)有限公司 A kind of management method and terminal for switching logon account
KR101702650B1 (en) * 2016-08-04 2017-02-03 주식회사 넷츠 Login control method and apparatus for active directory domain
CN107733774A (en) * 2016-08-11 2018-02-23 北京国双科技有限公司 The correlating method and device of account
US20190018697A1 (en) * 2017-07-12 2019-01-17 Vmware, Inc. Hybrid remote desktop logon
CN107817932A (en) * 2017-10-19 2018-03-20 福建中金在线信息科技有限公司 Account switching method, device and user terminal
CN110324276A (en) * 2018-03-28 2019-10-11 腾讯科技(深圳)有限公司 A kind of method, system, terminal and electronic equipment logging in application
CN108683679A (en) * 2018-05-30 2018-10-19 深圳壹账通智能科技有限公司 More account login methods, device, equipment and the storage medium of Web APP
CN109104423A (en) * 2018-08-08 2018-12-28 广东微云科技股份有限公司 A kind of method and system that multi-user uses same characteristic features to log in
CN109302414A (en) * 2018-11-08 2019-02-01 山西省农村信用社联合社 Desktop cloud login method, terminal, SDN controller and system based on software defined network SDN
CN110430280A (en) * 2019-08-15 2019-11-08 上海达龙信息科技有限公司 Account automatic logging method and system, storage medium and cloud desktop server
CN113886800A (en) * 2020-07-01 2022-01-04 杭州晨熹多媒体科技有限公司 Account management system, method and device
CN112084478A (en) * 2020-09-03 2020-12-15 Oppo广东移动通信有限公司 Multi-user account switching method and device, electronic equipment and storage medium
CN112150030A (en) * 2020-10-10 2020-12-29 厦门悦讯信息科技股份有限公司 Account management method based on multiple units and multiple identities, terminal equipment and storage medium
CN112329054A (en) * 2020-10-29 2021-02-05 广东电网有限责任公司韶关供电局 Method, device, equipment and storage medium for improving software permission
CN112836198A (en) * 2021-01-22 2021-05-25 北京达佳互联信息技术有限公司 Account login method and device, server, electronic equipment and storage medium
CN113018869A (en) * 2021-03-15 2021-06-25 广州点云科技有限公司 Cloud game account login and payment method and system
CN113612865A (en) * 2021-07-29 2021-11-05 济南浪潮数据技术有限公司 Method, device and equipment for managing cloud platform LDAP domain account and readable medium
CN114422172A (en) * 2021-12-08 2022-04-29 深圳市明源云科技有限公司 Account switching method, device, equipment and storage medium
CN115529154A (en) * 2022-08-01 2022-12-27 深圳市酷开网络科技股份有限公司 Login management method, login management device, electronic device and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
侯全武 等: "面向规划领域多部门协同与安全共享应用的空间数据应用平台构建", 夯实数据底座·做强创新引擎·赋能多维场景——2022年中国城市规划信息化年会论文集, pages 88 - 89 *

Also Published As

Publication number Publication date
CN116800546B (en) 2023-11-03

Similar Documents

Publication Publication Date Title
US9836317B2 (en) Controlling virtualization resource utilization based on network state
CN100389392C (en) Method for realizing load uniform in clustering system, system and storage controller
CN102971937B (en) Hierarchical power is level and smooth
US7631034B1 (en) Optimizing node selection when handling client requests for a distributed file system (DFS) based on a dynamically determined performance index
CN104137085A (en) Method for controlling access of clients to a service in a cluster environment
CN105915650B (en) Load-balancing method and device
CN105354255A (en) Data query method and apparatus
CN106911487B (en) Method and device for voice chat
CN103746934A (en) CDN bandwidth balancing method, CDN control center and system
CN101860493A (en) Method, server and system for distributing application server address for clients
CN104320492A (en) Method and device for dispatching web servers
US8275768B2 (en) Method and system for selecting a communication means
CN101345770A (en) Load equalization implementing method, storage control equipment and memory system
CN108924043A (en) System monitoring method, gateway communication, gateway apparatus, service processing equipment
CN113300933A (en) Session content management method and device, computer equipment and readable storage medium
CN104426968A (en) Data management method and device
CN116800546B (en) User switching method, system, terminal and storage medium
CN108200151B (en) ISCSI Target load balancing method and device in distributed storage system
CN103002038B (en) The processing method of elastic load equilibrium and device
CN115550368B (en) Metadata reporting method, device, equipment and storage medium
CN112199176A (en) Service processing method, device and related equipment
CN105471616A (en) Cache system management method and system
CN115686746A (en) Access method, task processing method, computing device, and computer storage medium
CN106339279B (en) Service recovery method and device
CN107153513B (en) Storage control method of distributed system server and server

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