A kind of false proof retroactive method and system
Technical field
The present embodiments relate to anti-counterfeiting technology, more particularly to a kind of false proof retroactive method and system.
Background technology
A kind of production control system that positive tracking or reversely tracing can be carried out to product of traceability system.User is by chasing after
The system of tracing back can trace back to the product information with a collection of product, and product information includes manufacturer's information, production batch, product materials
Deng.
In the prior art, in batch production product, because product materials are identical therefore a collection of for use same materials
Mark is reviewed using same by product, manufacturer.After user takes any one product in this batch of product, can be according to this
Review the product information that mark traces back to the product.
However, needing to carry out single product sale flow the product of control for medicine etc., provide in the prior art
Retroactive method, it is impossible to identify with the identical same a collection of product for reviewing mark, the sales process of single product.Therefore, when
When different product occurs string goods in same batch, the information of tracing to the source obtained using prior art is identical, and product back-tracing accuracy is low.
The content of the invention
The present invention provides a kind of false proof retroactive method, to realize one yard of a thing, improves the accuracy of product back-tracing.
In a first aspect, a kind of false proof retroactive method is the embodiment of the invention provides, including:
Server receives the product information of the target product that manufacturer's node sends;
Generate that the target product is corresponding to review mark according to the product information, every target product is reviewed with each
Mark is corresponded;
The server by it is described review mark and be sent to review mark print node;
Be added to the mark of reviewing on the target product by the mark print node of reviewing, and by the service
Device updates the information of tracing to the source of the target product;
The mark print node of reviewing sends to circulation node the target product;
The circulation node reviews information of being traced to the source described in mark acquisition according to, and the circulation node is according to local information
The information of tracing to the source to the target product is updated.
Second aspect, the embodiment of the present invention additionally provides a kind of false proof traceability system, including:Manufacturer, server, review
Mark print node and circulation node;
The server is used for, and receives the product information of the target product that manufacturer's node sends;Believed according to the product
The breath generation target product is corresponding to review mark, and every target product is reviewed mark and corresponded with each;The service
Device by it is described review mark and be sent to review mark print node;
The mark print node of reviewing is used for, and the mark of reviewing is added on the target product, and by institute
State the information of tracing to the source of target product described in server update;The target product is sent to circulation node;
The circulation node is used for, and the information of tracing to the source is obtained according to the mark of reviewing, the circulation node according to
Ground information is updated to the information of tracing to the source of the target product.
The embodiment of the present invention reviews mark by for every products configuration one so that can be according to reviewing at circulation node
Identify the information of tracing to the source of upgrading products.With the multiple products in a collection of product there is identical to review mark in the prior art, lead
Cause the information of tracing to the source of each product of None- identified.For each products configuration one reviews mark in the embodiment of the present invention, one is realized
One yard of thing, and then the information of tracing to the source of every product can be reviewed, improve product back-tracing accuracy.
Brief description of the drawings
Fig. 1 is the flow chart for false proof retroactive method that the embodiment of the present invention one is provided;
Fig. 2 is the flow chart of another false proof retroactive method that the embodiment of the present invention one is provided;
Fig. 3 is the flow chart of another the false proof retroactive method that the embodiment of the present invention one is provided;
Fig. 4 is the flow chart for false proof retroactive method that the embodiment of the present invention two is provided;
Fig. 5 is the flow chart of another false proof retroactive method that the embodiment of the present invention two is provided;
Fig. 6 is the flow chart for false proof retroactive method that the embodiment of the present invention three is provided;
Fig. 7 is the structural representation for false proof retrospective device that the embodiment of the present invention two is provided.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part rather than entire infrastructure related to the present invention is illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is the flow chart of a kind of false proof retroactive method that the embodiment of the present invention one is provided, and the method is applied to same
The situation that each product in product is reviewed is criticized, as shown in figure 1, the method includes:
Step 110, server receive the product information of the target product that manufacturer's node sends.
The product information of manufacturer's node transmission is received and stored in server.Product information includes:Enterprises registration information,
Msu message, file of product information, products configuration information, production procedure configuration information, control of authority information and statistical report form letter
Breath etc..
Optionally, be stored with the corresponding manufacturer's information of multiple manufacturers in server, and manufacturer's information includes manufacturer
Title, registered address, hour of log-on, production permit information etc..Target product is any one product in certain a collection of product.
Manufacturer can batch the multiple product informations in same batch products are sent to server.Such as batch A
Comprising product a1, product a2, product a3 to product a100, totally 100 products.Manufacturer passes through raw manufacturer's node and is sent out to server
Give all over products information of 100 products.
The hardware device that manufacturer's node is used can be fixed terminal, such as PC (Personal computer,
PC).The fixed terminal is implanted into production line, the product information that realization is matched with the current output product of production line.
Step 120, server generate that target product is corresponding to review mark according to product information, every target product with it is every
Individual mark of reviewing is corresponded.
Server is generated one-to-one with product according to the product information for receiving.Reviewing mark can deposit according to
Contain the Quick Response Code or radio frequency identification mark of the network storage address generation of the file of product information.And then, circulation node and
User can review the file that mark may have access to storage product information by identification.Or, it can be to believe product to review mark
Cease the Quick Response Code or radio frequency identification mark obtained into after edlin.And then, circulation node and user review mark by identification
Can parse and review the corresponding product identification of mark.Or, review the numeral that mark can also be obtained according to order label
Generation.And then, circulation node and user can be by the way that after default network address access server, server can be searched according to the numeral
To the digital corresponding product information.
Step 130, server will review mark and be sent to reviews mark print node.
The mark print node of reviewing can also be able to be quality authentication node for manufacturer's node.
Mark is reviewed to be sent to reviewing mark print node with the traveling of electronic edition.
Step 140, review mark print node and be added to mark is reviewed on target product, and by server update mesh
Mark the information of tracing to the source of product.
Reviewing mark print node will review mark and print on corresponding product by local printer.
Wherein, the information including following information at least one of tracing to the source:Back ground Information, product information, search information, business
Paving auxiliary information.Wherein, Back ground Information includes:Enterprises registration and auditing result, file of product information, products configuration information, life
Produce flow configuration information, control of authority information, statistical report form etc..Product information includes:Production information, logistics information, data are returned
Shelves, falsifying monitored results etc..Search information includes:Product detail information.Retail shop's auxiliary information includes:Accumulated point exchanging, esteemed favor
Breath, sales promotion information, after-sale service descriptive information, suggestion feedback information etc..
Above-mentioned four kinds of Information Centers are supported by four different modules, such as Back ground Information by based process module (and
Claim ibase) it is supported, the module is used to carry out enterprises registration and examination & verification, product filing, and products configuration, production procedure are matched somebody with somebody
Put, the control of authority of user or role and make statistical report form etc..Product information by product supplementary module (also known as
IProduct) it is supported, the module is used to store the production information of product, logistics information and carries out data filing, falsifying
Monitoring etc..Wherein, product supplementary module can obtain the circulation path of target product according to the information of tracing to the source of target product, realize
String goods monitoring.Search information is supported by search process module (also known as iSearch), and the module is looked into for carrying out the information of tracing to the source
Ask, product details show and provide the api interface of data query.Retail shop's auxiliary information by retail shop's auxiliary processing module (also known as
Ishop) be supported, the module be used for provide the user accumulated point exchanging, ordering information displaying, sales promotion information displaying, take after sale
Business explanation, suggestion feedback etc..
Step 150, review mark print node by target product send to circulation node.
The circulation node includes whole seller's node or retailer's node.
Step 160, circulation node are traced to the source information according to mark acquisition is reviewed, and circulation node is according to local information to target product
The information of tracing to the source of product is updated.
When the network storage address of the file for being designated the product information that is stored with is reviewed, circulation node is according to reviewing mark
Information of tracing to the source in access server.When review be designated a character mark corresponding with product when, circulation node according in advance
If network address (network address of server) access server, the node that then circulates will review mark and be sent to server, finally flow
The tracing information of logical node the reception server feedback.
Circulation node can be modified to the information of tracing to the source for getting, and the amended information of tracing to the source then is sent into service
Device is updated.
The embodiment of the present invention reviews mark by for every products configuration one so that can be according to reviewing at circulation node
Identify the information of tracing to the source of upgrading products.With the multiple products in a collection of product there is identical to review mark in the prior art, lead
Cause the information of tracing to the source of each product of None- identified.For each products configuration one reviews mark in the embodiment of the present invention, one is realized
One yard of thing, and then the information of tracing to the source of every product can be reviewed, improve product back-tracing accuracy.Further, this reality
Applying example can realize one yard of a thing to each product of the products such as food, medicine, agricultural product, so realize from raw material win into
Product are manufactured, and are dispatched from the factory to point-of-sale terminal from packaging, then to the seamless monitoring of the product in consumer's hand and are supervised.To food,
Medicine, agribusiness ensure food safety, it is false proof crack down on counterfeit goods, information sharing serves active promoting function, one yard of one thing of product,
Each product all turns into traffic ingress, and information enters platform after barcode scanning, and on-line off-line interaction is that enterprise promotes the new canal of increase
Road.
Further, Fig. 2 is the flow chart of a kind of false proof retroactive method that the embodiment of the present invention one is provided, used as to above-mentioned
Embodiment is further illustrated, and in step 160, circulation node identifies acquisition and traces to the source information according to reviewing, can by following manner
Implemented:
Step 161, circulation node send information inquiring request of tracing to the source to server.
Step 162, server receive target product trace to the source information inquiring request when, read using MySQL database
Trace to the source information, and use MongoDB databases to load the information of tracing to the source for reading.
Specifically, MySQL database uses read and write abruption technology.Exemplary, configured in Spring additions first, so
Afterwards, Spring AOP tangent plane codes are write.Finally, the method for monitoring service layers, in the method that query, find, get start
The data source attended a day school, other are the data source write, so as to realize read and write abruption.
Optionally, using MongoDB databases as internal database, for loading the number that user traces to the source when inquiring about
According to.
Step 163, the feedback of the information that will trace to the source give circulation node.
Accordingly, in step 160, circulation node is updated according to local information to the information of tracing to the source of target product, can
It is embodied as:
Step 164, circulation node send to server local information.
Step 165, server generate fresh information according to local information.
Step 166, server are write using MySQL database to the information of tracing to the source, and are arrived so that fresh information is updated
In information of tracing to the source.
Separation is written and read using MySQL database, Query Result is loaded using MongoDB databases, it is possible to increase clothes
The read-write of data and query rate in business device.
Further, as shown in figure 3, the server is tomcat servers, node is circulated to server in step 161
Transmission is traced to the source before information inquiring request, is also included:
Step 170, WEB static resource servers are built, it is corresponding that WEB static resources server reviews mark for storage
Image data.
Accordingly, step 161, circulation node send information inquiring request of tracing to the source to server, can be embodied as:
Step 161a, circulation node will be reviewed by WEB static resources server identify corresponding image data send to
Tomcat servers.
WEB static resources server is used to store the static resources such as Image, js (JavaScript code), and it is right to reduce
The pressure of tomcat application servers.By the function of the uploading pictures of tomcat servers (also known as application server), it is mapped to
On static resource server, and the picture path of upload is returned on application server.Then record is saved in database
In.
The technical scheme that the present embodiment is provided, user can be reduced to application server by configuring static resource server
The time for reviewing mark of uploading pictures form, data transmission efficiency is improved, discharge the Internet resources of application server.
Further, in step 160, circulation node identifies acquisition and traces to the source information according to reviewing, including:
Two nginx servers are built, is that two nginx servers configure an identical virtual ip address, nginx services
Device is used as reverse proxy.
Circulation node generates the information inquiring request of tracing to the source of HTTP forms.
When dns server carries out IP address matching to the information inquiring request of tracing to the source of HTTP forms, nginx services are accessed
Device.
Target nginx servers are determined from two nginx servers by nginx servers.
Information of tracing to the source is obtained by target nginx servers.
First, the load balancing of nginx servers is substituted using LVS load balancing.Nginx servers have load balancing
Function, towards it is medium and small concurrent when effectively, to prevent nginx from causing entirely to service unavailable when servicing on-hook, therefore use LVS
Framework improves handling capacity.
Based process module, product information are aided in by product supplementary module, search information by search process module and retail shop
Processing module can respectively be realized by four virtual machines.Four usable LVS load-balancing algorithms of virtual machine carry out gold-supported
Perseverance treatment.
Secondly, two nginx servers are built, a virtual IP address is configured, when http passes through domain name request, by DNS
Service carries out two nginx servers of poll of ip addresses, by virtual ip address bindings to available server.
Again, used as reverse proxy, the request address of modules is mapped to nginx to nginx, and user's request flow is
http-->nginx-->Tomcat and traditional http-->Tomcat directly asks hundred times of performance boost
Finally, active and standby framework is realized using keepalived+nginx.
By setting nginx server servers, it is possible to increase the handling capacity of server end, while network congestion is avoided,
Improve the reading rate of information of tracing to the source.
Embodiment two
Fig. 4 is the flow chart of a kind of false proof retroactive method that the embodiment of the present invention two is provided, used as entering to embodiment one
One step illustrates, the mark of reviewing is sent to before reviewing mark print node in step 130, the server, also includes:
Target product is transported to quality authentication node by step 101, manufacturer's node.
Step 102, quality authentication node detect to the quality of target product, obtains quality authentication result.
The quality authentication result that step 103, server quality of reception certification node send.
Accordingly, step 130, server will review mark and be sent to and review mark print node, including:
If step 130a, quality authentication result are qualified, server will review mark and be sent to quality authentication node.
Accordingly, step 140, review mark print node be added to mark is reviewed on target product, including:
Step 140a, quality authentication node are added to mark is reviewed on target product.
Accordingly, step 150, review mark print node by target product send to circulation node, including:
Step 150a, quality authentication node send to circulation node target product.
Quality authentication node can carry out quality authentication to the product of manufacturer's node production in the embodiment of the present invention, and will
Quality authentication result is sent to server.Server is generated to the product by quality authentication and reviews mark, or quality is recognized
Card result be added in the information of tracing to the source, and then improve product quality reliability.
Further, as shown in figure 5, the circulation node also includes user, the method also includes:
After the node that circulates buys target product, user is obtained using intelligent terminal and reviews mark for step 180, user.
Step 190, intelligent terminal according to reviewing identification access server, and obtain the corresponding product information of target product and
Trace to the source information.
The present embodiment provides technical scheme, can realize user after commodity are bought, and is scanned by intelligent terminal and reviewed
After mark, product information can be got and information of tracing to the source by intelligent terminal, increase the viscosity of consumer.
Embodiment three
Fig. 6 is the schematic flow sheet of a kind of false proof retroactive method that the embodiment of the present invention three is provided, used as to above-mentioned implementation
Example further illustrate, in one implementation, the method can be embodied as:
Step 201, manufacturer's node send the product of target product to server by web page access server
Information.Target product is corresponding reviews mark according to product information generation for server, and every target product reviews mark with each
Correspond.
Step 202, server will review mark and be sent to manufacturer's node.
Step 203, manufacturer's node will review mark and spray on target product, and by server update target product
Information of tracing to the source.
Step 204, manufacturer's node deliver to whole seller target product by transport pathway such as express deliveries.
Step 205, whole seller's scanning review identification access server, and submit logistics sales information to server, i.e., right
The information of tracing to the source of target product is updated.
Step 206, manufacturer's node deliver to retailer target product by transport pathway such as express deliveries.
Step 207, retailer's scanning review identification access server, and submit logistics sales information to server, i.e., right
The information of tracing to the source of target product is updated.
Step 208, retailer are by production marketing to user.
Step 209, scanning input review identification access server, obtain the information of tracing to the source of target product.The information of tracing to the source
Manufacturer, whole seller and Retailer information including target product.
Example IV
Fig. 7 is a kind of false proof traceability system that the embodiment of the present invention four is provided, including:Manufacturer's node 31, server 32,
Review mark print node and circulation node;Wherein, reviewing mark print node includes manufacturer's node 31 and quality authentication section
Point 35, circulation node includes whole seller's node 33 and retailer's node 34.
The server 32 is used for, and receives the product information of the target product that manufacturer's node 31 sends;According to the product
The product information generation target product is corresponding to review mark, and every target product is reviewed mark and corresponded with each;It is described
Server 32 by it is described review mark and be sent to review mark print node;
The mark print node of reviewing is used for, and the mark of reviewing is added on the target product, and by institute
State the information of tracing to the source that server 32 updates the target product;The target product is sent to circulation node;
The circulation node is used for, and the information of tracing to the source is obtained according to the mark of reviewing, the circulation node according to
Ground information is updated to the information of tracing to the source of the target product.
Further, manufacturer's node 31 is additionally operable to, and the target product is transported into quality authentication node 35;
The quality authentication node 35 is additionally operable to, and the quality to the target product is detected, obtains quality authentication knot
Really;
The server 32 is additionally operable to, and receives the quality authentication result that the quality authentication node 35 sends;If described
Quality authentication result is qualified, then the mark of reviewing is sent to the quality authentication node 35 by the server 32;
The quality authentication node 35 is additionally operable to, and the mark of reviewing is added on the target product;
The quality authentication node 35 is additionally operable to, and the target product is sent to circulation node.
Further, also including intelligent terminal 36, the circulation node also includes user,
The intelligent terminal 36 is used for, and after the circulation node buys the target product, acquisition is chased after the user
Trace back mark;According to it is described review identification access described in server 32, and obtain the corresponding product information of the target product
With the information of tracing to the source.
Further, the circulation node is additionally operable to send information inquiring request of tracing to the source to the server 32;
The server 32 is additionally operable to, when receive information inquiring request is traced to the source described in the target product when, use
MySQL database reads the information of tracing to the source, and uses MongoDB databases to load the information of tracing to the source of reading;Traced to the source described
Feedback of the information gives the circulation node;
The circulation node is additionally operable to, and local information is sent to the server 32;
The server 32 is additionally operable to, and fresh information is generated according to the local information;Using MySQL database to described
The information of tracing to the source is write, so that the fresh information is updated in the information of tracing to the source.
Further, WEB static resource servers are built, the WEB static resources server is used to store described reviewing
Identify corresponding image data;
The circulation node is additionally operable to, and the corresponding figure of mark is reviewed by described by the WEB static resources server 32
Sheet data is sent to the tomcat servers.
Further, two nginx servers are built, is that two nginx servers configure an identical virtual IP address
Address, the nginx servers are used as reverse proxy;
The circulation node is additionally operable to, and generates the information inquiring request of tracing to the source of HTTP forms;
Dns server is used for, and when the information inquiring request of tracing to the source to the HTTP forms carries out IP address matching, accesses institute
State nginx servers;Target nginx servers are determined from two nginx servers by the nginx servers;
By information of being traced to the source described in target nginx servers acquisition.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
More other Equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.