CN102523490A - Authentication method, authentication device and authentication system of ordered products - Google Patents

Authentication method, authentication device and authentication system of ordered products Download PDF

Info

Publication number
CN102523490A
CN102523490A CN2011103946454A CN201110394645A CN102523490A CN 102523490 A CN102523490 A CN 102523490A CN 2011103946454 A CN2011103946454 A CN 2011103946454A CN 201110394645 A CN201110394645 A CN 201110394645A CN 102523490 A CN102523490 A CN 102523490A
Authority
CN
China
Prior art keywords
product
order relations
sequencing numbers
user
authentication
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.)
Pending
Application number
CN2011103946454A
Other languages
Chinese (zh)
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.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
SHENZHEN TONGZHOU VIDEO MEDIA 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 SHENZHEN TONGZHOU VIDEO MEDIA CO Ltd filed Critical SHENZHEN TONGZHOU VIDEO MEDIA CO Ltd
Priority to CN2011103946454A priority Critical patent/CN102523490A/en
Publication of CN102523490A publication Critical patent/CN102523490A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

An embodiment of the invention discloses an authentication method of ordered products, which includes: receiving authentication request information sent by a client side, wherein the authentication request information comprises user codes and product codes; seeking user sequencing numbers corresponding to the user codes and product sequencing numbers corresponding to the product codes; judging whether the ordering relation of the ordered products determined together by the user sequencing numbers and the product sequencing numbers checked out exists in a stored ordering relation table which is a two-dimensional table used for identifying ordering relation and formed by the user sequencing numbers and the product sequencing numbers; and returning information of successful authentication to the client side if the ordering relation exists in the ordering relation table. The embodiment of the invention further discloses an authentication device and an authentication system of the ordered products. By adopting the authentication method, the authentication device and the authentication system of the ordered products, storage space can be saved, further more ordering relation information required during authentication can be stored, and actual storage requirements are met.

Description

A kind of method for authenticating of ordering products, authentication device and right discriminating system
Technical field
The present invention relates to the authentication techniques field, particularly, relate in particular to a kind of method for authenticating, authentication device and right discriminating system of ordering products.
Background technology
At present, when using some paid services of broadcasting and TV system, client all need be ordered these business to server end.In this application, client is called ordering products to these paid services that the broadcasting and TV system orders.The database of server end can be stored these order relations information, and this order relations information comprises the client of having ordered product, also claims subscriber-coded; The product of supply ordering that the broadcasting and TV system provides is also claimed product coding; Also comprise product and ordered the relation between the client of this product, i.e. order relations etc.
In the prior art, server end is when these order relations information of storage, and the storage mode of employing is:
Store that certain is subscriber-coded, the order relations between product coding and subscriber-coded and the product coding, promptly store with the right mode of subscriber-coded-product coding-order relations.When same client has been ordered a plurality of product, so same subscriber-coded will be repeatedly by the server end repeated storage.Correspondingly, when an ordering products was ordered by a large amount of clients, this product coding also can repeatedly be stored repeatedly by server end, so, has then taken a large amount of storage resources of server end.
Such as, 1,600 ten thousand clients are arranged, 100 ordering products suppose that each order relations information accounts for 1K byte, and the order rate by 10% is calculated, and the order relations informational needs of storing all clients so takies the memory space of 1,600 ten thousand * 100*1K*10%=160G.
Yet, along with the growth of client terminal quantity, being on the increase of ordering products kind, the continuous lifting of order rate, the quantity of the order relations information that server end need be stored constantly increases, and the memory space of server end needs constantly to enlarge.Suppose that order rate rises to 20% from 10%, under the constant situation of other conditions, the required memory space of server end is 320G.
This shows; Along with the sustainable growth of client terminal quantity, ordering products kind continue increase and the lifting of order rate; The demand of the memory space of server end is can be increasing, and therefore the memory space of existing server end is to satisfy actual storage demand.
Summary of the invention
Embodiment of the invention technical problem to be solved is, a kind of method for authenticating of ordering products is provided, authentication device and right discriminating system, but conserve storage, thereby required order relations information can store more authentications the time.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of method for authenticating of ordering products, comprising:
Receive the authentication request information that client is sent, said authentication request information comprises: subscriber-coded and product coding;
Search the user's sequencing numbers and the corresponding product sequencing numbers of said product coding of said subscriber-coded correspondence;
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 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;
If return the authentication message of successful to client.
Correspondingly, the embodiment of the invention also provides a kind of authentication device of ordering products, comprising:
Receiver module is used to receive the authentication request information that client is imported, and said authentication request information comprises: subscriber-coded and product coding;
Search module, be used to search user's sequencing numbers of the subscriber-coded correspondence that said receiver module receives and the corresponding product sequencing numbers of product coding that said receiver module receives;
Whether judge module, the order relations table that is used for judging storage exist the order relations of searching the ordering products that user's sequencing numbers that module searches goes out and product sequencing numbers confirm jointly by said; 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;
Sending module is used in the judged result of said judge module returning the authentication message of successful to client when being.
Correspondingly, the embodiment of the invention also provides a kind of right discriminating system of ordering products, and said right discriminating system comprises:
Client is used for sending authentication request information to authentication device, and said authentication request information comprises: subscriber-coded and product coding;
Authentication device is used to receive the authentication request information that client 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.
Embodiment of the present invention embodiment has following beneficial effect:
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 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 memory space widely; And then required order relations information can store more authentications the time, satisfied actual storage demand.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of first embodiment of the method for authenticating of a kind of ordering products provided by the invention;
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;
Fig. 3 is the schematic flow sheet of the 3rd embodiment of the method for authenticating of a kind of ordering products provided by the invention;
Fig. 4 is the structural representation of first embodiment of the authentication device of a kind of ordering products provided by the invention;
Fig. 5 is the structural representation of second embodiment of the authentication device of a kind of ordering products provided by the invention;
Fig. 6 is the structural representation of the 3rd embodiment of the authentication device of a kind of ordering products provided by the invention;
Fig. 7 is the structural representation of embodiment of the right discriminating system of a kind of ordering products provided by the invention.
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.

