CN110297807A - A kind of two dimension code management method and device - Google Patents
A kind of two dimension code management method and device Download PDFInfo
- Publication number
- CN110297807A CN110297807A CN201910586697.8A CN201910586697A CN110297807A CN 110297807 A CN110297807 A CN 110297807A CN 201910586697 A CN201910586697 A CN 201910586697A CN 110297807 A CN110297807 A CN 110297807A
- Authority
- CN
- China
- Prior art keywords
- dimensional code
- code
- dimension
- pond
- image
- 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.)
- Granted
Links
- 238000007726 management method Methods 0.000 title claims abstract description 20
- 238000004590 computer program Methods 0.000 claims description 17
- 238000000034 method Methods 0.000 claims description 17
- 241000533950 Leucojum Species 0.000 claims description 8
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000013500 data storage Methods 0.000 claims description 2
- 238000000151 deposition Methods 0.000 claims 2
- 238000000605 extraction Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000003032 molecular docking Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000008929 regeneration Effects 0.000 description 1
- 238000011069 regeneration method Methods 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
- G06F21/121—Restricting unauthorised execution of programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Library & Information Science (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Storage Device Security (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention provides a kind of two-dimentional code management method and devices, wherein a kind of two dimension code management method, comprising: generate two-dimension code image;The two-dimension code image is uploaded to cloud object storage space, obtains two dimensional code file path corresponding with the two-dimension code image;Two dimensional code number corresponding with the two-dimension code image, two dimensional code type information and the two dimensional code file path are stored into preset code pond;When the corresponding two dimensional code number of two-dimension code image any in the code pond and the called two dimensional code file path, the target two-dimension code image to match with the two dimensional code type information of the two-dimension code image is generated, and the target two-dimension code image is stored.When needing to obtain two dimensional code, directly according to the two-dimension code image in two dimensional code type information extraction code pond, and specific sharing channel is parallel to by two dimensional code number, effectively solves the problems, such as that it is difficult to obtain small routine two dimensional code for user's high frequency under high concurrent.
Description
Technical field
The present invention relates to computer software technical fields, more particularly to a kind of two-dimentional code management method and a kind of two dimensional code
Managing device.
Background technique
Since the user of magnanimity carries out the demand of high frequency sharing to small routine two dimensional code, existing mode is micro- by calling
Letter small routine two dimensional code interface directly acquires small routine two dimensional code, but in the peak traffic phase, it is slow that duration will appear acquisition speed
The phenomenon that even obtaining failure, the serious experience for influencing user.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind
A kind of two-dimentional code management method to solve the above problems and a kind of corresponding two dimensional code managing device.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of two-dimentional code management methods, comprising:
Generate two-dimension code image;
The two-dimension code image is uploaded to cloud object storage space, obtains two dimensional code corresponding with the two-dimension code image
File path;
It will two dimensional code number corresponding with the two-dimension code image, two dimensional code type information and the two dimensional code file path
It stores into preset code pond;
When the corresponding two dimensional code number of two-dimension code image any in the code pond and the two dimensional code file path quilt
When calling, the target two-dimension code image to match with the two dimensional code type information of the two-dimension code image is generated, and to the mesh
Mark two-dimension code image is stored.
Further, before the step of generation two-dimension code image, comprising:
The application programming interfaces API Access for obtaining small routine two dimensional code limits power;
Power, which is limited, according to the API Access obtains two dimensional code parameter;
The two dimensional code type information is determined according to the two dimensional code parameter.
Further, the step of generation two-dimension code image, comprising:
Unique two dimensional code number is generated using Snowflake algorithm;
Obtain two dimensional code parameter, page path;
Two-dimension code image is generated according to two dimensional code number, the two dimensional code parameter and the page path.
Further, the code pond is a storage system using key-value pair data structure, key-value pair data structure packet
Include key information and value information;It is described will corresponding with two-dimension code image two dimensional code number, two dimensional code type information and described
The step that two dimensional code file path is stored into preset code pond includes, comprising:
The corresponding page path of the two-dimension code image is removed according to the preset expiration time using Lpop order, and obtains institute
State two dimensional code file path;
Key information is determined according to the two dimensional code type information, by two dimensional code number and the two dimensional code file path
As corresponding value information;
Key-value pair data is generated using the key information and the value information, and the key-value pair data is stored in described
In code pond.
The embodiment of the invention also discloses a kind of two dimensional code managing devices, comprising:
Two-dimension code image module, for generating two-dimension code image;
Path conversion module obtains and the two dimension for the two-dimension code image to be uploaded to cloud object storage space
The corresponding two dimensional code file path of code picture;
Code pond memory module, for will two dimensional code number corresponding with the two-dimension code image, two dimensional code type information and
The two dimensional code file path is stored into preset code pond;
Code pond service module is used to number when the corresponding two dimensional code of two-dimension code image any in the code pond and described
When two dimensional code file path is called, the target two dimensional code to match with the two dimensional code type information of the two-dimension code image is generated
Picture, and the target two-dimension code image is stored.
Further, further includes:
Interface authority module, the application programming interfaces API Access for obtaining small routine two dimensional code limit power;
Parameter acquisition module obtains two dimensional code parameter for limiting power according to the API Access;
Type definition module, for determining the two dimensional code type information according to the two dimensional code parameter.
Further, the two-dimension code image module includes:
Two dimensional code numbered cell, for generating unique two dimensional code number using Snowflake algorithm;
Two dimensional code acquiring unit, for obtaining two dimensional code parameter, page path;
Picture generation unit, for being generated according to two dimensional code number, the two dimensional code parameter and the page path
Two-dimension code image.
Further, the code pond is a storage system using key-value pair data structure, key-value pair data structure packet
Include key information and value information;Code pond memory module includes:
Code pond updating unit, it is corresponding for removing the two-dimension code image according to the preset expiration time using Lpop order
Page path, and obtain the two dimensional code file path.
Code pond definition unit, for determining key information according to the two dimensional code type information, by two dimensional code number and
The two dimensional code file path is as corresponding value information;
Code pond storage unit, for generating key-value pair data using the key information and the value information, and by the key
Value is stored in the code pond data.
The embodiment of the invention also discloses a kind of electronic equipment, including processor, memory and it is stored in the memory
Computer program that is upper and can running on the processor, is realized such as when the computer program is executed by the processor
The step of above-mentioned two-dimentional code management method.
The embodiment of the invention also discloses a kind of computer readable storage medium, deposited on the computer readable storage medium
Computer program is stored up, is realized when the computer program is executed by processor such as the step of above-mentioned two-dimentional code management method.
The embodiment of the present invention includes following advantages: the two dimensional code file path by the way that two dimensional code parameter to be converted to wide area,
And into code pond two-dimension code image is obtained with two dimensional code number, the splicing storage of two dimensional code type information, when needing to obtain two dimensional code
When, directly according to the two-dimension code image in two dimensional code type information extraction code pond, and it is parallel to specifically by two dimensional code number
Share channel, effectively solves the problems, such as that it is difficult to obtain small routine two dimensional code for user's high frequency under high concurrent.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of two-dimentional code management method embodiment of the invention;
Fig. 2 is a kind of step flow chart of one embodiment of two-dimentional code management method of the invention;
Fig. 3 is a kind of step flow chart of one embodiment of two-dimentional code management method of the invention;
Fig. 4 is a kind of step flow chart of one embodiment of two-dimentional code management method of the invention;
Fig. 5 is a kind of structural block diagram of two dimensional code managing device embodiment of the invention;
Fig. 6 is a kind of structural block diagram of one embodiment of two dimensional code managing device of the invention;
Fig. 7 is a kind of structural block diagram of one embodiment of two dimensional code managing device of the invention;
Fig. 8 is a kind of structural block diagram of one embodiment of two dimensional code managing device of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
One of the core concepts of the embodiments of the present invention is, by the two dimensional code file that two-dimension code image is converted to wide area
Path, and with two dimensional code number, the splicing storage of two dimensional code type information into code pond, when needing to obtain two dimensional code, direct root
According to the target two-dimension code image in two dimensional code type information extraction code pond, while storing identical two-dimentional code type again in code pond
The two-dimension code image of information guarantees the two dimensional code supply for having enough in code pond, while can be numbered by two dimensional code in parallel
Share channel to specific, effectively solves the problems, such as that it is difficult to obtain small routine two dimensional code for user's high frequency under high concurrent.
Referring to Fig.1-4, a kind of step flow chart of two-dimentional code management method embodiment of the invention is shown, it specifically can be with
Include the following steps:
S1 generates two-dimension code image;
In the present embodiment, two dimensional code relevant parameter is obtained by small routine interface, and little Cheng is synthesized according to above-mentioned parameter
The picture of sequence two dimensional code.
Two-dimension code image is uploaded to cloud object storage space, obtains two dimensional code file corresponding with two-dimension code image by S2
Path;
In the present embodiment, above-mentioned cloud object store space is by cluster application, network technology or distributed field system
Various types of storage equipment a large amount of in network are gathered collaborative work by application software, jointly by the functions such as system
The space of data storage and business access function is externally provided.Use cloud object store space by above-mentioned two dimensional code in the present embodiment
Parameter is converted to the addressable two dimensional code file path of wide area network.The cloud object store space used in one embodiment is specially
The cloud that Tencent's cloud, Meituan cloud etc. have object storage service also can be used in seven Ns of cloud object storage systems in other embodiments
System.In one embodiment, it can be produced by the way that above-mentioned two-dimension code image is uploaded to seven Niu Yunyun object storage systems
Corresponding two dimensional code file path, above-mentioned two dimensional code file path be one can be in the path of wide-area network access.
S3, will two dimensional code number corresponding with two-dimension code image, two dimensional code type information and the storage of two dimensional code file path
To in preset code pond;
In the present embodiment, above-mentioned two dimensional code number is the unique number of each generation two dimensional code, above-mentioned two dimensional code
Number is convenient for data statistics for being parallel to specific sharing channel.Above-mentioned two dimensional code type information is used for according to subsequent difference
The small routine of type calls different application programs.By above-mentioned two dimensional code number, two dimensional code type information and two dimensional code file road
Diameter is stored into code pond, convenient for calling.
S4 is raw when the corresponding two dimensional code number of two-dimension code image any in code pond and called two dimensional code file path
At the target two-dimension code image that the two dimensional code type information with two-dimension code image matches, and target two-dimension code image is deposited
Storage.In the present embodiment, code pond is the space for two dimensional code caching, by caching enough two dimensional codes in code pond,
The guarantee of peak traffic period can get available two dimensional code at any time, cache enough two dimensional codes in business trough period, provide
The interface of one acquisition two dimensional code is called for user, and user takes a two dimensional code every time, and code pond is asynchronous to generate one newly
Two dimensional code, is stored in Ma Chizhong, so far ensures that sufficient two dimensional code is available, and user is used as needed, solves every time
The problem of can only obtaining a two dimensional code and low efficiency by two dimensional code interface when two dimensional code is needed, while avoiding user's waiting
The problem of overlong time or two dimensional code failed regeneration.
In the present embodiment, before the step of generating two-dimension code image, comprising:
S5, the application programming interfaces API Access for obtaining small routine two dimensional code limit power;
In the present embodiment, a wechat small routine is registered, small routine code allocation list tbl_qrcode_config is created;
It encapsulates wechat and obtains small routine interface, the necessary parameter of two dimensional code API is obtained according to incoming wechat small routine, can be got micro-
Believe small routine two dimensional code parameter, calls small routine API's according to the APP ID and secret of the wechat small routine of application
Accesstoken (access token).
S6 limits power according to API Access and obtains two dimensional code parameter;
In the present embodiment, API (ApplicationProgramming Interface, application programming interfaces) is for picking
Red application program and developer arrive corresponding small routine by the way that the API of wechat small routine is accessible with the ability of access routine
Data required two dimensional code parameter is able to access that by API, above-mentioned two dimensional code parameter is for synthesizing two in the present embodiment
Tie up code.Above-mentioned two dimensional code parameter includes that two-dimentional code value size and two dimensional code resolution value, two dimensional code page path refer to two dimensional code
Locally stored routing information, the size and two dimensional code resolution value of two-dimentional code value are for setting the specification for generating two dimensional code
Parameter.By docking small routine two dimensional code API in the present embodiment, the two dimensional code parameter of small routine is obtained.
S7 determines two dimensional code type information according to two dimensional code parameter.
In the present embodiment, two dimensional code parameter is got by API, above-mentioned two dimension can be judged according to two dimensional code parameter
The function of the corresponding small routine of code, the type for defining the two dimensional code is gone according to the function of small routine, is believed by above-mentioned two-dimentional code type
Breath executes corresponding program.
In the present embodiment, the step of generating two-dimension code image, comprising:
S11 generates unique two dimensional code using Snowflake algorithm and numbers;
In the present embodiment, Snowflake algorithm can generate simple ID, and the ID generated on the whole according to the time from
Increase sequence, ID collision will not be generated in entire distributed system, and efficiency is higher.Snowflake is per second can to generate 260,000
A ID is numbered by generating more two dimensional code, so that one and only one corresponding two dimensional code number of each two dimensional code,
By two dimensional code number the two dimensional code can be associated with it is specific share people, convenient for the statistics of data flow, at the same also can it is high simultaneously
It gives different user high frequency and generates small routine two dimensional code.
S12 obtains two dimensional code parameter, page path;
In the present embodiment, above-mentioned two dimensional code parameter includes two-dimentional code value size and two dimensional code resolution value, above-mentioned two dimension
Code page path refers to the locally stored routing information of two dimensional code, and the size and two dimensional code resolution value of two-dimentional code value are to be used for
Setting generates the parameter of the specification of two dimensional code.By docking small routine two dimensional code API in the present embodiment, the two dimension of small routine is obtained
Code parameter.
S13 generates two-dimension code image according to two dimensional code number, two dimensional code parameter and page path.
In the present embodiment, code pond is a storage system using key-value pair data structure, key-value pair data structure packet
Include key information and value information;S3, will two dimensional code number corresponding with two-dimension code image, two dimensional code type information and two dimensional code file
The step that path is stored into preset code pond includes, comprising:
S31 removes the corresponding page path of two-dimension code image according to the preset expiration time using Lpop order, and obtains two
Tie up code file path;In the present embodiment,
In the present embodiment, redis is a key-value storage system, and above-mentioned key indicates that key information, value indicate
Value information, redis be one open source write using ANSI C, support network, it is memory-based also can persistence day
Will type, Key-Value database, and the API of multilingual is provided.Key is used as storage class, and Value is used as storage value.This reality
Example is applied using the two dimensional code type information of definition as in key storage value redis, using two dimensional code number and two dimensional code parameter as
Value is stored in redis.When the above-mentioned preset expiration time refers to two dimensional code file path to be obtained, Lpop order is removed
And first element of list is returned, local two dimensional code page path is removed, and add two dimensional code file path, for subtracting
The content of few system buffer, improves service efficiency.
S32 determines key information according to two dimensional code type information, using two dimensional code number and two dimensional code file path as correspondence
Value information;
In the present embodiment, the key of a redis is created according to two dimensional code type information, value then saves two dimensional code
Global unique number and two dimensional code file path, such as: " code ": 1131110104600940544, " imgUrl ": "
Https: //nfs-dev.iboxpay.com/f38a47cc146e4617b6d72d44909682a4.png " },
S33 generates key-value pair data using key information and value information, and key-value pair data is stored in Ma Chizhong.
By the way that two-dimension code image to be converted to the two dimensional code file path of wide area, and with two dimensional code number, two-dimentional code type
Information splicing storage is into code pond, when needing to obtain two dimensional code, directly according to the mesh in two dimensional code type information extraction code pond
Two-dimension code image is marked, while storing the two-dimension code image of identical two dimensional code type information again in code pond, guarantees code Chi Zhongyou
Enough two dimensional code supplies, while specific sharing channel can be parallel to by two dimensional code number, effectively solve height simultaneously
Give the problem that user's high frequency obtains small routine two dimensional code difficulty.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 5-8, a kind of two dimensional code managing device of the invention is shown, comprising:
Two-dimension code image module 1, for generating two-dimension code image;
Path conversion module 2 obtains and two-dimension code image pair for two-dimension code image to be uploaded to cloud object storage space
The two dimensional code file path answered;
Code pond memory module 3, being used for will two dimensional code number corresponding with two-dimension code image, two dimensional code type information and two dimension
Code file path is stored into preset code pond;
Code pond service module 4, for when the corresponding two dimensional code number of two-dimension code image any in code pond and two dimensional code file
When path is called, the target two-dimension code image to match with the two dimensional code type information of two-dimension code image is generated, and to target
Two-dimension code image is stored.
In the present embodiment, further includes:
Interface authority module 5, the application programming interfaces API Access for obtaining small routine two dimensional code limit power;
Parameter acquisition module 6 obtains two dimensional code parameter for limiting power according to API Access;
Type definition module 7, for determining two dimensional code type information according to two dimensional code parameter.
In the present embodiment, two-dimension code image module 1 includes:
Two dimensional code numbered cell 101, for generating unique two dimensional code number using Snowflake algorithm;
Two dimensional code acquiring unit 102, for obtaining two dimensional code parameter, page path;
Picture generation unit 103, for generating two dimensional code figure according to two dimensional code number, two dimensional code parameter and page path
Piece.
In the present embodiment, code pond is a storage system using key-value pair data structure, key-value pair data structure packet
Include key information and value information;Code pond memory module 3 includes:
Code pond updating unit 301, it is corresponding for removing two-dimension code image according to the preset expiration time using Lpop order
Page path, and obtain two dimensional code file path.
Code pond definition unit 302, for determining key information according to two dimensional code type information, by two dimensional code number and two dimensional code
File path is as corresponding value information;
Code pond storage unit 303, for generating key-value pair data using key information and value information, and key-value pair data is stored up
There are in code pond.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
The invention also discloses a kind of electronic equipment, including processor, memory and storage are on a memory and can be
The computer program run on processor realizes the step of above-mentioned two-dimentional code management method when computer program is executed by processor
Suddenly.
The invention also discloses a kind of computer readable storage medium, computer journey is stored on computer readable storage medium
Sequence, the step of above-mentioned two-dimentional code management method is realized when computer program is executed by processor.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of two-dimentional code management method provided by the present invention and a kind of two dimensional code managing device, carry out in detail
It introduces, used herein a specific example illustrates the principle and implementation of the invention, the explanation of above embodiments
It is merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this
The thought of invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not answered
It is interpreted as limitation of the present invention.
Claims (10)
1. a kind of two dimension code management method characterized by comprising
Generate two-dimension code image;
The two-dimension code image is uploaded to cloud object storage space, obtains two dimensional code file corresponding with the two-dimension code image
Path;
It will two dimensional code number corresponding with the two-dimension code image, two dimensional code type information and two dimensional code file path storage
To in preset code pond;
When the corresponding two dimensional code number of two-dimension code image any in the code pond and the two dimensional code file path are called
When, the target two-dimension code image to match with the two dimensional code type information of the two-dimension code image is generated, and to the target two
Dimension code picture is stored.
2. the method according to claim 1, wherein before the step of generation two-dimension code image, comprising:
The application programming interfaces API Access for obtaining small routine two dimensional code limits power;
Power, which is limited, according to the API Access obtains two dimensional code parameter;
The two dimensional code type information is determined according to the two dimensional code parameter.
3. the method according to claim 1, wherein the step of generation two-dimension code image, comprising:
Unique two dimensional code number is generated using Snowflake algorithm;
Obtain two dimensional code parameter, page path;
Two-dimension code image is generated according to two dimensional code number, the two dimensional code parameter and the page path.
4. the method according to claim 1, wherein the code pond is depositing using key-value pair data structure
Storage system, key-value pair data structure include key information and value information;It is described to compile two dimensional code corresponding with the two-dimension code image
Number, the step that stores into preset code pond of two dimensional code type information and the two dimensional code file path include, comprising:
The corresponding page path of the two-dimension code image is removed according to the preset expiration time using Lpop order, and obtains described two
Tie up code file path;
Determine key information according to the two dimensional code type information, using the two dimensional code number and the two dimensional code file path as
Corresponding value information;
Key-value pair data is generated using the key information and the value information, and the key-value pair data is stored in the code pond
In.
5. a kind of two dimensional code managing device characterized by comprising
Two-dimension code image module, for generating two-dimension code image;
Path conversion module obtains and the two dimensional code figure for the two-dimension code image to be uploaded to cloud object storage space
The corresponding two dimensional code file path of piece;
Code pond memory module, for will two dimensional code number corresponding with the two-dimension code image, two dimensional code type information and described
Two dimensional code file path is stored into preset code pond;
Code pond service module, for when the corresponding two dimensional code number of two-dimension code image any in the code pond and the two dimension
When code file path is called, the target two dimensional code figure to match with the two dimensional code type information of the two-dimension code image is generated
Piece, and the target two-dimension code image is stored.
6. device according to claim 5, which is characterized in that further include:
Interface authority module, the application programming interfaces API Access for obtaining small routine two dimensional code limit power;
Parameter acquisition module obtains two dimensional code parameter for limiting power according to the API Access;
Type definition module, for determining the two dimensional code type information according to the two dimensional code parameter.
7. device according to claim 5, which is characterized in that the two-dimension code image module includes:
Two dimensional code numbered cell, for generating unique two dimensional code number using Snowflake algorithm;
Two dimensional code acquiring unit, for obtaining two dimensional code parameter, page path;
Picture generation unit, for generating two dimension according to two dimensional code number, the two dimensional code parameter and the page path
Code picture.
8. device according to claim 5, which is characterized in that the code pond is depositing using key-value pair data structure
Storage system, key-value pair data structure include key information and value information;Code pond memory module includes:
Code pond updating unit, for removing the corresponding page of the two-dimension code image according to the preset expiration time using Lpop order
Path, and obtain the two dimensional code file path.
Code pond definition unit, for determining key information according to the two dimensional code type information, by two dimensional code number and described
Two dimensional code file path is as corresponding value information;
Code pond storage unit, for generating key-value pair data using the key information and the value information, and by the key-value pair
Data storage is in the code pond.
9. electronic equipment, which is characterized in that including processor, memory and be stored on the memory and can be at the place
The computer program run on reason device is realized when the computer program is executed by the processor as appointed in Claims 1-4
The step of two-dimentional code management method described in one.
10. computer readable storage medium, which is characterized in that computer program is stored on the computer readable storage medium,
Two-dimentional code management method according to any one of claims 1 to 4 is realized when the computer program is executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910586697.8A CN110297807B (en) | 2019-07-01 | 2019-07-01 | Two-dimensional code management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910586697.8A CN110297807B (en) | 2019-07-01 | 2019-07-01 | Two-dimensional code management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110297807A true CN110297807A (en) | 2019-10-01 |
CN110297807B CN110297807B (en) | 2023-03-14 |
Family
ID=68029807
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910586697.8A Active CN110297807B (en) | 2019-07-01 | 2019-07-01 | Two-dimensional code management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110297807B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112015758A (en) * | 2020-08-27 | 2020-12-01 | 中国平安财产保险股份有限公司 | Product code fetching method and device, computer equipment and storage medium |
Citations (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050263599A1 (en) * | 2003-11-13 | 2005-12-01 | Metrologic Instruments, Inc. | Digital imaging-based bar code symbol reading system employing a multi-mode image-processing symbol reading subsystem that switches its modes of reading during a single bar code symbol reading cycle, and within each said mode of reading, automatically applies a different image-processing based bar code symbol reading methodology |
US20060282500A1 (en) * | 2005-06-13 | 2006-12-14 | Yutaka Kiuchi | Information management method using a managing symbol and information management server |
JP2007316697A (en) * | 2006-05-23 | 2007-12-06 | Net Ad:Kk | Visiting card providing method and visiting card providing system |
US20100321739A1 (en) * | 2009-06-22 | 2010-12-23 | Sharp Kabushiki Kaisha | Image processing apparatus, image reading apparatus, image forming apparatus, image processing method and recording medium |
CN102254030A (en) * | 2011-08-02 | 2011-11-23 | 中国科学院计算机网络信息中心 | Global change research-oriented automatic space science data gathering method |
US20120209749A1 (en) * | 2011-02-16 | 2012-08-16 | Ayman Hammad | Snap mobile payment apparatuses, methods and systems |
CN103095852A (en) * | 2013-02-27 | 2013-05-08 | 上海够快网络科技有限公司 | Cloud storage file sharing method based on two-dimensional code |
US8526922B1 (en) * | 2012-05-01 | 2013-09-03 | Noble Systems Corporation | Integrating two-dimensional barcodes and embedded links with call center operation |
CN103955851A (en) * | 2014-04-22 | 2014-07-30 | 广州闪购软件服务有限公司 | Mobile internet e-commerce platform based on two-dimension code |
US20140325328A1 (en) * | 2012-10-09 | 2014-10-30 | Robert Dale Beadles | Memory tag hybrid multidimensional bar-text code with social media platform |
US20160306892A1 (en) * | 2014-04-17 | 2016-10-20 | Tencent Technology (Shenzhen) Company Limited | Methods And Terminals For Generating And Reading 2D Barcode And Servers |
CN106326347A (en) * | 2016-08-05 | 2017-01-11 | 南京理工大学 | Multi-dimension data loading and decoding method based on two-dimensional code |
CN106385446A (en) * | 2016-09-07 | 2017-02-08 | 深圳市金立通信设备有限公司 | File transmission method, terminal and system |
CN107909375A (en) * | 2017-11-28 | 2018-04-13 | 章永耀 | False proof and retrospect two-dimensional code generation method, terminal and medium |
CN108052674A (en) * | 2017-12-28 | 2018-05-18 | 惠州Tcl家电集团有限公司 | Quick Response Code uses processing method, device, system and readable storage medium storing program for executing |
CN108470406A (en) * | 2018-02-13 | 2018-08-31 | 人民卫生电子音像出版社有限公司 | Book information acquisition methods and device |
CN108510022A (en) * | 2018-03-19 | 2018-09-07 | 维沃移动通信有限公司 | A kind of Quick Response Code generates, verification method and server |
CN108681756A (en) * | 2018-04-04 | 2018-10-19 | 珠海宜心家居有限公司 | A kind of storage system of virtual memory |
CN108718328A (en) * | 2018-04-04 | 2018-10-30 | 珠海宜心家居有限公司 | A kind of accommodation method of virtual memory |
CN109062930A (en) * | 2018-06-12 | 2018-12-21 | 叶龙海 | A kind of method, apparatus and system based on two dimensional code mark video |
CN109598171A (en) * | 2017-09-30 | 2019-04-09 | 北京国双科技有限公司 | A kind of data processing method based on two dimensional code, apparatus and system |
CN109766321A (en) * | 2018-12-15 | 2019-05-17 | 深圳壹账通智能科技有限公司 | A kind of sharing files method, apparatus, computer equipment and storage medium |
-
2019
- 2019-07-01 CN CN201910586697.8A patent/CN110297807B/en active Active
Patent Citations (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050263599A1 (en) * | 2003-11-13 | 2005-12-01 | Metrologic Instruments, Inc. | Digital imaging-based bar code symbol reading system employing a multi-mode image-processing symbol reading subsystem that switches its modes of reading during a single bar code symbol reading cycle, and within each said mode of reading, automatically applies a different image-processing based bar code symbol reading methodology |
US20060282500A1 (en) * | 2005-06-13 | 2006-12-14 | Yutaka Kiuchi | Information management method using a managing symbol and information management server |
JP2007316697A (en) * | 2006-05-23 | 2007-12-06 | Net Ad:Kk | Visiting card providing method and visiting card providing system |
US20100321739A1 (en) * | 2009-06-22 | 2010-12-23 | Sharp Kabushiki Kaisha | Image processing apparatus, image reading apparatus, image forming apparatus, image processing method and recording medium |
US20120209749A1 (en) * | 2011-02-16 | 2012-08-16 | Ayman Hammad | Snap mobile payment apparatuses, methods and systems |
CN102254030A (en) * | 2011-08-02 | 2011-11-23 | 中国科学院计算机网络信息中心 | Global change research-oriented automatic space science data gathering method |
US8526922B1 (en) * | 2012-05-01 | 2013-09-03 | Noble Systems Corporation | Integrating two-dimensional barcodes and embedded links with call center operation |
US20140325328A1 (en) * | 2012-10-09 | 2014-10-30 | Robert Dale Beadles | Memory tag hybrid multidimensional bar-text code with social media platform |
CN103095852A (en) * | 2013-02-27 | 2013-05-08 | 上海够快网络科技有限公司 | Cloud storage file sharing method based on two-dimensional code |
US20160306892A1 (en) * | 2014-04-17 | 2016-10-20 | Tencent Technology (Shenzhen) Company Limited | Methods And Terminals For Generating And Reading 2D Barcode And Servers |
CN103955851A (en) * | 2014-04-22 | 2014-07-30 | 广州闪购软件服务有限公司 | Mobile internet e-commerce platform based on two-dimension code |
CN106326347A (en) * | 2016-08-05 | 2017-01-11 | 南京理工大学 | Multi-dimension data loading and decoding method based on two-dimensional code |
CN106385446A (en) * | 2016-09-07 | 2017-02-08 | 深圳市金立通信设备有限公司 | File transmission method, terminal and system |
CN109598171A (en) * | 2017-09-30 | 2019-04-09 | 北京国双科技有限公司 | A kind of data processing method based on two dimensional code, apparatus and system |
CN107909375A (en) * | 2017-11-28 | 2018-04-13 | 章永耀 | False proof and retrospect two-dimensional code generation method, terminal and medium |
CN108052674A (en) * | 2017-12-28 | 2018-05-18 | 惠州Tcl家电集团有限公司 | Quick Response Code uses processing method, device, system and readable storage medium storing program for executing |
CN108470406A (en) * | 2018-02-13 | 2018-08-31 | 人民卫生电子音像出版社有限公司 | Book information acquisition methods and device |
CN108510022A (en) * | 2018-03-19 | 2018-09-07 | 维沃移动通信有限公司 | A kind of Quick Response Code generates, verification method and server |
CN108681756A (en) * | 2018-04-04 | 2018-10-19 | 珠海宜心家居有限公司 | A kind of storage system of virtual memory |
CN108718328A (en) * | 2018-04-04 | 2018-10-30 | 珠海宜心家居有限公司 | A kind of accommodation method of virtual memory |
CN109062930A (en) * | 2018-06-12 | 2018-12-21 | 叶龙海 | A kind of method, apparatus and system based on two dimensional code mark video |
CN109766321A (en) * | 2018-12-15 | 2019-05-17 | 深圳壹账通智能科技有限公司 | A kind of sharing files method, apparatus, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
庄园等: "一种基于二维码的培训信息管理系统的研究与实现", 《电子测试》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112015758A (en) * | 2020-08-27 | 2020-12-01 | 中国平安财产保险股份有限公司 | Product code fetching method and device, computer equipment and storage medium |
CN112015758B (en) * | 2020-08-27 | 2023-07-28 | 中国平安财产保险股份有限公司 | Product code-fetching method, device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110297807B (en) | 2023-03-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10726518B2 (en) | Capacity reservation for virtualized graphics processing | |
CN109697133A (en) | ID generation method, apparatus and system | |
CN108052615B (en) | Access request processing method, device, medium and electronic equipment | |
US20180373540A1 (en) | Cluster graphical processing unit (gpu) resource sharing efficiency by directed acyclic graph (dag) generation | |
US9355134B1 (en) | Facilitating data redistribution in database sharding | |
CN104965757A (en) | Virtual machine live migration method, virtual machine migration management apparatus, and virtual machine live migration system | |
US11055139B2 (en) | Smart accelerator allocation and reclamation for deep learning jobs in a computing cluster | |
US20140258221A1 (en) | Increasing distributed database capacity | |
CN110413408A (en) | A kind of video memory control method, equipment and the storage medium of deep learning frame | |
CN106533713A (en) | Application deployment method and device | |
CN109831540A (en) | Distributed storage method, device, electronic equipment and storage medium | |
CN109388626A (en) | Method and apparatus for being numbered to traffic assignments | |
US8793250B1 (en) | Flexible partitioning of data | |
Ma et al. | vLocality: Revisiting data locality for MapReduce in virtualized clouds | |
CN113674131A (en) | Hardware accelerator equipment management method and device, electronic equipment and storage medium | |
CN105224541B (en) | Uniqueness control method, information storage means and the device of data | |
US10824481B2 (en) | Partial synchronization between compute tasks based on threshold specification in a computing system | |
US20200387404A1 (en) | Deployment of virtual node clusters in a multi-tenant environment | |
CN110297807A (en) | A kind of two dimension code management method and device | |
CN109582384A (en) | The update method and device of configuration information | |
CN109684033A (en) | Cloud platform bare machine management method, storage medium, electronic equipment and system | |
CN109271438A (en) | A kind of data bank access method and its system | |
CN106372081B (en) | List identifier generation method, list shunt method and device | |
US11822570B2 (en) | Database synchronization employing parallel poll threads | |
CN115311399A (en) | Image rendering method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |