Online login equipment management method and device and electronic equipment

文档序号:190851 发布日期:2021-11-02 浏览:24次 中文

阅读说明:本技术 一种在线登录设备管理方法、装置及电子设备 (Online login equipment management method and device and electronic equipment ) 是由 李少松 赵鑫 于 2021-08-03 设计创作,主要内容包括:本发明实施例提供了一种在线登录设备管理方法、装置及电子设备,应用于设备管理技术领域。该方法包括:查找目标会员账号的在线登录设备,作为待管理设备;基于每一待管理设备的设备类型和登录认证情况,确定各待管理设备的登录评估信息;基于各待管理设备的登录评估信息,从各待管理设备中强制下线一个或多个待管理设备,以使目标会员账号的在线登录设备的数量不大于目标会员账号的预设最大可登录数量;其中,被下线设备的登录评估度依次为各待管理设备中最低的。通过本方案,可以在兼顾用户的会员账号有效使用同时,降低服务器的存储压力。(The embodiment of the invention provides a method and a device for managing online login equipment and electronic equipment, and is applied to the technical field of equipment management. The method comprises the following steps: searching online login equipment of a target member account as equipment to be managed; determining login evaluation information of each device to be managed based on the device type and login authentication condition of each device to be managed; forcibly offline one or more devices to be managed from the devices to be managed based on the login evaluation information of the devices to be managed, so that the number of online login devices of the target member account is not more than the preset maximum login number of the target member account; and the log-in evaluation degree of the offline equipment is the lowest equipment to be managed in sequence. Through the scheme, the storage pressure of the server can be reduced while effective use of the member account of the user is considered.)

1. An online login device management method, comprising:

searching online login equipment of a target member account as equipment to be managed;

determining login evaluation information of each device to be managed based on the device type and login authentication condition of each device to be managed; the device type of each device is configured based on the operation authority of the device on the target member account, and the login authentication condition of each device is determined according to the login record and the verification record of the user using the device;

forcibly offline one or more devices to be managed from the devices to be managed based on the login evaluation information of the devices to be managed, so that the number of online login devices of the target member account is not more than the preset maximum login number of the target member account; and the log-in evaluation degree of the offline equipment is the lowest equipment to be managed in sequence.

2. The method according to claim 1, wherein the determining login evaluation information of each device to be managed based on the device type and login authentication condition of each device to be managed comprises:

determining a device to be managed with the device type as a main device from all devices to be managed as a first device, and determining a newly logged device to be managed as a second device based on the login authentication condition of each device to be managed;

setting rules according to a preset login evaluation degree, and determining login evaluation information of each device to be managed according to a determination result; wherein, the preset login evaluation degree setting rule is as follows: the device type is the main device, and the login evaluation degree of the device to be managed with the login type being the latest login device is higher than the login evaluation degrees of other devices to be managed.

3. The method according to claim 2, wherein the determining the login evaluation information of each device to be managed according to the predetermined login evaluation degree setting rule and the determination result comprises:

if the first device and the second device are the same device, taking a first login evaluation degree as login evaluation information of the first device, and taking a second login evaluation degree as login evaluation degree information of devices to be managed except the first device;

if the first device and the second device are different devices, taking a first login evaluation degree as login evaluation information of the first device, taking a third login evaluation degree as login evaluation information of the second device, and taking a fourth login evaluation degree as login evaluation degree information of devices to be managed except the first device and the second device;

wherein the second login evaluation degree, the third login evaluation degree and the fourth login evaluation degree are all less than the first login evaluation degree, and the fourth login evaluation degree is less than the third login evaluation degree.

4. The method according to claim 1, wherein after determining login evaluation information of each device to be managed based on the device type and login authentication information of each device to be managed, the method further comprises:

aiming at each device to be managed in a plurality of devices to be managed with the same login evaluation information, calculating a device score of the device to be managed based on the device type and the operation information of the device to be managed; based on the equipment score of the equipment to be managed, adjusting the login evaluation information of the equipment to be managed; and/or the presence of a gas in the gas,

and aiming at each device to be managed in a plurality of devices to be managed with the same login evaluation information, adjusting the login evaluation information of the device to be managed based on the time length of the device to be managed for logging in the target member account.

5. The method of claim 4, wherein calculating the device score of the device to be managed based on the device type and the operation information of the device to be managed comprises:

determining the execution times of executing the specified operation of the equipment to be managed within a preset time length based on the operation information of the equipment to be managed;

and calculating the equipment score of the equipment to be managed based on the equipment type of the equipment to be managed and the execution times.

6. The method of claim 5, wherein the specified operations include a login operation and a non-login operation;

the calculating the device score of the device to be managed based on the device type of the device to be managed and the execution times includes:

determining a preset score corresponding to the equipment type of the equipment to be managed as a first score of the equipment to be managed based on a corresponding relation between a preset equipment type and the preset score;

