The content of the invention
The technical problems to be solved by the invention are to provide a kind of antiforge method for commodities based on Quick Response Code, can not only realize
Commodity counterfeit prevention is verified, can also realize that the verification of commodity transaction information shows the customization with customized information.
To achieve the above object, the technical solution taken of the present invention is:A kind of antiforge method for commodities based on Quick Response Code, its
It is characterized in that, comprises the following steps:
S1, anti-counterfeit server Mass production anti-counterfeiting serial numbers, printing house's batch production are uniquely corresponding with anti-counterfeiting serial numbers
Anti-fake two-dimension code, and anti-fake two-dimension code is dispatched into merchandise sales shops;
S2, commodity purchaser can the free choice of goods on merchandise sales shops, commodity official website or APP, businessman passes through business
Family's client is collected money;
Anti-fake two-dimension code is pasted onto on the commodity that commodity purchaser chooses, and is scanned by merchant client by S3, businessman
Commodity bar code and anti-fake two-dimension code, obtain merchandise news and with the unique corresponding anti-counterfeiting serial numbers of anti-fake two-dimension code, together with friendship
Easy information is sent to anti-counterfeit server;
S4, anti-counterfeit server by the storage corresponding with anti-counterfeiting serial numbers of merchandise news and Transaction Information and activate;
S5, commodity purchaser access anti-counterfeit server by third party's client of cooperation, carry out determining for customized information
System;
S6, commodity consumption person access anti-counterfeit server by third party's client of cooperation, carry out merchandise news, personalization
The inquiry of the inquiry record of information, Transaction Information and Transaction Information.
Merchandise news includes essential information and customizable information, and the method for customizing of customized information is in step S5:Commodity
The anti-fake two-dimension code on third party's client scan commodity that buyer passes through cooperation, it is unique corresponding anti-to obtain anti-fake two-dimension code
Pseudo-order number, then access request is sent to anti-counterfeit server by third party's client of cooperation, access request includes false proof sequence
Customizable information in the corresponding merchandise news of anti-counterfeiting serial numbers is fed back to the third party client of cooperation by row number, anti-counterfeit server
End makes choice or edits for commodity purchaser.
The method for customizing of customized information is in step S5:Commodity purchaser edits customized information certainly, and passes through cooperation
Third party's client scan commodity on anti-fake two-dimension code, obtain anti-fake two-dimension code uniquely corresponding anti-counterfeiting serial numbers, then lead to
The third party's client for crossing cooperation sends access request to anti-counterfeit server, and access request includes anti-counterfeiting serial numbers and certainly editor
Property information, anti-counterfeit server by anti-counterfeiting serial numbers and from editor customized information correspond to storage.
Merchandise news in step S6, customized information, Transaction Information and Transaction Information inquiry record querying method
For:The anti-fake two-dimension code on third party's client scan commodity that commodity consumption person passes through cooperation, it is unique to obtain anti-fake two-dimension code
Corresponding anti-counterfeiting serial numbers, then access request, access request bag are sent to anti-counterfeit server by third party's client of cooperation
Include anti-counterfeiting serial numbers, anti-counterfeit server is by the corresponding merchandise news of anti-counterfeiting serial numbers, customized information, Transaction Information and transaction
Third party's client that the inquiry record of information feeds back to cooperation is inquired about for commodity consumption person.
The inquiry record of Transaction Information includes in step S6:Initiate the client location of inquiry, query time and look into
Ask number.
Anti-counterfeit server presets the limitation of Transaction Information inquiry times in step S6, and Transaction Information inquiry times are after limitation
Anti-counterfeit server will provide false proof information warning, or Transaction Information is locked, and the third party's client for cooperation that no thoroughfare is looked into
Ask.
Commodity purchaser or commodity consumption person access false proof service by third party's client of cooperation in step S5 and S6
During device, third party's client of cooperation can automatic identification visitor's IP address, and this area can be shown according to visitor's IP address
Language UI.
Anti-fake two-dimension code uses frangible material, tears destroyed.
The present invention also aims to provide a kind of Comodity anti-fake system based on Quick Response Code, commodity counterfeit prevention can not only be realized
Verification, can also realize that the verification of commodity transaction information shows the customization with customized information.
To achieve the above object, the technical solution taken of the present invention is:A kind of Comodity anti-fake system based on Quick Response Code, bag
Merchant client, anti-counterfeit server and the third party of cooperation client are included, merchant client can obtain merchandise news and transaction is believed
Cease and send it to anti-counterfeit server, anti-counterfeit server can be by the storage corresponding with anti-counterfeiting serial numbers of merchandise news and Transaction Information
And activate, commodity purchaser can access anti-counterfeit server to carry out determining for customized information by third party's client of cooperation
System, commodity consumption person can by third party's client of cooperation access anti-counterfeit server with carry out merchandise news, customized information,
The inquiry of the inquiry record of Transaction Information and Transaction Information.
The antiforge method for commodities and anti-counterfeiting system based on Quick Response Code of the present invention, the anti-pseudo-order of anti-counterfeit server Mass production
Number, printing house's batch production and anti-counterfeiting serial numbers uniquely corresponding anti-fake two-dimension code, and anti-fake two-dimension code is dispatched into commodity pin
Sell shops, commodity purchaser can the free choice of goods on merchandise sales shops, commodity official website or APP, businessman passes through businessman visitor
Family end is collected money, and anti-fake two-dimension code is pasted onto on the commodity that commodity purchaser chooses by businessman, and is swept by merchant client
Retouch commodity bar code and anti-fake two-dimension code, obtain merchandise news and with the unique corresponding anti-counterfeiting serial numbers of anti-fake two-dimension code, together with
Transaction Information is sent to anti-counterfeit server, anti-counterfeit server by the storage corresponding with anti-counterfeiting serial numbers of merchandise news and Transaction Information simultaneously
Activation, commodity purchaser can access anti-counterfeit server by third party's client of cooperation, carry out the customization of customized information, business
Product consumer can access anti-counterfeit server by third party's client of cooperation, carry out merchandise news, customized information, transaction letter
The inquiry of the inquiry record of breath and Transaction Information.In use, commodity consumption person can pass through third party's client scan of cooperation
Anti-fake two-dimension code is to access anti-counterfeit server, so that merchandise news is obtained, to judge the true and false of commodity, meanwhile, it can also obtain friendship
The inquiry record of easy information and Transaction Information, whether the description for judging commodity and commodity purchaser is consistent, so that further
The true and false of commodity is judged, in addition, can also obtain the customized information of commodity purchaser customization.
Embodiment
The invention will be further described below in conjunction with the accompanying drawings.
The specific embodiment one of antiforge method for commodities of the invention based on Quick Response Code, as shown in fig. 1, including following step
Suddenly:
S1, anti-counterfeit server Mass production anti-counterfeiting serial numbers, printing house's batch production are uniquely corresponding with anti-counterfeiting serial numbers
Anti-fake two-dimension code, and anti-fake two-dimension code is dispatched into merchandise sales shops;
Anti-fake two-dimension code uses frangible material, tears destroyed, other people can be avoided to replicate anti-fake two-dimension code, and then right
Commodity carry out forgery and illegal imitation of brand-name products.
S2, commodity purchaser can the free choice of goods on merchandise sales shops, commodity official website or APP, businessman passes through business
Family's client is collected money;
In the present embodiment, merchant client uses businessman's intelligence POS terminal, and transaction letter is collected money and recorded easy to businessman
Breath, certainly, in other embodiments of the invention, merchant client can use the other-end equipment such as intelligent cash register.Transaction
Information includes the information such as commodity essential information, buyer's information, commodity price and Business Information.
The process that commodity are paid is as follows:
1) merchant client scan product barcode obtains merchandise news, and merchandise news is preset including essential information, businessman
Information and customizable information, essential information include the information such as manufacturer, production batch and date of manufacture, businessman's preset information bag
Include the two time selling link of guiding link and producer of product introduction, producer to customer etc.;
2) merchant client generates goods orders according to merchandise news, and sends gathering request to bank server;
3) the debit card sequence identifier that the third party's client for the cooperation that bank server is used to commodity purchaser is sent,
Debit card sequence identifier is per minute random variable;
4) the debit card sequence identifier of merchant client items scanning buyer;
5) merchant client identifies Transaction Information, Business Information, debit card sequence identifier and intelligent POS terminal gathering card
Send to bank server;
6) Transaction Information, Business Information are sent to the third party client for the cooperation that commodity purchaser uses by bank server
End;
7) commodity purchaser inputs payment cipher by third party's client of cooperation and confirms to pay;
8) bank server, which is sent, pays the of the cooperation that successful receipt is used to merchant client and commodity purchaser
Tripartite's client.
Certainly, in other embodiments of the invention, commodity purchaser can select cash according to own situation, swipe the card etc. it
His means of payment, businessman are collected money by merchant client.
Anti-fake two-dimension code is pasted onto on the commodity that commodity purchaser chooses, and is scanned by merchant client by S3, businessman
Anti-fake two-dimension code, obtains anti-fake two-dimension code uniquely corresponding anti-counterfeiting serial numbers, is sent to together with merchandise news and Transaction Information anti-
Pseudo server;
S4, anti-counterfeit server by the storage corresponding with anti-counterfeiting serial numbers of merchandise news and Transaction Information and activate;
S5, commodity purchaser access anti-counterfeit server by third party's client of cooperation, carry out determining for customized information
System;
In the present embodiment, third party's client of cooperation is wechat client, certainly, in the other embodiment of the present invention
In, third party's client of cooperation also may be selected that the other user base numbers of such as Facebook are larger, widely used client.
The method for customizing of customized information:
The anti-fake two-dimension code on third party's client scan commodity that commodity purchaser passes through cooperation, and pass through cooperation
Tripartite's client sends access request to anti-counterfeit server, and access request includes the corresponding anti-counterfeiting serial numbers of anti-fake two-dimension code, prevents
Third party's client that customizable information in the corresponding merchandise news of anti-counterfeiting serial numbers is fed back to cooperation by pseudo server supplies business
Product buyer makes choice or edits, and may customize information includes buyer's guide or the blessing of the forms such as word, picture or video.
Certainly, in other embodiments of the invention, the customization of customized information can be with the following method:
Commodity purchaser includes the forms such as word, picture, video from customized information is edited, from customized information is edited
Buyer's guide or blessing, and the anti-fake two-dimension code on the third party's client scan commodity for passing through cooperation, then pass through cooperation
Tripartite's client sends access request to anti-counterfeit server, and access request is including the corresponding anti-counterfeiting serial numbers of anti-fake two-dimension code and certainly
Customized information is edited, anti-counterfeit server corresponds to storage by anti-counterfeiting serial numbers and from editor's customized information.
S6, commodity consumption person access anti-counterfeit server by third party's client of cooperation, carry out merchandise news, personalization
The inquiry of the inquiry record of information, Transaction Information and Transaction Information.
Merchandise news, customized information, the querying method of inquiry record of Transaction Information and Transaction Information are:Commodity disappear
The anti-fake two-dimension code on third party's client scan commodity that the person of expense passes through cooperation, and by third party's client of cooperation to anti-
Pseudo server sends access request, and access request includes the corresponding anti-counterfeiting serial numbers of anti-fake two-dimension code, and anti-counterfeit server will be false proof
The corresponding merchandise news of sequence number, customized information, the inquiry record of Transaction Information and Transaction Information feed back to the of cooperation
Tripartite's client is inquired about for commodity consumption person.
The inquiry record of Transaction Information includes:Client location, query time and the inquiry times of inquiry are initiated, just
In commodity consumption, person is inquired about, to fully understand the relevant information of commodity.
Anti-counterfeit server presets the limitation of Transaction Information inquiry times, the false proof service after limitation of Transaction Information inquiry times
Device will provide false proof information warning, or Transaction Information is locked, the third party's client query for cooperation that no thoroughfare, so as to keep away
Exempt from the information excessive leakage of commodity, cause being propagated further for fake and forged commodity.
When commodity purchaser or commodity consumption person access anti-counterfeit server by third party's client of cooperation, the of cooperation
Tripartite's client can automatic identification visitor's IP address, and can according to visitor's IP address show this area language UI, so as into
The customization of the follow-up customized information of row or merchandise news, customized information, the inquiry record of Transaction Information and Transaction Information
Inquiry.
In order to ensure system safety and anti-fraud functional realization, third party's client of cooperation in advance will be to false proof service
Device is registered, and to establish encrypted communication channel safe between client and server in registration by SSL/TLS agreements, is then carried out
Corresponding digital signature and coded communication, including:
1st, to ensure the integrality of communication information, not being tampered, communicating pair is consulted to establish the unidirectional of generation eap-message digest
Hash function algorithm:Such as MD5, SHA-1, SHA-2, RIPEMD-160 etc.;
2nd, communicating pair, which is consulted to establish, is used for eap-message digest signature and encryption for the session key of symmetric encipherment algorithm
Rivest, shamir, adelman:Such as RSA, ElGamal;
3rd, communicating pair is consulted to establish the symmetric encipherment algorithm for being used for encrypting message and the eap-message digest of signature:Such as 3DES,
AES, IDEA etc.;
4th, the digital certificate of communicating pair, not only ensure that the non repudiation of communication information sender, but can to for pair
Encrypted session key is claimed to be encrypted.
Anti-counterfeit server includes authenticated encryption and communication module, anti-counterfeiting serial numbers generation module, the third party client of cooperation
Service module, Transaction Information service module, Individualized Information Customization Service module and service logic control module are held, wherein:
1st, the coded communication that safety is established when authenticated encryption and communication module are registered for client to anti-counterfeit server is led to
Road, and by signing and encrypting message communicating is carried out with client;
2nd, anti-counterfeiting serial numbers generation module is used for Mass production anti-counterfeiting serial numbers;
3rd, third party's client service module of cooperation be used for that commodity purchaser or commodity consumption person to pass through cooperation the 3rd
Square client accesses the storage and maintenance of the information such as ID, cell-phone number or the password of anti-counterfeit server, easy to commodity purchaser or business
Product consumer carries out the operation such as registering and logging;
4th, Transaction Information service module is used for realization the preservation and inquiry of the inquiry record of Transaction Information and Transaction Information;
5th, Individualized Information Customization Service module is used for realization the operation such as preservation, modification and inquiry of customized information.
6th, service logic control module is used to call other function modules to complete corresponding function.
Merchant client include authenticated encryption and communication module, Transaction Information processing module and merchandise news scan module and
Main control module, wherein:
1st, the encryption that safety is established when authenticated encryption and communication module are registered for merchant client to anti-counterfeit server is led to
Believe passage, and message communicating is carried out with anti-counterfeit server by signing and encrypting;
2nd, Transaction Information processing module is used to send anti-counterfeiting serial numbers and commodity transaction information to anti-counterfeit server;
3rd, merchandise news scan module is used for bar code and anti-fake two-dimension code in items scanning packaging, obtains merchandise news
With the unique corresponding anti-counterfeiting serial numbers of anti-fake two-dimension code;
4th, main control module is used for the service condition for safeguarding merchant client, calls other modules to complete corresponding function.
Third party's client of cooperation include authenticated encryption and communication module, registration login module, Response Code scan module,
Commodity transaction authentification of message module, customized information customized module and main control module, wherein:
1st, built when authenticated encryption and communication module are registered for commodity purchaser and consumer client to anti-counterfeit server
The encrypted communication channel of safety is found, and message communicating is carried out with anti-counterfeit server by signing and encrypting;
2nd, register login module and be used for client use to anti-counterfeit server progress registering and logging operation;
3rd, Response Code scan module is used for realization client scan Quick Response Code and obtains merchandise news, customized information, friendship
The inquiry record of easy information and Transaction Information;
4th, customized information customized module is used for realization selection, editor and the upload of customized information;
5th, main control module is used to call other modules to complete corresponding function.
The specific embodiment one of the Comodity anti-fake system based on Quick Response Code of the present invention, as shown in Figure 2, including businessman visitor
Third party's client at family end, anti-counterfeit server and cooperation, merchant client can obtain merchandise news and Transaction Information and by its
Sending to anti-counterfeit server, anti-counterfeit server by the storage corresponding with anti-counterfeiting serial numbers of merchandise news and Transaction Information and can activate,
Commodity purchaser can access anti-counterfeit server to carry out the customization of customized information by third party's client of cooperation, and commodity disappear
Fei Zheke accesses anti-counterfeit server to carry out merchandise news, customized information, Transaction Information by third party's client of cooperation
And the inquiry of the inquiry record of Transaction Information.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:It still may be used
To modify to the technical solution described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical solution spirit and
Scope.