Claims (10)

1. the method for authenticating of an ordering products is characterized in that, comprising:
Receive the authentication request information that client is sent, said authentication request information comprises: subscriber-coded and product coding;
Search the user's sequencing numbers and the corresponding product sequencing numbers of said product coding of said subscriber-coded correspondence;
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 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;
If return the authentication message of successful to client.
2. method for authenticating as claimed in claim 1 is characterized in that, the order relations in the said order relations table is to store with the form that is lower than a byte.
3. according to claim 1 or claim 2 method for authenticating is characterized in that said method also comprises:
Storaging user data table, product data sheet and said order relations table store subscriber-coded and corresponding user's sequencing numbers in the said user data table in advance, store product coding and corresponding product sequencing numbers thereof in the said product data sheet.
4. method for authenticating as claimed in claim 3 is characterized in that, said user data table, product data sheet and said order relations table also are stored in the buffer memory.
5. like each described method for authenticating of claim 1-4, it is characterized in that before the authentication request information that the reception client is sent, said method for authenticating also comprises:
Reception is used to the solicited message of indicating order relations to change;
According to the indication of described request information, upgrade the order relations of the ordering products of storing in the said order relations table.
6. the authentication device of an ordering products is characterized in that, comprising:
Receiver module is used to receive the authentication request information that client is imported, and said authentication request information comprises: subscriber-coded and product coding;
Search module, be used to search user's sequencing numbers of the subscriber-coded correspondence that said receiver module receives and the corresponding product sequencing numbers of product coding that said receiver module receives;
Whether judge module, the order relations table that is used for judging storage exist the order relations of searching the ordering products that user's sequencing numbers that module searches goes out and product sequencing numbers confirm jointly by said; 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;
Sending module is used in the judged result of said judge module returning the authentication message of successful to client when being.
7. authentication device as claimed in claim 6 is characterized in that, said device also comprises:
Memory module; 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.
8. authentication device as claimed in claim 7 is characterized in that, said authentication device also comprises:
Cache module is used to store said user data table, said product data sheet and said order relations table.
9. authentication device as claimed in claim 8 is characterized in that,
Said receiver module also is used to receive and is used to the solicited message of indicating order relations to change;
Said device also comprises:
Update module is used for when said receiver module 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 and cache module.
10. the right discriminating system of an order business is characterized in that, comprising:
Client is used for sending authentication request information to authentication device, and said authentication request information comprises: subscriber-coded and product coding;
Authentication device is used to receive the authentication request information that client 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.
CN2011103946454A 2011-12-02 2011-12-02 Authentication method, authentication device and authentication system of ordered products Pending CN102523490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103946454A CN102523490A (en) 2011-12-02 2011-12-02 Authentication method, authentication device and authentication system of ordered products

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103946454A CN102523490A (en) 2011-12-02 2011-12-02 Authentication method, authentication device and authentication system of ordered products

