CN115001747B - Equipment control method, device, electronic equipment and storage medium - Google Patents

Equipment control method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115001747B
CN115001747B CN202210467925.1A CN202210467925A CN115001747B CN 115001747 B CN115001747 B CN 115001747B CN 202210467925 A CN202210467925 A CN 202210467925A CN 115001747 B CN115001747 B CN 115001747B
Authority
CN
China
Prior art keywords
devices
account
target
target account
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210467925.1A
Other languages
Chinese (zh)
Other versions
CN115001747A (en
Inventor
赵鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202210467925.1A priority Critical patent/CN115001747B/en
Publication of CN115001747A publication Critical patent/CN115001747A/en
Application granted granted Critical
Publication of CN115001747B publication Critical patent/CN115001747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the application provides a device control method, a device, an electronic device and a storage medium, wherein the device control method comprises the following steps: when a preset triggering condition is monitored, acquiring the number of devices corresponding to a plurality of devices logging in the target account; when the number of the devices is larger than a preset threshold, acquiring priority orders corresponding to the devices respectively, wherein the priority orders are positively correlated with importance parameters of the devices; at least one device is controlled to exit the login target account according to the order of priority from low to high. According to the method and the device, the equipment with high importance parameters can be prevented from being logged out, the number of times that the user logs in the target account again is reduced, user experience can be improved, and because the logged-out equipment is low in importance parameters, the possibility that the user uses the logged-out equipment to log in the target account again is low, the number of times that the equipment management server is accessed and the number of times that login information is issued are reduced, and therefore the equipment management cost of target applications can be reduced.

Description

Equipment control method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of device management technologies, and in particular, to a device control method, an apparatus, an electronic device, and a storage medium.
Background
A user may log in to the same application on multiple devices through the same account. Particularly, when the account is a member account of the application program, compared with a non-member account, the member account can enjoy the use rights of member resources provided by the resource providing platform of the application program, and users often log in the member account on a plurality of devices, and meanwhile, the account can be shared for other people to use, so that the number of devices logging in the account is more. For a member account, the resource providing platform of the application program needs to generate and store a login token associated with a device logging in the member account, and when a device applies for using the member resource, the resource providing platform of the application program needs to judge whether the device has the login token associated with the member account, and the more devices corresponding to the member account, the more login tokens the resource providing platform of the application program needs to store. Therefore, in order to reduce the storage pressure of the resource providing platform of the application program, the number of devices that are simultaneously logged in by a single account, especially a member account, is generally limited.
When the number of devices of the login account exceeds the limit number corresponding to the application program, the current processing mode is to log out the device with the earliest login time from the devices logged in the account. However, for the user, the logged-out device may be a common device of the user, at this time, the common device may be logged out frequently, and the user using the common device needs to log in the account again frequently, which may cause a decrease in user experience and an increase in device management cost.
Disclosure of Invention
The embodiment of the application provides a device control method, a device, electronic equipment and a storage medium, which are used for solving the problems that in the prior art, when the number of devices of a login account exceeds the limit number, the device with the earliest login time is withdrawn from the login account, so that user experience is reduced, and the device management cost is increased.
In a first aspect of an embodiment of the present application, there is provided an apparatus control method, including:
when a preset triggering condition is monitored, acquiring the number of devices corresponding to a plurality of devices of a login target account, wherein the target account is one application account of a login target application;
when the number of the devices is larger than a preset threshold, acquiring priority orders corresponding to the devices respectively, wherein the priority orders are positively correlated with importance parameters of the devices;
controlling at least one device to log out of the target account according to the order of the priorities from low to high;
and after at least one device exits from logging in the target account, the number of devices corresponding to the devices logging in the target account is equal to the preset threshold.
In a second aspect of the embodiments of the present application, there is also provided an apparatus control device, including:
The first acquisition module is used for acquiring the number of the devices corresponding to the plurality of devices of the login target account when a preset trigger condition is monitored, wherein the target account is one application account of the login target application;
the second acquisition module is used for acquiring priority orders corresponding to the plurality of devices respectively when the number of the devices is larger than a preset threshold, wherein the priority orders are positively related to importance parameters of the devices;
the control module is used for controlling at least one device to log out of the target account number according to the order from low to high of the priority order;
and after at least one device exits from logging in the target account, the number of devices corresponding to the devices logging in the target account is equal to the preset threshold.
In a third aspect of the embodiments of the present application, there is also provided an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the device control method described above.
In a fourth aspect of the embodiments of the present application, there is also provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the above-described device control method.
In a fifth aspect of embodiments of the present application, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements the above-described device control method.
The embodiment of the application at least comprises the following technical effects:
according to the technical scheme, when the number of the devices corresponding to the devices logging in the target account is larger than a preset threshold, priority orders corresponding to the devices are obtained, the priority orders are positively correlated with importance parameters of the devices, at least one device is controlled to log out of the target account according to the order from low to high of the priority orders, and the number of the devices corresponding to the devices logging in the target account is equal to the preset threshold. The method and the device can prevent the equipment with high importance parameters from being logged out, reduce the times of logging in the target account again by using the logged-out equipment by a user, thereby improving user experience, and simultaneously, because the logged-out equipment is the equipment with low importance parameters, the possibility of logging in the target account again by using the logged-out equipment by the user is lower, thereby reducing the accessed times of the equipment management server and the times of issuing login information by the equipment management server, and further reducing the equipment management cost of target application.
Drawings
In order to more clearly illustrate the embodiments of the present application 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 diagram of a system architecture as applied in an embodiment of the present application;
fig. 2 is a schematic flow chart of a device control method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an apparatus control device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present application, it should be understood that the sequence numbers of the following processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In order to describe the device control method provided in the embodiment of the present application, first, a system architecture diagram applied in the embodiment of the present application is introduced, as shown in fig. 1, where the system architecture diagram includes: the device management server, the target application, a plurality of application accounts corresponding to the target application and the device logging in each application account. For each application account, a plurality of devices can log in the application account at the same time. The device control method provided by the embodiment of the application is applied to the device management server, and the device management server is used for managing the devices logging in each application account. Specifically, for each application account, the device management server may obtain the number of devices corresponding to the devices logging in the application account, and when the number of devices is greater than a preset threshold, control at least one device to log out of the application account, and after at least one device logs out of the application account, the number of devices corresponding to the devices logging in the application account is equal to the preset threshold.
An embodiment of the present application provides a device control method, as shown in fig. 2, the method may include:
step 201, when a preset trigger condition is monitored, obtaining the number of devices corresponding to a plurality of devices of a login target account, where the target account is one of application accounts of the login target application.
Multiple users may log in the target application on multiple devices simultaneously using the same application account, where the target account is one of the application accounts that log in the target application, which may be a video-type application, a music-type application, a reading-type application, a chat-type application, an office-type application, etc. Generally, the device management server corresponding to the target application limits the number of devices logged in simultaneously by the same application account, so when a preset trigger condition is monitored, the number of devices corresponding to a plurality of devices logged in the target account needs to be obtained. The preset trigger condition may be that the user performs a certain operation, or that a preset time is reached.
It should be noted that, the device management server may monitor the device login condition of each application account corresponding to the target application in real time, and set a database for recording the number of login devices of each application account. When the device management server monitors that the device login number of a certain application account is changed, the device management server further stores the device number corresponding to the application account in a database. And then, when the device management server monitors a preset trigger condition, the device management server can acquire the number of devices corresponding to the plurality of devices logging in the target account through inquiring the database.
Specifically, the device for logging in the application account may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra mobile personal computer (ultra mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a personal computer (personal computer, PC), television (TV), etc., and the embodiments of the present application are not limited in particular.
And 202, when the number of the devices is greater than a preset threshold, acquiring priority orders corresponding to the devices respectively, wherein the priority orders are positively correlated with importance parameters of the devices.
The preset threshold is an upper limit value of the number of devices which are simultaneously logged in by the same application account and are set by the device management server corresponding to the target application, that is, the number of devices which are logged in the target account needs to be smaller than or equal to the preset threshold, and when the number of devices is larger than the preset threshold, the device management server corresponding to the target application can log out of the device with the number corresponding to the difference value between the number of devices and the preset threshold, and specifically, the preset threshold is an integer larger than or equal to 1. For example, the number of devices logging in the target account is five, and the upper limit value of the number of devices simultaneously logging in the same application account is three, so that two devices need to be logged out of the target account.
The plurality of devices logging in the target account number can be ranked according to the importance parameters of the devices, and the priority orders corresponding to the plurality of devices are determined, wherein the priority orders are positively correlated with the importance parameters of the devices, and the higher the importance parameters of the devices are, the higher the priority orders corresponding to the importance parameters of the devices are, and the lower the importance parameters of the devices are, the lower the priority orders corresponding to the importance parameters of the devices are.
Specifically, the importance parameter corresponding to the device may represent the importance of the device to the target account, and may be calculated according to a preset calculation rule.
Step 203, controlling at least one device to log out of the target account number according to the order of the priority from low to high;
and after at least one device exits from logging in the target account, the number of devices corresponding to the devices logging in the target account is equal to the preset threshold.
And when the number of the devices corresponding to the devices logging in the target account is larger than a preset threshold, sequencing the devices logging in the target account from low to high according to the priority order, and controlling at least one device to log out of the target account. The number of the exit devices exiting from the login target account is equal to the difference value between the number of the devices corresponding to the plurality of devices logging in the target account and a preset threshold value.
Specifically, when the user logs in the target account number each time, the user needs to access the device management server of the target application, and if the user logs in by means of the short message authentication code, the device management server of the target application also needs to send the short message authentication code to the user terminal. In this embodiment of the present application, when it is detected that the number of devices logging in the target account is greater than a preset threshold, a priority order corresponding to each of the plurality of devices is obtained, and at least one device is controlled to log out of the target account according to the order of the priority orders from low to high. Therefore, the device which is logged out is the device with lower priority, namely the device with low importance parameter, so that the possibility that the user uses the device which is logged out to log in the target account again is lower, the times of accessing the device management server and the times of the device management server for issuing login information are reduced, and the cost of device management corresponding to the target application can be reduced.
According to the implementation process, when the number of the devices corresponding to the devices logging in the target account is larger than a preset threshold, priority orders corresponding to the devices are obtained, the priority orders are positively correlated with importance parameters of the devices, at least one device is controlled to log out of the target account according to the order from low to high of the priority orders, and the number of the devices corresponding to the devices logging in the target account is equal to the preset threshold. The method and the device can prevent the equipment with high importance parameters from being logged out, reduce the times of logging in the target account again by using the logged-out equipment by a user, thereby improving user experience, and simultaneously, because the logged-out equipment is the equipment with low importance parameters, the possibility of logging in the target account again by using the logged-out equipment by the user is lower, thereby reducing the accessed times of the equipment management server and the times of issuing login information by the equipment management server, and further reducing the equipment management cost of target application.
In an optional embodiment of the present application, before acquiring the priority orders corresponding to the plurality of devices, the method further includes:
determining a first influence parameter corresponding to each device according to operation sets respectively corresponding to the devices after logging in the target account;
determining a second influence parameter corresponding to each device according to the preset account number and the account number corresponding to the application account of each device for logging in the target application in an accumulated manner; the preset account number is the account number corresponding to the application account number which allows a single device to log in the target application in an accumulated mode at most;
and determining importance parameters of each device according to the first influence parameters and the second influence parameters of each device.
Specifically, there may be multiple devices that log in the target account, and because the user logs in each device through the target account, the importance of the device to the user may be converted into the importance of the device to the target account. To characterize the importance of each device to the target account, an importance parameter is set, which may be determined by two influencing parameters. The first influence parameter of the importance parameter may be determined by operation sets corresponding to a plurality of devices logging in the target account after logging in the target account, and represents the influence of the operation of the devices after logging in the target account on the importance parameter; the second influence parameter of the importance parameter is determined by the number of the application accounts which allow the single device to accumulatively log in the target application at most and the number of the application accounts which each device accumulatively log in the target application corresponds to, and the influence of the number of the application accounts of the target application logged in by the device on the importance parameter is represented.
The above implementation process of the present application determines the importance parameter of each device according to the first influence parameter and the second influence parameter of each device. The importance parameters of the equipment to the target account can be determined from various influencing angles, and the importance parameters can be further used for more reasonably and accurately representing the importance of the equipment to the target account.
How to determine the first influencing parameter and the second influencing parameter, respectively, will be described below.
In an optional embodiment of the present application, determining, according to operation sets respectively corresponding to the plurality of devices after logging in the target account, a first influence parameter corresponding to each device includes:
acquiring a corresponding operation set of each device after logging in the target account;
determining a weight value of each operation according to the importance of each operation in the operation set;
according to the weight value of each operation, determining the weight value of the operation set corresponding to each device;
determining the sum of the weighted values of the operation sets corresponding to all the devices currently logged in the target account according to the weighted value of the operation set corresponding to each device;
and determining a first influence parameter corresponding to each device according to the ratio of the weighted value of the operation set corresponding to each device to the sum of the weighted values of the operation sets corresponding to all devices currently logged in the target account.
In particular, the first influencing parameter may enable determining the parameter from the point of view of a specific operation performed by the device after logging in the target account number. And acquiring a corresponding operation set of each device logged in the target account after logging in the target account. The operation set comprises a plurality of operations executed by the device and the execution times of each operation. The operations may be registering, logging in, binding a cell phone, modifying a password, modifying a nickname, modifying an avatar, binding a bank card, purchasing a member, a balance experience, an electronic commerce purchase, and the like.
Specifically, an operation set which can be executed by all users after logging in an application account corresponding to the target application is stored on a device management server corresponding to the target application, each operation in the operation set is ordered according to importance according to a preset rule, and a weight value positively related to the importance of each operation is set for each operation. After obtaining the operation set corresponding to each device after logging in the target account, determining the weighting value of the operation set corresponding to each device according to the weighting value corresponding to each operation. Specifically, the weighted value is a sum of the weighted value of each operation in the operation set multiplied by the execution number of the operation.
And after determining the weighted value of the operation set corresponding to each device, summing the weighted values to determine the sum of the weighted values of the operation sets corresponding to all devices currently logged in the target account. For each device, the first influence parameter is equal to the ratio of the weighted value of the operation set corresponding to each device to the sum of the weighted values of the operation sets corresponding to all devices currently logged in to the target account.
The above implementation process of the present application, the difference of the first influencing parameters between the multiple devices logging in the target account is determined by the specific operation performed by the devices after logging in the target account. For different devices, the user may have a larger difference in the operations performed after logging into the target account, for example, for a device commonly used by the user, the proportion of operations having a higher importance among the operations performed may be higher and the number of operations performed may be greater than that of a device not commonly used by the user. Therefore, by acquiring the operation set corresponding to each device after logging in the target account, the first influence parameter corresponding to the importance parameter of the device to the target account can be determined.
In an optional embodiment of the present application, determining, according to a preset account number and an account number corresponding to an application account of each device for logging in the target application, a second influence parameter corresponding to each device includes:
acquiring the preset account number and the account number corresponding to the application account of each device for accumulating login to the target application;
and calculating the preset account number and the account number corresponding to the application account number of each device for accumulating and logging in the target application according to a preset calculation rule, and determining a second influence parameter corresponding to each device.
Specifically, the preset account number is at most the account number corresponding to the application account number that allows a single device to log in the target application in an accumulated manner, and the preset account number may be an upper limit value preset by the device management server of the target application, so that for each device that logs in the target account number, the corresponding preset account number is the same.
The target account is only one of the application accounts corresponding to the target application, and for a plurality of devices logging in the target account, the more the number of the application accounts corresponding to the target application is accumulated, the lower the importance of the target account for the device is, and conversely, the less the number of the application accounts corresponding to the target application is accumulated, the higher the importance of the target account for the device is.
Specifically, the second influencing parameter is calculated by the following formula:
wherein S is 2 For the second influencing parameter, T 1 For the preset account number, T 2 And accumulating the account number corresponding to the application account number logged in the target application for each device. T in the formula 2 +1 is to avoid denominator 0.
The second influence parameter calculated in the mode is in negative correlation with the account number corresponding to the application account number of each device for accumulating and logging in the target application. The larger the number of the application accounts corresponding to the application accounts of the target application is, the lower the importance of the target account to the equipment is, and the smaller the second influence parameter is; conversely, the smaller the number of the application accounts corresponding to the target application in which each device is logged in, the higher the importance of the target account to the device, and the larger the second influence parameter. Thus, the second influencing parameter and the importance of the target account number to the device are in a positive correlation.
According to the implementation process, parameters can be determined from the angle of the account number of the application account corresponding to the target application which is accumulated and logged in by the device through the preset account number and the second influence parameter determined by the account number corresponding to the application account which is accumulated and logged in by each device. The difference of the second influencing parameters among the devices logging in the target account is determined by the number of application accounts corresponding to the target application which are accumulated and logged in by the devices. For different devices, the number of application accounts corresponding to the logged target application has a certain difference, and the larger the number is, the less important the target account is for the device, and the lower the importance of the device for the target account can be correspondingly determined. Therefore, by acquiring the preset account number and the account number corresponding to the application account number of each device for logging in the target application in an accumulated manner, the second influence parameter corresponding to the importance parameter of the device to the target account number can be determined.
In summary, the importance degree of the device to the target account may be represented according to the importance degree parameter determined by the first influence parameter and the second influence parameter.
Based on the above embodiments, the device management server corresponding to the target application determines the importance parameter of each device logging in to the target application. Specifically, the device management server may store importance parameters of each device in a device database corresponding to the target account number. When the importance parameters of the device logging in the target account number need to be acquired, the importance parameters can be directly acquired from the device database corresponding to the target account number.
In an optional embodiment of the present application, the determining, according to the first influence parameter and the second influence parameter of each device, an importance parameter of each device includes:
determining a weight value corresponding to the first influence parameter and a weight value corresponding to the second influence parameter;
for each device, determining a weighted value of the first influence parameter and the second influence parameter of the device according to the weighted value corresponding to the first influence parameter and the weighted value corresponding to the second influence parameter;
and determining a weighted value corresponding to each device as an importance parameter corresponding to the device.
Specifically, after determining the first influence parameter and the second influence parameter corresponding to each device, it is required to determine the weight value corresponding to the first influence parameter and the weight value corresponding to the second influence parameter, where the weight values of the two influence parameters may be preset according to experience (for example, the weight value of the first influence parameter may be set to 0.6 and the weight value of the second influence parameter may be set to 0.4), and when determining the importance parameter of the device, the method may be directly applied, and for each device, the weight values of the first influence parameter and the second influence parameter of the device, that is, the importance parameter of the device may be determined according to the weight value corresponding to the first influence parameter and the weight value corresponding to the second influence parameter (for example, in the case that the weight value of the first influence parameter is 0.6 and the weight value of the second influence parameter is 0.4, the importance parameter=0.6×the first influence parameter+0.4×the second influence parameter).
According to the implementation process, the weighted values of the first influence parameter and the second influence parameter are determined to be importance parameters according to the first influence parameter and the second influence parameter of each device and the weighted values respectively corresponding to the first influence parameter and the second influence parameter. The importance parameters of the equipment to the target account can be determined from various influencing angles, and the importance parameters can be further used for more reasonably and accurately representing the importance of the equipment to the target account.
In an optional embodiment of the present application, the acquiring a priority order corresponding to each of the plurality of devices includes:
obtaining importance parameters corresponding to the devices respectively from a device database corresponding to the target account, wherein the importance parameters corresponding to each device logging in the target account are stored in the device database;
and determining priority orders corresponding to the plurality of devices according to the importance parameters corresponding to the plurality of devices respectively.
Specifically, the user may select to log in or log out the target account on various devices, so that the device logged in to the target account is changed at any time, and then the importance parameter for the device corresponding to the target account may be stored on the device management server of the target application. When the number of the devices corresponding to the devices logging in the target account is larger than a preset threshold, the devices exceeding the preset threshold are required to log out of the target account. The device that exits the login target account may be at least one device of the plurality of devices of the login target account that has a lower importance parameter. At this time, importance parameters corresponding to a plurality of devices respectively may be obtained from a device database corresponding to the target account, and priority orders corresponding to the plurality of devices respectively may be determined. Specifically, the obtained importance parameters corresponding to the devices may be ranked from high to low, and then, according to the ranking result, the priority order corresponding to the devices is determined, for example, the devices logging in the target account are respectively: the device 1, the device 2, the device 3 and the device 4, wherein the importance parameter of the device 1 is 20, the importance parameter of the device 2 is 50, the importance parameter of the device 3 is 40, and the importance parameter of the device 4 is 60, and then the sorting result after sorting according to the importance parameter from high to low is as follows: device 4, device 2, device 3, device 1. From the sorting result, it can be determined that the priority order of the device 4 is 1, the priority order of the device 2 is 2, the priority order of the device 3 is 3, and the priority order of the device 1 is 4.
According to the implementation process, the importance parameters respectively corresponding to the plurality of devices logging in the target device are obtained from the device database corresponding to the target account, so that the priority order respectively corresponding to the plurality of devices is determined. Therefore, when the number of the devices corresponding to the devices logging in the target account is larger than a preset threshold, the importance parameter of each device can be quickly obtained from the device database corresponding to the target account, and the priority order of each device is determined, so that the devices can be managed more efficiently.
In an optional embodiment of the present application, the method further comprises:
when the preset updating time arrives, determining importance parameters corresponding to each device logging in the target account again;
and updating the importance parameters corresponding to each device in the device database corresponding to the target account according to the determined importance parameters corresponding to each device.
Specifically, the importance parameters of the devices logging in the target account are stored in the device database corresponding to the target account, the importance parameters are determined according to a first influence parameter and a second influence parameter, the first influence parameter is determined by operation sets respectively corresponding to a plurality of devices after logging in the target account, and the second influence parameter is determined by the number of accounts corresponding to application accounts which allow a single device to log in the target application in an accumulated manner at most and the number of accounts corresponding to application accounts which each device logs in the target application in an accumulated manner. Therefore, the importance parameter may change according to the number of devices corresponding to the devices logging in the target account, the operations performed by each device after logging in the target account, and the changes of other application accounts of whether the devices log in the target application. Therefore, the importance parameters corresponding to each device in the device database corresponding to the target account number need to be updated regularly. Optionally, a preset update time may be set, and when the time arrives, the importance parameter corresponding to each device logged in the target account is redetermined, and the importance parameter corresponding to each device in the device database corresponding to the target account is updated. For example, the preset update time may be set to 24 points per day or 24 points per monday, and the specific preset update time may be determined according to the user use situation of the target application, which is not specifically limited in this application.
According to the implementation process, when the preset updating time arrives, the importance parameters corresponding to each device in the device database corresponding to the target account are updated, so that the importance of the device to the target account can be truly reflected by the importance parameters corresponding to the devices stored in the device database.
In an optional embodiment of the present application, when a preset trigger condition is detected, obtaining the number of devices corresponding to the plurality of devices logging in the target account includes:
when detecting that equipment logs in the target account, determining that the preset triggering condition is monitored, and acquiring the number of equipment corresponding to a plurality of pieces of equipment logging in the target account; and/or
And when the preset detection time arrives, determining that the preset triggering condition is monitored, and acquiring the number of the devices corresponding to the plurality of devices logged in the target account.
Specifically, the device management server corresponding to the target application sets an upper limit value of the number of devices simultaneously logged in by the same application account, namely the preset threshold value. Therefore, the number of the devices corresponding to the devices logging in the target account needs to be acquired, and when the number of the devices is larger than a preset threshold, the devices exceeding the preset threshold are logged out of the target account. The number of devices corresponding to the devices for logging in the target account may be when the device is detected to log in the target account, or when a preset detection time arrives.
And under the condition that the preset triggering condition is that equipment logs in the target account, determining that the number of equipment corresponding to the equipment logging in the target account is changed, and detecting the number of the equipment to determine whether the number of the equipment is larger than the preset threshold.
When the preset triggering condition is that the preset detection time arrives, a preset detection time can be preset, and the specific preset detection time can be determined according to the user condition of the target application, so that the application is not particularly limited. For example, the preset detection time may be 24 points per day or 24 points per monday. And when the preset detection time arrives, acquiring the number of the devices corresponding to the devices logged in the target account at the current time, and determining whether the number of the devices is larger than the preset threshold.
According to the implementation process, the preset triggering condition is set to be that the equipment logs in the target account and/or the preset detection time arrives. Under the condition that the preset triggering condition is that equipment logs in the target account, the equipment number can be obtained in time when the equipment number changes. Under the condition that the preset triggering condition is that the preset detection time arrives, the equipment number can be detected at regular time, and the situation that the equipment number is not determined for a long time and the equipment number logged in the target account exceeds a preset threshold value is prevented.
The embodiment of the application also provides a device control apparatus, as shown in fig. 3, where the apparatus may include:
the first obtaining module 301 is configured to obtain, when a preset trigger condition is detected, the number of devices corresponding to a plurality of devices that log in a target account, where the target account is one of application accounts of a login target application;
a second obtaining module 302, configured to obtain, when the number of devices is greater than a preset threshold, a priority order corresponding to each of the plurality of devices, where the priority order is positively related to an importance parameter of the device;
a control module 303, configured to control at least one device to log out of the target account according to the order of priority from low to high;
and after at least one device exits from logging in the target account, the number of devices corresponding to the devices logging in the target account is equal to the preset threshold.
According to the implementation process, when the number of the devices corresponding to the devices logging in the target account is larger than a preset threshold, priority orders corresponding to the devices are obtained, the priority orders are positively correlated with importance parameters of the devices, at least one device is controlled to log out of the target account according to the order from low to high of the priority orders, and the number of the devices corresponding to the devices logging in the target account is equal to the preset threshold. The method and the device can prevent the equipment with high importance parameters from being logged out, reduce the times of logging in the target account again by using the logged-out equipment by a user, thereby improving user experience, and simultaneously, because the logged-out equipment is the equipment with low importance parameters, the possibility of logging in the target account again by using the logged-out equipment by the user is lower, thereby reducing the accessed times of the equipment management server and the times of issuing login information by the equipment management server, and further reducing the equipment management cost of target application.
Optionally, before the acquiring the priority orders respectively corresponding to the plurality of devices, the apparatus further includes:
the first determining module is used for determining a first influence parameter corresponding to each device according to operation sets respectively corresponding to the devices after logging in the target account;
the second determining module is used for determining a second influence parameter corresponding to each device according to the preset account number and the account number corresponding to the application account of each device for accumulating login to the target application; the preset account number is the account number corresponding to the application account number which allows a single device to log in the target application in an accumulated mode at most;
and the third determining module is used for determining the importance parameter of each device according to the first influence parameter and the second influence parameter of each device.
Optionally, the first determining module includes:
the first acquisition sub-module is used for acquiring a corresponding operation set of each device after logging in the target account;
the first determining submodule is used for determining the weight value of each operation according to the importance of each operation in the operation set;
the second determining submodule is used for determining the weighted value of the operation set corresponding to each device according to the weighted value of each operation;
A third determining submodule, configured to determine a sum of weighted values of operation sets corresponding to all devices currently logged in the target account according to weighted values of operation sets corresponding to each device;
and a fourth determining submodule, configured to determine a first influencing parameter corresponding to each device according to a ratio of a weighted value of an operation set corresponding to each device to a sum of weighted values of operation sets corresponding to all devices currently logged in the target account.
Optionally, the second determining module includes:
the second acquisition sub-module is used for acquiring the preset account number and the account number corresponding to the application account number of each device for accumulating login to the target application;
and a fifth determining submodule, configured to calculate, according to a preset calculation rule, the preset account number and the account number corresponding to the application account number of each device for logging in the target application in an accumulated manner, and determine a second influence parameter corresponding to each device.
Optionally, the third determining module includes:
a sixth determining submodule, configured to determine a weight value corresponding to the first influencing parameter and a weight value corresponding to the second influencing parameter;
A seventh determining submodule, configured to determine, for each device, a weighted value of the first influencing parameter and the second influencing parameter of the device according to a weighted value corresponding to the first influencing parameter and a weighted value corresponding to the second influencing parameter;
and an eighth determining submodule, configured to determine, for each device, a weighted value corresponding to the device as an importance parameter corresponding to the device.
Optionally, the second obtaining module includes:
a third obtaining sub-module, configured to obtain importance parameters corresponding to the plurality of devices from a device database corresponding to the target account, where the device database stores importance parameters corresponding to each device that logs in to the target account;
and a ninth determining submodule, configured to determine a priority order corresponding to each of the plurality of devices according to importance parameters corresponding to each of the plurality of devices.
Optionally, the apparatus further includes:
a fourth determining module, configured to re-determine an importance parameter corresponding to each device logged in the target account when a preset update time arrives;
and the updating module is used for updating the importance parameters corresponding to each device in the device database corresponding to the target account according to the determined importance parameters corresponding to each device.
Optionally, the first obtaining module includes:
a fourth obtaining sub-module, configured to determine that the preset trigger condition is monitored when it is detected that a device logs in the target account, and obtain the number of devices corresponding to a plurality of devices that log in the target account; and/or
And the fifth acquisition sub-module is used for determining that the preset triggering condition is monitored when the preset detection moment is reached and acquiring the number of the devices corresponding to the plurality of devices logged in the target account.
It should be noted that, the embodiment of the device control apparatus is an apparatus corresponding to the device control method, and all implementation manners of the embodiment of the method are applicable to the embodiment of the device, so that the same technical effects as those of the embodiment of the device can be achieved, and are not repeated herein.
The embodiment of the application also provides electronic equipment, which comprises:
at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the device control method described above.
The memory mentioned in the above electronic device may include a random access memory (Random Access Memory, abbreviated as RAM) or may include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processors mentioned by the above electronic devices may be general-purpose processors, including a central processing unit (Central Processing Unit, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), and the like; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided herein, there is also provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the above-described device control method.
In a further embodiment provided herein, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements the above-described device control method.
In the above embodiments, it may be implemented in whole or in part 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, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more 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)), etc.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. that are within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (10)

