CN111859327A - Login role identification method and device - Google Patents

Login role identification method and device Download PDF

Info

Publication number
CN111859327A
CN111859327A CN202010724283.XA CN202010724283A CN111859327A CN 111859327 A CN111859327 A CN 111859327A CN 202010724283 A CN202010724283 A CN 202010724283A CN 111859327 A CN111859327 A CN 111859327A
Authority
CN
China
Prior art keywords
login
role
information
historical
probability
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.)
Pending
Application number
CN202010724283.XA
Other languages
Chinese (zh)
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.)
Hangzhou Honyar Electrical Co Ltd
Putian Intelligent Lighting Institute Co Ltd
Original Assignee
Hangzhou Honyar Electrical Co Ltd
Putian Intelligent Lighting Institute 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 Hangzhou Honyar Electrical Co Ltd, Putian Intelligent Lighting Institute Co Ltd filed Critical Hangzhou Honyar Electrical Co Ltd
Priority to CN202010724283.XA priority Critical patent/CN111859327A/en
Publication of CN111859327A publication Critical patent/CN111859327A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a login role identification method and device. Wherein, the method comprises the following steps: the server receives first login information sent by a client; the server inputs the first login information into a login role identification function, and a first login role corresponding to the first login information is determined; the server sends the role information of the first login role to the client, wherein the client is used for switching roles based on the role information of the first login role. The invention solves the technical problem that the process is complicated because the user needs to manually switch roles when logging in the APP in the prior art.

Description

