CN104200252B - A kind of function logic jump method, client and system based on barcode data - Google Patents
A kind of function logic jump method, client and system based on barcode data Download PDFInfo
- Publication number
- CN104200252B CN104200252B CN201410422578.6A CN201410422578A CN104200252B CN 104200252 B CN104200252 B CN 104200252B CN 201410422578 A CN201410422578 A CN 201410422578A CN 104200252 B CN104200252 B CN 104200252B
- Authority
- CN
- China
- Prior art keywords
- barcode
- data
- logic
- client
- function
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of function logic jump method, client and system based on barcode data, function logic jump method of the one of which based on barcode data include:Client obtains the barcode data of target barcode, and the barcode data of the target barcode includes the barcode types and content-data of the target barcode, and the barcode types include bar code or two-dimensional bar code;The barcode data is sent to server by the client;The client obtains the function logic information that server is returned according to the barcode data of the target barcode and preset bar code logical mappings relationship, and the function logic information includes function logic mark corresponding with the barcode data of the target barcode and logic content data;The client executes corresponding function logic according to function logic mark and logic content data.Using the present invention, can enhance bar code redirects ability, effectively widens the application scenarios and use scope of bar code.
Description
Technical field
The present invention relates to Internet technical field more particularly to a kind of function logic jump method based on barcode data,
Client and system.
Background technology
Barcode technology be the one kind to grow up on computer technology and Information Technology Foundation melt coding, printing, identification,
Data acquisition and processing (DAP) generally comprises bar code and two-dimensional bar code in the emerging technology of one, bar code.People are usually seen
The bar code being printed in commodity packaging be bar code, due to being limited by information capacity, bar code only to commodity into
Line identifier, without commodity are described.
With the development of modern high technology, an urgent demand indicates more to believe with bar code in limited geometric space
Breath, to meet the needs of ever-changing information.Two-dimensional bar code has the characteristics that high density, large capacity, it is possible to use it
To indicate data file (including Chinese character file), picture etc..Two-dimensional bar code is to large capacities such as various certificates and card, highly reliable
Information is stored, carried and the ideal method of automatically identifying and reading.It, can be by two-dimensional strip according to realization principle, the difference of planform
Code is divided into two class of capable row's formula and matrix form.
The coding principle of row row's formula two-dimensional bar code is built upon on the basis of bar code, is piled into two rows or multirow on demand
Code system.It is the characteristics of code Design, verification principle, recognition mode etc. inherit bar code, recognizing apparatus item
Code printing is compatible with bar code.But not exclusively and bar code due to discriminating, decoding algorithm and the software of the increase of line number ' row
It is identical.The code system of representational row row's formula two-dimensional bar code includes:PDF417, Code49, Code16K etc..
Matrix two-dimensional barcode forms with a matrix type.On the position of matrix respective element with point (square point, dot or
The point of other shapes) appearance indicate binary one, point do not occur indicating that binary " 0 ", the permutation and combination of point determine
Meaning representated by matrix.Square matrix code is built upon one kind on the basis of computer image processing technology, assembly coding principle etc.
New Graphics symbol automatically identifying and reading handles code system.Representative square matrix code code system includes:QR Code
(QuickResponse, quick response), Data Matrix, Code one, Maxi code etc..
Bar code in the prior art only represents goods number;And two-dimensional bar code generally only represents a url
(Uniform Resoure Locator:Uniform resource locator), corresponding webpage is opened by the application of swepting slip code.Above-mentioned item
Code is very single using turn function, significantly limits the application scenarios and use scope of bar code.
Invention content
Technical problem to be solved of the embodiment of the present invention is, provides a kind of function logic based on barcode data and redirects
Method, client and system, can enhance bar code redirects ability, effectively widens the application scenarios and use scope of bar code.
In order to solve the above-mentioned technical problem, an embodiment of the present invention provides a kind of function logics based on barcode data to redirect
Method, the method includes:
Client obtains the barcode data of target barcode, and the barcode data of the target barcode includes the target barcode
Barcode types and content-data, the barcode types include bar code or two-dimensional bar code;
The barcode data is sent to server by the client;
The client obtains server and is closed according to the barcode data of the target barcode and preset bar code logical mappings
It is the function logic information returned, the function logic information includes that function corresponding with the barcode data of the target barcode is patrolled
Collect mark and logic content data;
The client executes corresponding function logic according to function logic mark and logic content data.
Correspondingly, the embodiment of the present invention additionally provides a kind of function logic jump method based on barcode data, the side
Method includes:
The barcode data for the target barcode that client is sent is received, the barcode data of the target barcode includes the target
The barcode types and content-data of bar code, the barcode types include bar code or two-dimensional bar code;
Function logic corresponding with the barcode data of the target barcode is searched according to preset bar code logical mappings relationship
Information, the function logic information include function logic mark corresponding with the barcode data of the target barcode and logic content
Data;
Return to the function logic information to the client so that the client according to function logic mark and
Logic content data execute corresponding function logic.
Correspondingly, the embodiment of the present invention additionally provides a kind of client, and the client includes:
Barcode data acquisition module, the barcode data for obtaining target barcode, the barcode data packet of the target barcode
The barcode types and content-data of the target barcode are included, the barcode types include bar code or two-dimensional bar code;
Barcode data sending module, for the barcode data to be sent to server;
Function logic acquisition module, for obtaining barcode data and preset bar code of the server according to the target barcode
The function logic information that logical mappings relationship returns, the function logic information includes the barcode data pair with the target barcode
The function logic mark and logic content data answered;
Function logic execution module is patrolled for executing corresponding function according to function logic mark and logic content data
Volume.
Correspondingly, the embodiment of the present invention additionally provides a kind of server, and the server includes:
Barcode data receiving module, the barcode data of the target barcode for receiving client transmission, the target barcode
Barcode data include the target barcode barcode types and content-data, the barcode types include bar code or two dimension
Bar code;
Function logic searching module, for searching the item with the target barcode according to preset bar code logical mappings relationship
The corresponding function logic information of code data, the function logic information includes work(corresponding with the barcode data of the target barcode
It can logical identifier and logic content data;
Function logic returns to module, for returning to the function logic information to the client, so that the client
Corresponding function logic is executed according to function logic mark and logic content data.
Correspondingly, the embodiment of the present invention additionally provides a kind of function logic jump system, which is characterized in that the system packet
Server and at least one client are included, wherein:
The client is used to obtain the barcode data of target barcode;The barcode data is sent to the server;
The server is used for according to the barcode data of the target barcode and preset bar code logical mappings relationship to institute
It states client and returns to function logic information, the function logic information includes work(corresponding with the barcode data of the target barcode
It can logical identifier and logic content data;
The client is additionally operable to receive the function logic information, according to function logic mark and logic content number
According to execution corresponding function logic.
Client in the present embodiment can be based on the acquisition server return of the barcode data of target barcode and the item
The function logic information of code data, and corresponding function logic is executed according to the function logic information, it can greatly enhance bar code
Ability is redirected, the application scenarios and use scope of bar code are effectively widened.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of function logic jump method based on barcode data in the embodiment of the present invention;
Fig. 2 is the function logic jump method based on barcode data in another embodiment of the present invention;
Fig. 3 is the function logic jump method based on barcode data in another embodiment of the present invention;
Fig. 4 is the flow diagram that client obtains barcode data in the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of client in the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the barcode data acquisition module of client in the embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of server in the embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of function logic jump system in the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
The client referred in the embodiment of the present invention can be the application program operated on electric terminal, can also be by
Being not understood as operation has the electric terminal of application program, the electric terminal may include PC (personal computer, it is a
People's computer), mobile phone, tablet computer, smart mobile phone, electronic reader, laptop, car-mounted terminal etc..
Fig. 1 is a kind of function logic jump method based on barcode data in the embodiment of the present invention, the present embodiment be with
The angle of client-side carrys out the implementation process of representation function logic jump method, may include as shown in the figure:
S101, client obtain the barcode data of target barcode.
In the specific implementation, the client may operate in mobile terminal, by the camera shooting for calling the mobile terminal
Functionality scan obtains the target barcode, and then is decoded to obtain the barcode data of target barcode to the target barcode.?
In other alternative embodiments, the client can also be to obtain the target barcode, example by modes such as data transfer, downloads
The image of the target barcode such as scanned by camera function by mobile phone, and the image of the target barcode is sent to personal electricity
The client run on brain, and by client the image of the target barcode is decoded to obtain the yardage of target barcode
According to.The barcode data of the target barcode may include barcode types and content-data, and the barcode types may include one-dimensional
Bar code and two-dimensional bar code further can also be divided into different types of two dimension according to the difference of the code system of two-dimensional bar code or form
The target barcode that bar code, the i.e. embodiment of the present invention are directed to can be any one bar code;The content-data passes through bar code code
Make corresponding decoding process to the target barcode be decoded to obtain it includes content, no matter target barcode is bar code
Or two-dimensional bar code, it can obtain one group of character string by decoding, you can be understood to the content-data in the present embodiment.
Further in an alternative embodiment, the target barcode that client can obtain scanning identifies to obtain the mesh
The barcode types of bar code are marked, and then corresponding decoding algorithm can be called to the target barcode image according to the barcode types
It is decoded to obtain the content-data of target barcode, is bar code as identification obtains target barcode, then can call one-dimensional item
The decoding algorithm of code is decoded it, if it is two-dimensional bar code that identification, which obtains target barcode, two-dimensional bar code can be called to correspond to
Decoding algorithm it is decoded to obtain the content-data of target barcode.
The barcode data is sent to server by S102, the client.
Server in the present embodiment can provide bar code for the client and redirect logical mappings, be preset with item
Correspondence between code data and function logic information, i.e. bar code logical mappings relationship, such as according to the registration request of businessman,
Specific barcode data is generated for the function logic information of its request, and preserves the barcode data in specified mapping database
Bar code logical mappings relationship between the function logic information.
S103, the client obtain server and are reflected according to the barcode data and preset bar code logic of the target barcode
The function logic information of relationship return is penetrated, the function logic information includes work(corresponding with the barcode data of the target barcode
It can logical identifier and logic content data.
Specifically, server is after the barcode data for getting client transmission, you can in the bar code logic pre-established
The corresponding function logic information of barcode data of target barcode is found in mapping relations.The function logic is identified as notice visitor
It can be client executing pair that family end, which can call logic function corresponding with function logic mark, the logic content data,
Answer the data or parameter needed for logic function.
S104, the client execute corresponding function logic according to function logic mark and logic content data.
In the specific implementation, the client can be identified according to the function logic calls the corresponding logic of the client
Function carries out logical process to the logic content data.
In an alternative embodiment, the client can identify according to the function logic and jump to corresponding logic function
Simultaneously the corresponding logic function of the client is called to carry out logical process to the logic content data in interface.Such as server returns
The function logic carried in the function logic information returned is identified as " browser " or " 1 ", and the logic content data carried are one
Web pages url, then client can jump to built-in web page browsing interface, and access the work(by the web page browsing interface
The webpage url carried in energy logical message, such as can be the buyer's guide page or html5 (HyperText Mark-up
Language, hypertext markup language) page.In another example the function logic mark carried in the function logic information that server returns
It is " contact person " or " 2 " to know, and the logic content data carried are the search criterion of target user, then client can jump to
Built-in searching contact person interface, and met in the function logic information by corresponding searching contact person function lookup and carried
Search criterion target user.The function logic mark carried in the function logic information that the server returns is also " branch
Pay ", " verification ", " anti-fake ", " logistics " or " receiving the award " or corresponding setting identification, receiving the above-mentioned function logic of carrying
After the function logic information of mark, client can jump to corresponding payment function interface, authentication function interface, antiforge function
Interface, logistics enquiring function interface or function interface of receiving the award, and call the corresponding logic function of the client to the function
Payment data, verify data, commodity data, logistics object data that logical message carries etc. carries out corresponding logical process.Institute
It states and the corresponding logic function of the client is called to carry out logical process to the logic content data, be specifically as follows calling visitor
Logic content data described in logical process function pair corresponding with the logic function carry out logical process inside the end of family.
And in other alternative embodiments, the client can also be identified according to the function logic, by the logic
Content-data is transferred to applications corresponding with function logic mark, triggers the applications to the logic content
Data carry out logical process, and jump to the corresponding logic function interface of the applications.With institute is called in foregoing embodiments
State the corresponding logic function of client to the logic content data carry out logical process fly difference lies in described to be specifically responsible for holding
Row corresponding function logic is being not corresponding logic function interface inside client, but the application outside client, such as
With the mutually independent browser program of client, instant communication client, payment client terminal, verification tool, commodity counterfeit prevention program
Or logistics enquiring client etc..
Client in the present embodiment can be based on the acquisition server return of the barcode data of target barcode and the item
The function logic information of code data, and corresponding function logic is executed according to the function logic information, it can greatly enhance bar code
Ability is redirected, the application scenarios and use scope of bar code are effectively widened.
Fig. 2 is the function logic jump method based on barcode data in another embodiment of the present invention, and the present embodiment is base
In the implementation process of the angle representation function logic jump method of client and server both sides, may include as shown in the figure:
S201, client obtain the barcode types and content-data of target barcode.
Specifically, the target barcode that client can obtain scanning is identified to obtain the item of the target barcode
Code type, and then corresponding decoding algorithm can be called to be decoded the target barcode image according to the barcode types
To the content-data of target barcode, it is bar code as identification obtains target barcode, then the decoding of bar code can be called to calculate
Method is decoded it, if it is two-dimensional bar code that identification, which obtains target barcode, can call the corresponding decoding algorithm of two-dimensional bar code
It is decoded to obtain the content-data of target barcode.
The barcode types of the target barcode got and content-data are sent to server by S202, client.
S203, server are searched corresponding with the barcode data of the target barcode according to preset bar code logical mappings relationship
Function logic information, the function logic information includes corresponding with the barcode data of target barcode function logic mark
With logic content data.
Server in the present embodiment can provide bar code for the client and redirect logical mappings, be preset with item
Correspondence between code data and function logic information, i.e. bar code logical mappings relationship, such as according to the registration request of businessman,
Specific barcode data, including barcode types and content-data are generated for the function logic information of its request, and is reflected in specified
The bar code logical mappings relationship preserved between the barcode data and the function logic information is penetrated in database.Server is being got
After the barcode data that client is sent, you can find the bar code of target barcode in the bar code logical mappings relationship pre-established
The corresponding function logic information of data.The function logic is identified as notice client and can call and function logic mark pair
The logic function answered, the logic content data can be the data or parameter needed for client executing counterlogic function.
S204, server return to the function logic information to the client.
S205, client jump to corresponding logic function interface according to function logic mark.
Such as the function logic carried in the function logic information of server return is identified as " browser " or " 1 ", takes
The logic content data of band are a web pages url, then client can jump to built-in web page browsing interface, and pass through the net
Page browsing interface accesses the webpage url carried in the function logic information, such as can be the buyer's guide page or html5
(HyperText Mark-up Language, hypertext markup language) page.In another example the function logic letter that server returns
The function logic carried in breath is identified as " contact person " or " 2 ", and the logic content data carried are the lookup item of target user
Part, then client can jump to built-in searching contact person interface, and be met by corresponding searching contact person function lookup
The target user of the search criterion carried in the function logic information.It is carried in the function logic information that the server returns
Function logic mark also be " payment ", " verification ", " anti-fake ", " logistics " or " receiving the award " or corresponding setting identification,
After receiving the function logic information for carrying above-mentioned function logic mark, client can jump to corresponding payment function circle
Face, authentication function interface, antiforge function interface, logistics enquiring function interface or function interface of receiving the award.
S206, the corresponding logic function of client call carry out logical process to the logic content data.It specifically can be with
To call logic content data described in logical process function pair corresponding with the logic function inside client to carry out at logic
Reason.
Client in the present embodiment can be based on the acquisition server return of the barcode data of target barcode and the item
The function logic information of code data, and corresponding function logic is executed according to the function logic information, it can greatly enhance bar code
Ability is redirected, the application scenarios and use scope of bar code are effectively widened.
Fig. 3 is the function logic jump method based on barcode data in another embodiment of the present invention, this reality as shown in the figure
The function logic redirect procedure applied in example may include:
S301, client obtain the barcode types and content-data of target barcode.
The barcode types of the target barcode got and content-data are sent to server by S302, client.
S303, server are searched corresponding with the barcode data of the target barcode according to preset bar code logical mappings relationship
Function logic information, the function logic information includes corresponding with the barcode data of target barcode function logic mark
With logic content data;
S304, server returns to the function logic information to the client, so that the client is according to the work(
It can logical identifier and logic content data execution corresponding function logic.
S305, the client are identified according to the function logic, by the logic content data transfer to the work(
It can the corresponding applications of logical identifier.Logic function corresponding with the client is called in foregoing embodiments is to the logic
Content-data carries out logical process and flies that difference lies in described to be specifically responsible for executing corresponding function logic being not inside client
Corresponding logic function interface, but the application outside client, for example, with the mutually independent browser program of client, immediately
Telecommunication customer end, payment client terminal, verification tool, commodity counterfeit prevention program or logistics enquiring client etc., client is according to service
The function logic mark that device returns finds applications corresponding with function logic mark, and by leading between available process
Letter mode transmits logic content data to applications corresponding with function logic mark.
S306 jumps to the corresponding logic function interface of the applications.
S307, applications carry out logical process to the logic content data, and include outer by logical process result
Portion is using on corresponding logic function interface.
Client in the present embodiment can be based on the acquisition server return of the barcode data of target barcode and the item
The function logic information of code data, and corresponding applications are jumped to according to the function logic information and trigger its execution accordingly
Function logic, can greatly enhance bar code redirects ability, effectively widens the application scenarios and use scope of bar code.
Fig. 4 is the flow diagram that client obtains barcode data in the embodiment of the present invention, as shown in the figure in the present embodiment
The flow that middle client obtains barcode data may include:
The camera function of S401, mobile terminal described in the client call scan to obtain the target barcode;
S402, the target barcode that the client obtains scanning are identified to obtain the bar code of the target barcode
Type;
S403, the client according to the barcode types call corresponding decoding algorithm to the target barcode image into
Row decoding obtains the content-data of target barcode.It is bar code as identification obtains target barcode, then can calls bar code
Decoding algorithm it is decoded, if to obtain target barcode be two-dimensional bar code for identification, two-dimensional bar code can be called corresponding
Decoding algorithm is decoded it to obtain the content-data of target barcode.
Fig. 5 is a kind of structural schematic diagram of client in the embodiment of the present invention, visitor in the embodiment of the present invention as shown in the figure
Family end at least may include:
Barcode data acquisition module 510, the barcode data for obtaining target barcode, the barcode data of the target barcode
Barcode types including the target barcode and content-data, the barcode types include bar code or two-dimensional bar code.
In the specific implementation, the client may operate in mobile terminal, barcode data acquisition module 510 can pass through
It calls the camera function of the mobile terminal to scan to obtain the target barcode, and then the target barcode is decoded to obtain
The barcode data of target barcode.In other alternative embodiments, barcode data acquisition module 510 can also be to be turned by data
Move, download etc. modes obtain the target barcode, such as the target barcode scanned by camera function by mobile phone image,
And the image of the target barcode is sent to the client run on PC, and by client to the figure of the target barcode
As being decoded to obtain the barcode data of target barcode.The barcode data of the target barcode may include barcode types and content
Data, the barcode types may include bar code and two-dimensional bar code, can also be further according to the code system of two-dimensional bar code
Or the difference of form is divided into different types of two-dimensional bar code, i.e., the target barcode that the embodiment of the present invention is directed to can be any one
Bar code;The content-data i.e. by the corresponding decoding process of bar code code system to the target barcode be decoded to obtain it includes
Content, no matter target barcode is bar code or two-dimensional bar code, can obtain one group of character string by decoding, you can with
The content-data being understood in the present embodiment.
Further in an alternative embodiment, barcode data acquisition module 510 can further comprise as shown in Figure 6:
Bar code scan unit 511, for calling the camera function of the mobile terminal to scan to obtain the target barcode;
Decoding unit 512 obtains the barcode data of target barcode for being decoded to the target barcode.And then can
It selects in embodiment, decoding unit 512 may further include:
Identification of code type subelement 5121, for the target barcode that bar code scan unit scan obtains to be identified
To the barcode types of the target barcode;
Decoding subunit 5122, for calling corresponding decoding algorithm to the target barcode figure according to the barcode types
As being decoded to obtain the content-data of target barcode.It is bar code as identification obtains target barcode, then can calls one-dimensional
The decoding algorithm of bar code is decoded it, if it is two-dimensional bar code that identification, which obtains target barcode, can call two-dimensional bar code pair
The decoding algorithm answered is decoded it to obtain the content-data of target barcode.
Barcode data sending module 520, for the barcode data to be sent to server.
Server in the present embodiment can provide bar code for the client and redirect logical mappings, be preset with item
Correspondence between code data and function logic information, i.e. bar code logical mappings relationship, such as according to the registration request of businessman,
Specific barcode data is generated for the function logic information of its request, and preserves the barcode data in specified mapping database
Bar code logical mappings relationship between the function logic information.
Function logic acquisition module 530, for obtaining server according to the barcode data of the target barcode and preset
The function logic information that bar code logical mappings relationship returns, the function logic information includes the yardage with the target barcode
According to corresponding function logic mark and logic content data.
Specifically, server is after the barcode data for getting client transmission, you can in the bar code logic pre-established
The corresponding function logic information of barcode data of target barcode is found in mapping relations, and then returns to the function to client
Logical message.The function logic identifies to notify client that can call logic work(corresponding with function logic mark
Can, the logic content data can be the data or parameter needed for client executing counterlogic function.
Function logic execution module 540, for executing corresponding work(according to function logic mark and logic content data
It can logic.
In the specific implementation, function logic execution module 540 can be identified according to the function logic calls the client
Corresponding logic function carries out logical process to the logic content data.
In an alternative embodiment, function logic execution module 540 can identify according to the function logic and jump to correspondence
Logic function interface and call the corresponding logic function of the client to the logic content data carry out logical process.Example
If the function logic that carries is identified as " browser " or " 1 " in function logic information that server returns, in the logic carried
Appearance data are a web pages url, then function logic execution module 540 can jump to the web page browsing interface built in client,
And the webpage url carried in the function logic information is accessed by the web page browsing interface, such as can be the buyer's guide page
Or html5 (HyperText Mark-up Language, hypertext markup language) page.In another example the function that server returns
The function logic carried in logical message is identified as " contact person " or " 2 ", and the logic content data carried are target user's
Search criterion, then function logic execution module 540 can jump to the searching contact person interface built in client, and pass through correspondence
Searching contact person function lookup meet the target user of the search criterion carried in the function logic information.The server
The function logic mark carried in the function logic information of return is also " payment ", " verification ", " anti-fake ", " logistics " or " receiving the award "
Or corresponding setting identification, after receiving the function logic information for carrying above-mentioned function logic mark, function logic is held
Row module 540 can jump to corresponding payment function interface, authentication function interface, antiforge function interface, logistics enquiring function
Interface or function interface of receiving the award, and the payment for calling the corresponding logic function of the client to carry the function logic information
Data, verify data, commodity data, logistics object data etc. carry out corresponding logical process.The function logic execution module
540 call the corresponding logic function of the client to carry out logical process to the logic content data, are specifically as follows calling
Logic content data described in logical process function pair corresponding with the logic function carry out logical process inside client.
And in other alternative embodiments, function logic execution module 540 can also be identified according to the function logic, will
The logic content data transfer triggers the applications to described to applications corresponding with function logic mark
Logic content data carry out logical process, and jump to the corresponding logic function interface of the applications.With foregoing embodiments
Function logic execution module 540 calls the corresponding logic function of the client to carry out logical process to the logic content data
Fly difference lies in, it is described to be specifically responsible for executing corresponding function logic being not corresponding logic function interface inside client,
But the application outside client, such as with the mutually independent browser program of client, instant communication client, payment client
End, verification tool, commodity counterfeit prevention program or logistics enquiring client etc..Function logic execution module 540 is returned according to server
Function logic mark, find applications corresponding with function logic mark, and pass through available interprocess communication mode
Logic content data are transmitted to applications corresponding with function logic mark.
Client in the present embodiment can be based on the acquisition server return of the barcode data of target barcode and the item
The function logic information of code data, and corresponding function logic is executed according to the function logic information, it can greatly enhance bar code
Ability is redirected, the application scenarios and use scope of bar code are effectively widened.
Fig. 7 is a kind of structural schematic diagram of server in the embodiment of the present invention, in the embodiment of the present invention as shown in the figure
Server may include:
Barcode data receiving module 710, the barcode data of the target barcode for receiving client transmission, the target item
The barcode data of code includes the barcode types and content-data of the target barcode, and the barcode types include bar code or two
Bar code is tieed up, further can also be divided into different types of two-dimensional bar code according to the difference of the code system of two-dimensional bar code or form, i.e.,
The target barcode that the embodiment of the present invention is directed to can be any one bar code;The content-data is i.e. corresponding by bar code code system
Decoding process to the target barcode be decoded to obtain it includes content, no matter target barcode is bar code or two dimension
Bar code can obtain one group of character string, you can be understood to the content-data in the present embodiment by decoding.
Function logic searching module 720, for being searched and the target barcode according to preset bar code logical mappings relationship
The corresponding function logic information of barcode data, the function logic information includes corresponding with the barcode data of the target barcode
Function logic mark and logic content data.
Server in the present embodiment can provide bar code for the client and redirect logical mappings, be preset with item
Correspondence between code data and function logic information, i.e. bar code logical mappings relationship, such as according to the registration request of businessman,
Specific barcode data is generated for the function logic information of its request, and preserves the barcode data in specified mapping database
Bar code logical mappings relationship between the function logic information.Server get client transmission barcode data after,
The corresponding function logic information of barcode data of target barcode can be found in the bar code logical mappings relationship pre-established,
And then return to the function logic information to client.The function logic identifies to notify client that can call and the work(
The corresponding logic function of energy logical identifier, the logic content data can be the number needed for client executing counterlogic function
According to or parameter.
Function logic returns to module 730, for returning to the function logic information to the client, so that the client
End executes corresponding function logic according to function logic mark and logic content data.
Fig. 8 is a kind of structural schematic diagram of function logic jump system in the embodiment of the present invention.System packet as described in Figure
Server 810 and at least one client 820 are included, wherein:
Server as claimed in claim 14 and at least one such as claim 8~13 any one of them client,
Wherein:
The client 820 can be the client as described in the attached drawing of embodiment combination above 5 and attached drawing 6, for obtaining
Take the barcode data of target barcode;The barcode data is sent to the server 810;
The server 810 can be the server as described in the attached drawing of embodiment combination above 7, for according to the mesh
The barcode data and preset bar code logical mappings relationship for marking bar code return to function logic information to the client 820, described
Function logic information includes function logic mark corresponding with the barcode data of the target barcode and logic content data;
The client 820 is additionally operable to receive the function logic information, according in function logic mark and logic
Hold data and executes corresponding function logic.
Client in the present embodiment can be based on the acquisition server return of the barcode data of target barcode and the item
The function logic information of code data, and corresponding function logic is executed according to the function logic information, it can greatly enhance bar code
Ability is redirected, the application scenarios and use scope of bar code are effectively widened.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (11)
1. a kind of function logic jump method based on barcode data, which is characterized in that the method includes:
Client obtains the barcode data of target barcode, and the barcode data of the target barcode includes the bar code of the target barcode
Type and content-data, the barcode types include bar code or two-dimensional bar code;
The barcode data is sent to server by the client;
The client obtains server and is returned according to the barcode data and preset bar code logical mappings relationship of the target barcode
The function logic information returned, the function logic information includes function logic mark corresponding with the barcode data of the target barcode
Know and logic content data, the logic content data are the data or parameter executed needed for counterlogic function;
The client executes corresponding function logic according to function logic mark and logic content data;
The wherein described client executes corresponding function logic according to function logic mark and logic content data:
The client is identified according to the function logic, and the logic content data transfer is identified to the function logic
Corresponding applications trigger the applications and carry out logical process to the logic content data, and jump to described outer
Apply corresponding logic function interface in portion.
2. the function logic jump method based on barcode data as described in claim 1, which is characterized in that the client fortune
Row is on mobile terminals.
3. the function logic jump method based on barcode data as claimed in claim 2, which is characterized in that the client obtains
The barcode data of target barcode is taken to include:
The camera function of mobile terminal described in the client call scans to obtain the target barcode;
The client is decoded the target barcode to obtain the barcode data of target barcode.
4. the function logic jump method based on barcode data as claimed in claim 3, which is characterized in that the client pair
The barcode data that the target barcode is decoded to obtain target barcode includes:
The target barcode that the client obtains scanning is identified to obtain the barcode types of the target barcode;
The client calls corresponding decoding algorithm to be decoded to obtain mesh to the target barcode according to the barcode types
Mark the content-data of bar code.
5. a kind of function logic jump method based on barcode data, which is characterized in that the method includes:
The barcode data for the target barcode that client is sent is received, the barcode data of the target barcode includes the target barcode
Barcode types and content-data, the barcode types include bar code or two-dimensional bar code;
Function logic information corresponding with the barcode data of the target barcode is searched according to preset bar code logical mappings relationship,
The function logic information includes corresponding with the barcode data of target barcode function logic mark and logic content data,
The logic content data are the data or parameter executed needed for counterlogic function;
The function logic information is returned to the client, so that the client will be described according to function logic mark
Logic content data transfer triggers the applications to the logic to applications corresponding with function logic mark
Content-data carries out logical process, and jumps to the corresponding logic function interface of the applications.
6. a kind of client, which is characterized in that the client includes:
The barcode data of barcode data acquisition module, the barcode data for obtaining target barcode, the target barcode includes institute
The barcode types and content-data of target barcode are stated, the barcode types include bar code or two-dimensional bar code;
Barcode data sending module, for the barcode data to be sent to server;
Function logic acquisition module, for obtaining barcode data and preset bar code logic of the server according to the target barcode
The function logic information that mapping relations return, the function logic information includes corresponding with the barcode data of the target barcode
Function logic identifies and logic content data, and the logic content data are the data or ginseng executed needed for counterlogic function
Number;
Function logic execution module, for according to the function logic mark by the logic content data transfer to the work(
The corresponding applications of energy logical identifier trigger the applications and carry out logical process to the logic content data, and jump
Go to the corresponding logic function interface of the applications.
7. client as claimed in claim 6, which is characterized in that the client operation is on mobile terminals.
8. client as claimed in claim 7, which is characterized in that the barcode data acquisition module includes:
Bar code scan unit, for calling the camera function of the mobile terminal to scan to obtain the target barcode;
Decoding unit obtains the barcode data of target barcode for being decoded to the target barcode.
9. client as claimed in claim 8, which is characterized in that the decoding unit includes:
Identification of code type subelement, for being identified to obtain the mesh to the target barcode that bar code scan unit scan obtains
Mark the barcode types of bar code;
Decoding subunit, for calling corresponding decoding algorithm to be decoded the target barcode according to the barcode types
To the content-data of target barcode.
10. a kind of server, which is characterized in that the server includes:
Barcode data receiving module, the barcode data of the target barcode for receiving client transmission, the item of the target barcode
Code data include the barcode types and content-data of the target barcode, and the barcode types include bar code or two-dimensional strip
Code;
Function logic searching module, for searching the yardage with the target barcode according to preset bar code logical mappings relationship
According to corresponding function logic information, the function logic information includes that function corresponding with the barcode data of the target barcode is patrolled
Mark and logic content data are collected, the logic content data are the data or parameter executed needed for counterlogic function;
Function logic returns to module, for returning to the function logic information to the client so that the client according to
The function logic mark triggers the logic content data transfer to applications corresponding with function logic mark
The applications carry out logical process to the logic content data, and jump to the corresponding logic function of the applications
Interface.
11. a kind of function logic jump system, which is characterized in that the system comprises server as claimed in claim 10 and
At least one such as claim 6~9 any one of them client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410422578.6A CN104200252B (en) | 2014-08-25 | 2014-08-25 | A kind of function logic jump method, client and system based on barcode data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410422578.6A CN104200252B (en) | 2014-08-25 | 2014-08-25 | A kind of function logic jump method, client and system based on barcode data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104200252A CN104200252A (en) | 2014-12-10 |
CN104200252B true CN104200252B (en) | 2018-11-06 |
Family
ID=52085541
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410422578.6A Active CN104200252B (en) | 2014-08-25 | 2014-08-25 | A kind of function logic jump method, client and system based on barcode data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104200252B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106844071B (en) * | 2015-12-04 | 2020-09-22 | 菜鸟智能物流控股有限公司 | Method and device for acquiring input data |
CN107644188A (en) * | 2017-09-30 | 2018-01-30 | 联想(北京)有限公司 | A kind of information identifying method and electronic equipment |
CN110264179A (en) * | 2018-03-12 | 2019-09-20 | 阿里巴巴集团控股有限公司 | Commodity settlement method, device, system and electronic equipment |
CN109508948A (en) * | 2018-09-30 | 2019-03-22 | 口碑(上海)信息技术有限公司 | A kind of method for routing that checking and writing off code, apparatus and system |
CN112800803B (en) * | 2021-04-09 | 2021-07-30 | 腾讯科技(深圳)有限公司 | Graphic code identification method, device, equipment and storage medium |
CN117130692B (en) * | 2023-10-23 | 2024-01-23 | 成都赛力斯科技有限公司 | Application management method, device, electronic equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101437038A (en) * | 2007-11-15 | 2009-05-20 | 深圳市矽感数码***有限公司 | Method for monitoring increase value business of two-dimension bar-code direct mode |
US10922721B2 (en) * | 2012-04-03 | 2021-02-16 | Nant Holdings Ip, Llc | Transmedia story management systems and methods |
CN102929595A (en) * | 2012-09-20 | 2013-02-13 | 腾讯科技(深圳)有限公司 | Method and device for realizing action command |
-
2014
- 2014-08-25 CN CN201410422578.6A patent/CN104200252B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104200252A (en) | 2014-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104200252B (en) | A kind of function logic jump method, client and system based on barcode data | |
CN105391674B (en) | Information processing method and system, server and client | |
Want | Near field communication | |
EP2898451B1 (en) | Information obtaining method and apparatus | |
Vazquez-Briseno et al. | Using RFID/NFC and QR-code in mobile phones to link the physical and the digital world | |
US9710687B2 (en) | Method and device for identifying two-dimensional barcodes | |
CN104468531B (en) | The authorization method of sensitive data, device and system | |
CN104252613B (en) | A kind of virtual objects acquisition methods, device and terminal | |
CN104392502A (en) | Two-dimensional code attendance checking system based on intelligent cell phone and application method of two-dimensional code attendance checking system based on intelligent cell phone | |
CN109416731A (en) | Document optical character identification | |
CN103400099A (en) | Terminal and two-dimension code identification method | |
CN103593773A (en) | Product anti-fake method and system and client terminal | |
CN103218595A (en) | Terminal and method for recognizing two-dimensional codes | |
CN103854006A (en) | Image recognition method and device | |
CN107491428A (en) | Bank's list and its information input method and device based on optical lattice technology | |
US20140209679A1 (en) | System and method for mobile tags with dynamic content | |
CN102708184A (en) | Method for inquiring anti-fake two-dimension code of coded lock | |
CN107590411A (en) | A kind of method and system of the Quick Response Code identification based on WWW | |
CN107944525A (en) | A kind of method and system of the expansion Quick Response Code capacity based on data segmentation | |
CN105664490A (en) | Method and system for realizing game interaction | |
CN109376825A (en) | A kind of two-dimensional code generation method and device | |
CN111670429B (en) | Object ID centric workflow | |
Arendarenko | A study of comparing RFID and 2D barcode tag technologies for pervasive mobile applications | |
CN106504045A (en) | A kind of printing invoice system and the method for making, being identified using digital object | |
CN105138894B (en) | A kind of identifying code safety defense method, system and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |