Summary of the invention
In view of this, the application provides a kind of code figure reading method, and described method can identify the code figure comprising different content, is verified by the identity of predetermined condition to user, realize presenting specific content to specific user, and take further step to guarantee that its information is not revealed.
The application provides a kind of code figure reading method, comprises two kinds of different contents, be associated respectively, said method comprising the steps of: distinguished code figure by code figure reading device with targeted customer with the facility information of non-targeted user in described code figure; Obtain the facility information of described code figure reading device and upload Cloud Server; The facility information of scheming in corresponding code diagram data chained list with described code stored with Cloud Server by described facility information is compared; Corresponding content is pushed to described code figure reading device to show according to comparison result; Cloud Server pushes successfully in content and carries out record to when time operation; And when the propelling movement record of the content be associated with the facility information of targeted customer being detected, delete the content in described code figure.
Wherein, described facility information comprises hardware device sequence number and/or operator's networking number.
Described method is distinguished code figure by the application program be arranged on described code figure reading device, obtains the facility information of described code figure reading device and upload Cloud Server by described application program.
Foregoing code figure reading method, is characterized in that, described code figure is generated by following steps: S1, generate in interface the code information inputting first content and it associated with the facility information of at least one targeted customer at code figure; S2, generate in interface the code information inputting the second content and it associated with the facility information of non-targeted user at code figure; And S3, generate storehouse in conjunction with code figure, by aforementioned code information generated code figure, be uploaded to Cloud Server.
Wherein, step S3 comprises: S31, described code information is imported code figure generate in storehouse, to generate the code figure matrix sequence corresponding with code information; S32, the size of code figure matrix sequence to be set, with by the code figure matrix sequence generated code figure pattern corresponding with code information; And S33, by the code figure pattern of generation, relevance relation and generated code figure pattern time-code figure generate storehouse be its give generation sequence number bind mutually after with generated code diagram data APMB package, using the filename of described generation sequence number as code diagram data APMB package, and code diagram data APMB package is uploaded in Cloud Server stores.
Cloud Server is after receiving yard diagram data APMB package, the data link table with the filename identical table header of code diagram data APMB package is created in code chart database, and after code diagram data APMB package is resolved, by the code figure pattern in code diagram data APMB package and relevance relational storage in the unique storage location in the data link table pointed by data pointer after Table Header information.
When obtain described code figure reading device facility information store by Cloud Server with described code scheme the facility information of at least one targeted customer in corresponding code diagram data APMB package comprise time, push the described first content be associated with the facility information of at least one targeted customer, otherwise push described second content.
Push successfully in the described first or second content at every turn and carry out record to when time operation in code chart database.
When detecting that the propelling movement of the described first content that existence is associated with the facility information of at least one targeted customer in yard chart database is successfully recorded, by described data link table together with wherein all the elements deletion.
The beneficial effect of the application comprises: verified by the identity of facility information to barcode scanning user of identification code figure reading device; realize same code figure and hiding true content is presented to targeted customer; and common content is presented to non-targeted user; guarantee that hiding content can only be checked by targeted customer; and checked the hiding content in code figure targeted customer after; all the elements of described code figure and inner definition thereof are deleted; ensure that the confidential information safety in social application, also protect privacy of user better.
Embodiment
Below by way of embodiment, technical scheme of the present invention is described in further detail.
Embodiment 1:
According to the first embodiment of the present invention, the invention provides a kind of code figure distinguishing displaying contents, in described code figure, definition has two kinds of different contents, such as wherein a kind of is the hiding content shown to specific targeted customer, another kind is the common content to other users display except targeted customer, carrys out identifying user identity according to predetermined condition.
Specifically, described predetermined condition comprises the facility information of the device distinguishing described code figure, includes but not limited to hardware device sequence number and/or operator's networking number etc.
Described code figure can be used for carrying out information sharing in social networks, and as the point-to-point content between good friend is shared, and the content on comparatively disclosed platform is shared, and shows different contents by the facility information of checking barcode scanning device to different audients.
Described code figure interlocks superposition with the combined type Quick Response Code etc. formed including but not limited to bar code, Quick Response Code, the superposition that to be interlocked by least two bar codes with the combined type bar code formed or at least two two-dimensional bar codes.
The code figure of the displaying contents distinguished that the present embodiment provides; verified by the identity of facility information to barcode scanning user of identification code figure reading device; realize same code figure and hiding true content is presented to targeted customer; and common content is presented to non-targeted user; guarantee that hiding content can only be checked by targeted customer; ensure that the confidential information safety in social application, also protect privacy of user better.
Embodiment 2:
According to a second embodiment of the present invention, the invention provides a kind of above-mentioned code map generalization method distinguishing displaying contents, please refer to Fig. 1, said method comprising the steps of:
S1, to generate in interface at code figure and input first content and by itself and the first pre-conditioned code information associated;
S2, to generate in interface at code figure and input the second content and by itself and the second pre-conditioned code information associated;
Wherein, it is in generated code figure process that described code figure generates interface, the interface for man-machine interaction that system provides, be mainly convenient to user some operation, such as, log in, submit to or by code figure forwarding etc.Described code figure is generated interface except the input frame comprised for user's input information, can also comprise submit button, shortcut bar etc.
Code figure generates the information to be converted had as relevance instruction represented with program code message form that interface reception user inputs from input frame.
S3, generate storehouse in conjunction with code figure, aforementioned code information is generated the code figure that can distinguish displaying contents, and be uploaded to Cloud Server.
Please refer to Fig. 2, the above-mentioned code drawing generating method distinguishing displaying contents, wherein step S3 comprises following sub-step further:
S31, described code information is imported code figure generate in storehouse, to generate the code figure matrix sequence corresponding with code information;
Wherein, the information to be converted represented with program code message form is imported code figure and generates storehouse, code figure generates storehouse can generate corresponding dimension with the information to be converted that program code message form represents code figure matrix sequence according to these.
S32, the size of code figure matrix sequence to be set, with by the code figure matrix sequence generated code figure pattern corresponding with code information;
Wherein, when after generated code figure matrix sequence, receive described code figure matrix sequence, and arrange according to the size of described matrix sequence, by information generated code figure pattern to be converted.
In addition, in step s 32, can also arrange other supplementarys such as the colors of the code figure pattern that will generate.
In the present embodiment, described code figure can be Quick Response Code, corresponding code figure generates storehouse and can be Quick Response Code generation storehouse, the source code file that the Quick Response Code generating code (Qrlibencode) that namely described Quick Response Code generation storehouse increases income forms, includes but not limited to adjust Quick Response Code size, the form that alternates coding, the power function changing the function such as Quick Response Code color, Quick Response Code superposition picture and resource file.Before two-dimensional code display generates interface, Quick Response Code generating code (Qrlibencode) can be incorporated in local code.
S33, by the code figure pattern of generation, relevance relation and generated code figure pattern time-code figure generate storehouse be its give generation sequence number bind mutually after with generated code diagram data APMB package, using the filename of described generation sequence number as code diagram data APMB package, and code diagram data APMB package is uploaded in Cloud Server stores.
In step S33, the form of the code diagram data APMB package formed is as following table:
Generate sequence number |
Code figure pattern |
Relevance relation |
Cloud Server is after receiving yard diagram data APMB package, the data link table with the filename identical table header of code diagram data APMB package is created in code chart database, and after code diagram data APMB package is resolved, by the code figure pattern in code diagram data APMB package and relevance relational storage in the unique storage location in the data link table pointed by data pointer after Table Header information.
The file layout of data link table is as following table:
Table Header information |
Code figure pattern |
Relevance relation |
In the present embodiment, the described first pre-conditioned facility information that can be the device of the code figure that follow-up recognition generates, at least one hardware device sequence number and/or operator's networking number can be comprised, as can by first content with want to pass on as described in the phone number of at least one targeted customer hidden Info that comprises in first content be associated, described second pre-conditioned, be correspondingly set as described first pre-conditioned adverse condition.
In the present embodiment, the code figure generated interlocks superposition with the combined type Quick Response Code etc. formed including but not limited to bar code, Quick Response Code, the superposition that to be interlocked by least two bar codes with the combined type bar code formed or at least two two-dimensional bar codes.
The code figure of the displaying contents distinguished that the method provided according to the present embodiment generates; verified by the identity of facility information to barcode scanning user of identification code figure reading device; realize same code figure and hiding true content is presented to targeted customer; and common content is presented to non-targeted user; guarantee that hiding content can only be checked by targeted customer; ensure that the confidential information safety in social application, also protect privacy of user better.
Embodiment 3:
According to the third embodiment of the invention, the invention provides a kind of method distinguishing the code figure that can distinguish displaying contents described in embodiment 1, please refer to Fig. 3, said method comprising the steps of:
1) by code figure reading device, code figure is distinguished; Described code figure reading device can be independently code figure scanning device, or has installed the terminal of corresponding barcode scanning application program, as mobile phone, panel computer etc.
2) obtain the facility information of described code figure reading device and upload Cloud Server; For example, itself carry the instruction of acquisition facility information by code figure or obtain corresponding facility information by the application program of installing.
3) facility information of scheming in corresponding code diagram data chained list with described code stored with Cloud Server by described facility information is compared;
Described by front embodiment 2, the code figure information generated passes to Cloud Server with code diagram data APMB package in form, and the code diagram data chained list creating correspondence in the code chart database of Cloud Server carrys out memory code figure information, described code figure information comprises the incidence relation of different content and the distinct device information comprised in yard figure pattern and code figure, and namely this step is compared by the facility information stored in obtained facility information and described code diagram data chained list.
Wherein, described facility information comprises hardware device sequence number and/or operator's networking number, the incidence relation of first content and at least one facility information is comprised in described code diagram data chained list, can be the incidence relation wanting hiding content and the target UE information passed on specifically, and second incidence relation of other facility informations outside content and described at least one facility information, the incidence relation of other facility informations namely outside common non-concealed content and targeted customer.
4) corresponding content is pushed to described code figure reading device to show according to comparison result; Such as, when obtained facility information is included in target UE range of information, hiding content is sent to yard figure reading device to show; When obtained facility information is not within the scope of targeted customer, then push and show non-concealed content.
5) Cloud Server pushes successfully in content and carries out record to when time operation; In the code chart database that content each time pushes at Cloud Server successfully, carry out record to when time operation, wherein the propelling movement record of first content and the second content stores respectively.
6) when the propelling movement record of the content be associated with the facility information of targeted customer being detected, the content in described code figure is deleted.
When detecting that the propelling movement of the described first content that existence is associated with the facility information of at least one targeted customer in yard chart database is successfully recorded, the described data link table in spatial cache and code chart database is deleted together with wherein all the elements by Cloud Server.After data link table is deleted, even if use reading device again to scan code figure, distinguish, also cannot get corresponding content, thus further ensure that the security of secret or the private information hidden in yard figure.
In the present embodiment, described facility information includes but not limited at least one hardware device sequence number and/or operator's networking number, as can by first content with want to pass on as described in the phone number of at least one targeted customer hidden Info that comprises in first content be associated, described second pre-conditioned, be correspondingly set as described first pre-conditioned adverse condition.
In the present embodiment, described code figure interlocks superposition with the combined type Quick Response Code etc. formed including but not limited to bar code, Quick Response Code, the superposition that to be interlocked by least two bar codes with the combined type bar code formed or at least two two-dimensional bar codes.
The reading method of the code figure of the displaying contents distinguished provided according to the present embodiment; verified by the identity of facility information to barcode scanning user of identification code figure reading device; realize same code figure and hiding true content is presented to targeted customer; and common content is presented to non-targeted user; guarantee that hiding content can only be checked by targeted customer; and the full content namely deleted described code figure and wherein define after targeted customer checks; further ensure the confidential information safety in social application, also protect privacy of user better.
It will be appreciated by those skilled in the art that, in above-mentioned embodiment, all or part of step of system and method can be carried out instruction related hardware by program and completes, this program can be stored in a computer-readable recording medium, and storage medium can comprise: ROM (read-only memory), random access memory, disk or CD etc.
Above content is in conjunction with concrete embodiment further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, some simple deduction or replace can also be made.