Login role identification method and device
Technical Field
The invention relates to the field of computers, in particular to a login role identification method and device.
Background
With the rapid development of intelligent terminals, application programs (also called software or APP) have become essential communication for people to live, study and work. Since the business functions are different, many applications divide the functions by roles. For example, the e-commerce APP can divide the functions into a seller version and a buyer version, the smart home APP can divide the functions into a family user and an engineering user, and then roles are switched in the APP to rapidly switch the business functions. However, most of multi-role APPs currently support only manual role switching, and user experience is poor.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a login role identification method and device, which at least solve the technical problem that in the prior art, the user needs to manually switch roles when logging in an APP, and the process is complicated.
According to an aspect of the embodiments of the present invention, there is provided a method for identifying a login role, including: the server receives first login information sent by a client; the server inputs the first login information into a login role identification function, and a first login role corresponding to the first login information is determined; the server sends the role information of the first login role to the client, wherein the client is used for switching roles based on the role information of the first login role.
Optionally, after the server receives the first login information sent by the client, the method further includes: the server acquires login time corresponding to the first login information; the server extracts the working day information and the time zone information in the login time; the server inputs the first login information, the working day information and the time zone information into a login role identification function, and determines a first login role in at least one login role.
Optionally, inputting the first login information, the weekday information, and the time zone information into a login role identification function, and determining the first login role of the at least one login role comprises: acquiring at least one piece of historical login information corresponding to the first login information, wherein each piece of historical login information at least comprises: a historical login role; summarizing at least one piece of historical login information based on the first login information, the working day information and the time zone information, and determining the recognition probability of at least one historical login role; and determining a first login role according to the recognition probability of at least one historical login role.
Optionally, the first login information includes: the method includes the steps that a user name, a network address, coordinates and equipment information are collected on the basis of first login information, working day information and time zone information, and determining the recognition probability of at least one historical login role comprises the following steps: summarizing historical login information according to the user name and the network address, and determining a first probability of at least one historical login role; summarizing the historical login information according to the user name and the coordinates, and determining a second probability of at least one historical login role; summarizing the historical login information according to the user name and the equipment information, and determining a third probability of at least one historical login role; summarizing the historical login information according to the user name and the working day information, and determining a fourth probability of at least one historical login role; summarizing the historical login information according to the user name and the time zone information, and determining a fifth probability of at least one historical login role; and accumulating the first probability, the second probability, the third probability, the fourth probability and the fifth probability to obtain the identification probability of at least one historical login role.
Optionally, determining the first login role according to the recognition probability of the at least one historical login role comprises: and determining the historical login role corresponding to the maximum probability as the first login role.
Optionally, the first login information at least includes: the user name is obtained, wherein obtaining the historical login information corresponding to the first login information comprises: and acquiring historical login information stored in a database based on the user name.
Optionally, after inputting the first login information, the weekday information and the time zone information into the login role identification function, and determining the first login role of the at least one login role, the method further includes: the server stores the first login information, the working day information, the time zone information and the first login role in association with a database.
Optionally, the role information of the first login role at least includes: the method comprises a first login role and login identification information corresponding to the first login role, wherein after the server sends the role information of the first login role to the client, the method further comprises the following steps: the server receives role switching information sent by the client, wherein the role switching information comprises login identification information and a second login role; and the server updates the historical login role corresponding to the login identification information in the database into a second login role.
According to another aspect of the embodiments of the present invention, there is also provided a method for identifying a login role, including: the client sends first login information to the server; the client receives role information of a first login role returned by the server, wherein the first login role is determined by inputting the first login information into a login role identification function; and the client switches roles based on the role information of the first login role.
Optionally, the role information of the first login role at least includes: the client side performs role switching based on role information of the first login role, and the method further comprises the following steps: the client receives a role switching request, wherein the role switching request comprises a second login role; the client generates role switching information based on the login identification information and the second login role; and the client sends role switching information to the server, wherein the server is used for updating the historical login role corresponding to the login identification information in the database into a second login role.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for identifying a login role, including: the receiving module is used for receiving first login information sent by a client; the determining module is used for inputting the first login information into the login role identification function and determining a first login role corresponding to the first login information; the sending module is used for sending role information of the first login role to the client, wherein the client is used for switching roles based on the role information of the first login role.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for identifying a login role, including: the sending module is used for sending the first login information to the server; the receiving module is used for receiving role information of a first login role returned by the server, wherein the first login role is determined by inputting the first login information into a login role identification function; and the switching module is used for switching roles based on the role information of the first login role.
According to another aspect of the embodiments of the present invention, there is also provided a system for identifying a login role, including: the client is used for sending first login information; the server is in communication connection with the client and is used for inputting the received first login information to the login role identification function and determining a first login role corresponding to the first login information; the client is also used for switching roles based on the role information of the first login role sent by the server.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, where the computer-readable storage medium includes a stored program, and when the program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the method for identifying a login role in any one of the above embodiments.
According to another aspect of the embodiments of the present invention, there is further provided a processor, configured to execute a program, where the program executes the method for identifying a login role in any one of the above embodiments.
In the embodiment of the invention, a mode of automatically identifying the login role in the multi-role APP is adopted, login information and role switching information are stored, and the purpose of automatically identifying the login role is achieved by analyzing according to the login information and combining historical data when login is performed next time, calculating the role probability, so that the technical effect of improving the user experience feeling is realized, and the technical problem that the process is complicated because the user needs to manually switch roles when logging in the APP in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of identification of a login role according to the prior art;
FIG. 2 is a timing diagram illustrating a method for automatically identifying a login role in a multi-role APP according to an embodiment of the present invention;
FIG. 3 is a flowchart of an automatic calculation function of a login role in a method for automatically identifying the login role in a multi-role APP according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method for identifying login roles in accordance with an embodiment of the present invention;
fig. 5 is a schematic diagram of an apparatus for identifying a login role according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a device for identifying login roles according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a system for identifying login roles according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for identification of a login role, it is noted that the steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than that described herein.
Fig. 1 is a flowchart of a method for identifying a login role according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, a server receives first login information sent by a client;
specifically, the first login information is a parameter that needs to be input when the user logs in the APP account, for example: user name, password, ip address, coordinates, device information, etc., but are not limited thereto.
It should be noted that, with the development of the intelligent terminal, the application program (APP) has become an essential communication mode in people's life, study and work, and due to the difference of business functions, many APP divides the functions according to roles. For example, the e-commerce APP can divide functions into a seller version and a buyer version, the smart home APP can divide the functions into a family user and an engineering user, and then roles are switched in the APP to rapidly switch service functions. Therefore, when logging in the APP, people need to input different parameters such as an account number, a role and the like according to different service functions.
In an alternative embodiment, when the user logs in the APP on the terminal device, first login information is sent to the server, for example: the first login information is, but not limited to, a user name, a password, an ip address, coordinates, device information, and the like. And the server receives login information sent by the user and stores the login information into a login and role relation table.
Step S104, the server inputs the first login information into a login role identification function, and a first login role corresponding to the first login information is determined;
specifically, the login identification function is an application program stored in a computer storage medium inside the server, and is used for processing login information sent by the terminal user and finally outputting user login role information.
In an alternative embodiment, the server receives the first login information sent by the user, for example: the server sends the 5-dimensional login information to a login role recognition function, counts the probability of each login information and corresponding role information, and outputs role information with the highest probability, namely the user login role information corresponding to the 5-dimensional login information, for example: and the user sends the 5 dimensional information to the server, and the server outputs corresponding login role information as a home user or an engineering user.
Step S106, the server sends the role information of the first login role to the client, wherein the client is used for switching roles based on the role information of the first login role.
Specifically, the role information of the first login role is corresponding role information generated by the server according to the first login information.
In an alternative embodiment, the server generates corresponding role information (first login role information, for example, a home user) based on a user name, a password, an ip address, coordinates and device information (role information of the first login role) sent by the user, and sends the corresponding role information (the first login role information, for example, the home user) to the client of the user, and the client receives the role information to perform account login, thereby automatically realizing login role switching.
Through the steps, by adopting a mode of automatically identifying the login role in the multi-role APP, the login information and the role switching information are stored, when login is performed next time, analysis is performed according to the login information and the historical data, the role probability is calculated, and the purpose of automatically identifying the login role is achieved, so that the technical effect of improving the user experience feeling is achieved, and the technical problems that in the prior art, the role needs to be manually switched when the user logs in the APP, and the process is complicated are solved.
Optionally, after the server receives the first login information sent by the client, the method further includes: the server acquires login time corresponding to the first login information; the server extracts the working day information and the time zone information in the login time; the server inputs the first login information, the working day information and the time zone information into a login role identification function, and determines a first login role in at least one login role.
Specifically, the working day information is a normal legal working day. Time zone information refers to the length of work per day on a legal day.
In an optional embodiment, the server receives first login information sent by the client, records login time for acquiring the first login information, judges whether the login time is a working day, marks the login time as the working day if the login time is the working day, and counts time zone information of the working day; if not, then mark the login time as a non-workday. For example, when a user logs in an APP account at 31 am, 9:00, 12/2019, and inputs login information (user name: 187; password: 123456; ip address: ip: 155.12.6.2; coordinates: 120.04, 30.25; device information: D4866120) at a client, the server determines that the time of receiving the login information is a workday (workday information) and the time zone information is 15, and the server inputs the login information, the workday information, and the time zone information to a login role identification function, thereby finally determining that the login role is an employee role.
Optionally, inputting the first login information, the weekday information, and the time zone information into a login role identification function, and determining the first login role of the at least one login role comprises: acquiring at least one piece of historical login information corresponding to the first login information, wherein each piece of historical login information at least comprises: a historical login role; summarizing at least one piece of historical login information based on the first login information, the working day information and the time zone information, and determining the recognition probability of at least one historical login role; and determining a first login role according to the recognition probability of at least one historical login role.
In an alternative embodiment, the server inputs the first login information, the working day information and the time zone information into the login role identification function, obtains historical login role information in the login information stored in the server in history, and counts the historical login information according to the first login information, the working day information and the time zone information, for example, for the historical login information with the user name of 178 and the IP address of 155.12.6.2 in the first login information, the historical login information with the working day information of 15 and the time zone information is summarized, the user 178 at the IP address appears in the employee login role for 3 times in total, the server automatically performs role identification, wherein the probability of logging in the enterprise employee is 100%, and the probability of logging in the family user is 0%, and then the server determines that the first login role is the enterprise employee.
Optionally, the first login information includes: the method comprises the following steps of user name, network address, coordinates and equipment information, wherein at least one piece of historical login information is summarized based on first login information, working day information and time zone information, and the step of determining the recognition probability of at least one historical login role comprises the following steps: summarizing historical login information according to the user name and the network address, and determining a first probability of at least one historical login role; summarizing the historical login information according to the user name and the coordinates, and determining a second probability of at least one historical login role; summarizing the historical login information according to the user name and the equipment information, and determining a third probability of at least one historical login role; summarizing the historical login information according to the user name and the working day information, and determining a fourth probability of at least one historical login role; summarizing the historical login information according to the user name and the time zone information, and determining a fifth probability of at least one historical login role; and accumulating the first probability, the second probability, the third probability, the fourth probability and the fifth probability to obtain the identification probability of at least one historical login role.
In an optional embodiment, after receiving first login information sent by a user, a server determines historical login information corresponding to the user name according to user name information in the first login information, and acquires the historical login information stored in a database. Taking 187 user login multi-role APP as an example, the server queries a corresponding user login and role relation table according to first login information sent by the 187 user, summarizes historical login information of the user, and determines the identification probability of each historical login role. When 187 the first login information of the user comprises: the method comprises the steps that when a network address (ip is 155.12.6.2), coordinates (120.04, 30.25), equipment information (D4866120), working day information (working day) and a time zone information (15) are used, a server counts that a user name 187 and the network address (ip is 155.12.6.2) are logged in for 0 times, wherein the probability of logging in is 0% of enterprise employees, and the probability of logging in is 0% of home users (first probability); the server counts 3 logins including a user name 187 and coordinates (120.04, 30.25), wherein the probability of logging in as a staff of an enterprise is 100%, and the probability of logging in as a family user is 0% (second probability); the server counts that the user name is 187 and the equipment information (D4866120) is logged in for 3 times, wherein the probability of logging in the enterprise staff is 100%, and the probability of logging in the family user is 0% (third probability); the server counts that the user name is 187 and the information (working days) of the working days are logged in for 3 times, wherein the probability of logging in the enterprise staff is 100%, and the probability of logging in the family user is 0% (fourth probability); the server counts that the login is 0 times when the user name is 187 and the time zone information is included (15), wherein the probability of logging in the enterprise staff is 0%, and the probability of logging in the family user is 0% (fifth probability); after the server summarizes the historical login information, accumulating the probabilities of logging in the enterprise employees to obtain the identification probability of logging in the enterprise employees of 300 percent; the probability of logging in as a family user is obtained as follows: 0 percent.
Optionally, determining the first login role according to the recognition probability of the at least one historical login role comprises: and determining the historical login role corresponding to the maximum probability as the first login role.
In an alternative embodiment, still taking 187 users as an example, the recognition probability of the historical login role respectively counted according to the above embodiment, that is, the recognition probability of the login as the employee of the enterprise is 300%; the probability of logging in as a home user is: and 0%, because the identification probability of logging in as the enterprise employee is greater than that of logging in as the family user, determining that the historical login role is the enterprise employee, namely the first login role.
Optionally, the first login information at least includes: the user name is obtained, wherein obtaining the historical login information corresponding to the first login information comprises: and acquiring historical login information stored in a database based on the user name.
Optionally, after inputting the first login information, the weekday information and the time zone information into the login role identification function, and determining the first login role of the at least one login role, the method further includes: the server stores the first login information, the working day information, the time zone information and the first login role in association with a database.
In an alternative embodiment, after the server inputs the first login information, the working day information, and the time zone information into the login role identification function to obtain the final first login identification role, the server further stores the first login information, the working day information, the time zone information, and the first login role association in the database, for example: the server stores history login information with the user name 178 and the IP address IP 155.12.6.2 into the database, login information with working day information of working day and time zone information of 15, working day information and time zone information and the obtained first login role as enterprise employee association.
Optionally, the role information of the first login role at least includes: the method comprises a first login role and login identification information corresponding to the first login role, wherein after the server sends the role information of the first login role to the client, the method further comprises the following steps: the server receives role switching information sent by the client, wherein the role switching information comprises login identification information and a second login role; and the server updates the historical login role corresponding to the login identification information in the database into a second login role.
Specifically, the login identification information is a login record number, which may be a corresponding serial number automatically generated by the APP when the user logs in, or a serial number generated when the enterprise employee registers the enterprise account. The second login role is as follows: and when the user finds that the login role information sent by the server is incorrect, the login role information needs to be switched.
In an optional embodiment, if the user thinks that the current role is incorrect, can be at APP manual switching role, when APP carries out once manual role switching, the user launches the role switching request to the cloud service through APP, APP will log in record number and correct role and transmit to the server, the server is according to the log in record number in the request, the role information of the corresponding record of login and role relation table is updated to the history login role is updated to the second login role. And the server sends the second login role to the APP client to complete login role information switching. For example: when the user 187 needs to use the login role as the home user login APP, the result returned by the server is found to be the employee login role, at this moment, the user 187 needs to switch the user login role information, login identification information and home user role information (correct role information) are sent to the server through the client, the server updates the role information recorded in correspondence with the login and role relationship table according to the received request information, the role information of the home user is returned to the client, and login role information switching is completed.
Fig. 2 is a timing diagram of a method for automatically identifying a login role applied to a multi-role APP according to an embodiment of the present invention, and fig. 3 is a flowchart of an automatic function calculation of a login role applied to a method for automatically identifying a login role applied to a multi-role APP according to an embodiment of the present invention.
With reference to fig. 2 and 3, a possible implementation flow of the above embodiment is as follows:
the embodiment provides a preferred method for automatically identifying login roles applied to multi-role APP, which comprises the following steps of storing login information and role switching information, analyzing according to the login information and historical data when logging in next time, calculating role probability, and achieving the function of automatically identifying login roles, wherein the method comprises the following steps:
creating a table in the database: [ Login-role relationship table ] is used for recording the corresponding relationship between the login information of a plurality of dimensions and roles.
The APP client side obtains a current user name, a password, an IP (Internet protocol), coordinates and an equipment code, and transmits the information to the cloud service through the login interface.
The cloud service receives information such as user names, passwords, IP (Internet protocol), coordinates, equipment codes and the like transmitted by the client, extracts whether the information is a workday or not and an hour time zone according to login time, calls the function in the step 4 by taking the login information of the 5 dimensions as an input parameter to obtain an automatic identification role, and stores the login information of the 5 dimensions and the automatic identification role in a login and role relation table. And then, the cloud service returns the login record number and the automatic recognition role to the APP client.
The cloud service adds a login role automatic identification function, and inputs parameters: user name, IP address, coordinates, device information, whether it is a workday, hour time zone. Outputting parameters: and (4) roles.
The cloud service stores data such as user names, IP, coordinates, equipment codes, whether working days, hour time zones, login roles and the like into a database.
The APP client automatically completes role switching according to the parameters (login result, login role and login record number) returned by the login interface.
If the user thinks that current role is incorrect, can be at APP manual switch role, APP will log in the record number and the correct role transmits to the cloud end service. And the cloud service updates the correct role to the login and role relation table according to the login record number.
As shown in fig. 2, when the APP logs in once, the user name, the password, the IP, the coordinates, and the device code are sent to the cloud service, the cloud service performs role automatic identification to obtain a role of local login, and then the user name, the IP, the coordinates, the device code, whether the user name, the IP, the coordinates, the device code are workdays, hour time zones, and the login role are stored in the login-role relationship table. And returning the login result, the login role and the login record number to the APP. And after receiving the returned result, the APP automatically switches roles according to the login roles in the result.
When the APP performs one-time manual role switching, the APP initiates a role switching request to the cloud service, and the cloud service updates the role information recorded in correspondence with the login and role relationship table according to the login record number in the request.
As shown in fig. 3, it is a flowchart of an automatic function calculation for login role in a method for automatically identifying login role in multi-role APP, which collectively includes the following processes:
step a, according to an input parameter of a user name and an IP address, counting the probability of logging in each role by the IP address;
b, according to the input parameters of the user name and the coordinates, counting the probability of logging in each role by the coordinates;
step c, according to the input parameters of the user name and the equipment information, counting the probability of the equipment information logging in each role;
step d, according to the input parameter of the user name and whether the user name is a working day, counting the probability of whether the user logs in each role in the working day;
e, according to the input parameter of the user name and the hour time zone, counting the probability of logging in each role in the hour time zone;
and f, accumulating the result probabilities obtained in the steps a to e according to roles, wherein the role with the largest accumulated result is the identification result.
The following is a detailed description of an embodiment:
as shown in table 1, the user login and role relationship table with the user name 187 of the multi-role APP application records the relationship with login role of 5 dimensions of 187 users. When the 187 user logs in next time, the login information is assumed to be: the date is 2019-12-31, the hour time zone is 15, the login ip is 155.12.6.2, the login coordinate is 120.04, 30.25 and the device unique identification code D4866120. According to the login information, the login role is automatically calculated:
step a, a user 187 logs in for 0 times in total at ip-155.12.6.2, wherein the probability of logging in as an enterprise employee is 0%, and the probability of logging in as a family user is 0%;
step b, the user 187 logs in for 3 times in the coordinates of 120.04 and 30.25, wherein the probability of logging in as the enterprise employee is 100%, and the probability of logging in as the family user is 0%;
step c, the user 187 logs in the device identification code D4866120 for 3 times, wherein the probability of logging in the enterprise employee is 100%, and the probability of logging in the family user is 0%;
step d, the user 187 logs in for 3 times in the workday, wherein the probability of logging in as the enterprise employee is 100%, and the probability of logging in as the family user is 0%;
step e, the user 187 logs in for 0 times in the hour time zone of 15, wherein the probability of logging in the enterprise staff is 0%, and the probability of logging in the family user is 0%;
and f, accumulating the result probabilities obtained in the steps a to e according to the roles, wherein the accumulated result of the enterprise staff is 300 percent, and the accumulated result of the family user is 0 percent, so that the login role is automatically identified as the enterprise staff.
And the cloud service returns the automatic identification result to the APP client, and the APP automatically switches to the role of the enterprise employee.
TABLE 1 user login and role relationship Table for Multi-role APP application user name 187
Figure BDA0002601118690000101
Example 2
According to another aspect of the embodiments of the present invention, a method for identifying a login role is also provided, and the specific implementation manner in this embodiment is the same as or similar to that in the above-described implementation, and is not described herein again. Fig. 4 is a flowchart of a method for identifying a login role according to an embodiment of the present invention, and with reference to fig. 4, the method is implemented as follows:
step S402, the client sends first login information to the server;
step S404, the client receives the role information of the first login role returned by the server, wherein the first login role is determined by inputting the first login information into a login role identification function;
in step S406, the client performs role switching based on the role information of the first login role.
Optionally, the role information of the first login role at least includes: the client side performs role switching based on role information of the first login role, and the method further comprises the following steps: the client receives a role switching request, wherein the role switching request comprises a second login role; the client generates role switching information based on the login identification information and the second login role; and the client sends role switching information to the server, wherein the server is used for updating the historical login role corresponding to the login identification information in the database into a second login role.
Example 3
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for identifying a login role, and the specific implementation manner in this embodiment is the same as or similar to that in the above-mentioned implementation manner, which is not described herein again. Fig. 5 is a schematic diagram of an apparatus for identifying a login role according to an embodiment of the present invention, and with reference to fig. 5, the apparatus includes the following:
a receiving module 50, configured to receive first login information sent by a client;
the determining module 52 is configured to input the first login information to the login role identification function, and determine a first login role corresponding to the first login information;
a sending module 54, configured to send role information of the first login role to the client, where the client is configured to perform role switching based on the role information of the first login role.
Optionally, the apparatus further comprises: the acquisition module is used for acquiring login time corresponding to the first login information; the extraction module is used for extracting the working day information and the time zone information in the login time; the determining module is further configured to input the first login information, the weekday information, and the time zone information to a login role identification function, and determine a first login role of the at least one login role.
Optionally, the determining module includes: an obtaining unit, configured to obtain at least one piece of history login information corresponding to the first login information, where each piece of history login information at least includes: a historical login role; the first determining unit is used for summarizing at least one piece of historical login information based on the first login information, the working day information and the time zone information and determining the recognition probability of at least one historical login role; and the second determining unit is used for determining the first login role according to the recognition probability of at least one historical login role.
Optionally, the first determining unit is further configured to perform the following steps: summarizing historical login information according to the user name and the network address, and determining a first probability of at least one historical login role; summarizing the historical login information according to the user name and the coordinates, and determining a second probability of at least one historical login role; summarizing the historical login information according to the user name and the equipment information, and determining a third probability of at least one historical login role; summarizing the historical login information according to the user name and the working day information, and determining a fourth probability of at least one historical login role; summarizing the historical login information according to the user name and the time zone information, and determining a fifth probability of at least one historical login role; and accumulating the first probability, the second probability, the third probability, the fourth probability and the fifth probability to obtain the identification probability of at least one historical login role.
Optionally, the second determining unit is further configured to: and determining the historical login role corresponding to the maximum probability as the first login role.
Optionally, the obtaining unit is further configured to: the first login information at least includes: and acquiring the historical login information stored in the database based on the user name.
Optionally, the storage module is further configured to store the first login information, the weekday information, the time zone information, and the first login role association in a database.
Optionally, the receiving module is further configured to receive role switching information sent by the client, where the role switching information includes login identification information and a second login role; the determining module is further used for updating the historical login role corresponding to the login identification information in the database into a second login role; the sending module is further configured to send role information of the second login role to the client, where the client is configured to perform role switching based on the role information of the second login role.
Example 4
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for identifying a login role, and the specific implementation manner in this embodiment is the same as or similar to that in the above-mentioned implementation manner, which is not described herein again. Fig. 6 is a schematic diagram of an apparatus for identifying a login role according to an embodiment of the present invention, and in conjunction with fig. 6, the apparatus includes the following:
a sending module 60, configured to send the first login information to the server;
a receiving module 62, configured to receive role information of a first login role returned by the server, where the first login role is determined by inputting the first login information to a login role identification function;
and a switching module 64, configured to switch roles based on the role information of the first login role.
Optionally, the receiving module is further configured to: generating role switching information based on the login identification information and the second login role; and the sending module sends the role switching information to a server, wherein the server is used for updating the historical login role corresponding to the login identification information in the database into a second login role.
Example 5
According to another aspect of the embodiments of the present invention, a system for identifying a login role is further provided, and the specific implementation manner in this embodiment is the same as or similar to that in the above-mentioned implementation manner, and is not described herein again. Fig. 7 is a schematic diagram of a system for identifying a login role according to an embodiment of the present invention, and in conjunction with fig. 7, the apparatus includes the following:
a client 70 for sending first login information; the role switching module is also used for switching roles based on the role information of the first login role sent by the server;
and the server 72 is in communication connection with the client, and is used for inputting the received first login information to the login role identification function and determining the first login role corresponding to the first login information.
Example 6
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, where the computer-readable storage medium includes a stored program, and when the program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the method for identifying a login role in any one of the above embodiments.
Example 7
According to another aspect of the embodiments of the present invention, there is further provided a processor, configured to execute a program, where the program executes the method for identifying a login role in any one of the above embodiments.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit may be a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention 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, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements should also be considered as the protection scope of the present invention.

