By the method that Cloud Server processes code figure validity
Technical field
The present invention relates to the disposal route of a kind of security code figure, especially a kind of method code figure validity processed by Cloud Server.
Background technology
At present, security code figure after being associated with relevant information and binding in generation, is convenient to can to carry out the true and false by reading device to it and is distinguished.As long as code figure and corresponding with code figure data message do not damage, this yard of figure will have validity all the time.In order to make the validity of yard figure only can be activated and end in appointment or specific time period, be generally to be specified or the rising of specific time period, only time point are scanned code figure respectively, distinguished to realize by reading device.When the code figure negligible amounts that will use, this kind of method still has some superiority.But, when the code figure quantity that will use is a lot, just by above-mentioned manual type cannot carries out activating to code figure validity timely and terminate.
Summary of the invention
For the weak point existed in the problems referred to above, the invention provides and a kind ofly can carry out automatic activation and end to the validity of code figure, and method code figure validity processed by Cloud Server that the code diagram data APMB package that can automatically be lost the validity time is deleted.
For achieving the above object, the invention provides a kind of method code figure validity processed by Cloud Server, comprise the following steps:
S1, when in the real-time time in Cloud Server, time period code information and code diagram data bag, the code figure validity activationary time of time code information is identical, then this yard of diagram data bag is called to Cloud Server generate the figure of active coding placement space in;
S2, when the real-time time in Cloud Server, time period code information are with when in code diagram data bag in active coding figure placement space, the code figure validity end time of time code information is identical, code diagram data bag in active coding figure placement space and code diagram data bag to be deleted.
The above-mentioned method processed code figure validity by Cloud Server, wherein, in step sl, is comprised the following steps:
S11, the time period code information that generation is corresponding with the divided time period in Cloud Server, the filename of time period code information is identical with the representative temporal information of time code information in code diagram data bag;
S12, the time code information in each yard of diagram data bag stored in time period code information and code chart database to be compared, when code figure validity activationary time representative in the real-time time of Cloud Server, time period code information and time code information is identical, then this yard of diagram data bag is called in the figure of the active coding placement space generated to Cloud Server.
The above-mentioned method processed code figure validity by Cloud Server, wherein, in step s 11, also comprises following sub-step:
S11, Cloud Server for condition, were divided into several time period by 24 hours with the selected unit interval;
S112, the coding method identical with the end time with code figure validity activationary time is adopted to encode, to form the time period code information corresponding with each time period each time period;
S113, using the filename of the temporal information representated by each time period as time code information corresponding thereto.
The above-mentioned method processed code figure validity by Cloud Server, wherein, the temporal information representated by time period code information comprises date and time information and time period information.
Compared with prior art, the present invention has the following advantages:
The present invention was compared by the validity activationary time that is condition and code figure with the real-time time of Cloud Server and the time period code information that generates and end time, thus carried out automatic activation and end to the validity of code figure;
The code diagram data APMB package that can automatically validity have been lost due to Cloud Server is deleted, therefore, thus make the code figure corresponding with code diagram data APMB package become the code figure with disposable effect, to avoid fake producer, illegal use is carried out to the code figure that validity has lost.
Embodiment
The invention provides a kind of method code figure validity processed by Cloud Server, comprise the following steps:
S1, when in the real-time time in Cloud Server, time period code information and code diagram data bag, the code figure validity activationary time of time code information is identical, then this yard of diagram data bag is called to Cloud Server generate the figure of active coding placement space in.
The above-mentioned method processed code figure validity by Cloud Server, wherein, in step sl, is comprised the following steps:
S11, the time period code information that generation is corresponding with the divided time period in Cloud Server, the filename of time period code information is identical with the representative temporal information of time code information in code diagram data bag.
The above-mentioned method processed code figure validity by Cloud Server, wherein, in step s 11, also comprises following sub-step:
S11, Cloud Server for condition, were divided into several time period by 24 hours with the selected unit interval;
S112, the coding method identical with the end time with code figure validity activationary time is adopted to encode, to form the time period code information corresponding with each time period each time period;
S113, using the filename of the temporal information representated by each time period as time code information corresponding thereto.
S12, the time code information in each yard of diagram data bag stored in time period code information and code chart database to be compared, when code figure validity activationary time representative in the real-time time of Cloud Server, time period code information and time code information is identical, then this yard of diagram data bag is called in the figure of the active coding placement space generated to Cloud Server.
Wherein, the temporal information representated by time period code information comprises date and time information and time period information.
S2, when the real-time time in Cloud Server, time period code information are with when in code diagram data bag in active coding figure placement space, the code figure validity end time of time code information is identical, code diagram data bag in active coding figure placement space and code diagram data bag to be deleted.
Only as described above, be only preferred embodiment of the present invention, such as professional who are familiar with this art.After understanding technological means of the present invention, natural energy, according to actual needs, is changed under the teachings of the present invention.Therefore all equal changes of doing according to the present patent application the scope of the claims and modification, once should still remain within the scope of the patent.