Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Please refer to Fig. 1, is the flow chart of first embodiment of the method for authenticating of a kind of ordering products provided by the invention, and said method comprises:
Step S11 receives the authentication request information that client is sent, and said authentication request information comprises: subscriber-coded and product coding;
During various ordering products that client need use that the broadcasting and TV system provides, all need send authentication request information to corresponding server end.Client can be sent authentication request information to server end through the modes such as key assignments of selecting remote controller.The authentication request information that client is sent comprises: subscriber-coded and product coding.Wherein, subscriber-codedly be used to distinguish different client side, product coding is used to distinguish the different ordering products that the broadcasting and TV system provides.
Step S12 searches the user's sequencing numbers of said subscriber-coded correspondence and the product sequencing numbers of said product coding correspondence;
Through the subscriber-coded and product coding that client is sent, can confirm that active client ask the ordering products of use, promptly confirmed to ask the order relations between the subscriber-coded and product coding of authentication.Because at server end, order relations is directly definite by user's sequencing numbers and product sequencing numbers, wherein, subscriber-coded corresponding user's sequencing numbers, the corresponding product sequencing numbers of product coding.Can understand like this,, also can confirm the order relations of confirming jointly with product coding by subscriber-coded through user's sequencing numbers and product sequencing numbers.Therefore; In this step; Need search the corresponding product sequencing numbers of user's sequencing numbers and said product coding of said subscriber-coded correspondence, its objective is the order relations that in next procedure, judges whether to exist the ordering products of confirming jointly by said subscriber-coded and product coding for ease.Usually, the product sequencing numbers that user's sequencing numbers of subscriber-coded correspondence and product coding are corresponding is stored in the database.
Step S13 judges the order relations that whether has the ordering products of being confirmed jointly by user's sequencing numbers that finds out and product sequencing numbers in the order relations table of storing; Wherein, the bivariate table formed by user's sequencing numbers and product sequencing numbers of said order relations table;
What store in the order relations table is the order relations between client and the ordering products, and usually, this order relations table is stored in the database.Particularly, the bivariate table that is used to identify order relations that said order relations table is made up of user's sequencing numbers and product sequencing numbers through user's sequencing numbers and two dimensions of product sequencing numbers, then can be confirmed the order relations of an ordering products uniquely.Particularly, said order relations is as shown in table 1 below:
Table 1: order relations table
? |
P1 |
P2 |
P3 |
P4 |
P5 |
P6 |
P7 |
P8 |
U1 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
U2 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
U3 |
0 |
1 |
0 |
0 |
1 |
0 |
0 |
1 |
U4 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
U5 |
0 |
0 |
1 |
0 |
0 |
1 |
0 |
0 |
U6 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
U7 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
In table 1, exist order relations just to represent with 1, do not exist order relations just to represent with 0.For example, the array value that U1 and P1 are corresponding is 0, and then there is not order relations in expression; The array value that U3 and P2 are corresponding is 1, and there is order relations in expression.In this step, be search condition, then can judge whether there is the order relations of confirming by said user's sequencing numbers and product sequencing numbers in the table 1 soon with user's sequencing numbers and the product sequencing numbers that finds out.
This shows; When adopting the form of above-mentioned order relations table to come the stores subscription relation information; Only need subscriber-coded and corresponding user's sequencing numbers of storage; Also only need product coding of storage and corresponding product sequencing numbers thereof, avoided occurring the situation of a plurality of subscriber-coded and product codings of repeated storage in the prior art, saved memory space to a certain extent.
Further, the order relations in the order relations table is stored with the form that is lower than a byte, preferably, stores with the form of (1bit), has so also practiced thrift the memory space that is consumed because of the stores subscription relation widely.Owing to practiced thrift memory space, required order relations information in the time of therefore just can storing more authentications, as subscriber-coded, product coding and order relations etc.
In this step; If in the order relations table, find the order relations that user's sequencing numbers and product sequencing numbers are confirmed; Then get into step S14, if do not find the said user's sequencing numbers that finds out and the definite order relations of product sequencing numbers, then failed authentication; And return the message of failed authentication to client, its ordering products of using of asking is not provided to client.
Step S14 returns the authentication message of successful to client.
In the order relations table, find after the definite order relations of said user's sequencing numbers that finds out and product sequencing numbers, then confirm the authentication success, return the authentication message of successful to client, and provide corresponding ordering products to said client.
In the present embodiment; After receiving the authentication request information that client sends; Search the corresponding product sequencing numbers of user's sequencing numbers and product coding of subscriber-coded correspondence in the said authentication request information, and judge the order relations that whether exists in the order relations table of its storage by the common definite ordering products of user's sequencing numbers that finds out and product sequencing numbers, and in judged result when being; Return the authentication message of successful to client; Because the form with the two-dimentional order relations table be made up of user's sequencing numbers and product sequencing numbers is come the stores subscription relation information, avoided occurring the situation of a plurality of subscriber-coded and product codings of repeated storage in the prior art, practiced thrift the memory space of database widely; And then make and required order relations information when database can be stored more authentications satisfied actual storage demand.
Further, when coming the order relations in the stores subscription relation table, then can further practice thrift the memory space of database with the form that is lower than a byte, and then required order relations information when having guaranteed further that database can be stored more authentication.
Please refer to Fig. 2, is the schematic flow sheet of second embodiment of the method for authenticating of a kind of ordering products provided by the invention, and said method comprises:
Step S21; Storaging user data table, product data sheet and said order relations table in advance; Store subscriber-coded and corresponding user's sequencing numbers in the said user data table, store product coding and corresponding product sequencing numbers thereof in the said product data sheet.
Wherein, what store in the user data table is user data, and specifically storage is subscriber-coded and user's sequencing numbers.Usually, user data table is stored in the database.Particularly, user data table comes storaging user data with the right mode of key-value.Wherein, key is subscriber-coded, and value is user's sequencing numbers, subscriber-coded corresponding user's sequencing numbers.Wherein, user's sequencing numbers is used for representing subscriber-coded relative position at user data table.Usually, earlier with subscriber-coded sort in a certain order after, be stored in the user data table again.Wherein, generally since 0 counting, for example, U3 representes that then a certain client sorts the 4th in user data table to user's sequencing numbers.
Wherein, what store in the product data sheet is product data, and specifically storage is product coding and product sequencing numbers.Usually, product data sheet is stored in the database.Particularly, product data sheet is also come the storage products data with the right mode of key-value, and wherein key is a product coding, and value is the product sequencing numbers, the corresponding product sequencing numbers of product coding.Wherein, product coding is used to distinguish different ordering products, and the product sequencing numbers is used for representing the relative position of product coding in product data sheet.Usually, after product coding sorted in a certain order, be stored in the product data sheet again.Wherein, generally since 0 counting, for example, P2 representes that then a certain ordering products sorts the 3rd in product data sheet to the product sequencing numbers.
Step S22 receives the authentication request information that client is sent, and said authentication request information comprises: subscriber-coded and product coding;
This step is identical with the operation of step S11 among the embodiment shown in Figure 1, does not give unnecessary details at this.
Step S23, with said subscriber-coded be index, search user's sequencing numbers of subscriber-coded correspondence described in the storage user data table;
After receiving client input subscriber-coded, can with receive subscriber-coded be index, in user data table, search user's sequencing numbers of this subscriber-coded correspondence;
Step S24 is an index with said product coding, searches the corresponding product sequencing numbers of product coding described in the product data sheet of storage;
Behind the product coding that receives the client input, can be index with the product coding that receives, in product data sheet, search the corresponding product sequencing numbers of this product coding;
Need to prove that the operation of the step S23-S24 in the present embodiment is equivalent to the operation of step S12 among the embodiment shown in Figure 1.
Step S25 judges the order relations that whether has the ordering products of being confirmed jointly by user's sequencing numbers that finds out and product sequencing numbers in the order relations table of storing; Wherein, the bivariate table that is used to identify order relations formed by user's sequencing numbers and product sequencing numbers of said order relations table;
Step S26 returns the authentication message of successful to client;
The operation of step S25-S26 is identical with the operation of step S13-S14 among the embodiment shown in Figure 1.
In the present embodiment, with user data, product data, and the order relations corresponding stored makes identical subscriber-coded or product coding only can store once, thereby saved memory space in user data table, product data sheet and order relations table, such as:
Suppose to have 1,600 ten thousand clients, 100 ordering products, the order rate by 10% is calculated, and the shared big I in space of the order relations information of storing in the buffer memory is calculated through following mode:
In user data table, subscriber-codedly take 32 bytes, user's sequencing numbers takies 4 bytes, (supporting 4G user), the size that user data table takies memory space is: 1,600 ten thousand * (32+4)=576MB.
In product data sheet, product coding takies 32 bytes, and the product sequencing numbers takies 4 bytes (supporting 4G product), and the size that product data sheet takies memory space is: 100* (32+4)=3.6KB
The size that the order relations table takies memory space is: 1,600 ten thousand * 100/8=200MB.
So, the shared space size of the order relations information of storage is:
576MB+3.6KB+200MB=776MB。
Compare with adopting the existing shared memory space 160G of storage mode, approximately only taken 5% of conventional store space.This shows; The mode of coming the stores subscription relation information through the form of user data table, product data sheet and order relations table; Can practice thrift the memory space of database greatly, thereby make required order relations information when database can be stored more authentications.
Further, said user data table, product data sheet and order relations table also are stored in the buffer memory.Can understand like this, in buffer memory, also can find said subscriber-coded and corresponding user's sequencing numbers, said product coding and the product sequencing numbers of correspondence and the order relations of said ordering products.So; When the authentication request information that the said client of authentication is sent; Directly in buffer memory, search the order relations that whether exists said user's sequencing numbers and product sequencing numbers to confirm jointly; Thereby reduced visit, avoided database can not in time return the situation of the order relations that whether stores a plurality of client-requested authentications as much as possible, accelerated authority-identifying speed because of the restriction of concurrent processing ability to database.
Please refer to Fig. 3, is the flow chart of the 3rd embodiment of the method for authenticating of a kind of ordering products provided by the invention, and said method comprises:
Step S31; Storaging user data table, product data sheet and said order relations table in advance; Store subscriber-coded and corresponding user's sequencing numbers in the said user data table, store product coding and corresponding product sequencing numbers thereof in the said product data sheet;
The operation of this step is identical with the operation of step S21 among the embodiment shown in Figure 2, no longer is repeated in this description at this.
Step S32 receives and to be used to the solicited message of indicating order relations to change;
Wherein, solicited message is used to indicate the order relations that changes.The kind that order relations changes also has a lot, and the user can change order relations through the mode to the server application.Wherein, the kind that order relations changes comprises the change order relations, newly-increased order relations and deletion order relations etc.
Step S33 according to the indication of described request information, upgrades the order relations of the ordering products of storing in the said order relations table;
Wherein, because that the kind that changes of order relations has is multiple, therefore, the order relations of the variation of solicited message indication possibly be the order relations of newly-increased ordering products, the order relations of change ordering products and the order relations of deletion ordering products.In this step, can be according to the indication of described request information, the order relations of the ordering products of storing in the corresponding renewal order relations table.The order relations that upgrades the ordering products of order relations table comprises: the order relations of the ordering products in the order relations table of storing in the storehouse that Updates Information; In buffer memory, store the order relations table, the order relations of the ordering products of order relations table storage in Update Information synchronously storehouse and the buffer memory.
Step S34 receives the authentication request information that client is sent, and said authentication request information comprises: subscriber-coded and product coding;
Step S35 searches the user's sequencing numbers of said subscriber-coded correspondence and the product sequencing numbers of said product coding correspondence;
Step S36 judges the order relations that whether has the ordering products of being confirmed jointly by user's sequencing numbers that finds out and product sequencing numbers in the order relations table of storing; Wherein, the bivariate table that is used to identify order relations formed by user's sequencing numbers and product sequencing numbers of said order relations table;
Step S37 returns the authentication message of successful to client.
Wherein, the operation of step S34-S37 is identical with the operation of step S11-S14 among the embodiment shown in Figure 1, does not give unnecessary details at this.It is understandable that, in the present embodiment, when searching the corresponding product sequencing numbers of user's sequencing numbers and the said product coding of said subscriber-coded correspondence among the step S35, can search according to the described method of step S23-S24 in embodiment illustrated in fig. 2.
In the present embodiment, receive be used to indicate the solicited message that order relations changes after, upgrade the order relations of the ordering products of storing in the order relations table.So design; Then can guarantee after receiving user's authentication request information; Can accurately judge the order relations that whether exists this authentication request information to confirm in the authentication device, the situation of the authentication mistake of having avoided causing because of the order relations in the order relations table that do not upgrade in time; Simultaneously; Owing to can in buffer memory, search the order relations that whether exists said user's sequencing numbers and product sequencing numbers to confirm jointly earlier; Thereby also reduced visit to database; Avoided database can not in time return the situation of the order relations that whether stores a plurality of client-requested authentications as much as possible, accelerated authority-identifying speed because of the restriction of concurrent processing ability.
Need to prove that the method for authenticating of above-mentioned disclosed a kind of ordering products, its executive agent can be server ends.
Above-mentioned Fig. 1-Fig. 3 describes in detail the method for authenticating of a kind of ordering products that the embodiment of the invention provides.Below in conjunction with accompanying drawing 4-7, to adopting the described method for authenticating of the foregoing description ordering products is carried out the device of authentication, and right discriminating system is described in detail.
Please refer to Fig. 4, is the structural representation of first embodiment of the authentication device 4 of a kind of ordering products provided by the invention, and said authentication device 4 comprises:
Receiver module 41 is used to receive the authentication request information that client is imported, and said authentication request information comprises: subscriber-coded and product coding;
During various ordering products that client need use that the broadcasting and TV system provides, all need send authentication request information to corresponding server end.Client can be sent authentication request information to server end through the modes such as key assignments of selecting remote controller.The authentication request information that client is sent comprises: subscriber-coded and product coding.Wherein, subscriber-codedly be used to distinguish different client side, product coding is used to distinguish the different ordering products that the broadcasting and TV system provides.Receiver module 41 in the authentication device then is used for correspondingly receiving the authentication request information that client is sent.
Search module 42, be used to search user's sequencing numbers of the subscriber-coded correspondence that receiver module 41 receives and the corresponding product sequencing numbers of product coding that receiver module 41 receives;
Through the subscriber-coded and product coding that client is sent, can confirm that active client ask the ordering products of use, promptly confirmed to ask the order relations between the subscriber-coded and product coding of authentication.Because at server end, order relations is directly definite by user's sequencing numbers and product sequencing numbers, wherein, subscriber-coded corresponding user's sequencing numbers, the corresponding product sequencing numbers of product coding.Can understand like this,, also can confirm the order relations of confirming jointly with product coding by subscriber-coded through user's sequencing numbers and product sequencing numbers.Therefore; Search the corresponding product sequencing numbers of user's sequencing numbers and said product coding that module 42 need be searched said subscriber-coded correspondence, its objective is that judge module 43 for ease judges whether to exist the order relations of the ordering products of being confirmed jointly by said subscriber-coded and product coding.
Whether judge module 43, the order relations table that is used for judging storage exist by the order relations of searching the ordering products that user's sequencing numbers that module 42 finds out and product sequencing numbers confirm jointly; Wherein, the bivariate table that is used to identify order relations formed by user's sequencing numbers and product sequencing numbers of said order relations table;
What wherein, store in the order relations table is the order relations between client and the ordering products.The bivariate table that is used to identify order relations that said order relations table is made up of user's sequencing numbers and product sequencing numbers through user's sequencing numbers and two dimensions of product sequencing numbers, then can be confirmed an order relations uniquely.Particularly, this order relations table is as above shown in the table 1.
In table 1, exist order relations just to represent with 1, do not exist order relations just to represent with 0.For example, the array value that U1 and P1 are corresponding is 0, and then there is not order relations in expression; The array value that U3 and P2 are corresponding is 1, and there is order relations in expression.
Judge module 43 is a search condition with the user's sequencing numbers and the product sequencing numbers of searching module 42 and finding out, and then can judge whether there is the order relations of being confirmed by said user's sequencing numbers and product sequencing numbers in the table 1 soon.
This shows; When authentication device adopts the form of above-mentioned order relations table to come the stores subscription relation information; Only need subscriber-coded and corresponding user's sequencing numbers of storage; Also only need product coding of storage and corresponding product sequencing numbers thereof, avoided occurring the situation of a plurality of subscriber-coded and product codings of repeated storage in the prior art, saved memory space to a certain extent.
Further, the order relations in the order relations table is stored with the form that is lower than a byte, preferably, stores with the form of (1bit), has so also practiced thrift the memory space that is consumed because of the stores subscription relation widely.Owing to practiced thrift memory space, thus authentication device required order relations information just can store more authentications the time, as subscriber-coded, product coding and order relations etc.
Exist in the judge module 43 judgement order relations tables after the definite order relations of said user's sequencing numbers that finds out and product sequencing numbers, then control sending module 44 and send the authentication message of successful to client.
Sending module 44 is used in the judged result of said judge module 43 returning the authentication message of successful to client when being.
Sending module 44 returns the authentication message of successful to client, and provides corresponding ordering products to said client.
In the present embodiment; After receiver module receives the authentication request information that client sends; Search the user's sequencing numbers and the corresponding product sequencing numbers of product coding of subscriber-coded correspondence in the said authentication request information of module searches; Judge the order relations that whether exists in the order relations table of storage by searching the common definite ordering products of user's sequencing numbers that module searches goes out and product sequencing numbers through judge module; Last sending module when being, returns authentication message of successful to client in the judged result of judge module.Because the form with the two-dimentional order relations table be made up of user's sequencing numbers and product sequencing numbers is come the stores subscription relation information; Avoided occurring the situation of a plurality of subscriber-coded and product codings of repeated storage in the prior art; So just practiced thrift the memory space of authentication device widely; And then make and required order relations information when authentication device can be stored more authentications satisfied actual storage demand.
Further, when coming the order relations in the stores subscription relation table, then can further practice thrift memory space with the form that is lower than a byte, and then required order relations information when having guaranteed further that authentication device can be stored more authentications.
Please refer to Fig. 5, is the structural representation of second embodiment of the authentication device of a kind of ordering products provided by the invention, and the difference of present embodiment and embodiment shown in Figure 4 is that said device also comprises:
Memory module 45; Be used for storaging user data table, product data sheet and said order relations table in advance; Store subscriber-coded and corresponding user's sequencing numbers in the said user data table, store product coding and corresponding product sequencing numbers thereof in the said product data sheet;
Wherein, what store in the user data table of memory module 45 is user data, and specifically storage is subscriber-coded and user's sequencing numbers.Particularly, user data table comes storaging user data with the right mode of key-value.Wherein, key is subscriber-coded, and value is user's sequencing numbers, subscriber-coded corresponding user's sequencing numbers.Wherein, user's sequencing numbers is used for representing subscriber-coded relative position at user data table.Usually, earlier with subscriber-coded sort in a certain order after, be stored in the user data table again.Wherein, generally since 0 counting, for example, U3 representes that then a certain client sorts the 4th in user data table to user's sequencing numbers.
Wherein, what store in the product data sheet of memory module 45 is product data, and specifically storage is product coding and product sequencing numbers.Particularly, product data sheet is also come the storage products data with the right mode of key-value, and wherein key is a product coding, and value is the product sequencing numbers, the corresponding product sequencing numbers of product coding.Wherein, product coding is used to distinguish different ordering products, and the product sequencing numbers is used for representing the relative position of product coding in product data sheet.Usually, after product coding sorted in a certain order, be stored in the product data sheet again.Wherein, generally since 0 counting, for example, P2 representes that then a certain ordering products sorts the 3rd in product data sheet to the product sequencing numbers.
Further, the said module 43 of searching comprises:
User's sequencing numbers is searched the unit, be used for said receiver module 41 receive subscriber-coded be index, search user's sequencing numbers of subscriber-coded correspondence described in the memory module 45 storage user data tables;
After receiver module 41 received client input subscriber-coded, user's sequencing numbers was searched unit 51, can with receive subscriber-coded be index, in memory module 45 storage user data tables, search user's sequencing numbers of this subscriber-coded correspondence;
The product sequencing numbers is searched the unit, and the product coding that is used for receiving with said receiver module is an index, searches the corresponding product sequencing numbers of product coding described in the product data sheet of memory module 45 storage.
Receive the product coding of client input when receiver module after, it can be index with the product coding that receives that the product sequencing numbers is searched unit 52, in the product data sheet of memory module 45, searches the corresponding product sequencing numbers of this product coding;
In the present embodiment; With user data; Product data, and the order relations corresponding stored is in user data table, product data sheet and the order relations table of memory module 45, like this then make identical subscriber-coded or product coding only can store once; Thereby saved the memory space of memory module, such as:
Suppose to have 1,600 ten thousand clients, 100 ordering products, the order rate by 10% is calculated, and the shared big I in space of the order relations information of storing in the buffer memory is calculated through following mode:
In user data table, subscriber-codedly take 32 bytes, user's sequencing numbers takies 4 bytes, (supporting 4G user), the size that user data table takies memory space is: 1,600 ten thousand * (32+4)=576MB.
In product data sheet, product coding takies 32 bytes, and the product sequencing numbers takies 4 bytes (supporting 4G product), and the size that product data sheet takies memory space is: 100* (32+4)=3.6KB
The size that the order relations table takies memory space is: 1,600 ten thousand * 100/8=200MB.
So, the shared space size of the order relations information of storage is:
576MB+3.6KB+200MB=776MB。
Compare with adopting the existing shared memory space 160G of storage mode, approximately only taken 5% of conventional store space.This shows; The mode of coming the stores subscription relation information through the form of user data table, product data sheet and order relations table; The memory space of conserve memory module greatly, thus required order relations information when memory module can be stored more authentications made.
Further, said authentication device also comprises:
Cache module 46 is used to store said user data table, product data sheet and order relations table.Can understand like this, search module 42 in cache module 46, also can find said subscriber-coded and corresponding user's sequencing numbers, said product coding and the product sequencing numbers of correspondence and the order relations of said ordering products.So; When the authentication request information that the said client of authentication is sent; Directly in the cache module 46 of authentication device, search the order relations that whether exists said user's sequencing numbers and product sequencing numbers to confirm jointly, thereby reduced visit, when memory module is database memory module 45; Then avoided database can not in time return the situation of the order relations that whether stores a plurality of client-requested authentications as much as possible, accelerated authority-identifying speed because of the restriction of concurrent processing ability.
Please refer to Fig. 6, is the structural representation of the 3rd embodiment of the authentication device of a kind of ordering products provided by the invention, and the difference of present embodiment and embodiment shown in Figure 5 is that said authentication device also comprises: update module 47; Wherein,
Said receiver module 41 also is used to receive and is used to the solicited message of indicating order relations to change;
Wherein, solicited message is used to indicate the order relations that changes.The kind that order relations changes also has a lot, and the user can change order relations through the mode to the server application.Wherein, the kind that order relations changes comprises the change order relations, newly-increased order relations and deletion order relations etc.
Update module 47 is used for when said receiver module 41 receives solicited message, according to the indication of described request information, upgrades the order relations of storing in the order relations table of the order relations stored in the order relations table of said memory module 45 and cache module 46.
Because the kind that order relations changes has multiple; Therefore; The variation order relations of the solicited message indication that receiver module 41 receives possibly be the order relations of newly-increased ordering products, the order relations of change ordering products and the order relations of deletion ordering products.Update module 47 can be according to the indication of described request information, the order relations in the order relations of corresponding updated stored module 45 storages and the order relations table of cache module 46.
In the present embodiment, update module 47 receiver module 41 receive be used to indicate the solicited message that order relations changes after, the order relations in the order relations table of order relations in the order relations table of updated stored module 45 and cache module 46 synchronously.So design; Then can guarantee after receiving user's authentication request information; Can accurately judge the order relations that whether exists this authentication request information to confirm in the authentication device; The situation of the authentication mistake of having avoided causing because of the order relations in the memory module that do not upgrade in time and the order relations in the cache module; Simultaneously, owing to can in buffer memory, search the order relations that whether exists said user's sequencing numbers and product sequencing numbers to confirm jointly earlier, thereby also reduced visit to database; Avoided database can not in time return the situation of the order relations that whether stores a plurality of client-requested authentications as much as possible, accelerated authority-identifying speed because of the restriction of concurrent processing ability.。
Need to prove that the authentication device in the foregoing description can be the server end in the radio, TV and film industries.
Please refer to Fig. 7, the present invention also provide can a kind of ordering products right discriminating system, said right discriminating system comprises:
Client 7 is used for sending authentication request information to authentication device 4, and said authentication request information comprises: subscriber-coded and product coding;
Authentication device 4 is used to receive the authentication request information that client 7 is sent; Also be used to search the user's sequencing numbers and the corresponding product sequencing numbers of said product coding of said subscriber-coded correspondence; And be used for also judging whether the order relations table of its storage exists the order relations by user's sequencing numbers that finds out and the common ordering products of confirming of product sequencing numbers; And in judged result when being, return the authentication message of successful to client; Wherein, the bivariate table that is used to identify order relations formed by user's sequencing numbers and product sequencing numbers of said order relations table.
In the present embodiment; After receiving the authentication request information that client sends; Search the user's sequencing numbers and the corresponding product sequencing numbers of product coding of subscriber-coded correspondence in the said authentication request information; And judge the order relations that whether has the ordering products of confirming jointly by user's sequencing numbers that finds out and product sequencing numbers in the order relations table of its storage; And in judged result when being, return the authentication message of successful to client, owing to come the stores subscription relation information with the form of the two-dimentional order relations table formed by user's sequencing numbers and product sequencing numbers; Avoided occurring the situation of a plurality of subscriber-coded and product codings of repeated storage in the prior art; Practiced thrift the memory space of authentication device widely, and then made and required order relations information when authentication device can be stored more authentications satisfied actual storage demand.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosedly be merely preferred embodiment of the present invention; Certainly can not limit the present invention's interest field with this; One of ordinary skill in the art will appreciate that all or part of flow process that realizes the foregoing description; And, still belong to the scope that invention is contained according to the equivalent variations that claim of the present invention is done.