Claims (10)

1. A method for identifying login roles, comprising:
the server receives first login information sent by a client;
the server inputs the first login information into a login role identification function, and a first login role corresponding to the first login information is determined;
and the server sends the role information of the first login role to the client, wherein the client is used for switching roles based on the role information of the first login role.
2. The method of claim 1, wherein after the server receives the first login information sent by the client, the method further comprises:
the server acquires login time corresponding to the first login information;
the server extracts the working day information and the time zone information in the login time;
and the server inputs the first login information, the working day information and the time zone information into a login role identification function, and determines a first login role in at least one login role.
3. The method of claim 2, wherein inputting the first login information, the weekday information, and the time zone information into a login role identification function, wherein determining a first login role of the at least one login role comprises:
acquiring at least one piece of historical login information corresponding to the first login information, wherein each piece of historical login information at least comprises: a historical login role;
summarizing the at least one historical login information based on the first login information, the working day information and the time zone information, and determining the identification probability of at least one historical login role;
and determining the first login role according to the recognition probability of the at least one historical login role.
4. The method of claim 3, wherein the first login information comprises: the method comprises the following steps of obtaining a user name, a network address, coordinates and equipment information, wherein the at least one historical login information is summarized based on the first login information, the workday information and the time zone information, and the step of determining the identification probability of at least one historical login role comprises the following steps:
summarizing the historical login information according to the user name and the network address, and determining a first probability of the at least one historical login role;
summarizing the historical login information according to the user name and the coordinates, and determining a second probability of the at least one historical login role;
summarizing the historical login information according to the user name and the equipment information, and determining a third probability of the at least one historical login role;
summarizing the historical login information according to the user name and the working day information, and determining a fourth probability of the at least one historical login role;
summarizing the historical login information according to the user name and the time zone information, and determining a fifth probability of the at least one historical login role;
and accumulating the first probability, the second probability, the third probability, the fourth probability and the fifth probability to obtain the identification probability of the at least one historical login role.
5. The method of claim 3, wherein determining the first login role based on the recognition probability of the at least one historical login role comprises:
and determining the historical login role corresponding to the maximum probability as the first login role.
6. The method of claim 3, wherein the first login information comprises at least: a user name, wherein obtaining historical login information corresponding to the first login information comprises:
and acquiring the historical login information stored in a database based on the user name.
7. A method for identifying login roles, comprising:
the client sends first login information to the server;
the client receives role information of a first login role returned by the server, wherein the first login role is determined by inputting the first login information into a login role identification function;
and the client switches roles based on the role information of the first login role.
8. The method of claim 7, wherein the role information of the first login role comprises at least: the first login role and login identification information corresponding to the first login role, wherein after the client switches roles based on the role information of the first login role, the method further comprises:
the client receives a role switching request, wherein the role switching request comprises a second login role;
the client generates role switching information based on the login identification information and the second login role;
and the client sends the role switching information to the server, wherein the server is used for updating the historical login role corresponding to the login identification information in the database into the second login role.
9. An apparatus for identifying a login role, comprising:
the receiving module is used for receiving first login information sent by a client;
the determining module is used for inputting the first login information into a login role identification function and determining a first login role corresponding to the first login information;
and the sending module is used for sending the role information of the first login role to the client, wherein the client is used for switching roles based on the role information of the first login role.
10. An apparatus for identifying a login role, comprising:
the sending module is used for sending the first login information to the server;
the receiving module is used for receiving role information of a first login role returned by the server, wherein the first login role is determined by inputting the first login information into a login role identification function;
and the switching module is used for switching roles based on the role information of the first login role.
CN202010724283.XA 2020-07-24 2020-07-24 Login role identification method and device Pending CN111859327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010724283.XA CN111859327A (en) 2020-07-24 2020-07-24 Login role identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010724283.XA CN111859327A (en) 2020-07-24 2020-07-24 Login role identification method and device