determining an adjusting weight corresponding to the non-login operation executed by the equipment to be managed based on the corresponding relation between the preset non-login operation and the adjusting weight; calculating the product of the number of times of the non-login operation executed by the equipment to be managed and the corresponding adjusting weight as a second score of the equipment to be managed;

determining an adjusting parameter corresponding to the login operation executed by the equipment to be managed based on the corresponding relation between the preset login operation and the adjusting parameter; calculating the difference between the determined adjusting parameter and the number of login operations executed by the equipment to be managed as an adjusting difference value; calculating the product of the number of login operations executed by the equipment to be managed and the adjustment difference value, and taking the product as a third score of the equipment to be managed;

and calculating the sum of the first score, the second score and the third score to be used as the equipment score of the equipment to be managed.

7. The method according to any one of claims 1 to 6, wherein the forcibly offline one or more devices to be managed from among the devices to be managed based on the login evaluation information of the devices to be managed so that the number of online login devices of the target member account is not greater than a preset maximum registrable number of the target member account comprises:

determining the difference between the number of the devices to be managed and the maximum login number of the target member account to obtain a first number;

selecting the first number of to-be-managed devices which are ranked backwards from the target sequence corresponding to each to-be-managed device; wherein the target sequence is: arranging the obtained sequences of the equipment to be managed according to the login evaluation degrees represented by the login evaluation information from large to small;

and forcibly downloading the target member account from the selected one or more devices to be managed.

8. An online login device management apparatus, comprising:

the device searching module is used for searching the online login device of the target member account as a device to be managed;

the information determining module is used for determining login evaluation information of each device to be managed based on the device type and the login authentication condition of each device to be managed; the device type of each device is configured based on the operation authority of the device on the target member account, and the login authentication condition of each device is determined according to the login record and the verification record of the user using the device;

the forced offline module is used for forcibly offline one or more devices to be managed from the devices to be managed based on the login evaluation information of the devices to be managed, so that the number of the online login devices of the target member account is not more than the preset maximum login number of the target member account; and the log-in evaluation degree of the offline equipment is the lowest equipment to be managed in sequence.

9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;

a memory for storing a computer program;

a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.

10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.

Technical Field

The present invention relates to the field of device management technologies, and in particular, to a method and an apparatus for managing an online login device, and an electronic device.

Background

The member account is an account provided by the resource provider for the paying user. The member account number can enjoy the use right of the member resource as compared with the non-member account.

Generally, for each member account, a resource provider allows multiple online login devices that maintain the member account at the same time, so as to facilitate a user to use resources on multiple devices.

In order to manage the online login device of each member account, when each online login device logs in a member account, the server needs to generate and store a login token associated with the online login device. For each device applying for using the member resource, the server can first determine whether the device has a login token associated with the device, if so, determine that the device has the right to use the member resource and issue the member resource to the device, otherwise, determine that the device does not have the right to use the member resource and refuse to issue the member resource to the device.

When the number of devices for online login of the member account is too many, the server needs to store a large number of login tokens, so that the storage pressure of the server is large. Therefore, how to consider the effective use of the member account by the user and reduce the storage pressure of the server is a problem to be solved urgently.

Disclosure of Invention

An object of embodiments of the present invention is to provide a method and an apparatus for managing an online login device, and an electronic device, so as to reduce storage pressure of a server while considering effective use of a member account by a user. The specific technical scheme is as follows:

in a first aspect, an embodiment of the present invention provides a method for managing an online login device, including:

searching online login equipment of a target member account as equipment to be managed;

determining login evaluation information of each device to be managed based on the device type and login authentication condition of each device to be managed; the device type of each device is configured based on the operation authority of the device on the target member account, and the login authentication condition of each device is determined according to the login record and the verification record of the user using the device;

forcibly offline one or more devices to be managed from the devices to be managed based on the login evaluation information of the devices to be managed, so that the number of online login devices of the target member account is not more than the preset maximum login number of the target member account; and the log-in evaluation degree of the offline equipment is the lowest equipment to be managed in sequence.

Optionally, the determining login evaluation information of each device to be managed based on the device type and the login authentication condition of each device to be managed includes:

determining a device to be managed with the device type as a main device from all devices to be managed as a first device, and determining a newly logged device to be managed as a second device based on the login authentication condition of each device to be managed;

setting rules according to a preset login evaluation degree, and determining login evaluation information of each device to be managed according to a determination result; wherein, the preset login evaluation degree setting rule is as follows: the device type is the main device, and the login evaluation degree of the device to be managed with the login type being the latest login device is higher than the login evaluation degrees of other devices to be managed.

Optionally, the setting a rule according to a predetermined login evaluation degree, and determining login evaluation information of each device to be managed according to a determination result includes:

if the first device and the second device are the same device, taking a first login evaluation degree as login evaluation information of the first device, and taking a second login evaluation degree as login evaluation degree information of devices to be managed except the first device;

if the first device and the second device are different devices, taking a first login evaluation degree as login evaluation information of the first device, taking a third login evaluation degree as login evaluation information of the second device, and taking a fourth login evaluation degree as login evaluation degree information of devices to be managed except the first device and the second device;

wherein the second login evaluation degree, the third login evaluation degree and the fourth login evaluation degree are all less than the first login evaluation degree, and the fourth login evaluation degree is less than the third login evaluation degree.

Optionally, after determining login evaluation information of each device to be managed based on the device type and the login authentication information of each device to be managed, the method further includes:

aiming at each device to be managed in a plurality of devices to be managed with the same login evaluation information, calculating a device score of the device to be managed based on the device type and the operation information of the device to be managed; based on the equipment score of the equipment to be managed, adjusting the login evaluation information of the equipment to be managed; and/or the presence of a gas in the gas,

and aiming at each device to be managed in a plurality of devices to be managed with the same login evaluation information, adjusting the login evaluation information of the device to be managed based on the time length of the device to be managed for logging in the target member account.

Optionally, the calculating a device score of the device to be managed based on the device type and the operation information of the device to be managed includes:

determining the execution times of executing the specified operation of the equipment to be managed within a preset time length based on the operation information of the equipment to be managed;

and calculating the equipment score of the equipment to be managed based on the equipment type of the equipment to be managed and the execution times.

Optionally, the specified operation includes a login operation and a non-login operation;

the calculating the device score of the device to be managed based on the device type of the device to be managed and the execution times includes:

determining a preset score corresponding to the equipment type of the equipment to be managed as a first score of the equipment to be managed based on a corresponding relation between a preset equipment type and the preset score;

determining an adjusting weight corresponding to the non-login operation executed by the equipment to be managed based on the corresponding relation between the preset non-login operation and the adjusting weight; calculating the product of the number of times of the non-login operation executed by the equipment to be managed and the corresponding adjusting weight as a second score of the equipment to be managed;

determining an adjusting parameter corresponding to the login operation executed by the equipment to be managed based on the corresponding relation between the preset login operation and the adjusting parameter; calculating the difference between the determined adjusting parameter and the number of login operations executed by the equipment to be managed as an adjusting difference value; calculating the product of the number of login operations executed by the equipment to be managed and the adjustment difference value, and taking the product as a third score of the equipment to be managed;

and calculating the sum of the first score, the second score and the third score to be used as the equipment score of the equipment to be managed.

Optionally, the forcibly offline one or more devices to be managed from each device to be managed based on the login evaluation information of each device to be managed, so that the number of online login devices of the target member account is not greater than the preset maximum login number of the target member account, including:

determining the difference between the number of the devices to be managed and the maximum login number of the target member account to obtain a first number;

selecting the first number of to-be-managed devices which are ranked backwards from the target sequence corresponding to each to-be-managed device; wherein the target sequence is: arranging the obtained sequences of the equipment to be managed according to the login evaluation degrees represented by the login evaluation information from large to small;

and forcibly downloading the target member account from the selected one or more devices to be managed.

In a second aspect, an embodiment of the present invention provides an online login device management apparatus, including:

the device searching module is used for searching the online login device of the target member account as a device to be managed;

the information determining module is used for determining login evaluation information of each device to be managed based on the device type and the login authentication condition of each device to be managed; the device type of each device is configured based on the operation authority of the device on the target member account, and the login authentication condition of each device is determined according to the login record and the verification record of the user using the device;

the forced offline module is used for forcibly offline one or more devices to be managed from the devices to be managed based on the login evaluation information of the devices to be managed, so that the number of the online login devices of the target member account is not more than the preset maximum login number of the target member account; and the log-in evaluation degree of the offline equipment is the lowest equipment to be managed in sequence.

Optionally, the information determining module is specifically configured to determine, from the devices to be managed, a device to be managed whose device type is a master device, as a first device, and determine, based on a login authentication condition of each device to be managed, a device to be managed that logs in most recently, as a second device; setting rules according to a preset login evaluation degree, and determining login evaluation information of each device to be managed according to a determination result; wherein, the preset login evaluation degree setting rule is as follows: the device type is the main device, and the login evaluation degree of the device to be managed with the login type being the latest login device is higher than the login evaluation degrees of other devices to be managed.

Optionally, the information determining module is specifically configured to, if the first device and the second device are the same device, use a first login evaluation degree as login evaluation information of the first device, and use a second login evaluation degree as login evaluation degree information of a device to be managed except the first device; if the first device and the second device are different devices, taking a first login evaluation degree as login evaluation information of the first device, taking a third login evaluation degree as login evaluation information of the second device, and taking a fourth login evaluation degree as login evaluation degree information of devices to be managed except the first device and the second device; wherein the second login evaluation degree, the third login evaluation degree and the fourth login evaluation degree are all less than the first login evaluation degree, and the fourth login evaluation degree is less than the third login evaluation degree.