1. A device control method, characterized by comprising:
when a preset triggering condition is monitored, acquiring the number of devices corresponding to a plurality of devices of a login target account, wherein the target account is one application account of a login target application;
determining a first influence parameter corresponding to each device according to operation sets respectively corresponding to the devices after logging in the target account;
determining a second influence parameter corresponding to each device according to the preset account number and the account number corresponding to the application account of each device for logging in the target application in an accumulated manner; the preset account number is the account number corresponding to the application account number which allows a single device to log in the target application in an accumulated mode at most;
determining importance parameters of each device according to the first influence parameters and the second influence parameters of each device;
when the number of the devices is larger than a preset threshold, acquiring priority orders corresponding to the devices respectively, wherein the priority orders are positively correlated with importance parameters of the devices;
Controlling at least one device to log out of the target account according to the order of the priorities from low to high;
and after at least one device exits from logging in the target account, the number of devices corresponding to the devices logging in the target account is equal to the preset threshold.
2. The device control method according to claim 1, wherein determining the first influencing parameter corresponding to each device according to the operation set respectively corresponding to the devices after logging in the target account includes:
acquiring a corresponding operation set of each device after logging in the target account;
determining a weight value of each operation according to the importance of each operation in the operation set;
according to the weight value of each operation, determining the weight value of the operation set corresponding to each device;
determining the sum of the weighted values of the operation sets corresponding to all the devices currently logged in the target account according to the weighted value of the operation set corresponding to each device;
and determining a first influence parameter corresponding to each device according to the ratio of the weighted value of the operation set corresponding to each device to the sum of the weighted values of the operation sets corresponding to all devices currently logged in the target account.
3. The device control method according to claim 1, wherein determining the second influencing parameter corresponding to each device according to the preset number of accounts and the number of accounts corresponding to the application account of each device for logging in the target application in a cumulative manner includes:
acquiring the preset account number and the account number corresponding to the application account of each device for accumulating login to the target application;
and calculating the preset account number and the account number corresponding to the application account number of each device for accumulating and logging in the target application according to a preset calculation rule, and determining a second influence parameter corresponding to each device.
4. The apparatus control method according to claim 1, wherein determining the importance parameter of each of the apparatuses based on the first influence parameter and the second influence parameter of each of the apparatuses comprises:
determining a weight value corresponding to the first influence parameter and a weight value corresponding to the second influence parameter;
for each device, determining a weighted value of the first influence parameter and the second influence parameter of the device according to the weighted value corresponding to the first influence parameter and the weighted value corresponding to the second influence parameter;
And determining a weighted value corresponding to each device as an importance parameter corresponding to the device.
5. The apparatus control method according to claim 1, wherein acquiring the priority order to which the plurality of apparatuses respectively correspond, comprises:
obtaining importance parameters corresponding to the devices respectively from a device database corresponding to the target account, wherein the importance parameters corresponding to each device logging in the target account are stored in the device database;
and determining priority orders corresponding to the plurality of devices according to the importance parameters corresponding to the plurality of devices respectively.
6. The apparatus control method according to claim 5, characterized in that the method further comprises:
when the preset updating time arrives, determining importance parameters corresponding to each device logging in the target account again;
and updating the importance parameters corresponding to each device in the device database corresponding to the target account according to the determined importance parameters corresponding to each device.
7. The device control method according to claim 1, wherein when a preset trigger condition is detected, obtaining the number of devices corresponding to the plurality of devices that log in the target account includes:
When detecting that equipment logs in the target account, determining that the preset triggering condition is monitored, and acquiring the number of equipment corresponding to a plurality of pieces of equipment logging in the target account; and/or
And when the preset detection time arrives, determining that the preset triggering condition is monitored, and acquiring the number of the devices corresponding to the plurality of devices logged in the target account.
8. An apparatus control device, comprising:
the first acquisition module is used for acquiring the number of the devices corresponding to the plurality of devices of the login target account when a preset trigger condition is monitored, wherein the target account is one application account of the login target application;
the first determining module is used for determining a first influence parameter corresponding to each device according to operation sets respectively corresponding to the devices after logging in the target account;
the second determining module is used for determining a second influence parameter corresponding to each device according to the preset account number and the account number corresponding to the application account of each device for accumulating login to the target application; the preset account number is the account number corresponding to the application account number which allows a single device to log in the target application in an accumulated mode at most;
A third determining module, configured to determine an importance parameter of each device according to the first influence parameter and the second influence parameter of each device;
the second acquisition module is used for acquiring priority orders corresponding to the plurality of devices respectively when the number of the devices is larger than a preset threshold, wherein the priority orders are positively related to importance parameters of the devices;
the control module is used for controlling at least one device to log out of the target account number according to the order from low to high of the priority order;
and after at least one device exits from logging in the target account, the number of devices corresponding to the devices logging in the target account is equal to the preset threshold.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the device control method of any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the device control method according to any one of claims 1 to 7.
CN202210467925.1A 2022-04-29 2022-04-29 Equipment control method, device, electronic equipment and storage medium Active CN115001747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210467925.1A CN115001747B (en) 2022-04-29 2022-04-29 Equipment control method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210467925.1A CN115001747B (en) 2022-04-29 2022-04-29 Equipment control method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115001747A CN115001747A (en) 2022-09-02
CN115001747B true CN115001747B (en) 2024-03-01

Family

ID=83025182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210467925.1A Active CN115001747B (en) 2022-04-29 2022-04-29 Equipment control method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115001747B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115186249A (en) * 2022-09-13 2022-10-14 飞狐信息技术(天津)有限公司 Management method and system for multi-device simultaneous login, electronic device and storage medium
CN116208388A (en) * 2023-02-08 2023-06-02 江西数字网联信息安全技术有限公司 Method, device, medium and equipment for logging in multiple devices by same account

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058502A (en) * 2005-08-24 2007-03-08 Hitachi Omron Terminal Solutions Corp Terminal management system
CN105978947A (en) * 2016-04-27 2016-09-28 努比亚技术有限公司 Same account number login equipment number control method and mobile terminal
WO2016188099A1 (en) * 2015-11-26 2016-12-01 中国建设银行股份有限公司 Account activity level based-system resources allocation method and device
CN107277002A (en) * 2017-06-12 2017-10-20 环球智达科技(北京)有限公司 The method for limiting same user account registration terminal quantity
CN107864216A (en) * 2017-11-21 2018-03-30 福建中金在线信息科技有限公司 For multi-client processing method, device and the electronic equipment of identical account
WO2019165674A1 (en) * 2018-02-27 2019-09-06 平安科技(深圳)有限公司 Account cleaning method, device, terminal device and storage medium
CN110602216A (en) * 2019-09-16 2019-12-20 宁波奥克斯电气股份有限公司 Method and device for using single account by multiple terminals, cloud server and storage medium
CN112231673A (en) * 2020-03-31 2021-01-15 北京来也网络科技有限公司 Bank bill obtaining method, device, equipment and storage medium combining RPA and AI
CN113591068A (en) * 2021-08-03 2021-11-02 北京奇艺世纪科技有限公司 Online login equipment management method and device and electronic equipment
CN113839931A (en) * 2021-09-07 2021-12-24 广州爱浦路网络技术有限公司 Login method, computer device and storage medium
CN114048441A (en) * 2021-10-26 2022-02-15 远光软件股份有限公司 Control method and device for login user, storage medium and terminal equipment
CN114139135A (en) * 2022-02-08 2022-03-04 深圳希施玛数据科技有限公司 Equipment login management method, device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9106424B2 (en) * 2010-01-04 2015-08-11 Samsung Electronics Co., Ltd. Method and system for providing users login access to multiple devices via a communication system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058502A (en) * 2005-08-24 2007-03-08 Hitachi Omron Terminal Solutions Corp Terminal management system
WO2016188099A1 (en) * 2015-11-26 2016-12-01 中国建设银行股份有限公司 Account activity level based-system resources allocation method and device
CN105978947A (en) * 2016-04-27 2016-09-28 努比亚技术有限公司 Same account number login equipment number control method and mobile terminal
CN107277002A (en) * 2017-06-12 2017-10-20 环球智达科技(北京)有限公司 The method for limiting same user account registration terminal quantity
CN107864216A (en) * 2017-11-21 2018-03-30 福建中金在线信息科技有限公司 For multi-client processing method, device and the electronic equipment of identical account
WO2019165674A1 (en) * 2018-02-27 2019-09-06 平安科技(深圳)有限公司 Account cleaning method, device, terminal device and storage medium
CN110602216A (en) * 2019-09-16 2019-12-20 宁波奥克斯电气股份有限公司 Method and device for using single account by multiple terminals, cloud server and storage medium
CN112231673A (en) * 2020-03-31 2021-01-15 北京来也网络科技有限公司 Bank bill obtaining method, device, equipment and storage medium combining RPA and AI
CN113591068A (en) * 2021-08-03 2021-11-02 北京奇艺世纪科技有限公司 Online login equipment management method and device and electronic equipment
CN113839931A (en) * 2021-09-07 2021-12-24 广州爱浦路网络技术有限公司 Login method, computer device and storage medium
CN114048441A (en) * 2021-10-26 2022-02-15 远光软件股份有限公司 Control method and device for login user, storage medium and terminal equipment
CN114139135A (en) * 2022-02-08 2022-03-04 深圳希施玛数据科技有限公司 Equipment login management method, device and storage medium