Publications (1)

Publication Number Publication Date
CN111859327A true CN111859327A (en) 2020-10-30

Family

ID=72949855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010724283.XA Pending CN111859327A (en) 2020-07-24 2020-07-24 Login role identification method and device

Country Status (1)

Country Link
CN (1) CN111859327A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112989302A (en) * 2021-04-25 2021-06-18 浙江口碑网络技术有限公司 Login method and device for access service and computing equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102665138A (en) * 2012-04-09 2012-09-12 华为技术有限公司 Method and device for selecting and controlling television channels
CN108140149A (en) * 2015-10-06 2018-06-08 微软技术许可有限责任公司 Role's particular device behavior
CN110809190A (en) * 2018-08-06 2020-02-18 Tcl集团股份有限公司 Method and device for matching user roles based on smart television and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102665138A (en) * 2012-04-09 2012-09-12 华为技术有限公司 Method and device for selecting and controlling television channels
CN108140149A (en) * 2015-10-06 2018-06-08 微软技术许可有限责任公司 Role's particular device behavior
CN110809190A (en) * 2018-08-06 2020-02-18 Tcl集团股份有限公司 Method and device for matching user roles based on smart television and server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112989302A (en) * 2021-04-25 2021-06-18 浙江口碑网络技术有限公司 Login method and device for access service and computing equipment