Optionally, the apparatus further comprises: an information adjusting module, configured to, after the information determining module executes the step of determining login evaluation information of each to-be-managed device based on the device type and the login authentication information of each to-be-managed device, calculate, for each to-be-managed device in a plurality of to-be-managed devices having the same login evaluation information, a device score of the to-be-managed device based on the device type and the operation information of the to-be-managed device; based on the equipment score of the equipment to be managed, adjusting the login evaluation information of the equipment to be managed; and/or adjusting the login evaluation information of the equipment to be managed based on the time length of the equipment to be managed for logging in the target member account aiming at each equipment to be managed in a plurality of equipment to be managed with the same login evaluation information.

Optionally, the information adjusting module is specifically configured to determine, based on the operation information of the device to be managed, the number of times that the device to be managed executes the specified operation within a preset time period; and calculating the equipment score of the equipment to be managed based on the equipment type of the equipment to be managed and the execution times.

Optionally, the specified operation includes a login operation and a non-login operation;

the information adjusting module is specifically configured to determine a preset score corresponding to the device type of the device to be managed as a first score of the device to be managed based on a corresponding relationship between a preset device type and the preset score; determining an adjusting weight corresponding to the non-login operation executed by the equipment to be managed based on the corresponding relation between the preset non-login operation and the adjusting weight; calculating the product of the number of times of the non-login operation executed by the equipment to be managed and the corresponding adjusting weight as a second score of the equipment to be managed; determining an adjusting parameter corresponding to the login operation executed by the equipment to be managed based on the corresponding relation between the preset login operation and the adjusting parameter; calculating the difference between the determined adjusting parameter and the number of login operations executed by the equipment to be managed as an adjusting difference value; calculating the product of the number of login operations executed by the equipment to be managed and the adjustment difference value, and taking the product as a third score of the equipment to be managed; and calculating the sum of the first score, the second score and the third score to be used as the equipment score of the equipment to be managed.

Optionally, the forced offline module is specifically configured to determine a difference between the number of each device to be managed and the maximum registrable number of the target member account, so as to obtain a first number; selecting the first number of to-be-managed devices which are ranked backwards from the target sequence corresponding to each to-be-managed device; wherein the target sequence is: arranging the obtained sequences of the equipment to be managed according to the login evaluation degrees represented by the login evaluation information from large to small; and forcibly downloading the target member account from the selected one or more devices to be managed.

In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;

a memory for storing a computer program;

a processor for implementing the method steps of the first aspect when executing the program stored in the memory.

In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of the first aspect.

In the online login device management method provided by the embodiment of the invention, the online login device of the target member account is searched to serve as the device to be managed, the login evaluation information of each device to be managed is determined based on the device type and the login authentication condition of each device to be managed, and then one or more devices to be managed can be forcibly offline based on the login evaluation information of each device to be managed, so that the number of the online login devices of the target member account is not more than the preset maximum login number of the target member account. Through forcing one or more online login devices to be offline, the number of the online login devices of the target member account can be controlled within the preset maximum login number, the excessive number of the online login devices of the target member account is avoided, and therefore only a small number of login tokens need to be stored for one member account, so that the storage pressure of the server is reduced while effective use of the member account by a user is considered.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.

FIG. 1 is a flowchart illustrating an online device management method according to an embodiment of the present invention;

FIG. 2 is a flowchart illustrating another online device management method according to an embodiment of the present invention;

FIG. 3 is a schematic structural diagram of an online device management apparatus according to an embodiment of the present invention;

fig. 4 is a schematic structural diagram of an electronic device in an embodiment of the invention.

Detailed Description

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and it is also obvious for a person skilled in the art to obtain other embodiments according to the drawings.

In order to reduce the storage pressure of a server while considering effective use of a member account by a user, embodiments of the present invention provide a management method and apparatus for an online login device, and an electronic device.

First, a method for managing an online login device according to an embodiment of the present invention is described below.

The embodiment of the invention can be applied to various electronic devices, such as personal computers, servers, mobile phones and other devices with data processing capability. In addition, the method for managing the line login device provided by the embodiment of the invention can be realized in a software, hardware or software and hardware combination mode.

Optionally, in an embodiment, the embodiment of the present invention may be applied to an account management server, where the account management server may be a server for managing accounts for resource providers, and for example, the account management server may perform account management operations such as login authentication management and account authority modification management. The account management server may receive a member account login request sent by a terminal device, and after the verification passes, use the terminal device as an online login device for the member account, and generate a login token associated with the terminal device, thereby facilitating management of the online login device for the member account.

In order to avoid generating a management token managed by an online login device for each member account, an embodiment of the present invention provides an online login device management method, including:

searching online login equipment of a target member account as equipment to be managed;

determining login evaluation information of each device to be managed based on the device type and login authentication condition of each device to be managed; the device type of each device is configured based on the operation authority of the device on the target member account, and the login authentication condition of each device is determined according to the login record and the verification record of the user using the device;

forcibly offline one or more devices to be managed from the devices to be managed based on the login evaluation information of the devices to be managed, so that the number of online login devices of the target member account is not more than the preset maximum login number of the target member account; and the log-in evaluation degree of the offline equipment is the lowest equipment to be managed in sequence.

In the scheme provided by the embodiment, one or more online login devices are forcibly disconnected, the number of the online login devices of the target member account can be controlled within the preset maximum login number, the excessive number of the online login devices of the target member account is avoided, and therefore only a small number of login tokens need to be stored for one member account, so that the storage pressure of the server is reduced while the effective use of the user for the member account is considered.

As shown in fig. 1, an online login device management method provided in an embodiment of the present invention includes:

s101, searching online login equipment of a target member account as equipment to be managed;

the target member account may be any member account that needs to be managed. The online login device of the target member account is an online device for logging in the target member account, wherein the online device is a terminal device which establishes and maintains network connection with the server.

Illustratively, the terminal devices maintaining network connection with the server include a device 1, a device 2, a device 3, and a device 4, wherein the device 1 and the device 2 log in a member account 1, and the device 3 and the device 4 log in a member account 2. When the member account 1 is a target member account, the online login device of the target member account includes a device 1 and a device 2, and when the member account 2 is a target member account, the online login device of the target member account includes a device 3 and a device 4.

Optionally, the time for searching the online login device may be determined based on different usage requirements. In one implementation, each member account may be periodically used as a target member account, and an online login device for each target member account may be searched. In another implementation manner, when a new login device exists, the member account logged in on the new login device may be used as a target member account, and an online login device of the target member account is searched, where it can be understood that the searched online login device includes a device that logs in most recently.

S102, determining login evaluation information of each to-be-managed device based on the device type and login authentication condition of each to-be-managed device; the device type of each device is configured based on the operation authority of the device on the target member account, and the login authentication condition of each device is determined according to the login record and the verification record of the user using the device.

The device type may include a master device, a protection device, and the like. Generally, the master device is the device with the highest authority or the highest security set by the user, and is the device most frequently used by the user. Alternatively, the user may set manually, and one member account may set only one master device. The protection device is also called a trusted device, and is a trusted device configured by a user, and the user can manage (add, delete) the protection device on the main device.

The login authentication condition of each device is determined according to the login record and the verification record of the user using the device. The method can comprise the following steps: whether the number of times of the specified operation executed in the latest login equipment, the login duration and the preset duration is the latest. The latest login device is a member account which is closest to the current time at the time of logging in the target member account, or may be an online login device with the shortest login time. The login duration is duration for the device to log in the target member account, and the specifying operation may include at least one of the following operations: the management method comprises login operations and non-login operations, wherein the login operations can comprise any operations of logging in equipment on the equipment to be managed, such as social platform account login operations, fingerprint login operations, mobile phone number verification operations and the like, and the non-login operations can comprise any operations related to account security, such as operations of registering a target member account, operations of real-name authentication, card binding operations, payment operations, cash withdrawal operations and the like.

Optionally, in an implementation manner, the login evaluation information of each device to be managed may be: and calculating the login evaluation degree of the equipment to be managed according to the equipment type and the login authentication condition of the equipment to be managed. In short, a corresponding score calculation rule is preset in advance for each device type and each dimension included in the login authentication condition. Wherein, each dimension included in the login authentication condition comprises: whether the number of times of the specified operation executed in the latest login equipment, the login duration and the preset duration is the latest.

For example, if the device type of the device to be managed is the master device, 100 is added, and if the device type of the device to be managed is the protection device, 80 is added. And if the equipment to be managed is the latest login equipment, adding 90 according to the dimension of whether the login authentication condition is the latest login equipment. For the dimension of the number of times of the executed specified operation in the preset duration, the weight corresponding to each specified operation can be preset, and then the product of the number of times of the operation of each specified operation and the weight corresponding to the specified operation is calculated.

Optionally, in another implementation manner, the login evaluation information of each to-be-managed device may also be a ranking number obtained by ranking the login evaluation degrees of the to-be-managed devices according to the device types and the login authentication conditions of the to-be-managed devices. If a sorting rule can be preset, sorting the devices to be managed according to the sorting rule and the device type and the login authentication condition of each device to be managed to obtain a sorting serial number of each device to be managed as login evaluation information of each device to be managed. Optionally, the earlier the sorting needs to be, the greater the login evaluation degree of the device to be managed indicated by the login evaluation information is.

In one implementation, step S102 may be implemented as the following steps, including step 1 to step 2:

step 1: determining a device to be managed with the device type as a main device from all devices to be managed as a first device, and determining a newly logged device to be managed as a second device based on the login authentication condition of each device to be managed;

screening a first device and a second device from each device to be managed based on the device type and the login authentication condition of the device type of each device to be managed; the device type of the first device is a main device, and the login type of the second device is a latest login device;

wherein, the first device and the second device can be respectively screened out from the devices to be managed. Alternatively, the first device and the second device may be the same, as opposed to being different.

Step 2: setting rules according to a preset login evaluation degree, and determining login evaluation information of each device to be managed according to a determination result; wherein, the preset login evaluation degree setting rule is as follows: the login evaluation degree of the device to be managed with the device type as the main device and the login type as the latest login device is higher than the login evaluation degrees of other devices to be managed.

The login evaluation degree setting rule may be determined according to experience and requirements, and optionally, the predetermined login evaluation degree setting rule may be: the login evaluation degree of the main device is the highest, and the login evaluation degree of the latest login device is the second. That is, when each device to be managed includes a master device, the login evaluation degree of the master device is the highest. When each device to be managed comprises the main device and the latest login device, the login evaluation degree of the main device is the highest, and the login evaluation degree of the latest login device is smaller than that of the main device and higher than that of other devices to be managed. And when each device to be managed only comprises the latest login device and does not comprise the main device, the login evaluation degree of the latest login device is highest.

In one implementation manner, if the first device and the second device are the same device, the first login evaluation degree is used as login evaluation information of the first device, and the second login evaluation degree is used as login evaluation degree information of a device to be managed except the first device;

if the first equipment and the second equipment are different equipment, taking the first login evaluation degree as login evaluation information of the first equipment, taking the third login evaluation degree as login evaluation information of the second equipment, and taking the fourth login evaluation degree as login evaluation degree information of equipment to be managed except the first equipment and the second equipment;

the second login evaluation degree, the third login evaluation degree and the fourth login evaluation degree are all smaller than the first login evaluation degree, and the fourth login evaluation degree is smaller than the third login evaluation degree.

S103, forcibly offline one or more devices to be managed from the devices to be managed based on the login evaluation information of the devices to be managed, so that the number of online login devices of the target member account is not more than the preset maximum login number of the target member account; and the log-in evaluation degree of the offline equipment is the lowest equipment to be managed in sequence.

The preset maximum login number of the target member account is set according to requirements and experience, for example, the preset maximum login number may be 5.

Because the login evaluation information of each device to be managed is information indicating the login evaluation degree of the device to be managed, the relative size of the login evaluation degree of each device to be managed can be determined according to the login evaluation information of the device to be managed, namely the device to be managed with the largest login evaluation degree to the device to be managed with the smallest login evaluation degree are determined from the devices to be managed, and therefore one or more devices to be managed which need to be forcibly offline can be further screened.

And the login evaluation degree of the one or more devices to be managed is the lowest of the devices to be managed in sequence. For example, if the login evaluation information is the login evaluation degree, the one or more devices to be managed may be the devices whose login evaluation degrees are the lowest devices among the devices to be managed in sequence. If the login evaluation information is a sequence number, the one or more devices to be managed may be: and the sequencing sequence numbers are the last one or more devices to be managed in sequence.

In the scheme provided by the embodiment, one or more online login devices are forcibly disconnected, the number of the online login devices of the target member account can be controlled within the preset maximum login number, the excessive number of the online login devices of the target member account is avoided, and therefore only a small number of login tokens need to be stored for one member account, so that the storage pressure of the server is reduced while the effective use of the user for the member account is considered.

Optionally, after the step S102, the method for managing an online login device according to another embodiment of the present invention may include:

in a first mode, aiming at each device to be managed in a plurality of devices to be managed with the same login evaluation information, based on the device type and the operation information of the device to be managed, calculating the device score of the device to be managed; based on the equipment score of the equipment to be managed, adjusting the login evaluation information of the equipment to be managed;

optionally, the number of times that each to-be-managed device executes the specified operation within the preset time length may be determined based on the operation information of each to-be-managed device; and calculating the equipment score of each equipment to be managed based on the equipment type of each equipment to be managed and the execution times of the specified operation.

Optionally, in a case that the designated operation includes a login operation and a non-login operation, the calculating a device score of each device to be managed based on the device type of each device to be managed and the execution number of the designated operation may include:

determining a preset score corresponding to the equipment type of the equipment to be managed as a first score of the equipment to be managed based on a corresponding relation between a preset equipment type and the preset score;

determining an adjusting weight corresponding to the non-login operation executed by the equipment to be managed based on the corresponding relation between the preset non-login operation and the adjusting weight; calculating the product of the number of times of the non-login operation executed by the equipment to be managed and the corresponding adjusting weight as a second score of the equipment to be managed;

