Summary of the invention
The invention provides a kind of method and system of two-dimension code expansion to address the above problem.
The invention provides the method that a kind of two-dimension code expands, may further comprise the steps.Scanner scanning two-dimension code obtains server path, controller path and signing messages, and described signing messages is sent to respectively described server and controller.Described server is according to described signing messages, determine target factor weight table and calculate positive divisor according to the user's registration information table, described controller is according to described signing messages, determine target interactive information table, and calculate the spherical factor and the described spherical factor is sent to server according to described target interactive information table.When described positive divisor and the spherical factor all are not less than each self-corresponding preset value, the more described positive divisor of described server and the spherical factor, and in the information classification table, obtain corresponding data message according to comparative result and described signing messages, be pushed to demoder.
The invention provides the system that a kind of two-dimension code expands, comprise server, controller and client, described server connects described controller, and described client connects respectively described server and described controller.Described client comprises scanner, mediator and demoder, and described scanner connects described mediator, and described mediator connects described demoder.Described scanner is used for the scanning two-dimension code and obtains server path, controller path and signing messages, and described signing messages is sent to described server and controller.Described controller is used for the described signing messages according to described client transmission, determines target interactive information table, and according to described target interactive information table, calculates the spherical factor, and the described spherical factor is sent to server.Described server, be used for according to described signing messages, determine target factor weight table and calculate positive divisor according to the user's registration information table, also be used for when described positive divisor and the spherical factor all are not less than each self-corresponding preset value, more described positive divisor and the spherical factor, and in the information classification table, obtain corresponding data information according to comparative result and described signing messages, and be pushed to demoder.Described demoder is used for receiving the data stream of described server push, and is converted to corresponding format.Described mediator is for the data stream of the corresponding format of playing described demoder conversion.
Compared to prior art, according to the method and system that two-dimension code provided by the invention expands, scanner scanning two-dimension code obtains server path, controller path and signing messages, and described signing messages is sent to respectively described server and controller.Described server is according to described signing messages, determine target factor weight table and calculate positive divisor according to the user's registration information table, described controller is according to described signing messages, determine target interactive information table, and calculate the spherical factor and the described spherical factor is sent to server according to described target interactive information table.When described positive divisor and the spherical factor all are not less than each self-corresponding preset value, the more described positive divisor of described server and the spherical factor, and in the information classification table, obtain corresponding data message according to comparative result and described signing messages, be pushed to demoder.Both expand the information capacity of two-dimension code, promoted the use value of two-dimension code; Simultaneously also be conducive to attract to have the user of potential consumption demand.
Embodiment
Hereinafter also describe in conjunction with the embodiments the present invention in detail with reference to accompanying drawing.Need to prove that in the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Figure 1 shows that preferred embodiment according to the present invention provides the process flow diagram of the method for two-dimension code expansion.As shown in Figure 1, preferred embodiment of the present invention provides the method for two-dimension code expansion to comprise step 101 ~ 103.
Step 101: scanner scanning two-dimension code obtains server path, controller path and signing messages, and described signing messages is sent to respectively described server and controller.
Particularly, contain two-dimension code image in the commodity external packing to be scanned, and the information that two-dimension code comprises is server path, controller path and signing messages.After scanner scans described two-dimension code image, by server path and the controller path that has obtained described signing messages is sent to respectively server and controller.In this, described signing messages is the information of described two-dimension code corresponding goods, comprises trade name.Wherein, described server path, controller path and signing messages are enciphered message, only have described scanner to be decrypted described enciphered message.
Step 102: described server is according to described signing messages, determine target factor weight table and calculate positive divisor according to the user's registration information table, described controller is according to described signing messages, determine target interactive information table, calculate the spherical factor and the described spherical factor is sent to server according to described target interactive information table.
Particularly, when the first logon server of user, need in the user's registration information table of described server, to register personal information.In present embodiment, described user's registration information table content comprises numbering, name, age, feature, convenience goods and income, in other embodiment, described user's registration information table content can be set as required, yet to this present invention and be not construed as limiting.
Described server stores factor weight table, described factor weight table comprises trade name, factor classification, the factor and weight, wherein each factor respective weights is default by server.Server is determined target factor weight table according to described signing messages, and described target factor weight table comprises trade name, factor classification, the factor and the weight of described signing messages corresponding goods.The mode that described server calculates positive divisor is according to the corresponding relation of the factor and weight in user's registration information in the user's registration information table and the factor weight table, to determine described positive divisor.Be specially, each factor weight sum is divided by the total number of the factor, and gained ratio is positive divisor.
Described controller storage interactive information table, each commodity scanning result in the described interactive information table storage preset period of time comprises trade name, scanning people and sweep time.Controller is determined target interactive information table according to described signing messages, and described target interactive information table comprised with described signing messages corresponding goods with the trade name of a series of all commodity, scanning people and sweep time.The described spherical factor is that the scanning times of two-dimension code corresponding goods and described commodity are with the ratio of a series of all commodity scanning times summations in the interior described target interactive information table of preset period of time.Controller calculates the spherical factor and sends to server.
Step 103: when described positive divisor and the spherical factor all are not less than each self-corresponding preset value, the more described positive divisor of described server and the spherical factor, and in the information classification table, obtain corresponding data message according to comparative result and described signing messages, be pushed to demoder.
Particularly, the corresponding preset value of server stores positive divisor and spherical factor pair are answered preset value, and when described positive divisor is not less than self corresponding preset value, and the spherical factor is when being not less than self corresponding preset value, the more described positive divisor of server and the spherical factor.In present embodiment, the mode of described comparison is to obtain the absolute value of the difference of positive divisor and the spherical factor.In other embodiment, to the manner of comparison of described positive divisor and the spherical factor, can adopt difference or ratio etc. according to both to compare, yet to this present invention and be not construed as limiting.
Server is also stored the information classification table, and described information classification table comprises trade name, matching degree, buyer's guide and sales promotion information.Described server according to comparative result and described signing messages obtain corresponding data message in the information classification table process is: described server is determined the target information sorted table according to described signing messages.Described target information sorted table comprises trade name, matching degree, buyer's guide and the sales promotion information of described signing messages corresponding goods.Described server by described target information sorted table, is determined the Corresponding matching degree, thereby is obtained corresponding data message, and be pushed to demoder according to described comparative result.In this, described server comprises buyer's guide and sales promotion information to the data message that described demoder pushes.After described demoder receives described data message, be converted to corresponding format and play at mediator, wherein, mediator comprises mobile phone.Described corresponding format comprises picture, video and text formatting.
For example, the user's registration information tableau format example of server stores is as shown in table 1.
Numbering |
Name |
Age |
Feature |
Convenience goods |
Income |
001 |
Zhang San |
25 |
Bits |
Rejoice |
2000~3000 |
Table 1
The factor weight table form example of described server stores is as shown in table 2.
Table 2
According to table 2, positive divisor is calculated as, (characterization factor weight+convenience goods factor weight+income factor weight)/total number of the factor.For example, Zhang San in server registers after the personal information in the table 1, Head﹠Shoulders (anti-dandruff) commodity have been scanned by scanner, the weight that server is answered according to each factor pair of Head﹠Shoulders in table 1 and the table 2 (anti-dandruff) commodity, calculating is for Zhang San, and the positive divisor of Head﹠Shoulders (anti-dandruff) commodity is (0.8+0.3+0.4)/(1+1+1)=0.5.
If preset period of time is 2012-10-01 to 2012-10-31 in the interactive information table of controller storage, described interactive information sheet format example is as shown in table 3.
Table 3
According to table 3, the scanning times of Head﹠Shoulders (anti-dandruff) commodity in preset period of time of Zhang San's scanning is 2, and all commodity scanning total degrees of this series are 2+3+1, and then the spherical factor is: 2/(2+3+1)=0.33.
The information classification sheet format example of described server stores is as shown in table 4.
Table 4
In the present embodiment, if the positive divisor preset value of server stores and spherical factor preset value are 0.3.In this, positive divisor 0.5 and the spherical factor 0.33 are all greater than 0.3, then server compares positive divisor and the spherical factor, and the absolute value that obtains both differences is | 0.5 – 0.33 | and=0.17, matching degree in the corresponding table 4 is 0.1 ~ 0.3, and then server pushes buyer's guide corresponding to this matching degree and sales promotion information to demoder.According to table 4, it is video, picture and the Word message of Head﹠Shoulders (anti-dandruff) commodity that server pushes buyer's guide to demoder, and sales promotion information is the information of discount of Head﹠Shoulders (anti-dandruff) commodity: can make a call to 9 foldings.Demoder is converted to picture, video and the text formatting that Zhang San's mobile phone is supported with described buyer's guide and sales promotion information, plays at mobile phone.
Figure 2 shows that preferred embodiment according to the present invention provides the synoptic diagram of the system of two-dimension code expansion.As shown in Figure 2, the system that preferred embodiment of the present invention provides two-dimension code to expand comprises server 20, controller 30 and client 40, and described server 20 connects described controller 30, and described client 40 connects respectively described server 20 and described controller 30.Described client 40 comprises scanner 401, mediator 402 and demoder 403, and described scanner 401 connects described mediator 402, and described mediator 402 connects described demoder 403.Described scanner 401 is used for the scanning two-dimension code and obtains server 20 paths, controller 30 paths and signing messages, and described signing messages is sent to described server 20 and controller 30.Described controller 30 is used for the described signing messages according to described client 40 transmissions, determines target interactive information table, and according to described target interactive information table, calculates the spherical factor, and the described spherical factor is sent to server 20.Described server 20, be used for according to described signing messages, determine target factor weight table and calculate positive divisor according to the user's registration information table, also be used for when described positive divisor and the spherical factor all are not less than each self-corresponding preset value, more described positive divisor and the spherical factor, and in the information classification table, obtain corresponding data information according to comparative result and described signing messages, and be pushed to demoder 403.Described demoder 403 is used for receiving the data stream that described server 20 pushes, and is converted to corresponding format.Described mediator 402 is for the data stream of the corresponding format of playing described demoder 403 conversions.Operating process about said system is described with above-mentioned method, so repeat no more in this.
In sum, the method and system that the two-dimension code that preferred embodiment according to the present invention provides expands, scanner scanning two-dimension code obtains server path, controller path and signing messages, and described signing messages is sent to respectively described server and controller.Described server is according to described signing messages, determine target factor weight table and calculate positive divisor according to the user's registration information table, described controller is according to described signing messages, determine target interactive information table, and calculate the spherical factor and the described spherical factor is sent to server according to described target interactive information table.When described positive divisor and the spherical factor all are not less than each self-corresponding preset value, the more described positive divisor of described server and the spherical factor, and in the information classification table, obtain corresponding data message according to comparative result and described signing messages, be pushed to demoder.Both expand the information capacity of two-dimension code, promoted the use value of two-dimension code; Simultaneously also be conducive to attract to have the user of potential consumption demand.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.