Similar Documents

Publication Publication Date Title
TWI733217B (en) Push and display method, device and equipment of login method
CN107169094B (en) Information aggregation method and device
CN111512288B (en) Mapping entities to accounts
CN106997431B (en) Data processing method and device
CN106656998B (en) server communication method and device
US20200175522A1 (en) Predicting online customer service requests based on clickstream key patterns
CN110324233B (en) Unread message corner mark prompting method, unread message corner mark prompting device, unread message corner mark prompting equipment and storage medium
KR102060262B1 (en) Method and apparatus for recognizing service request for changing mobile phone number
CN107733774B (en) Account number association method and device
CN104468457A (en) User logging-in method based on unified user system and registering method
CN110209921B (en) Method and device for pushing media resource, storage medium and electronic device
CN111859327A (en) Login role identification method and device
CN105760729B (en) Login method and electronic equipment
CN111723083A (en) User identity identification method and device, electronic equipment and storage medium
CN111767481B (en) Access processing method, device, equipment and storage medium
CN107220262B (en) Information processing method and device
CN112084262A (en) Data information screening method and device, computer equipment and storage medium
US20130346298A1 (en) Offline-sales attribution systems and methods
CN109241381B (en) Information matching method and device
CN106330979B (en) Router login method and device
CN112100156B (en) Method, device, medium and system for constructing knowledge base based on user behaviors
WO2018149079A1 (en) Scoring information matching method and apparatus, storage medium and server
CN113342811A (en) HBase table data processing method and device
CN107578297B (en) Member information aggregation method and device
CN107239534B (en) Bar code scanning method, bar code scanning device, mobile terminal and computer readable storage medium

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