Summary of the invention
The invention provides a kind of method and system expanding Quick Response Code to solve the problem.
The invention provides a kind of method expanding Quick Response Code, comprise the following steps.Scanner scanning Quick Response Code obtains global server path, controller path, Information Push Server path and signing messages, and described signing messages is sent to described global server, controller and Information Push Server respectively.Described global server is according to described signing messages, determine target elements weight table and calculate positive divisor according to user's registration information table, described controller is according to described signing messages, determine target interactive information table, calculate the spherical factor according to described target interactive information table and the described spherical factor is sent to global server.When described positive divisor and the spherical factor are all not less than each self-corresponding preset value, the more described positive divisor of described global server and the spherical factor, and comparative result is sent to described Information Push Server.Described Information Push Server obtains corresponding data message according to described comparative result and described signing messages in information classification table, is pushed to demoder.
The invention provides a kind of system expanding Quick Response Code, comprise global server, controller, Information Push Server and client, described global server connects described controller and described Information Push Server respectively, and described client connects described global server, described controller and described Information Push Server respectively.Described client comprises scanner, mediator and demoder, and described scanner connects described mediator, and described mediator connects described demoder.Described scanner, obtains global server path, controller path, Information Push Server path and signing messages for scanning Quick Response Code, and described signing messages is sent to described global server, controller and Information Push Server.Described controller, for the described signing messages sent according to described client, 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 global server.Described global server, for according to described signing messages, determine target elements weight table and calculate positive divisor according to user's registration information table, and when described positive divisor and the spherical factor are all not less than each self-corresponding preset value, more described positive divisor and the spherical factor, send to described Information Push Server by comparative result.Described Information Push Server, for obtaining corresponding data message according to described comparative result and described signing messages in information classification table, is pushed to demoder.Described demoder, for receiving the data stream that described Information Push Server pushes, and is converted to corresponding format.Described mediator, for playing the data stream of the corresponding format of described demoder conversion.
Compared to prior art, according to the method and system of expansion Quick Response Code provided by the invention, scanner scanning Quick Response Code obtains global server path, controller path, Information Push Server path and signing messages, and described signing messages is sent to described global server, controller and Information Push Server respectively.Described global server is according to described signing messages, determine target elements weight table and calculate positive divisor according to user's registration information table, described controller is according to described signing messages, determine target interactive information table, calculate the spherical factor according to described target interactive information table and the described spherical factor is sent to global server.When described positive divisor and the spherical factor are all not less than each self-corresponding preset value, the more described positive divisor of described global server and the spherical factor, and comparative result is sent to described Information Push Server.Described Information Push Server obtains corresponding data message according to described comparative result and described signing messages in information classification table, is pushed to demoder.Both extend the information capacity of Quick Response Code, improve the use value of Quick Response Code; Also be conducive to the user attracting to have potential consumption demand simultaneously.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 1 shows that preferred embodiment according to the present invention provides the process flow diagram of the method for expansion Quick Response Code.As shown in Figure 1, preferred embodiment of the present invention provides the method for expansion Quick Response Code to comprise step 101 ~ 104.
Step 101: scanner scanning Quick Response Code obtains global server path, controller path, Information Push Server path and signing messages, and described signing messages is sent to described global server, controller and Information Push Server respectively.
Specifically, containing two-dimension code image in commodity external packing to be scanned, and the information that Quick Response Code comprises is global server path, controller path, Information Push Server path and signing messages.After scanner scans described two-dimension code image, by the global server path that obtained, controller path and Information Push Server path, described signing messages is sent to global server path, controller path and Information Push Server path respectively.In this, described signing messages is the information of described Quick Response Code corresponding goods, comprises trade name.Wherein, described global server path, controller path, Information Push Server path and signing messages are enciphered message, only have described scanner can be decrypted described enciphered message.
Step 102: described global server is according to described signing messages, determine target elements weight table and calculate positive divisor according to user's registration information table, described controller is according to described signing messages, determine target interactive information table, calculate the spherical factor according to described target interactive information table and the described spherical factor is sent to global server.
Specifically, when user's first login global server, personal information need be registered in the user's registration information table of described global server.In the present embodiment, described user's registration information table content comprises numbering, name, age, feature, convenience goods and income, in other embodiment, can arrange described user's registration information table content as required, but is not construed as limiting this present invention.
Described global server packing factor weight table, described Factor Weight table comprises trade name, factor classification, the factor and weight, and wherein each factor respective weights is preset by global server.Global server, according to described signing messages, determines target elements weight table, described target elements weight table, comprises the trade name of described signing messages corresponding goods, factor classification, the factor and weight.The mode that described global server calculates positive divisor is, according to the corresponding relation of the factor and weight in user's registration information in user's registration information table and Factor Weight table, 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 stores interactive information table, and described interactive information table stores each commodity scanning result in preset period of time, comprises trade name, scanning people and sweep time.Controller, according to described signing messages, determines target interactive information table, described target interactive information table, comprise with described signing messages corresponding goods with a series of all commodity trade name, scan people and sweep time.The described spherical factor is, in preset period of time in described target interactive information table the scanning times of Quick Response Code corresponding goods and described commodity with the ratio of a series of all commodity scanning times summations.Controller calculates the spherical factor and sends to global server.
Step 103: when described positive divisor and the spherical factor are all not less than each self-corresponding preset value, the more described positive divisor of described global server and the spherical factor, and comparative result is sent to described Information Push Server.
Specifically, global server stores the corresponding preset value of positive divisor and spherical factor pair answers preset value, when described positive divisor is not less than self corresponding preset value, and when the spherical factor is not less than self corresponding preset value, the more described positive divisor of global server and the spherical factor.In the present embodiment, the mode of described comparison is, obtains 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 and compare according to both difference or ratio etc., but this present invention is not construed as limiting.
Step 104: described Information Push Server obtains corresponding data message according to described comparative result and described signing messages in information classification table, is pushed to demoder.
Information Push Server stores information classification table, and described information classification table comprises trade name, matching degree, buyer's guide and sales promotion information.The process that described Information Push Server obtains corresponding data message according to comparative result and described signing messages in information classification table is: described Information Push Server, according to described signing messages, determines target information sorted table.Described target information sorted table, comprises the trade name of described signing messages corresponding goods, matching degree, buyer's guide and sales promotion information.Described Information Push Server, according to described comparative result, by described target information sorted table, is determined Corresponding matching degree, thus is obtained corresponding data message, and be pushed to demoder.In this, described Information Push Server comprises buyer's guide and sales promotion information to the data message that described demoder pushes.After data message described in described Decoder accepts, 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 of global server storage is such 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 sheet format that described global server stores is such 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) the total number of/factor.Such as, Zhang San registers the personal information in table 1 in global server after, Head&Shoulders (anti-dandruff) commodity are scanned by scanner, the weight that global server is answered according to each factor pair of Head&Shoulders in table 1 and table 2 (anti-dandruff) commodity, calculate for Zhang San, 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 that controller stores, described interactive information sheet format is such 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 this serial all commodity scanning total degree is 2+3+1, then the spherical factor is: 2/(2+3+1)=0.33.
The information classification sheet format that described Information Push Server stores is such as shown in table 4.
Table 4
In the present embodiment, if the positive divisor preset value of global server storage 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 global server compares positive divisor and the spherical factor, and the absolute value of the difference of both acquisitions is | 0.5 – 0.33 | and=0.17, and send to Information Push Server.The Information Push Server matching degree obtained in 0.17 corresponding table 4 is 0.1 ~ 0.3, then Information Push Server pushes buyer's guide corresponding to this matching degree and sales promotion information to demoder.According to table 4, Information Push Server pushes to demoder video, picture and the Word message that buyer's guide is Head&Shoulders (anti-dandruff) commodity, and sales promotion information is the information of discount of Head&Shoulders (anti-dandruff) commodity: can make a call to 9 foldings.Described buyer's guide and sales promotion information are converted to picture, video and the text formatting that Zhang San's mobile phone is supported by demoder, play at mobile phone.
Figure 2 shows that preferred embodiment according to the present invention provides the schematic diagram of the system of expansion Quick Response Code.As shown in Figure 2, preferred embodiment of the present invention provides the system of expansion Quick Response Code to comprise client 20, global server 30, controller 40 and Information Push Server 50, described client 20 connects described global server 30, described controller 40 and described Information Push Server 50 respectively, and described global server 30 connects described controller 40 and described Information Push Server 50 respectively.Described client 20 comprises scanner 201, mediator 202 and demoder 203, and described scanner 201 connects described mediator 202, and described mediator 202 connects described demoder 203.Described scanner 201, obtain global server 30 path, controller 40 path, Information Push Server 50 path and signing messages for scanning Quick Response Code, and described signing messages is sent to described global server 30, controller 40 and Information Push Server 50.Described controller 40, for the described signing messages sent according to described client 20, 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 global server 30.Described global server 30, for according to described signing messages, determine target elements weight table and calculate positive divisor according to user's registration information table, and when described positive divisor and the spherical factor are all not less than each self-corresponding preset value, more described positive divisor and the spherical factor, send to described Information Push Server 50 by comparative result.Described Information Push Server 50, for obtaining corresponding data message according to described comparative result and described signing messages in information classification table, is pushed to demoder 203.Described demoder 203, for receiving the data stream that described Information Push Server 50 pushes, and is converted to corresponding format.Described mediator 202, for playing the data stream of the corresponding format of described demoder 203 conversion.About the operating process of said system with described in said method, therefore repeat no more in this.
In sum, the method and system of the expansion Quick Response Code that preferred embodiment according to the present invention provides, scanner scanning Quick Response Code obtains global server path, controller path, Information Push Server path and signing messages, and described signing messages is sent to described global server, controller and Information Push Server respectively.Described global server is according to described signing messages, determine target elements weight table and calculate positive divisor according to user's registration information table, described controller is according to described signing messages, determine target interactive information table, calculate the spherical factor according to described target interactive information table and the described spherical factor is sent to global server.When described positive divisor and the spherical factor are all not less than each self-corresponding preset value, the more described positive divisor of described global server and the spherical factor, and comparative result is sent to described Information Push Server.Described Information Push Server obtains corresponding data message according to described comparative result and described signing messages in information classification table, is pushed to demoder.Both extend the information capacity of Quick Response Code, improve the use value of Quick Response Code; Also be conducive to the user attracting to have potential consumption demand simultaneously.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, 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 amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.