CN110362719A - Data processing method, device, electric terminal and storage medium - Google Patents
Data processing method, device, electric terminal and storage medium Download PDFInfo
- Publication number
- CN110362719A CN110362719A CN201910422811.3A CN201910422811A CN110362719A CN 110362719 A CN110362719 A CN 110362719A CN 201910422811 A CN201910422811 A CN 201910422811A CN 110362719 A CN110362719 A CN 110362719A
- Authority
- CN
- China
- Prior art keywords
- code
- targeted
- coupon
- preferential
- discount coupon
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 21
- 230000008901 benefit Effects 0.000 claims abstract description 148
- 238000000034 method Methods 0.000 claims abstract description 60
- 238000012545 processing Methods 0.000 claims abstract description 36
- 230000008569 process Effects 0.000 claims abstract description 29
- 238000002224 dissection Methods 0.000 claims abstract description 14
- 238000004590 computer program Methods 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims description 4
- 230000000694 effects Effects 0.000 description 10
- 238000004422 calculation algorithm Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000001514 detection method Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 239000000284 extract Substances 0.000 description 3
- 238000012015 optical character recognition Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000001737 promoting effect Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 229910002056 binary alloy Inorganic materials 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000007596 consolidation process Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000005498 polishing Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012795 verification Methods 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/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0211—Determining the effectiveness of discounts or incentives
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0235—Discounts or incentives, e.g. coupons or rebates constrained by time limit or expiration date
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/60—Type of objects
- G06V20/62—Text, e.g. of license plates, overlay texts or captions on TV images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/24—Character recognition characterised by the processing or recognition method
- G06V30/248—Character recognition characterised by the processing or recognition method involving plural approaches, e.g. verification by template match; Resolving confusion among similar patterns, e.g. "O" versus "Q"
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0435—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0618—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
- H04L9/0625—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation with splitting of the data block into left and right halves, e.g. Feistel based algorithms, DES, FEAL, IDEA or KASUMI
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2463/00—Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00
- H04L2463/102—Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00 applying security measure for e-commerce
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Databases & Information Systems (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Game Theory and Decision Science (AREA)
- Economics (AREA)
- Marketing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Multimedia (AREA)
- General Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Computer Hardware Design (AREA)
- Computational Linguistics (AREA)
- Computing Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Software Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention provides a kind of data processing method, device, electric terminal and storage mediums, are related to technical field of data processing.The embodiment of the present invention obtains preferential code redemption request, and preferential code redemption request includes targeted advantages code;By carrying out dissection process to targeted advantages code, targeted advantages code information is obtained, wherein the targeted advantages code information includes the sequence number of targeted coupon template identification, targeted advantages code;The targeted coupon template to match with targeted coupon template identification is searched from database;Targeted coupon mark is generated according to targeted coupon template identification and sequence number;And according to targeted coupon template, generate discount coupon corresponding with targeted coupon mark;And coupon identification is saved in database, and send discount coupon.Therefore, technical solution provided in an embodiment of the present invention is able to solve the problem of a large amount of not used preferential codes occupy database resource in the prior art.
Description
[technical field]
The present invention relates to technical field of data processing, especially a kind of data processing method, device, electric terminal and storage are situated between
Matter.
[background technique]
Preferential code is a kind of one section of specific character that right that is preferential, enjoying certain current place can be brought to user
Or number combinatorics on words.There are many kinds of the granting forms of preferential code, for example, it can be directly issued to one section of specific character of user,
Alternatively, some big stores that can also provide preferential code, online, user is corresponding after entering corresponding store or in access
When website, preferential code is voluntarily got.When using preferential code, need to be first converted into discount coupon.
The granting of preferential code is the main means of businessman's promotion, and in order to guarantee preferential code promotion range relatively extensively and
Safety in utilization, preferential code server can pre-generate a large amount of preferential code, and these preferential codes and each preferential code are right
The discount coupon answered is saved in database, thus, when user uses preferential code on hand, by the preferential code and number in user hand
It is matched according to the preferential code in library, if the preferential code in user hand is matched with the preferential code in database, tests code success, so
Afterwards, corresponding discount coupon is transferred to user.And in actual use, inventor's discovery: in these preferential codes of generation
Only less a part of preferential code is got and is used by user, and most of preferential code is useless, and pre-generated a large amount of
Preferential code and corresponding discount coupon simultaneously all store these preferential codes and discount coupon into database, cause database
The wasting of resources.
[summary of the invention]
In view of this, the embodiment of the invention provides a kind of data processing method, device, electric terminal and storage medium,
To solve the problems, such as the prior art database wasting of resources.
In a first aspect, the embodiment of the invention provides a kind of data processing methods, which comprises
Preferential code redemption request is obtained, the preferential code redemption request includes targeted advantages code to be exchanged;
Dissection process is carried out to the targeted advantages code, obtains targeted advantages code information, wherein the targeted advantages code letter
Cease the targeted coupon template identification, the targeted advantages code for including at least discount coupon template corresponding with the targeted advantages code
Sequence number;
The targeted coupon template to match with the targeted coupon template identification is searched from database;
If find with the matched targeted coupon template of the targeted coupon template identification, according to the targeted advantages
The sequence number of certificate template identification and the targeted advantages code generates targeted coupon mark;And
According to the targeted coupon template, discount coupon corresponding with targeted coupon mark is generated;
Targeted coupon mark is saved in database, and sends the discount coupon.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the method is also
Include:
Obtain the downloading request of preferential code, wherein carried in the preferential code downloading request quantity of preferential code in need with
And discount coupon template identification;
The sequence number of specified quantity is generated according to the quantity for needing preferential code and preset numbers rule, wherein institute
It is equal with the quantity for needing preferential code to state specified quantity;
The discount coupon template identification is combined with each obtained sequence number respectively, obtains the first of specified quantity
Begin preferential code;
The initial preferential code is encrypted, the targeted advantages code after obtaining encryption;
Export the targeted advantages code.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the method is also
Include:
Described to carry out dissection process to the targeted advantages code, obtaining targeted advantages code information includes:
The targeted advantages code is decrypted, initial preferential code corresponding with the targeted advantages code is obtained;
By parsing the initial preferential code, corresponding targeted advantages code information is obtained.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, if finding
With the matched targeted coupon template of the targeted coupon template identification, according to the targeted coupon template identification and described
Before the sequence number of targeted advantages code generates targeted coupon mark, the method also includes:
Judge in the database with the presence or absence of coupon identification corresponding with the sequence number of the targeted advantages code;
If judging to exist, the targeted advantages code redeemed discount coupon is determined, and export the targeted advantages code nothing
The prompt information of effect;
If judging to be not present, the non-coupon redemption of targeted advantages code is determined.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, in the determination
After the non-coupon redemption of preferential code, described according to the targeted coupon template identification and the targeted advantages code
Before sequence number generates targeted coupon mark, the method also includes:
Obtain the corresponding exchange time range of the targeted coupon template;
Judge current time whether in the exchange time range;
If it is determined that current time in the exchange time range, determines that the targeted advantages code is effective;
If it is determined that current time exports the invalid prompt information of preferential code beyond in the exchange time range.
And/or
Obtain generated discount coupon quantity within the scope of specified time and/or designated area;
Judge whether the generated discount coupon quantity reaches specified threshold;
If judging, generated discount coupon quantity is not up to specified threshold, determines that the targeted advantages code is effective;
If judging, generated discount coupon quantity exceeds a prescribed threshold value, the prompt information that output discount coupon has been got.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the method is also
The mark of to include: in preferential code redemption request further include sender, it is described send the discount coupon before, the method is also wrapped
It includes:
Based on the mark of described sender as code key, the discount coupon is encrypted, is obtained encrypted excellent
Favour certificate;
Send the encrypted discount coupon.
Second aspect, the embodiment of the invention provides a kind of data processing equipment, the data processing equipment includes:
Acquiring unit, for obtaining preferential code redemption request, the preferential code redemption request includes that target to be exchanged is excellent
Favour code;
Resolution unit obtains targeted advantages code information, wherein institute for carrying out dissection process to the targeted advantages code
It states targeted advantages code information and includes at least the targeted coupon template identification of discount coupon template corresponding with the targeted advantages code, institute
State the sequence number of targeted advantages code;
Search unit, for searching the targeted coupon to match with the targeted coupon template identification from database
Template;
Generation unit, if for finding and the matched targeted coupon template of the targeted coupon template identification, root
Targeted coupon mark is generated according to the sequence number of the targeted coupon template identification and the targeted advantages code;And according to
The targeted coupon template generates discount coupon corresponding with targeted coupon mark;
Processing unit for the coupon identification to be saved in database, and sends the discount coupon.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation,
The acquiring unit is also used to obtain preferential code downloading request wherein, carries in the preferential code downloading request
Need the quantity and discount coupon template identification of preferential code;
The generation unit is also used to generate specified number according to the quantity for needing preferential code and preset numbers rule
The sequence number of amount, wherein the specified quantity is equal with the quantity for needing preferential code;
The processing unit is also used to the discount coupon template identification carrying out group with each obtained sequence number respectively
It closes, obtains the initial preferential code of specified quantity;
The processing unit is also used to that the initial preferential code is encrypted, the target after obtaining encryption
Preferential code;
The processing unit is also used to export the targeted advantages code.
The third aspect the embodiment of the invention provides a kind of electric terminal, including memory, processor and is stored in institute
The computer program that can be run in memory and on the processor is stated, when the processor executes the computer program,
The processor realizes the data processing method as described in any one of first aspect.
Fourth aspect, the embodiment of the invention provides a kind of non-volatile computer readable storage medium storing program for executing, are stored thereon with
Computer-readable instruction, when computer is read and executes the computer-readable instruction, so that computer realizes first aspect
Any one of described in data processing method.It is had the following beneficial effects: in template identification above-mentioned technical proposal
Technical solution provided by the invention, technical solution provided by the invention send preferential code redemption request in user, and
After searching corresponding discount coupon template according to the targeted coupon template identification in targeted advantages code, it is just based on the discount coupon mould
Plate generates discount coupon, and generates mark according to targeted coupon template identification and the Serial No. of the targeted advantages code discount coupon
Know, and saves coupon identification.When technical solution provided by the invention realizes coupon redemption, database need to only save discount coupon
Template does not need in database that a large amount of preferential code and corresponding discount coupon is stored in advance, thus in certain journey
Reduce the occupancy to database resource on degree, and technical solution of the present invention is after preferential code is successfully exchanged into discount coupon, then protects
Coupon identification is deposited, the preferential code not being used by a user is further avoided and discount coupon occupies database resource, and then solve
The problem of a large amount of preferential codes and discount coupon to use cause database resource to waste in the prior art.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field
For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of flow diagram of data processing method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another data processing method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of data processing equipment provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of electric terminal provided in an embodiment of the present invention.
[specific embodiment]
For a better understanding of the technical solution of the present invention, being retouched in detail to the embodiment of the present invention with reference to the accompanying drawing
It states.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments
The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the"
It is also intended to including most forms, unless the context clearly indicates other meaning.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate
There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three
Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
The embodiment of the present invention provides a kind of data processing method.
Specifically, referring to FIG. 1, it is the flow diagram of method provided by the embodiment of the present invention, as shown, should
Method the following steps are included:
102, preferential code redemption request is obtained, which includes targeted advantages code to be exchanged.
In the embodiment of the present invention, executing executing subject in above-mentioned preferential code processing can be with server, for example, user can be with
By the operational controls in operation user terminal display interface, preferential code redemption request is inputted, so that user terminal is preferential by this
Code redemption request sends a server, and preferential code is exchanged into discount coupon after getting the preferential code redemption request by server
And coupon identification is configured and saves, and exchange obtained discount coupon and be sent to user terminal, with for users to use;Alternatively,
The executing subject executed in above-mentioned preferential code processing can also be user terminal, for example, the display interface of user terminal show it is excellent
Favour code redemption interface, user input preferential code redemption request by some operational controls in the operation preferential code redemption interface,
User terminal obtains in preferential code redemption request, and preferential code is exchanged into discount coupon and configuration and saved excellent by triggering user terminal
Favour certificate mark, and discount coupon is shown to user.
Specifically, assuming that the execution equipment for executing above-mentioned data processing method is server, when user wants using preferential
Code enjoy privileges activity when, user in the preferential code of the coupon redemption interface that user terminal show input, thus user terminal to
Server sends preferential code redemption request, so that server obtains the targeted advantages code;
Specifically, the picture comprising preferential code, user can also be inputted when user wants using preferential code participation activity
Terminal is known after getting the picture using OCR (Optical Character Recognition, optical character identification) technology
Digital information not in the picture obtains the targeted advantages code.
Wherein, extracting the text in picture using OCR technique mainly includes two processes: image procossing and type mode are known
Not.Image procossing includes: firstly, the pretreatment such as gray processing processing, noise reduction, binaryzation is carried out to image, to reduce in image
Garbage;Secondly, character cutting processing is carried out to by pretreated image, by the Character segmentation in pretreated image
At single character picture;In turn, single character picture is normalized, to be same by single character picture consolidation
The image of format, in this way, type mode identification can be carried out to these images using using same Text region algorithm.
Type mode is identified by dark, the bright mode of detecting, enlarged drawing determine its shape feature and extract and
Judgement, is matched eventually by image black-white point binary system with character code, according to most similar matching degree by character image
The conversion of feature progress text.
104, dissection process is carried out to the targeted advantages code, obtains targeted advantages code information, wherein targeted advantages code letter
Breath includes at least the sequence number of targeted coupon template identification corresponding with the targeted advantages code, the targeted advantages code.
In the embodiment of the present invention, targeted advantages code is one section by specific character or the coding of number being combined into, target
Preferential code characterizes the right that can bring which is preferential, enjoys which current place to user, in order to know user's input
The specific favor information that preferential code indicates needs to carry out dissection process to the targeted advantages code after obtaining targeted advantages code,
Parse the targeted advantages code letter such as the targeted coupon template identification of targeted advantages code carrying, sequence number of the targeted advantages code
Breath, to determine corresponding specific favor information based on the targeted advantages code information.
The process of dissection process involved in the present invention is predominantly realized extracts targeted coupon mould from targeted advantages code
The targeted advantages code information such as panel sign, sequence number, the dissection process be with by targets such as targeted coupon template identification, sequence numbers
Preferential code information by it is a series of handle obtain the treatment process of targeted advantages code relative to inverse processing process.For example, by mesh
Mark discount coupon template identification, the targeted advantages code Information encapsulation such as sequence number in the treatment process of preferential code redemption request include: by
The targeted coupon template identification and sequence number of preferential code are written to data volume, and (data volume is that the preferential code requests generating process
In an intermediate vector) in, be then based on specified communication protocol, data volume be packaged into preferential code data packet, finally, right
The preferential code data packet is encrypted, to obtain by a series of treated targeted advantages codes.Based on this process, to the mesh
Mark preferential code resolving are as follows: firstly, the targeted advantages code is decrypted, obtain preferential code data packet;Secondly, to this
Preferential code data packet carries out data unpacking processing, obtains the data volume for carrying targeted advantages information;Finally, from the data volume
Read the targeted advantages code information such as targeted coupon template identification, sequence number.
What needs to be explained here is that the targeted advantages code resolving provided in above-described embodiment is only the embodiment of the present invention
One kind of offer is for example, not as to specific restriction of the invention.
106, the targeted coupon template to match with the targeted coupon template identification is searched from database.
108, if find with the matched targeted coupon template of the targeted coupon template identification, according to the targeted advantages
The sequence number of certificate template identification and the targeted advantages code generates coupon identification corresponding with the discount coupon.
110, according to the targeted coupon template, generate discount coupon corresponding with targeted coupon mark.
112, which is saved in database, and send the discount coupon.
It is to utilize discount coupon template generation discount coupon when realizing coupon redemption in the embodiment of the present invention.Because every
The corresponding specific preferential mode of one preferential code is user to be shown to by discount coupon, and corresponding same preferential mode is not
With preferential code, the concrete form for exchanging obtained discount coupon is identical (i.e. the specific preferential mode of discount coupon carrying is identical), because
This can use discount coupon template the difference for enjoying preferential mode of the same race is excellent when realizing preferential code coupon redemption process
Favour code is exchanged into format and the unified discount coupon of specific preferential mode.
It is configured specifically, preferential mode is each businessman according to promoting service demand, i.e., businessman can be according to itself industry
Business, which is promoted, need to configure discount coupon template.That is, different discount coupon templates can be configured by being directed to same time difference businessman,
Different discount coupon templates is configured according to promoting service demand in different time for same businessman, therefore, is executed above-mentioned preferential
It can be stored with a large amount of discount coupon template in the database of the server of code processing, and confirmed not in order to relatively quick
With the discount coupon template that businessman or business personnel configure each time, unique discount coupon can be distributed for each discount coupon template of configuration
Template identification, in this way, utilize the mesh after parsing targeted coupon template identification in the targeted advantages code got
Mark discount coupon template identification is searched for from database and the matched discount coupon template of the targeted coupon template identification, if can search
Rope to the matched discount coupon template of the targeted coupon template identification, then the discount coupon template is determined as targeted coupon mould
Plate, and the targeted coupon template is called from database, utilize the targeted coupon template generation discount coupon.
In the embodiment of the present invention, it is contemplated that the discount coupon template identification for including in the preferential code of corresponding same discount coupon template
It is identical, it is configured in corresponding identification procedure for each discount coupon generated, quotes the sequence number of preferential code, it is excellent using target
The sequence number of targeted coupon template identification and targeted advantages code in favour code generates unique identification.Wherein the Serial No. is excellent
Multiple preferential codes of same discount coupon template can be distinguished from each other out for the number of favour code.
In the embodiment of the present invention, the phases such as discount coupon validity period, the preferential amount of money, preferential place are carried in the discount coupon of generation
Close favor information and corresponding targeted coupon mark.Wherein, targeted coupon mark primarily serves anti-fake effect.Specifically
, when using discount coupon, for user by clicking " use " control in client operation interface, triggering client is preferential by this
Certificate is sent to server, the server extract the targeted coupon in the discount coupon mark, and by the targeted coupon mark with
Data can in coupon identification matched, if the targeted coupon mark matched with the coupon identification in database,
Determine that the discount coupon is the discount coupon that system generates;Otherwise, it determines the discount coupon is the discount coupon that nonsystematic generates.
Technical solution provided by the invention sends preferential code redemption request in user, and according in targeted advantages code
After targeted coupon template identification searches corresponding discount coupon template, it is just based on the discount coupon template generation discount coupon, Yi Jigen
Mark is generated according to targeted coupon template identification and the Serial No. of the targeted advantages code discount coupon, and saves coupon identification.
When technical solution provided by the invention realizes coupon redemption, database need to only save discount coupon template, in database not
It needs to be stored in advance a large amount of preferential code and corresponding discount coupon, database is provided to reduce to a certain extent
The occupancy in source, and technical solution of the present invention is after preferential code is successfully exchanged into discount coupon, then saves coupon identification, further keeps away
Exempt from the preferential code not being used by a user and discount coupon occupies database resource, and then solves and largely use in the prior art
The problem of preferential code and discount coupon cause database resource to waste.
Optionally, it in order to guarantee that the preferential code provided is safe and reliable, avoids copying due to some illegal user's malice excellent
Favour code and bring economic loss to businessman, the preferential code for being issued to user can be carried out at encryption based on certain rule
Reason, so that it may avoid preferential code to copy phenomenon to a certain extent, improve the security reliability of preferential code.It is of the invention based on this
Another data processing method is provided, as shown in Fig. 2, this method further include:
202, obtain the downloading request of preferential code, wherein the quantity of preferential code in need and excellent is carried in downloading request
Favour certificate template identification.
204, the quantity and preset numbers rule of preferential code as needed generate the sequence number of specified quantity, wherein refer to
Fixed number amount is equal with the quantity of preferential code is needed.
In the embodiment of the present invention, preset numbers rule can be a kind of rule of businessman or the default setting of business personnel, or
Person, can also be a kind of intrinsic coding rule for executing the server settings of the data processing method, and the present invention is default for this
Coding rule is not specifically limited.
Preset numbers rule includes Base Serial Number, the byte number etc. of sequence number.For example, preset numbers rule includes: sequence
Number byte length be one 32 binary numbers, Base Serial Number 0;Alternatively, preset numbers rule includes: the word of sequence number
The binary number that length is one 32 is saved, Base Serial Number 0, number is even number;Alternatively, preset numbers rule includes: sequence
Number byte length be one 32 binary numbers, Base Serial Number 232-1。
206, discount coupon template identification is combined respectively at each obtained sequence number, obtains the first of specified quantity
Begin preferential code.
In a specific embodiment, discount coupon template identification is A, the Serial No. B of generation1, B2, B3, B4, Bi, i is
The combination of integer greater than 1, discount coupon template identification A and sequence number can be A Bi, it is based on this combination, it is preferential
The initial preferential code that certificate template identification A is obtained after combining with each sequence number is A B1, A B2, A B3, A B4。
In another specific embodiment, discount coupon template identification is A, the Serial No. B of generation1, B2, B3, B4, Bi, i
For the integer greater than 1, the combination of discount coupon template identification A and sequence number is BiA is based on this combination, discount coupon
The initial preferential code that template identification A is obtained after combining with each sequence number is B1A, B2A, B3A, B4A。
What needs to be explained here is that the combination of the above-mentioned discount coupon template identification and sequence number provided is only the present invention
Two kinds of feasible patterns that embodiment is enumerated, the present invention do not do specifically the combination after discount coupon template identification and sequence
It limits.For example, when at least one of both discount coupon template identification and sequence number are long number, the combination of both
The number of the two is carried out combined crosswise by the rule that can be specified according to.Concrete example is that discount coupon template identification is a,
Serial No. 123456 is 12a3456 after the number of the two is carried out combined crosswise according to specified rule.
208, initial preferential code is encrypted, the targeted advantages code after obtaining encryption.
210, export the targeted advantages code.
What needs to be explained here is that it is excellent directly to provide the target after generating targeted advantages code in the embodiment of the present invention
Favour code does not need to save in the database in the targeted advantages code that will be generated.
Discount coupon template identification is carried in preferential code downloading request, executes the equipment of this method by obtaining and parsing this
Preferential code downloading request, so that the discount coupon template identification is extracted from the preferential code downloading request, to utilize the discount coupon mould
Panel sign generates preferential code, convenient for subsequent during the preferential code of progress is converted into discount coupon, rapidly and accurately from database
A variety of discount coupon Template Locations of storage go out targeted coupon template, so as to shorten the time of coupon redemption.
Wherein, to can be encrypted using specified Encryption Algorithm after each of obtaining initial preferential code.Wherein, refer to
Determine Encryption Algorithm can include but is not limited to symmetric encipherment algorithm, AES (Advanced Encryption Standard, it is advanced
Encryption standard) etc. one of algorithm.
In conjunction with above-described embodiment, optionally, if the preferential code that user obtains is the preferential code after encryption, on
It states and dissection process is carried out to the targeted advantages code, obtain targeted advantages code information, comprising: solve to targeted advantages code is obtained
It is close, obtain initial preferential code corresponding with the targeted advantages code;Then, corresponding target is obtained by parsing the initial preferential code
Preferential code information.
The process of encryption and decryption is illustrated by taking Tripple DES symmetric encipherment algorithm as an example below.It is excellent in order to guarantee
The safety of favour code, the equipment to perform encryption processing can automatically generate a random number, the random number in encryption process
It is used only once in the encryption, this is based on, using the random number as a component part of preferential code, for verifying
The preferential code uniqueness.In a concrete scene, it is assumed that the discount coupon template identification of discount coupon template be 2 bytes two into
Number processed, the binary number of the Serial No. 32 (4 bytes) of preferential code, random number is 1 byte, by the excellent of this 2 bytes
The random number of favour certificate template identification, the sequence number of 4 bytes and 1 byte constitutes (i.e. initial preferential code) in plain text, then adopts
This is encrypted in plain text with Tripple DES symmetric encipherment algorithm to obtain encrypted targeted advantages code.Wherein, Tripple
DES is encrypted as unit of data block, and data block is 8 bytes, above-mentioned discount coupon template identification, sequence number with
And the plaintext that random number is constituted is 7 bytes, therefore, the value for needing to add 1 byte before encryption is the supplement value of " 0 ", will
Then 8 bytes that its polishing arrives are being encrypted to obtain ciphertext, and are carrying out 32 codings to obtain one 13 being excellent to the ciphertext
Favour code.In addition, Tripple DES algorithm, cryptographic calculation and decryption operation use same code key, held in the present embodiment
Row encryption and decryption processing are the same servers, if obtained targeted advantages code is the preferential code of server issues,
The server centainly can successfully realize the decryption processing to the targeted advantages code, obtain discount coupon template identification and sequence number.
In the embodiment of the present invention, optionally, the discount coupon template identification of a discount coupon template be it is unique, i.e., it is same
Indicate that this partial data of the discount coupon template identification of discount coupon template is identical in the corresponding preferential code of difference of discount coupon template
, user is easier to crack out the discount coupon template identification of discount coupon template by analyzing multiple and different preferential codes.The present invention
During realizing that preferential code is exchanged into discount coupon, finding discount coupon template and direct using discount coupon template identification
The safety and reliability for generating the redemption process of discount coupon is lower.In order to solve this problem, discount coupon template generation is being utilized
Before discount coupon, can first examine the targeted advantages code whether be configuration for executing data processing system granting it is preferential
Code.Specifically, targeted advantages code is mainly to be made of the sequence number of discount coupon template identification and targeted advantages code, targeted advantages
The sequence number of code is therefore the unique identification of the preferential code generated according to preset numbers rule is obtaining the sequence of targeted advantages code
After row number, before generating discount coupon, also need to execute following steps: whether the sequence number of the preferential code of verification object meets default volume
Number rule;If it is determined that the sequence number of targeted advantages code meets preset numbers rule, it is determined that going out the targeted advantages code is system
It provides, then preferential code is exchanged into discount coupon;If it is determined that the sequence number of targeted advantages code is unsatisfactory for pre-arranged code rule, then
It determines the targeted advantages code nonsystematic granting, does not then allow to be exchanged into discount coupon, preferential code exchanges failure.
In the embodiment of the present invention, optionally, in order to reduce a case where preferential code is repeatedly exchanged appearance, this hair
It is bright to propose to generate discount coupon and excellent according to the sequence number of the targeted coupon template identification and the targeted advantages code executing
Before the step of favour certificate identifies, it is also necessary to examine the targeted advantages code whether effective, determine the effective of the targeted advantages code
Afterwards, triggering equipment executes the step of generating targeted coupon mark.In a specific embodiment, the preferential code of test-target is
No effectively includes: first, it is determined that with the presence or absence of in the corresponding coupon identification of sequence number of the targeted advantages code in database;If
Judge exist, determines the preferential code redeemed discount coupon, and export the invalid prompt information of the targeted advantages code;If judgement
It is not present out, determines the non-coupon redemption of preferential code, thus, it executes excellent according to the targeted coupon template identification and the target
The sequence number of favour code generates the step of targeted coupon mark.
In the embodiment of the present invention, optionally, the restrictive rule that some activities participate in can be arranged in preferential popularization activity, such as excellent
On the validity period of favour popularization activity, the preferential number of users for allowing to allow to participate in regional, the preferential activity unit time participated in
Limit value etc. restrictive rule needs first to examine whether preferential code meets before preferential code is exchanged into discount coupon by final realization
These restrictive rules meet these restrictive rules in determination, after determining that targeted advantages code is effective, could successfully exchange excellent
Favour certificate.
In one embodiment, for example, restrictive rule includes exchanging time range, determining that preferential code is not redeemed
Later, it is also necessary to which executing following steps includes: to obtain the corresponding exchange time range of targeted coupon template;Judge current time
Whether in the exchange time range;If it is determined that current time determines that the target is excellent in the exchange time range
Favour code is effective;If it is determined that current time exports the invalid prompt information of preferential code beyond in the exchange time range.
In another embodiment, restrictive rule includes on the number of users for allowing to participate in the preferential activity unit time
Limit value and/or designated area allow the number of users upper limit value participated in, before generating discount coupon, it is also necessary to execute following behaviour
Make: obtaining generated discount coupon quantity within the scope of specified time and/or designated area;Judging generated discount coupon quantity is
It is no to reach specified threshold;If judging, generated discount coupon quantity is not up to specified threshold, determines that the targeted advantages code has
Effect;If judging, generated discount coupon quantity exceeds a prescribed threshold value, the prompt information that output discount coupon has been got.
What needs to be explained here is that the above-mentioned restrictive rule enumerated is only the concrete example that the embodiment of the present invention provides, this
Inventive embodiments are not especially limited specific restrictive rule.
Optionally, after the targeted advantages code for inputting user is exchanged into discount coupon, to guarantee that discount coupon is sent to pair
When the user answered, guarantee that the discount coupon maliciously will not be intercepted and captured and be used by other people in transmission process, be needed to excellent as far as possible
Favour certificate is done the encryption process.It is specific: using the sender's ID number for sending targeted advantages code as code key, discount coupon being encrypted
Processing, obtains encrypted discount coupon;Then, encrypted discount coupon is sent.So, discount coupon is shown in equipment
It before user, needs first to verify identity, after authentication passes through, shows discount coupon;Otherwise, the prompt letter of authentication failed is exported
Breath.
Provided data processing method based on the above embodiment, the embodiment of the present invention further provide the realization above method
The Installation practice of each step and method in embodiment.
Referring to FIG. 3, its functional block diagram for device provided by the embodiment of the present invention.As shown, the device packet
It includes: acquiring unit 31, resolution unit 32, search unit 33, generation unit 34 and processing unit 35.Wherein, acquiring unit 31,
For obtaining preferential code redemption request, which includes targeted advantages code to be exchanged;Resolution unit 32, is used for
To the targeted advantages code carry out dissection process, obtain targeted advantages code information, wherein the targeted advantages code information include at least with
The targeted advantages code corresponds to the sequence number of the targeted coupon template identification of discount coupon template, the targeted advantages code;Search unit
33, for searching the targeted coupon template to match with the targeted coupon template identification from database;Generation unit 34,
If for find with the matched targeted coupon template of the targeted coupon template identification, according to the targeted coupon template mark
Know and the sequence number of the targeted advantages code generates coupon identification corresponding with the discount coupon;And according to the targeted coupon
Template generates discount coupon corresponding with targeted coupon mark;Processing unit 35, for the coupon identification to be saved in number
According in library, and send the discount coupon.
Optionally, it in order to guarantee that the preferential code provided is safe and reliable, avoids copying due to some illegal user's malice excellent
Favour code and bring economic loss to businessman, the preferential code for being issued to user can be carried out at encryption based on certain rule
Reason, thus, so that it may avoid preferential code to copy phenomenon to a certain extent, improve the security reliability of preferential code, be based on
This, in the data processing equipment, acquiring unit 31 is also used to obtain preferential code downloading request, wherein the preferential code downloading request
The middle quantity and discount coupon template identification for carrying preferential code in need.Generation unit 34 is also used to need preferential code according to described
Quantity and preset numbers rule generate the sequence number of specified quantity, wherein the quantity phase of specified quantity and the preferential code of needs
Deng.Processing unit 35 is also used to for discount coupon template identification being combined respectively at each obtained sequence number, is specified
The initial preferential code of quantity;And the initial preferential code is encrypted, the targeted advantages code after obtaining encryption;
And export the targeted advantages code.
In the embodiment of the present invention, optionally, if the preferential code that user obtains is the preferential code after encryption, solution
It analyses unit 32 and dissection process is being carried out to targeted advantages code, when obtaining targeted advantages code information, specific the following operations need to be performed:
The targeted advantages code is decrypted, initial preferential code corresponding with the targeted advantages code is obtained;And it is initial by parsing this
Preferential code obtains corresponding targeted advantages code information.
In the embodiment of the present invention, optionally, if being found and the targeted coupon template in the execution of generation unit 34
Matched targeted coupon template is identified, it is raw according to the sequence number of the targeted coupon template identification and the targeted advantages code
Before being identified at targeted coupon, it is also necessary to examine the validity of preferential code, that is, verify whether preferential code meets conversion requirements, base
In this, processing unit 35 is also used to execute: judging in database with the presence or absence of corresponding with the sequence number of the targeted advantages code excellent
Favour certificate mark;If judging to exist, the targeted advantages code redeemed discount coupon is determined, and it is invalid to export the targeted advantages code
Prompt information;If judging to be not present, the non-coupon redemption of targeted advantages code is determined.
In the embodiment of the present invention, optionally, in the determination after the preferential non-coupon redemption of code, if find with
The matched targeted coupon template of targeted coupon template identification, according to the targeted coupon template identification and the mesh
Before the sequence number generation targeted coupon mark for marking preferential code, processing unit 35 can be also used for further examining the target
Whether preferential code meets other requirements, is specifically as follows:
Firstly, obtaining the corresponding exchange time range of the targeted coupon template;Then, judge current time whether at this
It exchanges in time range;If it is determined that current time in the exchange time range, determines that the targeted advantages code is effective;If it is determined that
Current time exports the invalid prompt information of preferential code beyond in the exchange time range out.
And/or
Firstly, obtaining generated discount coupon quantity within the scope of specified time and/or designated area;Then, judge this
Whether the discount coupon quantity of generation reaches specified threshold;If judging, generated discount coupon quantity is not up to specified threshold, really
The fixed targeted advantages code is effective;If judging, generated discount coupon quantity exceeds a prescribed threshold value, and output discount coupon has been got
Prompt information.
The embodiment of the present invention, optionally, after targeted advantages code is successfully exchanged into discount coupon, to guarantee that discount coupon is sent
When to corresponding user, guarantee that the discount coupon maliciously will not be intercepted and captured and be used by other people in transmission process, may be used also as far as possible
To be done the encryption process to discount coupon.Specifically, further including the mark of sender in preferential code redemption request, sent out in processing unit 35
Before giving the discount coupon, which can be also used for the mark based on the transmission as code key, carry out to the discount coupon
Encryption obtains encrypted discount coupon;To send the encrypted discount coupon.
Fig. 1-method shown in Fig. 2 is able to carry out by each unit in this present embodiment, what the present embodiment was not described in detail
Part can refer to the related description to Fig. 1-Fig. 2.
Provided data processing method based on the above embodiment, the embodiment of the present invention further provide the realization above method
The electric terminal of each step and method in embodiment.Referring to FIG. 4, its function for electric terminal provided by the embodiment of the present invention
It can block diagram.As shown in figure 4, the electric terminal includes memory 41, processor 42 and is stored in the memory 41 and can
The computer program run on the processor 42, when which executes the computer program, in the processor 42 realization
State any one data processing method.
The embodiment of the invention also provides a kind of non-volatile computer readable storage medium storing program for executing, and being stored thereon with computer can
Reading instruction, when computer is read and executes the computer-readable instruction, so that computer realizes any of the above-described data processing
Method.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present invention
The part steps of a embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (10)
1. a kind of data processing method, which is characterized in that the described method includes:
Preferential code redemption request is obtained, the preferential code redemption request includes targeted advantages code to be exchanged;
Dissection process is carried out to the targeted advantages code, obtains targeted advantages code information, wherein the targeted advantages code information is extremely
It less include the sequence number of targeted coupon template identification corresponding with the targeted advantages code, the targeted advantages code;
The targeted coupon template to match with the targeted coupon template identification is searched from database;
If find with the matched targeted coupon template of the targeted coupon template identification, according to the targeted coupon mould
The sequence number of panel sign and the targeted advantages code generates targeted coupon mark;And
According to the targeted coupon template, discount coupon corresponding with targeted coupon mark is generated;The target is excellent
Favour certificate mark is saved in database, and sends the discount coupon.
2. the method according to claim 1, wherein the method also includes:
Obtain the downloading request of preferential code, wherein the quantity of preferential code in need and excellent is carried in the preferential code downloading request
Favour certificate template identification;
The sequence number of specified quantity is generated according to the quantity for needing preferential code and preset numbers rule, wherein the finger
Fixed number amount is equal with the quantity for needing preferential code;
The discount coupon template identification is combined with each obtained sequence number respectively, obtains the initial excellent of specified quantity
Favour code;
The initial preferential code is encrypted, the targeted advantages code after obtaining encryption;
Export the targeted advantages code.
3. according to the method described in claim 2, it is characterized in that, it is described to the targeted advantages code carry out dissection process, obtain
Include: to targeted advantages code information
The targeted advantages code is decrypted, initial preferential code corresponding with the targeted advantages code is obtained;
By parsing the initial preferential code, corresponding targeted advantages code information is obtained.
4. if the method according to claim 1, wherein found and the targeted coupon template mark described
Know matched targeted coupon template, is generated according to the sequence number of the targeted coupon template identification and the targeted advantages code
Before targeted coupon mark, the method also includes:
Judge in the database with the presence or absence of coupon identification corresponding with the sequence number of the targeted advantages code;
If judging to exist, the targeted advantages code redeemed discount coupon is determined, and it is invalid to export the targeted advantages code
Prompt information;
If judging to be not present, the non-coupon redemption of targeted advantages code is determined.
5. according to the method described in claim 4, it is characterized in that, the determination preferential non-coupon redemption of code it
Afterwards, targeted coupon mark is generated according to the sequence number of the targeted coupon template identification and the targeted advantages code described
Before, the method also includes:
Obtain the corresponding exchange time range of the targeted coupon template;
Judge current time whether in the exchange time range;
If it is determined that current time in the exchange time range, determines that the targeted advantages code is effective;
If it is determined that current time exports the invalid prompt information of preferential code beyond in the exchange time range.
And/or
Obtain generated discount coupon quantity within the scope of specified time and/or designated area;
Judge whether the generated discount coupon quantity reaches specified threshold;
If judging, generated discount coupon quantity is not up to specified threshold, determines that the targeted advantages code is effective;
If judging, generated discount coupon quantity exceeds a prescribed threshold value, the prompt information that output discount coupon has been got.
6. method according to any one of claims 1 to 5, which is characterized in that further include sending in preferential code redemption request
The mark of side, before the transmission discount coupon, the method also includes:
Using the mark of described sender as code key, the discount coupon is encrypted, obtains encrypted discount coupon;
Send the encrypted discount coupon.
7. a kind of data processing equipment, which is characterized in that the data processing equipment includes:
Acquiring unit, for obtaining preferential code redemption request, the preferential code redemption request includes targeted advantages code to be exchanged;
Resolution unit obtains targeted advantages code information, wherein the mesh for carrying out dissection process to the targeted advantages code
It marks preferential code information and includes at least the targeted coupon template identification of discount coupon template corresponding with the targeted advantages code, the mesh
Mark the sequence number of preferential code;
Search unit, for searching the targeted coupon mould to match with the targeted coupon template identification from database
Plate;
Generation unit, if for find with the matched targeted coupon template of the targeted coupon template identification, according to institute
The sequence number for stating targeted coupon template identification and the targeted advantages code generates targeted coupon mark;And according to described
Targeted coupon template generates discount coupon corresponding with targeted coupon mark;
Processing unit for the coupon identification to be saved in database, and sends the discount coupon.
8. device according to claim 7, which is characterized in that
The acquiring unit is also used to obtain preferential code downloading request, wherein carries in the preferential code downloading request in need
The quantity and discount coupon template identification of preferential code;
The generation unit is also used to generate specified quantity according to the quantity for needing preferential code and preset numbers rule
Sequence number, wherein the specified quantity is equal with the quantity for needing preferential code;
The processing unit is also used to for the discount coupon template identification being combined with each obtained sequence number respectively,
Obtain the initial preferential code of specified quantity;
The processing unit is also used to that the initial preferential code is encrypted, the targeted advantages after obtaining encryption
Code;
The processing unit is also used to export the targeted advantages code.
9. a kind of electric terminal, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that when the processor executes the computer program, the processor is realized as weighed
Benefit requires the described in any item data processing methods of 1-6.
10. a kind of non-volatile computer readable storage medium storing program for executing, is stored thereon with computer-readable instruction, which is characterized in that when
When computer reads and executes the computer-readable instruction, so that computer realization is as claimed in any one of claims 1 to 6
Data processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910422811.3A CN110362719A (en) | 2019-05-21 | 2019-05-21 | Data processing method, device, electric terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910422811.3A CN110362719A (en) | 2019-05-21 | 2019-05-21 | Data processing method, device, electric terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110362719A true CN110362719A (en) | 2019-10-22 |
Family
ID=68215308
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910422811.3A Pending CN110362719A (en) | 2019-05-21 | 2019-05-21 | Data processing method, device, electric terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110362719A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111967908A (en) * | 2020-08-17 | 2020-11-20 | 深圳市欢太科技有限公司 | Verification method of redemption code, electronic device and storage medium |
CN112289439A (en) * | 2020-11-17 | 2021-01-29 | 北京沃东天骏信息技术有限公司 | Equity exchange method and device |
CN112307300A (en) * | 2020-08-10 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Article information query method and device, electronic equipment and readable storage medium |
CN112668017A (en) * | 2020-12-24 | 2021-04-16 | 阡陌数字信息科技(南京)有限公司 | Construction method, decryption method and device of self-explanatory encryption card |
CN113312892A (en) * | 2021-06-10 | 2021-08-27 | 车智互联(北京)科技有限公司 | Coupon generation method, computing device and storage medium |
CN113421090A (en) * | 2021-06-22 | 2021-09-21 | 康键信息技术(深圳)有限公司 | Method, device, equipment and storage medium for issuing electronic vouchers |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020010627A1 (en) * | 2000-05-17 | 2002-01-24 | Gilles Lerat | System and method for creation, distribution, exchange, redemption and tracking of digitally signed electronic coupons |
CN101482962A (en) * | 2009-02-26 | 2009-07-15 | 北控易码通(北京)科技有限公司 | Service data processing terminal and service data processing method |
CN102999852A (en) * | 2011-09-14 | 2013-03-27 | 阿里巴巴集团控股有限公司 | Electronic coupon data generation method and electronic coupon data generation device |
US20150304103A1 (en) * | 2014-04-22 | 2015-10-22 | Dinect Sarl | Method of generating unique and hardly predictable numbers of coupons |
CN105913288A (en) * | 2016-05-31 | 2016-08-31 | 知而行(上海)营销咨询有限公司 | O2O closed-loop marketing system based on discount enjoyed by code scanning |
CN106097014A (en) * | 2016-06-17 | 2016-11-09 | 武汉斗鱼网络科技有限公司 | A kind of system and method being exchanged virtual present by redemption code |
-
2019
- 2019-05-21 CN CN201910422811.3A patent/CN110362719A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020010627A1 (en) * | 2000-05-17 | 2002-01-24 | Gilles Lerat | System and method for creation, distribution, exchange, redemption and tracking of digitally signed electronic coupons |
CN101482962A (en) * | 2009-02-26 | 2009-07-15 | 北控易码通(北京)科技有限公司 | Service data processing terminal and service data processing method |
CN102999852A (en) * | 2011-09-14 | 2013-03-27 | 阿里巴巴集团控股有限公司 | Electronic coupon data generation method and electronic coupon data generation device |
US20150304103A1 (en) * | 2014-04-22 | 2015-10-22 | Dinect Sarl | Method of generating unique and hardly predictable numbers of coupons |
CN105913288A (en) * | 2016-05-31 | 2016-08-31 | 知而行(上海)营销咨询有限公司 | O2O closed-loop marketing system based on discount enjoyed by code scanning |
CN106097014A (en) * | 2016-06-17 | 2016-11-09 | 武汉斗鱼网络科技有限公司 | A kind of system and method being exchanged virtual present by redemption code |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112307300A (en) * | 2020-08-10 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Article information query method and device, electronic equipment and readable storage medium |
CN111967908A (en) * | 2020-08-17 | 2020-11-20 | 深圳市欢太科技有限公司 | Verification method of redemption code, electronic device and storage medium |
CN112289439A (en) * | 2020-11-17 | 2021-01-29 | 北京沃东天骏信息技术有限公司 | Equity exchange method and device |
CN112668017A (en) * | 2020-12-24 | 2021-04-16 | 阡陌数字信息科技(南京)有限公司 | Construction method, decryption method and device of self-explanatory encryption card |
CN113312892A (en) * | 2021-06-10 | 2021-08-27 | 车智互联(北京)科技有限公司 | Coupon generation method, computing device and storage medium |
CN113312892B (en) * | 2021-06-10 | 2024-04-23 | 车智互联(北京)科技有限公司 | Coupon generation method, computing device and storage medium |
CN113421090A (en) * | 2021-06-22 | 2021-09-21 | 康键信息技术(深圳)有限公司 | Method, device, equipment and storage medium for issuing electronic vouchers |
CN113421090B (en) * | 2021-06-22 | 2024-06-18 | 康键信息技术(深圳)有限公司 | Method, device, equipment and storage medium for issuing electronic evidence |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110362719A (en) | Data processing method, device, electric terminal and storage medium | |
CN110493202B (en) | Login token generation and verification method and device and server | |
CN110691087B (en) | Access control method, device, server and storage medium | |
JP7046331B2 (en) | Electronic signature authentication system for biometric information infrastructure and its electronic signature authentication method | |
CN103679457B (en) | Method of payment, the paying server and payment system for performing the method for payment | |
EP2890172B1 (en) | Flexible data authentication for an NFC data exchange format NDEF message | |
WO2016078182A1 (en) | Authorization method, device and system for sensitive data | |
US20120137353A1 (en) | Method and system for abstracted and randomized one-time use passwords for transactional authentication | |
CN111431719A (en) | Mobile terminal password protection module, mobile terminal and password protection method | |
CN101330386A (en) | Authentication system based on biological characteristics and identification authentication method thereof | |
CN105868970B (en) | authentication method and electronic equipment | |
CN106911684B (en) | Authentication method and system | |
CN104618334A (en) | Method and system for generating and verifying dynamic two-dimensional code | |
CN110266469B (en) | Remote online electronic signature method based on WEB script data stream operation | |
CN108075888B (en) | Dynamic URL generation method and device, storage medium and electronic equipment | |
CN112131564A (en) | Encrypted data communication method, apparatus, device, and medium | |
CN105989259B (en) | User ID authentication method, apparatus and system | |
CN104820814A (en) | Second-generation ID card anti-counterfeiting verification system | |
CN104821882A (en) | Network security verification method based on voice biometric features | |
CN110071937A (en) | Login method, system and storage medium based on block chain | |
WO2019178440A1 (en) | System and method for securing private keys behind a biometric authentication gateway | |
CN110266641B (en) | Information reading method, system, device and computer readable storage medium | |
CN101291299B (en) | Instant communicating method, system and terminal, and method for generating link for initiating session | |
CN109391473A (en) | A kind of method, apparatus and storage medium of Electronic Signature | |
CN113807843A (en) | Card binding method, user terminal, server, system 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 |