Temporary authority management method and device
Technical Field
The invention belongs to the field of internet, and particularly relates to a temporary authority management method and device.
Background
For a registered website, a registered user and a non-registered user are different in authority, but the registered user may have special situations that the authority is limited, the registered user does not want to use a registered account of the registered user, and the like, and wants to obtain temporary authority of the registered user.
Typically, a user may obtain temporary registered user rights by registering with other accounts. However, this wastes a lot of registration resources on the one hand and brings time cost to the user for registering and managing new accounts on the other hand.
Disclosure of Invention
In view of the above defects or improvement requirements of the prior art, the present invention provides a temporary permission management method and apparatus, which aims to temporarily assign a registered user permission to a user meeting requirements, thereby solving the technical problems that the existing method for obtaining temporary registered user permission wastes a large amount of registered resources and the management cost is high.
To achieve the above object, according to an aspect of the present invention, there is provided a method for managing temporary rights, comprising the steps of:
(1) for a specific registered user, calculating a temporary authority upper limit according to the registration information of the specific registered user;
(2) acquiring a temporary permission request of the registered user;
(3) judging whether the temporary permission request exceeds the temporary permission upper limit of the registered user; when the temporary permission request does not exceed the temporary permission upper limit of the registered user, entering the step (4); otherwise, entering the step (5);
(4) giving the registered user a temporary user, wherein the temporary user has the temporary permission requested by the temporary permission request;
(5) rejecting the temporary permission request of the registered user.
Preferably, the management method of the temporary right includes, in the registration information: one or more of a length of time a user is registered, a degree of payment, a degree of activity, a history of violations, and a current state of authority.
Preferably, the management method of the temporary permission, which calculates the temporary permission upper limit according to the registration information, may adopt the following method:
setting weight for each item in the registration information, and scoring item by item according to the value of each item of registration information of the registered user;
calculating a registration information weighted score: registering information weighted score value ═ sigma weight score value;
acquiring the grade of a registered user according to a preset threshold range according to the weighted score of the registration information;
and acquiring a temporary authority upper limit corresponding to the level of the registered user according to the level of the registered user, and taking the temporary authority upper limit as the temporary authority upper limit of the registered user.
Preferably, in the method for managing temporary rights, the step (2) of requesting temporary rights includes: the temporary permission maintenance time and/or the temporary permission range.
Preferably, the step (4) of the method for managing temporary rights specifically includes:
randomly generating a character string, taking the character string as a user name, and creating the user authority with the temporary authority requested by the temporary authority request, wherein the user registration information is preferably null; and taking the operation instruction of the registered user as an operation instruction sent by the user.
According to another aspect of the present invention, there is provided a temporary right management apparatus, comprising:
the temporary authority upper limit calculation module is used for calculating the temporary authority upper limit of a specific registered user according to the registration information of the registered user;
a temporary permission request obtaining module, configured to obtain a temporary permission request of the registered user;
the judging module is used for judging whether the temporary permission request exceeds the temporary permission upper limit of the registered user; when the temporary permission request does not exceed the temporary permission upper limit of the registered user, entering an authorization module; otherwise, entering a refuge module;
the authorization module is used for endowing the registered user with a temporary user, and the temporary user has the temporary authority requested by the temporary authority request;
and the rejecting module is used for rejecting the temporary permission request of the registered user.
Preferably, the registration information of the management apparatus of the temporary right includes: one or more of a length of time a user is registered, a degree of payment, a degree of activity, a history of violations, and a current state of authority.
Preferably, the temporary permission upper limit calculation module of the management device of the temporary permission comprises a registration information weighted score calculation submodule; the registration information weighted score calculation submodule is used for setting weight for each item in the registration information and scoring item by item according to the value of each item of registration information of the registered user; calculating a registration information weighted score: registering information weighted score value ═ sigma weight score value;
the temporary permission upper limit calculation module acquires the level of the registered user according to the weighted score of the registration information and a preset threshold range; and acquiring a temporary authority upper limit corresponding to the level of the registered user according to the level of the registered user, and taking the temporary authority upper limit as the temporary authority upper limit of the registered user.
Preferably, the temporary right management device, the temporary right request of which includes: the temporary permission maintenance time and/or the temporary permission range.
Preferably, the management device of the temporary permission, the authorization module of which randomly generates a character string, and creates the user permission with the temporary permission requested by the temporary permission request with the character string as a user name, and the user registration information is preferably null; and taking the operation instruction of the registered user as an operation instruction sent by the user.
In general, compared with the prior art, the above technical solution contemplated by the present invention can achieve the following beneficial effects:
the temporary authority management method provided by the invention can effectively avoid resource waste caused by registering the user for obtaining the temporary authority, and simultaneously reduces the time cost for managing the temporary authority user.
The optimal scheme judges the temporary authority upper limit of the user, so that the user with higher level directly obtains higher temporary authority when applying for the temporary authority, and the temporary authority receives the temporary user level limit when the user does not need to be registered again.
Drawings
FIG. 1 is a flow chart illustrating a temporary rights management method provided by the present invention;
fig. 2 is a schematic structural diagram of a temporary rights management apparatus provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The temporary authority management method provided by the invention, as shown in fig. 1, comprises the following steps:
(1) for a specific registered user, calculating a temporary authority upper limit according to the registration information of the specific registered user;
the registration information includes: one or more of a length of time a user is registered, a degree of payment, a degree of activity, a history of violations, and a current state of authority.
The temporary permission upper limit is calculated according to the registration information, and the following method can be adopted:
setting weight for each item in the registration information, and scoring item by item according to the value of each item of registration information of the registered user;
calculating a registration information weighted score: registering information weighted score value ═ sigma weight score value;
acquiring the grade of a registered user according to a preset threshold range according to the weighted score of the registration information;
and acquiring a temporary authority upper limit corresponding to the level of the registered user according to the level of the registered user, and taking the temporary authority upper limit as the temporary authority upper limit of the registered user.
(2) Acquiring a temporary permission request of the registered user;
the temporary permission request includes: the temporary permission maintenance time and/or the temporary permission range. The temporary permission range is preferably non-permanent trace permission, such as bullet screen sending permission, speaking permission and specific content browsing permission. For example, the authority of uploading the attachment and the like, the authority which can permanently leave marks in the server database is not deleted actively, and is not suitable for being contained in the temporary authority range.
(3) Judging whether the temporary permission request exceeds the temporary permission upper limit of the registered user; when the temporary permission request does not exceed the temporary permission upper limit of the registered user, entering the step (4); otherwise, entering the step (5);
(4) giving the registered user a temporary user, wherein the temporary user has the temporary permission requested by the temporary permission request;
specifically, a character string is randomly generated, the character string is used as a user name, the user authority with the temporary authority requested by the temporary authority request is created, and the user registration information is preferably null; and taking the operation instruction of the registered user as an operation instruction sent by the user.
(5) Rejecting the temporary permission request of the registered user.
Specifically, the registered user is prompted that the requested temporary permission exceeds the temporary permission upper limit.
As shown in fig. 2, the temporary right management apparatus according to the present invention includes:
the temporary authority upper limit calculation module is used for calculating the temporary authority upper limit of a specific registered user according to the registration information of the registered user;
the registration information includes: one or more of a length of time a user is registered, a degree of payment, a degree of activity, a history of violations, and a current state of authority.
The temporary permission upper limit calculation module preferably comprises a registration information weighted score calculation submodule; the registration information weighted score calculation submodule is used for setting weight for each item in the registration information and scoring item by item according to the value of each item of registration information of the registered user; calculating a registration information weighted score: registering information weighted score value ═ sigma weight score value;
the temporary permission upper limit calculation module acquires the level of the registered user according to the weighted score of the registration information and a preset threshold range; and acquiring a temporary authority upper limit corresponding to the level of the registered user according to the level of the registered user, and taking the temporary authority upper limit as the temporary authority upper limit of the registered user.
A temporary permission request obtaining module, configured to obtain a temporary permission request of the registered user;
the temporary permission request includes: the temporary permission maintenance time and/or the temporary permission range. The temporary permission range is preferably non-permanent trace permission, such as bullet screen sending permission, speaking permission and specific content browsing permission. For example, the authority of uploading the attachment and the like, the authority which can permanently leave marks in the server database is not deleted actively, and is not suitable for being contained in the temporary authority range.
The judging module is used for judging whether the temporary permission request exceeds the temporary permission upper limit of the registered user; when the temporary permission request does not exceed the temporary permission upper limit of the registered user, entering an authorization module; otherwise, entering a refuge module.
The authorization module is used for endowing the registered user with a temporary user, and the temporary user has the temporary authority requested by the temporary authority request;
specifically, the authorization module randomly generates a character string, and creates the user right with the temporary right requested by the temporary right request by using the character string as a user name, wherein the user registration information is preferably null; and taking the operation instruction of the registered user as an operation instruction sent by the user.
And the rejecting module is used for rejecting the temporary permission request of the registered user. Specifically, the registered user is prompted that the requested temporary permission exceeds the temporary permission upper limit.
The following are examples:
example 1
A management method of temporary permission takes bullet screen sending permission as an example, and comprises the following steps:
(1) for a specific registered user, calculating a temporary authority upper limit according to the registration information of the specific registered user;
the registration information includes: one or more of a length of time a user is registered, a degree of payment, a degree of activity, a history of violations, and a current state of authority.
The temporary authority upper limit is calculated according to the registration information, and the following method is adopted:
according to the integration rule of the website, the grades of registered users are divided;
and acquiring a temporary authority upper limit corresponding to the level of the registered user according to the level of the registered user, and taking the temporary authority upper limit as the temporary authority upper limit of the registered user.
And the temporary permission upper limit is divided into a high level, a medium level and a low level according to the level of the registered user, and the temporary bullet screen sending permission upper limit is respectively 90 minutes, 35 minutes and 15 minutes.
(2) Acquiring a temporary permission request of the registered user;
the temporary permission request includes: temporary rights hold time.
And after the registered user is blocked for the comment permission of the bullet screen, the registered user regards as automatically requesting the temporary bullet screen sending permission when the bullet screen sending frame is input. And maintaining the temporary permission, namely the time period between the closing validation moment of the registered user and the bullet screen sending moment.
(3) Judging whether the temporary permission request exceeds the temporary permission upper limit of the registered user; when the temporary permission request does not exceed the temporary permission upper limit of the registered user, entering the step (4); otherwise, entering the step (5);
and (4) when the temporary permission maintaining time, namely the time period between the closing validation time of the registered user and the barrage sending time, does not exceed the temporary permission upper limit of the registered user, namely the high-level user does not exceed 90 minutes, the medium-level user does not exceed 35 minutes and the low-level user does not exceed 15 minutes, otherwise, the step (5) is carried out.
(4) Giving the registered user a temporary user, wherein the temporary user has the temporary permission requested by the temporary permission request;
specifically, a character string is randomly generated, and the character string is used as a user name to create the user with the bullet screen sending authority; and when the bullet screen is sent, the sending user displays the random character string.
(5) Rejecting the temporary permission request of the registered user.
Specifically, the registered user is prompted to be forbidden to send the barrage permission, the unsealing time is prolonged, and the temporary barrage sending permission can be obtained by improving the level of the registered user.
Example 2
A management apparatus of temporary authority, that is, a management apparatus of temporary bullet screen transmission authority, comprising:
the temporary authority upper limit calculation module is used for calculating the temporary authority upper limit of a specific registered user according to the registration information of the registered user;
the registration information includes: one or more of a length of time a user is registered, a degree of payment, a degree of activity, a history of violations, and a current state of authority.
The temporary permission upper limit calculation module preferably comprises a registration information weighted score calculation submodule; and the registration information weighted score calculation submodule is used for acquiring a temporary permission upper limit corresponding to the level of the registered user according to the level of the registered user and taking the temporary permission upper limit as the temporary permission upper limit of the registered user.
And the temporary permission upper limit is divided into a high level, a medium level and a low level according to the level of the registered user, and the temporary bullet screen sending permission upper limit is respectively 90 minutes, 35 minutes and 15 minutes.
A temporary permission request obtaining module, configured to obtain a temporary permission request of the registered user;
the temporary permission request includes: temporary rights hold time.
And after the registered user is blocked for the comment permission of the bullet screen, the registered user regards as automatically requesting the temporary bullet screen sending permission when the bullet screen sending frame is input. And maintaining the temporary permission, namely the time period between the closing validation moment of the registered user and the bullet screen sending moment.
The judging module is used for judging whether the temporary permission request exceeds the temporary permission upper limit of the registered user; when the temporary permission request does not exceed the temporary permission upper limit of the registered user, entering an authorization module; otherwise, entering a refuge module.
And when the temporary permission maintaining time, namely the time period between the closing validation time of the registered user and the barrage sending time, does not exceed the temporary permission upper limit of the registered user, namely the high-class user does not exceed 90 minutes, the medium-class user does not exceed 35 minutes and the low-class user does not exceed 15 minutes, entering an authorization module, otherwise, entering a rejection module.
The authorization module is used for endowing the registered user with a temporary user, and the temporary user has the temporary authority requested by the temporary authority request;
specifically, a character string is randomly generated, and the character string is used as a user name to create the user with the bullet screen sending authority; and when the bullet screen is sent, the sending user displays the random character string.
And the rejecting module is used for rejecting the temporary permission request of the registered user. Specifically, the registered user is prompted to be forbidden to send the barrage permission, the unsealing time is prolonged, and the temporary barrage sending permission can be obtained by improving the level of the registered user.
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the present invention.