Publications (1)

Publication Number Publication Date
CN102523490A true CN102523490A (en) 2012-06-27

Family

ID=46294265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103946454A Pending CN102523490A (en) 2011-12-02 2011-12-02 Authentication method, authentication device and authentication system of ordered products

Country Status (1)

Country Link
CN (1) CN102523490A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790262A (en) * 2017-02-07 2017-05-31 腾讯科技(深圳)有限公司 A kind of method for authenticating and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442661A (en) * 2007-11-21 2009-05-27 中国移动通信集团公司 Method and mobile terminal for playing stream medium program
CN101765096A (en) * 2008-12-26 2010-06-30 中兴通讯股份有限公司 Method, device and system for querying order relations
CN102142122A (en) * 2010-08-10 2011-08-03 华为软件技术有限公司 Service booking method and system as well as related server and client

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442661A (en) * 2007-11-21 2009-05-27 中国移动通信集团公司 Method and mobile terminal for playing stream medium program
CN101765096A (en) * 2008-12-26 2010-06-30 中兴通讯股份有限公司 Method, device and system for querying order relations
CN102142122A (en) * 2010-08-10 2011-08-03 华为软件技术有限公司 Service booking method and system as well as related server and client

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790262A (en) * 2017-02-07 2017-05-31 腾讯科技(深圳)有限公司 A kind of method for authenticating and device

Similar Documents

Publication Publication Date Title
CN101876983B (en) Method for partitioning database and system thereof
US9208189B2 (en) Distributed request processing
CN105260136A (en) Data read-write method and distributed storage system
CN105164712A (en) Prioritized and contextual display of aggregated account notifications
CN103177117B (en) The update method of information index system and information index
CN103748579A (en) Processing data in a mapreduce framework
CN103888281A (en) Server gray scale upgrading method and apparatus, and corresponding gray scale upgrading server
CN102385594A (en) Method and device for controlling inner cores of multi-core browser
CN105139191A (en) Method and device for obtaining order information
CN101944124A (en) Distributed file system management method, device and corresponding file system
CN103995879A (en) Data query method, device and system based on OLAP system
CN103544153A (en) Data updating method and system based on database
CN102567329A (en) Data query method and data query system
CN104572860A (en) Data processing method and data processing system
CN105426483A (en) File reading method and device based on distributed system
CN103034935A (en) Device and method for taking stock in real time
CN102739622A (en) Expandable data storage system
CN103942209A (en) Data processing method
CN103098056A (en) Ordering method, apparatus and terminal
CN102790784A (en) Distributed cache method and system and cache analyzing method and analyzing system
CN102647481A (en) Device and method for accessing preset network address
CN105550346A (en) Information management method and device
CN102971698A (en) Snapshot data-processing method and system, storage system and snapshot agency
US8868525B2 (en) Distributed information synchronization
US8560698B2 (en) Allocating unique identifiers using metadata

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHENZHEN LONGSHI MEDIA CO., LTD.

Free format text: FORMER OWNER: SHENZHEN COSHIP VIDEO COMMUNICATION CO., LTD.

Effective date: 20130407

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20130407

Address after: 4, 518057 floor, rainbow science and technology building, north high tech Zone, Nanshan District, Guangdong, Shenzhen

Applicant after: Shenzhen Longguan Media Co., Ltd.

Address before: 518057 B2-1 District, rainbow tech building, North Fifth Industrial Zone, north high tech Zone, Nanshan District, Guangdong, Shenzhen

Applicant before: Shenzhen Tongzhou Video Media Co., Ltd.

ASS Succession or assignment of patent right

Owner name: SHENZHEN TONGZHOU ELECTRONIC CO., LTD.

Free format text: FORMER OWNER: SHENZHEN LONGSHI MEDIA CO., LTD.

Effective date: 20140509

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20140509

Address after: 518057 Nanshan District hi tech park, Guangdong, North District Rainbow science and Technology Building

Applicant after: Shenzhen Tongzhou Electronic Co., Ltd.

Address before: 4, 518057 floor, rainbow science and technology building, north high tech Zone, Nanshan District, Guangdong, Shenzhen

Applicant before: Shenzhen Longguan Media Co., Ltd.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120627