determining an adjusting parameter corresponding to the login operation executed by the equipment to be managed based on the corresponding relation between the preset login operation and the adjusting parameter; calculating the difference between the determined adjusting parameter and the number of login operations executed by the equipment to be managed as an adjusting difference value; calculating the product of the number of login operations executed by the equipment to be managed and the adjustment difference value as a third score of the equipment to be managed;

and calculating the sum of the first score, the second score and the third score as the equipment score of the equipment to be managed.

Optionally, in an implementation manner, for each device to be managed, the log-in evaluation degree score of the device to be managed is calculated according to the following formula:

z=(a+b+c+d+e)×10+(x+y)×20-f×(f-10)-g×(g-10)-h×(h-20)

wherein z is the login evaluation degree score of the equipment to be managed; when the device to be managed is a master device, a is 1, otherwise a is 0; when the equipment to be managed is protection equipment, b is equal to 1, otherwise, b is equal to 0; when the operation of registering the member account is executed on the device to be managed within the preset time length, c is 1, otherwise c is 0; when the real name authentication operation is executed on the device to be managed within the preset time length, d is 1, otherwise d is 0; when the card binding operation is executed on the equipment to be managed within a preset time length, e is 1, otherwise, e is 0; f is the number of times of executing the social platform account login operation on the to-be-managed device within a preset time length; g is the number of times of executing fingerprint login on the equipment to be managed within the preset time length; h is the number of times of executing the mobile phone number verification on the equipment to be managed within the preset time length; x is the number of times of executing payment operation on the device to be managed within a preset time length; and y is the number of times of performing cash withdrawal operation on the device to be managed within the preset time length.

In the second mode, for each to-be-managed device in a plurality of to-be-managed devices with the same login evaluation information, the login evaluation information of the to-be-managed device is adjusted based on the time length for the to-be-managed device to login the target member account.

The longer the time length of logging in the target member account is, the lower the logging evaluation degree represented by the logging evaluation information of the device is, and the shorter the time length of logging in the target member account is, the higher the logging evaluation degree represented by the logging evaluation information of the device is. Furthermore, the login evaluation information of a plurality of devices to be managed with the same login evaluation information can be adjusted according to the time length of the devices to be managed to login the target member account.

In the scheme provided by the embodiment, one or more online login devices are forcibly disconnected, the number of the online login devices of the target member account can be controlled within the preset maximum login number, the excessive number of the online login devices of the target member account is avoided, and therefore only a small number of login tokens need to be stored for one member account, so that the storage pressure of the server is reduced while the effective use of the user for the member account is considered.

Based on the embodiment of fig. 1, as shown in fig. 2, an online login device management method provided by another embodiment of the present invention, in S103, may include:

S103A, determining the difference between the number of each device to be managed and the maximum login number of the target member account to obtain a first number;

determining a first number of devices to be managed with low login evaluation degree from each device to be managed as untrusted devices based on the login evaluation information of each device to be managed; the first number is larger than or equal to the difference between the number of the online login devices of the target member account and the maximum login number of the target member account;

the first number is greater than the difference between the number of online login devices of the target member account and the maximum login number of the target member account, for example, the number of online login devices of the target member account is 10, and the maximum login number of the target member account is 8, then the difference between the number of online login devices of the target member account and the maximum login number of the target member account is 2, and then the first number is greater than or equal to 2.

S103B, selecting a first number of to-be-managed devices in a later sequence from the target sequences corresponding to the to-be-managed devices; wherein the target sequence is: arranging the obtained sequences of the equipment to be managed according to the login evaluation degrees represented by the login evaluation information from large to small;

the devices to be managed can be sorted according to the login evaluation information from high to low to obtain a target sequence, and then the first number of devices to be managed after sorting is selected from the target sequence corresponding to the devices to be managed.

And S103C, forcing the offline target member account from the selected one or more devices to be managed.

And the target member account is forcibly disconnected from the selected one or more devices to be managed, namely the target member account is forcibly logged out from the selected one or more devices to be managed.

In the scheme provided by the embodiment, one or more online login devices are forcibly disconnected, the number of the online login devices of the target member account can be controlled within the preset maximum login number, the excessive number of the online login devices of the target member account is avoided, and therefore only a small number of login tokens need to be stored for one member account, so that the storage pressure of the server is reduced while the effective use of the user for the member account is considered.

Optionally, after at least one device to be managed is forcibly offline from each device to be managed, a logout message may be sent to the at least one device to be managed, and the user is prompted to purchase a member account.

Corresponding to the above method for managing online login equipment, as shown in fig. 3, an embodiment of the present invention further provides an online login equipment management apparatus, including:

the device searching module 301 is configured to search for an online login device of a target member account as a device to be managed;

an information determining module 302, configured to determine login evaluation information of each to-be-managed device based on a device type and a login authentication condition of each to-be-managed device; the device type of each device is configured based on the operation authority of the device on the target member account, and the login authentication condition of each device is determined according to the login record and the verification record of the user using the device;

