Summary of the invention
Embodiments provide a kind of method and device of theme mandate, effectively can solve plagiarization and the problem of piracy of theme.Described technical scheme is as follows:
On the one hand, provide a kind of method of theme mandate, described method comprises:
The authorization requests information to preset themes that receiving terminal sends, carries the digital digest information of the user ID of user and each module included by described preset themes in described authorization requests information;
The digital digest information of each module comprised according to described preset themes determines whether whole modules of described preset themes all allow to be used by described user;
When whole modules of described preset themes all allow to be used by described user, then described terminal is authorized to use described preset themes;
Wherein, the digital digest information of the described each module comprised according to described preset themes determines whether whole modules of described preset themes all allow to be used by described user, comprising:
For arbitrary module that described preset themes comprises, according to the digital digest information of described module, from the digital digest information of the module stored and the corresponding relation of theme ID, inquire the theme ID of the theme that described module belongs to;
The theme ID of theme belonged to according to described module and the user ID of described user, determine that the type of the theme that described module belongs to is the theme whether theme that the theme of default access or described module belong to belongs to non-default access;
When the theme theming as default access that described module belongs to and described user possesses described default access time, then determine described module allow used by described user; When described module belong to theme as the theme of non-default access time, then determine described module allow used by described user; By above-mentioned flow process, other modules comprised for described preset themes determine whether other modules described allow to be used by described user.
On the other hand, provide a kind of device of theme mandate, described device comprises:
Receiver module, for the authorization requests information to preset themes that receiving terminal sends, carries the digital digest information of the user ID of user and each module included by described preset themes in described authorization requests information;
First determination module, the digital digest information for each module comprised according to described preset themes determines whether whole modules of described preset themes all allow to be used by described user;
First authorization module, for when whole modules of described preset themes all allow to be used by described user, then authorizes described terminal to use described preset themes;
Wherein, described first determination module, comprising:
First query unit, for the arbitrary module comprised for described preset themes, according to the digital digest information of described module, from the digital digest information of the module stored and the corresponding relation of theme ID, inquires the theme ID of the theme that described module belongs to;
First determining unit, for the theme ID of theme that belongs to according to described module and the user ID of described user, determine that the type of the theme that described module belongs to is the theme whether theme that the theme of default access or described module belong to belongs to non-default access;
Second determining unit, for the theme theming as default access that belongs to when described module and described user possesses described default access time, then determine that described module allows to be used by described user; When described module belong to theme as the theme of non-default access time, then determine described module allow used by described user; By above-mentioned flow process, other modules comprised for described preset themes determine whether other modules described allow to be used by described user.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By confirming whether the digital digest information of each module of theme allows to be used by user, when all modules all allow user to use, then authorizes whole theme, effective plagiarization and the problem of piracy solving theme.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of method of theme mandate, see Fig. 1, method flow comprises:
101: the authorization requests information to preset themes that receiving terminal sends, carry the digital digest information of the user ID of user and each module included by described preset themes in described authorization requests information;
102: the digital digest information of each module comprised according to described preset themes determines whether whole modules of described preset themes all allow to be used by described user;
103: when whole modules of described preset themes all allow to be used by described user, then authorize described terminal to use described preset themes.
The plagiarization of effective solution theme and problem of piracy
The embodiment of the present invention, by confirming whether the digital digest information of each module of theme allows to be used by user, when all modules all allow user to use, then authorizes whole theme, effectively solves plagiarization and the problem of piracy of theme.
Embodiment two
Embodiments provide a kind of method of theme mandate, see Fig. 2, method flow comprises:
201: the authorization requests information to preset themes that receiving terminal sends, carry the digital digest information of the user ID of user and each module included by described preset themes in described authorization requests information.
Preferably, the digital digest information of preset themes and terminal iidentification corresponding to preset themes is also comprised in the authorization requests information that user sends, wherein terminal iidentification is IMEI (International Mobile Equipment Identity, International Mobile Equipment Identity code) etc. uniquely identify the information of terminal, restriction is not made to the content of terminal iidentification at this.
First by the digital digest information of preset themes is inquired about in first information record sheet, first information record sheet is for the corresponding relation of the digital digest information and theme ID of preserving theme, if do not found, then illustrate that preset themes is likely that user revised, the digital digest information of each module therefore comprised according to preset themes is inquired about in first information record sheet, and wherein first information record sheet is also for the corresponding relation of the digital digest information and theme ID of preserving each module.
Theme is made up of modules, such as comprise screen lock module, desktop module etc., in the theme compressed package that theme is corresponding, each module can save as separately a file, therefore by calculating the file of each module, the digital digest information that each module is corresponding can be obtained.
Further, digital digest information is calculated each module in theme compressed package corresponding to theme to be detected or theme by preset algorithm, obtains corresponding identification information unique with each module in theme to be detected or theme.Wherein preset algorithm can be: hash algorithm, and the digital digest information calculated by this algorithm is cryptographic hash; Can also pass through MD5 (Message-Digest Algorithm MD5, Message Digest Algorithm 5) algorithm, the digital digest information calculated is MD5 value.
After the theme authorization requests information that receiving terminal sends, first perform step 202.
202: according to the digital digest information of described preset themes, inquire about the digital digest information of theme and the corresponding relation of theme ID that have stored, if do not inquire the theme ID of described preset themes, then the digital digest information performing the described each module comprised according to described preset themes determines whether whole modules of described preset themes all allow the step used by described user.
Find the digital digest information of theme in first information record sheet after, determine whether this theme allows to be used by user according to the digital digest information of theme and the user ID of user, wherein according to rights of using, theme is divided into two kinds, the first is the theme of default access, for possess after being bought by user charges rights of using theme or former possess authority everyone to possess the theme of rights of using through modes such as transferring the possession of, grant; The second is the theme of non-preset authorization, is the theme that user freely uses.
203: when inquiring the theme ID of described preset themes, according to the user ID of described user and the digital digest information of described preset themes, determine whether described preset themes allows to be used by described user.
Determine whether theme allows the step by user uses to be:
2031: inquire about according to the theme ID of described preset themes and the user ID of described user the first information record sheet stored, described first information record sheet is also for the corresponding relation of the user ID of the theme ID and described user that store the theme of default access.
2032: when inquiring the corresponding relation of user ID of theme ID and the described user comprising described preset themes, then determine that described preset themes is the theme of default access, and described user possesses described default access.
In first information table, if there is the corresponding relation of user ID and theme ID, then illustrate that user possesses the rights of using of theme corresponding to theme ID.
2033: when not inquiring the corresponding relation of user ID of theme ID and the described user comprising described preset themes, the the second information record sheet stored then is searched according to the theme ID of described preset themes, when inquiring the theme ID of described preset themes, then determine that described preset themes belongs to the theme of non-default access; Described second information record sheet is for storing the theme ID of the theme of non-default access.
204: according to the user ID of described user and terminal iidentification corresponding to described preset themes, search the authorization message record sheet stored, when the corresponding relation of terminal iidentification corresponding to the user ID and described preset themes that find described user in described authorization message record sheet, then perform the step of authorizing described terminal to use described preset themes.
Preferably, before authorizing this theme, can also further inquire about authorisation device information by the terminal iidentification of user ID and preset themes, give the situation of unlimited platform device authorization with the account number preventing same user ID corresponding.
The user ID of the user authorized and the corresponding relation of terminal iidentification is record in authorization message record sheet, if there is the corresponding relation of the user ID of user and terminal iidentification corresponding to preset themes, the once requested mandate of this terminal is then described, therefore illustrate that this terminal is known device, allow to authorize this theme, now perform the step being the theme and authorizing.
205: when the corresponding relation of terminal iidentification corresponding to the user ID and described preset themes that do not find described user in described authorization message record sheet, in described authorization message record sheet, then obtain the number comprising the record of the user ID of described user, determine whether described number exceedes predetermined threshold value; When not exceeding predetermined threshold value, then the corresponding relation of the theme ID of terminal iidentification corresponding to the user ID of described user, described preset themes and preset themes is stored in described authorization message record sheet, and performs the step of authorizing described terminal to use described preset themes.
If there is not the corresponding relation of the user ID of user and terminal iidentification corresponding to preset themes in authorization message record sheet, the not requested mandate to theme of terminal that this terminal iidentification is corresponding is then described, now in authorization message record sheet, further inquire about the authorized number of devices of this user ID by the user ID of user, and compare with the predetermined threshold value of authorisation device quantity, the predetermined threshold value being less than this authorisation device quantity then allows this theme to authorize on the terminal, and the corresponding relation of the theme ID of terminal iidentification corresponding for preset themes and preset themes is stored in described authorization message record sheet.
If be more than or equal to the predetermined threshold value of authorisation device quantity, do not authorize.
206: when described preset themes allows to be used by described user, then authorize to described preset themes.
207: the digital digest information of each module comprised according to described preset themes determines whether whole modules of described preset themes all allow to be used by described user.
When the digital digest information of preset themes in step 202 does not match in first information record sheet, the digital digest information of each module then preset themes comprised is searched in first information record sheet, determines whether theme corresponding to each module that preset themes comprises all allows to be used by user.Step 207 can be:
2071: arbitrary module that described preset themes is comprised, according to the digital digest information of described module, from the digital digest information of the module stored and the corresponding relation of theme ID, inquire the theme ID of the theme that described module belongs to.
2072: the theme ID of theme belonged to according to described module and the user ID of described user, determine that the type of the theme that described module belongs to is the theme whether theme that the theme of default access or described module belong to belongs to non-default access.
The step of the type of the theme that determination module belongs to can be:
20721: the theme ID of theme belonged to according to described module and the user ID of described user inquire about the first information record sheet stored, described first information record sheet is for the corresponding relation of the user ID of the theme ID and described user that store the theme of default access.
20722: when inquiring the corresponding relation of user ID of theme ID and the described user comprising the theme that described module belongs to, then determine the theme theming as default access that described module belongs to and described user possesses described default access.
20723: when not inquiring the corresponding relation of user ID of theme ID and the described user comprising the theme that described module belongs to, the theme ID of the theme then belonged to according to described module searches the second information record sheet stored, when inquiring the theme ID of the theme that described module belongs to, then determine that theme that described module belongs to belongs to the theme of non-default access; Described second information record sheet is for storing the theme ID of the theme of non-default access.
2073: when the theme theming as default access that described module belongs to and described user possesses described default access time, then determine described module allow used by described user; When described module belong to theme as the theme of non-default access time, then determine described module allow used by described user; By above-mentioned flow process, other modules comprised for described preset themes determine whether other modules described allow to be used by described user.
Preferably, what circulate according to step 2071 to step 2073 inquires about each corresponding for preset themes module, determines whether each module allows to be used by user, then whole theme is then for authorizing.
Preferably, after determining that whole theme then can be authorized, further can further inquire about authorisation device information by the terminal iidentification of user ID and preset themes, the situation of unlimited platform device authorization is given with the account number preventing same user ID corresponding, therefore after execution of step 2083, further step 204 and step 205 is performed, then confirm as theme when meeting authorising conditional again after being finished to authorize, perform step 208.
208: when whole modules of described preset themes all allow to be used by described user, then authorize described terminal to use described preset themes.
The embodiment of the present invention is by confirming whether the digital digest information of each module of theme allows to be used by user, when all modules all allow user to use, then authorizes whole theme; On the other hand, can also by confirming whether the digital digest information of theme allows the mode used by user, and word order is then authorized theme.The plagiarization of effective solution theme and problem of piracy.
Embodiment three
Embodiments provide a kind of device of theme mandate, see Fig. 3, this device comprises:
Receiver module 301, for the authorization requests information to preset themes that receiving terminal sends, carries the digital digest information of the user ID of user and each module included by described preset themes in described authorization requests information;
First determination module 302, the digital digest information for each module comprised according to described preset themes determines whether whole modules of described preset themes all allow to be used by described user;
First authorization module 303, for when whole modules of described preset themes all allow to be used by described user, then authorizes described terminal to use described preset themes.
In a specific embodiment, described first determination module 302, comprising:
First query unit 3021, for the arbitrary module comprised for described preset themes, according to the digital digest information of described module, from the digital digest information of the module stored and the corresponding relation of theme ID, inquire the theme ID of the theme that described module belongs to;
First determining unit 3022, for the theme ID of theme that belongs to according to described module and the user ID of described user, determine that the type of the theme that described module belongs to is the theme whether theme that the theme of default access or described module belong to belongs to non-default access;
Second determining unit 3023, for the theme theming as default access that belongs to when described module and described user possesses described default access time, then determine that described module allows to be used by described user; When described module belong to theme as the theme of non-default access time, then determine described module allow used by described user; By above-mentioned flow process, other modules comprised for described preset themes determine whether other modules described allow to be used by described user.
Wherein, described first determining unit 3022, comprising:
Inquiry subelement 30221, inquire about for the theme ID of theme that belongs to according to described module and the user ID of described user the first information record sheet stored, described first information record sheet is for the corresponding relation of the user ID of the theme ID and described user that store the theme of default access;
First determines subelement 30222, for when inquiring the corresponding relation of user ID of theme ID and the described user comprising the theme that described module belongs to, then determine the theme theming as default access that described module belongs to and described user possesses described default access;
Second determines subelement 30223, for when not inquiring the corresponding relation of user ID of theme ID and the described user comprising the theme that described module belongs to, the theme ID of the theme then belonged to according to described module searches the second information record sheet stored, when inquiring the theme ID of the theme that described module belongs to, then determine that theme that described module belongs to belongs to the theme of non-default access; Described second information record sheet is for storing the theme ID of the theme of non-default access.
Further, also comprise terminal iidentification corresponding to preset themes in described theme authorization requests information, described device also comprises:
First processing module 304, for according to the user ID of described user and terminal iidentification corresponding to described preset themes, search the authorization message record sheet stored, when the corresponding relation of terminal iidentification corresponding to the user ID and described preset themes that find described user in described authorization message record sheet, then perform the step of authorizing described terminal to use described preset themes.
Second processing module 305, for when the corresponding relation of terminal iidentification corresponding to the user ID and described preset themes that do not find described user in described authorization message record sheet, in described authorization message record sheet, then obtain the number comprising the record of the user ID of described user, determine whether described number exceedes predetermined threshold value; When not exceeding predetermined threshold value, then the corresponding relation of the theme ID of terminal iidentification corresponding to the user ID of described user, described preset themes and preset themes is stored in described authorization message record sheet, and performs the step of authorizing described terminal to use described preset themes.
Wherein, described device also comprises:
Enquiry module 306, for the digital digest information according to described preset themes, inquire about the digital digest information of theme and the corresponding relation of theme ID that have stored, if do not inquire the theme ID of described preset themes, then the digital digest information performing the described each module comprised according to described preset themes determines whether whole modules of described preset themes all allow the step used by described user.
Second determination module 307, for when inquiring the theme ID of described preset themes, according to the user ID of described user and the digital digest information of described preset themes, determines whether described preset themes allows to be used by described user;
Second authorization module 308, during for allowing to be used by described user when described preset themes, then authorizes to described preset themes.
Wherein, described second determination module 307, comprising:
Second query unit 3071, for inquiring about according to the theme ID of described preset themes and the user ID of described user the first information record sheet stored, described first information record sheet is also for the corresponding relation of the user ID of the theme ID and described user that store the theme of default access;
3rd determining unit 3072, when inquiring the corresponding relation of user ID of theme ID and the described user comprising described preset themes, then determine that described preset themes is the theme of default access, and described user possesses described default access;
4th determining unit 3073, when not inquiring the corresponding relation of user ID of theme ID and the described user comprising described preset themes, the the second information record sheet stored then is searched according to the theme ID of described preset themes, when inquiring the theme ID of described preset themes, then determine that described preset themes belongs to the theme of non-default access; Described second information record sheet is for storing the theme ID of the theme of non-default access.
Wherein, described device also comprises:
3rd processing module 309, for according to the user ID of described user and terminal iidentification corresponding to described preset themes, search the authorization message record sheet stored, when the corresponding relation of terminal iidentification corresponding to the user ID and described preset themes that find described user in described authorization message record sheet, then perform the step of authorizing described terminal to use described preset themes.
4th processing module 310, for when the corresponding relation of terminal iidentification corresponding to the user ID and described preset themes that do not find described user in described authorization message record sheet, in described authorization message record sheet, then obtain the number comprising the record of the user ID of described user, determine whether described number exceedes predetermined threshold value; When not exceeding predetermined threshold value, then the corresponding relation of the theme ID of terminal iidentification corresponding to the user ID of described user, described preset themes and preset themes is stored in described authorization message record sheet, and performs the step of authorizing described terminal to use described preset themes.
The embodiment of the present invention is by confirming whether the digital digest information of each module of theme allows to be used by user, when all modules all allow user to use, then authorizes whole theme; On the other hand, can also by confirming whether the digital digest information of theme allows the mode used by user, and word order is then authorized theme.The plagiarization of effective solution theme and problem of piracy.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.