Also Published As

Publication number Publication date
CN115001747A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
CN115001747B (en) Equipment control method, device, electronic equipment and storage medium
US20200034383A1 (en) Content Recommendation System
EP4198775A1 (en) Abnormal user auditing method and apparatus, electronic device, and storage medium
KR20170018038A (en) System and method for optimizing the selection of cloud services based on price and performance
CN110659388B (en) To-be-recommended information screening method and device, electronic equipment and storage medium
CN112232510A (en) Training and information recommendation method and device for multi-target recommendation model
CN113591068B (en) Online login device management method and device and electronic device
CN108960839B (en) Payment method and device
CN110351299B (en) Network connection detection method and device
CN108053214B (en) False transaction identification method and device
CN108768743A (en) A kind of user identification method, device and server
CN112995765B (en) Network resource display method and device
CN109525933B (en) Location privacy protection method and device
CN112116397A (en) User behavior characteristic real-time processing method and device, storage medium and electronic equipment
CN111079061A (en) Data processing method and electronic equipment
CN111831448A (en) Request processing method and device and electronic equipment
CN115065512B (en) Account login method, system, device, electronic equipment and storage medium
CN113269259B (en) Target information prediction method and device
CN115017364A (en) Method, device, equipment and medium for evaluating contribution degree of video service data area
CN111683143B (en) Message pushing method and device, electronic equipment and computer readable storage medium
CN110868622B (en) Canton analysis method and device, electronic equipment and storage medium
CN114637790A (en) List data query method and device, electronic equipment and storage medium
CN116561735B (en) Mutual trust authentication method and system based on multiple authentication sources and electronic equipment
CN111814051A (en) Resource type determination method and device
CN110599118A (en) Data processing method and device

Legal Events

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