a forced logout module 303, configured to force logout of one or more devices to be managed from each device to be managed based on the login evaluation information of each device to be managed, so that the number of online login devices of the target member account is not greater than a preset maximum login number of the target member account; and the log-in evaluation degree of the offline equipment is the lowest equipment to be managed in sequence.

Optionally, the information determining module is specifically configured to determine, from the devices to be managed, a device to be managed whose device type is a master device, as a first device, and determine, based on a login authentication condition of each device to be managed, a device to be managed that logs in most recently, as a second device; setting rules according to a preset login evaluation degree, and determining login evaluation information of each device to be managed according to a determination result; wherein, the preset login evaluation degree setting rule is as follows: the device type is the main device, and the login evaluation degree of the device to be managed with the login type being the latest login device is higher than the login evaluation degrees of other devices to be managed.

Optionally, the information determining module is specifically configured to, if the first device and the second device are the same device, use the first login evaluation degree as login evaluation information of the first device, and use the second login evaluation degree as login evaluation degree information of a device to be managed other than the first device; if the first equipment and the second equipment are different equipment, taking the first login evaluation degree as login evaluation information of the first equipment, taking the third login evaluation degree as login evaluation information of the second equipment, and taking the fourth login evaluation degree as login evaluation degree information of equipment to be managed except the first equipment and the second equipment; the second login evaluation degree, the third login evaluation degree and the fourth login evaluation degree are all smaller than the first login evaluation degree, and the fourth login evaluation degree is smaller than the third login evaluation degree.

Optionally, the apparatus further comprises: the information adjusting module is used for calculating the equipment score of the equipment to be managed based on the equipment type and the operation information of the equipment to be managed aiming at each equipment to be managed in a plurality of equipment to be managed with the same login evaluation information after the information determining module executes the step of determining the login evaluation information of each equipment to be managed based on the equipment type and the login authentication information of each equipment to be managed; based on the equipment score of the equipment to be managed, adjusting the login evaluation information of the equipment to be managed; and/or adjusting the login evaluation information of the equipment to be managed based on the time length of the equipment to be managed for logging in the target member account aiming at each equipment to be managed in a plurality of equipment to be managed with the same login evaluation information.

Optionally, the information adjusting module is specifically configured to determine, based on the operation information of the device to be managed, the number of times that the device to be managed executes the specified operation within a preset time period; and calculating the equipment score of the equipment to be managed based on the equipment type and the execution times of the equipment to be managed.

Optionally, the designated operation includes a login operation and a non-login operation;

the information adjusting module is specifically used for determining a preset score corresponding to the equipment type of the equipment to be managed as a first score of the equipment to be managed based on a corresponding relation between a preset equipment type and the preset score; determining an adjusting weight corresponding to the non-login operation executed by the equipment to be managed based on the corresponding relation between the preset non-login operation and the adjusting weight; calculating the product of the number of times of the non-login operation executed by the equipment to be managed and the corresponding adjusting weight as a second score of the equipment to be managed; determining an adjusting parameter corresponding to the login operation executed by the equipment to be managed based on the corresponding relation between the preset login operation and the adjusting parameter; calculating the difference between the determined adjusting parameter and the number of login operations executed by the equipment to be managed as an adjusting difference value; calculating the product of the number of login operations executed by the equipment to be managed and the adjustment difference value as a third score of the equipment to be managed; and calculating the sum of the first score, the second score and the third score as the equipment score of the equipment to be managed.

Optionally, the forced offline module is specifically configured to determine a difference between the number of each device to be managed and the maximum registrable number of the target member account, so as to obtain a first number; selecting the first number of to-be-managed devices which are ranked backwards from the target sequence corresponding to each to-be-managed device; wherein the target sequence is: arranging the obtained sequences of the equipment to be managed according to the login evaluation degrees represented by the login evaluation information from large to small; and forcing the offline target member account number from the selected one or more devices to be managed.

In the scheme provided by the embodiment, one or more online login devices are forcibly disconnected, the number of the online login devices of the target member account can be controlled within the preset maximum login number, the excessive number of the online login devices of the target member account is avoided, and therefore only a small number of login tokens need to be stored for one member account, so that the storage pressure of the server is reduced while the effective use of the user for the member account is considered.

An embodiment of the present invention further provides an electronic device, as shown in fig. 4, including a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404,

a memory 403 for storing a computer program;

the processor 401 is configured to implement the steps of the online device management method provided by the embodiment of the present invention when executing the program stored in the memory 403.

The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.

The communication interface is used for communication between the terminal and other equipment.

The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.

The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.

In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the online login device management method in any of the above embodiments.

In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the online login device management method according to any one of the above embodiments.

In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.

It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于智能回单机的身份认证方法、设备及介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类