CN107424036A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN107424036A
CN107424036A CN201710282425.XA CN201710282425A CN107424036A CN 107424036 A CN107424036 A CN 107424036A CN 201710282425 A CN201710282425 A CN 201710282425A CN 107424036 A CN107424036 A CN 107424036A
Authority
CN
China
Prior art keywords
qualification
amount
information
credential
credential information
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
Application number
CN201710282425.XA
Other languages
Chinese (zh)
Other versions
CN107424036B (en
Inventor
曲强
秦正云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Micro Shadow Era Technology Co Ltd
Original Assignee
Beijing Micro Shadow Era Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Micro Shadow Era Technology Co Ltd filed Critical Beijing Micro Shadow Era Technology Co Ltd
Priority to CN201710282425.XA priority Critical patent/CN107424036B/en
Publication of CN107424036A publication Critical patent/CN107424036A/en
Application granted granted Critical
Publication of CN107424036B publication Critical patent/CN107424036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0605Supply or demand aggregation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0607Regulated

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of data processing method and device, the qualification request information that user performs the triggering of the first predetermined registration operation is received first, according to the qualification request information, default amount and atomic counters record has been sold out amount generation qualification credential information, and the qualification credential information is sent to user terminal, then the qualification for receiving user's execution the second predetermined registration operation triggering uses request, the qualification uses request bag Credential data containing qualification, the qualification Credential data and the qualification credential information to it is corresponding when respond second predetermined registration operation that user performs.The data processing method and device have been sold out amount using atomic counters record, possess single thread and perform task characteristic, it can also ensure to perform one by one in sequence under high concurrent solicited status, ensure that the accuracy of data record, the excess for avoiding quota commodity is sold.

Description

Data processing method and device
Technical field
The present invention relates to data management field, is to be related to a kind of data processing method and device in particular.
Background technology
With the development of internet and information technology, many things in daily life can be realized on the net.Net purchase Commodity, a kind of shopping way also often selected in busy Working Life as users.
Some on network be present has the commodity of fixed amount, and such as film ticket, businessman, may according to certain marketing rule Defining the total value of selling of certain film needs for some Flat Amount or fixed qty.However, due to the mechanism of net purchase commodity, Internet ticket sales server may be in a short time, it is necessary to tackle the high concurrent ticket purchasing request from multiple users, if processing It is improper, it may result in excess and sell, cause unnecessary trouble.
Therefore, how a kind of under high concurrent request, the data processing of the accurate rational fixed amount commodity of sale is provided Method, it is those skilled in the art's urgent problem to be solved.
The content of the invention
In view of this, the invention provides a kind of data processing method and device, to realize under high concurrent request, accurately Commodity of the rational sale with fixed amount.
To achieve the above object, the present invention provides following technical scheme:
A kind of data processing method, including:
Receive the qualification request information that user performs the triggering of the first predetermined registration operation;
According to the qualification request information, default amount and atomic counters record have been sold out amount generation qualification with Information is demonstrate,proved, and the qualification credential information is sent to user terminal;
Receive user perform the second predetermined registration operation triggering qualification using request, the qualification using request bag containing qualification with Demonstrate,prove data;
The qualification Credential data and the qualification credential information to it is corresponding when respond that user performs it is described second default Operation.
Optionally, it is described to have been sold out volume according to what the qualification request information, default amount and atomic counters recorded Degree generation qualification credential information, and the qualification credential information is sent to user terminal, including:
Determine the request amount of the qualification request information;
Amount is had been sold out according to what default amount and atomic counters recorded, it is determined that remaining amount;
Judge whether the request amount is less than or equal to the remaining amount;
If it is, the generation time according to the qualification request information, qualification credential information is generated using hash algorithm, and The qualification credential information is sent to user terminal.
Optionally, had been sold out described according to what the qualification request information, default amount and atomic counters recorded Amount generates qualification credential information, and after the qualification credential information is sent into user terminal, in addition to:
Counted by atomic counters record and ask amount corresponding to the qualification credential information.
Optionally, it is described the qualification Credential data and the qualification credential information to it is corresponding when respond what user performed Second predetermined registration operation, including:
When the qualification Credential data is identical with the qualification credential information, described the second of response user's execution is default Operation.
Optionally, the qualification credential information includes the generation time, then it is described according to the qualification request information, it is default The record information of amount and atomic counters generates qualification credential information, and the credential information is sent into user terminal Afterwards, in addition to:
When the time difference of current time and the generation time of the qualification credential information exceedes predetermined threshold value, by described in The attribute information of qualification credential information is arranged to invalid;
Corresponding to the qualification credential information amount will be asked to be accumulated in the unsold amount of the default amount.
A kind of data processing equipment, including:
First receiving module, the qualification request information of the first predetermined registration operation triggering is performed for receiving user;
Voucher generation module, for being recorded according to the qualification request information, default amount and atomic counters Amount generation qualification credential information is sold, and the qualification credential information is sent to user terminal;
Second receiving module, the qualification that the triggering of the second predetermined registration operation is performed for receiving user use request, the qualification Use request bag Credential data containing qualification;
Operate respond module, for the qualification Credential data and the qualification credential information to it is corresponding when respond user Second predetermined registration operation performed.
Optionally, the voucher generation module includes:
Amount determining module is asked, for determining the request amount of the qualification request information;
Remaining amount determining module, amount is had been sold out for what is recorded according to default amount and atomic counters, it is determined that surplus Remaining sum degree;
Judge module, for judging whether the request amount is less than or equal to the remaining amount;
Voucher generates submodule, for when the judged result of the judge module is is, believing according to the qualification request The generation time of breath, qualification credential information is generated using hash algorithm, and the qualification credential information is sent to user terminal.
Optionally, in addition to:
Logging modle, volume is asked corresponding to the qualification credential information for being counted by atomic counters record Degree.
Optionally, the operation corresponding module is specifically used for:
When the qualification Credential data is identical with the qualification credential information, described the second of response user's execution is default Operation.
Optionally, the qualification credential information includes the generation time, then also includes:
Attribute setup module, for exceeding in current time and the time difference of the generation time of the qualification credential information During predetermined threshold value, the attribute information of the qualification credential information is arranged to invalid;
Qualification recycling module, for corresponding to the qualification credential information amount will be asked to be accumulated to the default amount In unsold amount.
Understand that compared with prior art, the embodiment of the invention discloses a kind of data processing via above-mentioned technical scheme Method and device, the qualification request information that user performs the triggering of the first predetermined registration operation is received first, believed according to the qualification request The amount that has been sold out of breath, default amount and atomic counters record generates qualification credential information, and the qualification voucher is believed Breath is sent to user terminal, and the qualification for then receiving user's execution the second predetermined registration operation triggering is used using request, the qualification Request bag Credential data containing qualification, the qualification Credential data and the qualification credential information to it is corresponding when respond user and perform Second predetermined registration operation.The data processing method and device have been sold out amount using atomic counters record, possess list Thread execution task characteristic, it can also ensure to perform one by one in sequence under high concurrent solicited status, ensure that data record Accuracy, the excess for avoiding quota commodity sells.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is the first pass figure of data processing method disclosed in the embodiment of the present invention,
Fig. 2 is the generation of qualification credential information and the flow chart sent disclosed in the embodiment of the present invention;
Fig. 3 is the second flow chart of data processing method disclosed in the embodiment of the present invention;
Fig. 4 is the 3rd flow chart of data processing method disclosed in the embodiment of the present invention;
Fig. 5 is the first structure schematic diagram of data processing equipment disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of voucher generation module disclosed in the embodiment of the present invention;
Fig. 7 is the second structural representation of data processing equipment disclosed in the embodiment of the present invention;
Fig. 8 is the 3rd structural representation of data processing equipment disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Fig. 1 be data processing method disclosed in the embodiment of the present invention first pass figure, shown in Figure 1, the data Processing method can include:
Step 101:Receive the qualification request information that user performs the triggering of the first predetermined registration operation.
Wherein, user performs the first predetermined registration operation in end side, and end side can generate according to first predetermined registration operation and provide Lattice solicited message.For example, user buys film ticket from terminal, by internet, when user chooses seat from terminal display screen Behind position, the button of " seat is selected in confirmation " can be triggered.Herein, the button of user's triggering " seat is selected in confirmation " can think the first default behaviour Make, after user's " seat is selected in confirmation ", you can determine that user has selected several seats, namely need to buy several tickets, corresponding ticket Quantity and the total amount for needing to consume just have determined that.Therefore, it is pre- can to perform first by user for the qualification request information The total amount that commodity amount and user's needs are consumed also is included if operation generates to trigger, in the qualification request information.
Step 102:Amount life is had been sold out according to what the qualification request information, default amount and atomic counters recorded User terminal is sent into qualification credential information, and by the qualification credential information.
In a schematical example, the detailed process of step 102 may refer to Fig. 2, and Fig. 2 is that the embodiment of the present invention is public The qualification credential information generation opened and the flow chart sent, as shown in Fig. 2 can include:
Step 201:Determine the request amount of the qualification request information.
The qualification request information includes the total amount that commodity amount and user's needs are consumed, the request amount That is commodity amount and/or spending amount.
Step 202:Amount is had been sold out according to what default amount and atomic counters recorded, it is determined that remaining amount.
The default amount is that businessman sets according to marketing rule, the sales volume or gross sales amount of certain commodity.Example Such as, high ferro can limit ticketing quantity according to the amount of seats on its train, and ticketing quantity now is default amount.For another example, The total sales volume that film businessman limits some film is needed for 5,000,000, and now 5,000,000 be default amount.
Atomic counters are the counters for possessing atomicity affairs, and it possesses the ability that single thread performs task, in height simultaneously It can also ensure to go execution task in order under hair solicited status.The amount that has been sold out of commodity is recorded using atomic counters, is wrapped Quantity and the amount of money are included, the accuracy of record data can be ensured.In the present embodiment, the atom based on redis databases can be used Counter.Redis be one increase income write using ANSI C languages, support network, can based on internal memory also can persistence day Will type, Key-Value databases.Due to the storage characteristics and storage mode of redis databases so that ask shape in high concurrent Under state, atomic counters are also capable of the completion data record work of efficiently and accurately.
Clearly described default amount and atomic counters record have been sold out amount in the case of, subtracted with default amount Amount is had been sold out, that is, can determine that the remaining amount of the commodity.
Step 203:Judge whether the request amount is less than or equal to the remaining amount;If it is, into step 204。
Step 204:According to the generation time of the qualification request information, qualification credential information is generated using hash algorithm, And the qualification credential information is sent to user terminal.
In the case where the request amount is less than or equal to the remaining amount, it was demonstrated that the qualification request of user is can be with It is allowed to, is also not in super situation about selling even if selling commodity to user according to the qualification request information.
The generation time of the qualification request information can be included in the qualification request information, server can be according to institute The generation time of qualification request information is stated, qualification credential information is generated using hash algorithm.Specifically, the hash algorithm can be with It is MD5 algorithms.In order to ensure the uniqueness of the qualification credential information, the generation time of the qualification request information can be used The qualification credential information is determined plus the random digit between 2 1-10000.Regular length can be generated using the method It character string, so can either prevent user from viewing the internal rule of businessman, also can prevent hacker from constructing to a certain extent Qualification credential information.
In the case where the request amount is more than the remaining amount, it was demonstrated that if generation qualification credential information, and use After commodity are bought in family according to the qualification credential information, super situation about selling just occurs, as certain movie theater has 200 seats, As a result 201 film tickets are sold, has a seat while has been sold to two different clients, as a result cause unnecessary fiber crops It is tired.Therefore, in the present embodiment, in this case, qualification credential information will not be generated.
After step 102, into step 103.
Step 103:The qualification for receiving user's execution the second predetermined registration operation triggering uses request bag using request, the qualification Credential data containing qualification.
Wherein, second predetermined registration operation can be that user clicks on " immediate payment " button.It is pre- that user performs described second If after operation, terminal can generate qualification and use request.The qualification can include qualification Credential data using request, and server exists After the qualification is received using request, the qualification can be judged whether " legal ", namely whether the qualification Credential data accords with Close and require.
Step 104:The qualification Credential data and the qualification credential information to it is corresponding when respond described in user performs Second predetermined registration operation.
Wherein, the qualification Credential data is corresponding with the qualification credential information, can be the qualification Credential data with The qualification credential information is identical.Certainly, in various embodiments, the qualification credential information is sent to user by server After terminal, user terminal can be changed according to certain method to the qualification credential information, generate qualification Credential data, after Continue the server after the qualification Credential data of terminal transmission is received, can be inverse according to being carried out to the qualification Credential data Conversion, by the qualification Credential data after inverse conversion compared with the qualification credential information, when both are identical, then judge to use The qualification Credential data at family meets the requirements, and then server can respond the second predetermined registration operation of user's execution.Such as, it is allowed to use Family is paid now, and user terminal is linked into the payment page.
It should be noted that data processing method disclosed in the present embodiment, during implementation, user is not perceive , the execution of corresponding steps is realized on server and terminal handler system.
Data processing method disclosed in the present embodiment, amount is had been sold out using atomic counters record, possesses single thread and holds Row task characteristic, it can also ensure to perform one by one in sequence under high concurrent solicited status, ensure that the accurate of data record Property, the excess for avoiding quota commodity is sold.
On the basis of the invention described above disclosed embodiment, Fig. 3 discloses the second flow chart of data processing method, such as Shown in Fig. 3, the data processing method can include:
Step 301:Receive the qualification request information that user performs the triggering of the first predetermined registration operation.
Step 302:Amount life is had been sold out according to what the qualification request information, default amount and atomic counters recorded User terminal is sent into qualification credential information, and by the qualification credential information.
Step 303:Counted by atomic counters record and ask amount corresponding to the qualification credential information.
Counted by atomic counters record and amount is asked corresponding to the qualification credential information, the atomic counters note The commodity of record have been sold out amount and can accordingly increased, and the amount of user's request can also deduct from remaining amount accordingly, this Sample, when ensure that the follow-up qualification request information of reception user again, it can be determined whether according to accurate quota data Qualification credential information is generated, namely whether to continue to sell the commodity.
Step 304:The qualification for receiving user's execution the second predetermined registration operation triggering uses request bag using request, the qualification Credential data containing qualification.
Step 305:The qualification Credential data and the qualification credential information to it is corresponding when respond described in user performs Second predetermined registration operation.
In the present embodiment, the data processing method is remembered after qualification credential information is generated by the atomic counters Record counts request amount corresponding to the qualification credential information, ensure that the accuracy of data record, is easy to subsequently receive again During the qualification request information of user, it can determine whether to generate qualification credential information according to accurate quota data, effectively Avoid excess and sell commodity.
Fig. 4 be data processing method disclosed in the embodiment of the present invention the 3rd flow chart, shown in Figure 4, the data Processing method can include:
Step 401:Receive the qualification request information that user performs the triggering of the first predetermined registration operation.
Step 402:Amount life is had been sold out according to what the qualification request information, default amount and atomic counters recorded User terminal is sent into qualification credential information, and by the qualification credential information.
Wherein, the qualification credential information can include generation time, i.e., the generation time of described qualification credential information.
Step 403:Judge whether current time and the time difference of the generation time of the qualification voucher time exceed in advance If threshold value, if not, into step 404;If it is, into step 406.
In user during the entire process of online purchase commodity, server can be undergone qualification is generated according to qualification request information Two processes of credential information and user's competency for operation credential information, if end side after qualification credential information is obtained, user Be not carried out the second predetermined registration operation triggering qualification credential information use, and in server atomic counters have recorded it is described Request amount corresponding to qualification credential information, this will result in the waste of qualification voucher.Therefore, it is necessary to which user do not used Qualification is reclaimed.It will generate and be sent to user terminal, and the qualification credential information that user does not use is discarded.
Step 404:The qualification for receiving user's execution the second predetermined registration operation triggering uses request bag using request, the qualification Credential data containing qualification.
Step 405:The qualification Credential data and the qualification credential information to it is corresponding when respond described in user performs Second predetermined registration operation.
Step 406:The attribute information of the qualification credential information is arranged to invalid.
If current time and the time difference of the generation time of the qualification credential information exceed predetermined threshold value, service Device thinks that user does not use qualification credential information.Now, the attribute information of the qualification credential information is arranged to invalid.
Step 407:The unsold volume that amount will be asked to be accumulated to the default amount corresponding to the qualification credential information In degree.
After the attribute information of the qualification credential information is arranged into invalid, it will be asked corresponding to the qualification credential information Ask amount to be accumulated in the unsold amount of the default amount, the Quota distribution of recovery is used to other users.
In the present embodiment, the qualification that the data processing method does not use user is reclaimed, by qualification credential information Attribute information is arranged to invalid, and request amount corresponding with the qualification credential information is reverted to the unsold of default amount In amount, used for other users, avoid the waste of commodity resource.
For foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but It is that those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to the present invention, certain A little steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know, be retouched in specification The embodiment stated belongs to preferred embodiment, necessary to involved action and the module not necessarily present invention.
Method is described in detail in the invention described above disclosed embodiment, can be taken various forms for the method for the present invention Device realize, therefore the invention also discloses a kind of device, specific embodiment is given below and is described in detail.
Fig. 5 is the first structure schematic diagram of data processing equipment disclosed in the embodiment of the present invention, shown in Figure 5, described Data processing equipment 50 can include:
First receiving module 501, the qualification request information of the first predetermined registration operation triggering is performed for receiving user.
Wherein, user performs the first predetermined registration operation in end side, and end side can generate according to first predetermined registration operation and provide Lattice solicited message.For example, user buys film ticket from terminal, by internet, when user chooses seat from terminal display screen Behind position, the button of " seat is selected in confirmation " can be triggered.Herein, the button of user's triggering " seat is selected in confirmation " can think the first default behaviour Make, after user's " seat is selected in confirmation ", you can determine that user has selected several seats, namely need to buy several tickets, corresponding ticket Quantity and the total amount for needing to consume just have determined that.Therefore, it is pre- can to perform first by user for the qualification request information The total amount that commodity amount and user's needs are consumed also is included if operation generates to trigger, in the qualification request information.
Voucher generation module 502, for what is recorded according to the qualification request information, default amount and atomic counters Amount generation qualification credential information is had been sold out, and the qualification credential information is sent to user terminal.
In one schematical example, the concrete structure of the voucher generation module 502 may refer to Fig. 6, and Fig. 6 is this hair The structural representation of voucher generation module disclosed in bright embodiment, as shown in fig. 6, the voucher generation module 502 can include:
Amount determining module 601 is asked, for determining the request amount of the qualification request information.
The qualification request information includes the total amount that commodity amount and user's needs are consumed, the request amount That is commodity amount and/or spending amount.
Remaining amount determining module 602, amount is had been sold out for what is recorded according to default amount and atomic counters, it is determined that Remaining amount.
The default amount is that businessman sets according to marketing rule, the sales volume or gross sales amount of certain commodity.Example Such as, high ferro can limit ticketing quantity according to the amount of seats on its train, and ticketing quantity now is default amount.For another example, The total sales volume that film businessman limits some film is needed for 5,000,000, and now 5,000,000 be default amount.
Atomic counters are the counters for possessing atomicity affairs, and it possesses the ability that single thread performs task, in height simultaneously It can also ensure to go execution task in order under hair solicited status.The amount that has been sold out of commodity is recorded using atomic counters, is wrapped Quantity and the amount of money are included, the accuracy of record data can be ensured.In the present embodiment, the atom based on redis databases can be used Counter.Due to the storage characteristics and storage mode of redis databases so that under high concurrent solicited status, atom counts Device is also capable of the completion data record work of efficiently and accurately.
Clearly described default amount and atomic counters record have been sold out amount in the case of, subtracted with default amount Amount is had been sold out, that is, can determine that the remaining amount of the commodity.
Judge module 603, for judging whether the request amount is less than or equal to the remaining amount.
Voucher generate submodule 604, for the judge module 603 judged result for be when, according to the qualification The generation time of solicited message, qualification credential information is generated using hash algorithm, and the qualification credential information is sent to use Family terminal.
In the case where the request amount is less than or equal to the remaining amount, it was demonstrated that the qualification request of user is can be with It is allowed to, is also not in super situation about selling even if selling commodity to user according to the qualification request information.
The generation time of the qualification request information can be included in the qualification request information, server can be according to institute The generation time of qualification request information is stated, qualification credential information is generated using hash algorithm.Specifically, the hash algorithm can be with It is MD5 algorithms.In order to ensure the uniqueness of the qualification credential information, the generation time of the qualification request information can be used The qualification credential information is determined plus the random digit between 2 1-10000.Regular length can be generated using the method It character string, so can either prevent user from viewing the internal rule of businessman, also can prevent hacker from constructing to a certain extent Qualification credential information.
In the case where the request amount is more than the remaining amount, it was demonstrated that if generation qualification credential information, and use After commodity are bought in family according to the qualification credential information, super situation about selling just occurs, as certain movie theater has 200 seats, As a result 201 film tickets are sold, has a seat while has been sold to two different clients, as a result cause unnecessary fiber crops It is tired.Therefore, in the present embodiment, in this case, qualification credential information will not be generated.
Second receiving module 503, the qualification that the triggering of the second predetermined registration operation is performed for receiving user use request, the money Lattice use request bag Credential data containing qualification.
Wherein, second predetermined registration operation can be that user clicks on " immediate payment " button.It is pre- that user performs described second If after operation, terminal can generate qualification and use request.The qualification can include qualification Credential data using request, and server exists After the qualification is received using request, the qualification can be judged whether " legal ", namely whether the qualification Credential data accords with Close and require.
Operate respond module 504, for the qualification Credential data and the qualification credential information to it is corresponding when respond use Second predetermined registration operation that family performs.
The operation respond module 504 specifically can be used for:In the qualification Credential data and the qualification credential information When identical, second predetermined registration operation of response user's execution.Certainly, in various embodiments, server is by the qualification After credential information is sent to user terminal, user terminal can be changed according to certain method to the qualification credential information, Qualification Credential data is generated, the follow-up server, can be according to institute after the qualification Credential data of terminal transmission is received State qualification Credential data and carry out inverse conversion, by the qualification Credential data after inverse conversion compared with the qualification credential information, When both are identical, then judge that the qualification Credential data of user meets the requirements, and then server can respond the of user's execution Two predetermined registration operations.Such as, it is allowed to user is paid now, and user terminal is linked into the payment page.
It should be noted that data processing equipment disclosed in the present embodiment is in the course of the work, user does not perceive, The execution of corresponding actions is realized on server and terminal handler system.
Data processing equipment disclosed in the present embodiment, amount is had been sold out using atomic counters record, possesses single thread and holds Row task characteristic, it can also ensure to perform one by one in sequence under high concurrent solicited status, ensure that the accurate of data record Property, the excess for avoiding quota commodity is sold.
On the basis of the invention described above disclosed embodiment, Fig. 7 discloses the second structural representation of data processing equipment Figure, as shown in fig. 7, the data processing equipment 70 can include:
First receiving module 501, the qualification request information of the first predetermined registration operation triggering is performed for receiving user.
Voucher generation module 502, for what is recorded according to the qualification request information, default amount and atomic counters Amount generation qualification credential information is had been sold out, and the qualification credential information is sent to user terminal.
Logging modle 701, for counting request corresponding to the qualification credential information by atomic counters record Amount.
Counted by atomic counters record and amount is asked corresponding to the qualification credential information, the atomic counters note The commodity of record have been sold out amount and can accordingly increased, and the amount of user's request can also deduct from remaining amount accordingly, this Sample, when ensure that the follow-up qualification request information of reception user again, it can be determined whether according to accurate quota data Qualification credential information is generated, namely whether to continue to sell the commodity.
Second receiving module 503, the qualification that the triggering of the second predetermined registration operation is performed for receiving user use request, the money Lattice use request bag Credential data containing qualification.
Operate respond module 504, for the qualification Credential data and the qualification credential information to it is corresponding when respond use Second predetermined registration operation that family performs.
In the present embodiment, the data processing equipment is remembered after qualification credential information is generated by the atomic counters Record counts request amount corresponding to the qualification credential information, ensure that the accuracy of data record, is easy to subsequently receive again During the qualification request information of user, it can determine whether to generate qualification credential information according to accurate quota data, effectively Avoid excess and sell commodity.
Fig. 8 is the 3rd structural representation of data processing equipment disclosed in the embodiment of the present invention, shown in Figure 8, described Data processing equipment 80 can include:
First receiving module 501, the qualification request information of the first predetermined registration operation triggering is performed for receiving user.
Voucher generation module 502, for what is recorded according to the qualification request information, default amount and atomic counters Amount generation qualification credential information is had been sold out, and the qualification credential information is sent to user terminal.
Second receiving module 503, the qualification that the triggering of the second predetermined registration operation is performed for receiving user use request, the money Lattice use request bag Credential data containing qualification.
Operate respond module 504, for the qualification Credential data and the qualification credential information to it is corresponding when respond use Second predetermined registration operation that family performs.
Attribute setup module 801, for the time difference in current time and the generation time of the qualification credential information During more than predetermined threshold value, the attribute information of the qualification credential information is arranged to invalid.
In user during the entire process of online purchase commodity, server can be undergone qualification is generated according to qualification request information Two processes of credential information and user's competency for operation credential information, if end side after qualification credential information is obtained, user Be not carried out the second predetermined registration operation triggering qualification credential information use, and in server atomic counters have recorded it is described Request amount corresponding to qualification credential information, this will result in the waste of qualification voucher.Therefore, it is necessary to which user do not used Qualification is reclaimed.It will generate and be sent to user terminal, and the qualification credential information that user does not use is discarded.
Qualification recycling module 802, for corresponding to the qualification credential information amount will be asked to be accumulated to the default volume In the unsold amount of degree.
If current time and the time difference of the generation time of the qualification credential information exceed predetermined threshold value, service Device thinks that user does not use qualification credential information.Now, the attribute information of the qualification credential information is arranged to invalid.
After the attribute information of the qualification credential information is arranged into invalid, it will be asked corresponding to the qualification credential information Ask amount to be accumulated in the unsold amount of the default amount, the Quota distribution of recovery is used to other users.
In the present embodiment, the qualification that the data processing equipment does not use user is reclaimed, by qualification credential information Attribute information is arranged to invalid, and request amount corresponding with the qualification credential information is reverted to the unsold of default amount In amount, used for other users, avoid the waste of commodity resource.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part It is bright.
It should also be noted that, herein, such as first and second or the like relational terms are used merely to one Entity or operation make a distinction with another entity or operation, and not necessarily require or imply between these entities or operation Any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant are intended to contain Lid nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (10)

  1. A kind of 1. data processing method, it is characterised in that including:
    Receive the qualification request information that user performs the triggering of the first predetermined registration operation;
    Amount generation qualification voucher letter is had been sold out according to what the qualification request information, default amount and atomic counters recorded Breath, and the qualification credential information is sent to user terminal;
    The qualification for receiving user's execution the second predetermined registration operation triggering uses request bag voucher containing qualification number using request, the qualification According to;
    The qualification Credential data and the qualification credential information to it is corresponding when respond the described second default behaviour that user performs Make.
  2. 2. data processing method according to claim 1, it is characterised in that it is described according to the qualification request information, it is pre- If amount and the amount that has been sold out of atomic counters record generate qualification credential information, and the qualification credential information is sent To user terminal, including:
    Determine the request amount of the qualification request information;
    Amount is had been sold out according to what default amount and atomic counters recorded, it is determined that remaining amount;
    Judge whether the request amount is less than or equal to the remaining amount;
    If it is, the generation time according to the qualification request information, qualification credential information is generated using hash algorithm, and by institute State qualification credential information and be sent to user terminal.
  3. 3. data processing method according to claim 1, it is characterised in that it is described according to the qualification request information, Default amount and atomic counters record has been sold out amount generation qualification credential information, and the qualification credential information is sent out After giving user terminal, in addition to:
    Counted by atomic counters record and ask amount corresponding to the qualification credential information.
  4. 4. data processing method according to claim 1, it is characterised in that it is described the qualification Credential data with it is described Second predetermined registration operation that user performs is responded when qualification credential information is to corresponding to, including:
    When the qualification Credential data is identical with the qualification credential information, the described second default behaviour of response user's execution Make.
  5. 5. data processing method according to claim 1, it is characterised in that when the qualification credential information includes generation Between, then generate qualification voucher in the record information according to the qualification request information, default amount and atomic counters Information, and after the credential information is sent into user terminal, in addition to:
    When the time difference of current time and the generation time of the qualification credential information exceedes predetermined threshold value, by the qualification The attribute information of credential information is arranged to invalid;
    Corresponding to the qualification credential information amount will be asked to be accumulated in the unsold amount of the default amount.
  6. A kind of 6. data processing equipment, it is characterised in that including:
    First receiving module, the qualification request information of the first predetermined registration operation triggering is performed for receiving user;
    Voucher generation module, had been sold out for what is recorded according to the qualification request information, default amount and atomic counters Amount generates qualification credential information, and the qualification credential information is sent into user terminal;
    Second receiving module, the qualification that the triggering of the second predetermined registration operation is performed for receiving user are used using request, the qualification Request bag Credential data containing qualification;
    Operate respond module, for the qualification Credential data and the qualification credential information to it is corresponding when response user's execution Second predetermined registration operation.
  7. 7. data processing equipment according to claim 6, it is characterised in that the voucher generation module includes:
    Amount determining module is asked, for determining the request amount of the qualification request information;
    Remaining amount determining module, amount is had been sold out for what is recorded according to default amount and atomic counters, determines residue Degree;
    Judge module, for judging whether the request amount is less than or equal to the remaining amount;
    Voucher generate submodule, for the judge module judged result for be when, according to the qualification request information The time is generated, qualification credential information is generated using hash algorithm, and the qualification credential information is sent to user terminal.
  8. 8. data processing equipment according to claim 6, it is characterised in that also include:
    Logging modle, amount is asked corresponding to the qualification credential information for being counted by atomic counters record.
  9. 9. data processing equipment according to claim 6, it is characterised in that the operation corresponding module is specifically used for:
    When the qualification Credential data is identical with the qualification credential information, the described second default behaviour of response user's execution Make.
  10. 10. data processing equipment according to claim 6, it is characterised in that when the qualification credential information includes generation Between, then also include:
    Attribute setup module, it is default for exceeding in the time difference of current time and the generation time of the qualification credential information During threshold value, the attribute information of the qualification credential information is arranged to invalid;
    Qualification recycling module, for corresponding to the qualification credential information amount will be asked to be accumulated to not selling for the default amount Go out in amount.
CN201710282425.XA 2017-04-26 2017-04-26 Data processing method and device Active CN107424036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710282425.XA CN107424036B (en) 2017-04-26 2017-04-26 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710282425.XA CN107424036B (en) 2017-04-26 2017-04-26 Data processing method and device

Publications (2)

Publication Number Publication Date
CN107424036A true CN107424036A (en) 2017-12-01
CN107424036B CN107424036B (en) 2021-02-02

Family

ID=60424706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710282425.XA Active CN107424036B (en) 2017-04-26 2017-04-26 Data processing method and device

Country Status (1)

Country Link
CN (1) CN107424036B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110490640A (en) * 2019-07-24 2019-11-22 阿里巴巴集团控股有限公司 Method, apparatus and system for object distribution processor
US11501295B2 (en) 2019-07-24 2022-11-15 Advanced New Technologies Co., Ltd. Object distribution processing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090076876A1 (en) * 2003-02-21 2009-03-19 Mtrex, Inc. Method of Scheduling and Event Processing in Computer Operating System
CN101521569A (en) * 2008-02-28 2009-09-02 华为技术有限公司 Method, equipment and system for realizing service access
CN101534196A (en) * 2008-03-12 2009-09-16 因特伟特公司 Method and apparatus for securely invoking a rest api
US20110225638A1 (en) * 2010-03-09 2011-09-15 Ebay Inc. Secure randomized input
CN103413159A (en) * 2013-08-15 2013-11-27 成都市易恒信科技有限公司 RFID electronic certificate off-line distinguishing and anti-counterfeiting implementation method and system based on CPK
CN105096065A (en) * 2014-04-16 2015-11-25 阿里巴巴集团控股有限公司 Inventory deduction method and inventory deduction device
CN106294746A (en) * 2016-08-10 2017-01-04 中国银行股份有限公司 A kind of concurrent transaction data processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090076876A1 (en) * 2003-02-21 2009-03-19 Mtrex, Inc. Method of Scheduling and Event Processing in Computer Operating System
CN101521569A (en) * 2008-02-28 2009-09-02 华为技术有限公司 Method, equipment and system for realizing service access
CN101534196A (en) * 2008-03-12 2009-09-16 因特伟特公司 Method and apparatus for securely invoking a rest api
US20110225638A1 (en) * 2010-03-09 2011-09-15 Ebay Inc. Secure randomized input
CN103413159A (en) * 2013-08-15 2013-11-27 成都市易恒信科技有限公司 RFID electronic certificate off-line distinguishing and anti-counterfeiting implementation method and system based on CPK
CN105096065A (en) * 2014-04-16 2015-11-25 阿里巴巴集团控股有限公司 Inventory deduction method and inventory deduction device
CN106294746A (en) * 2016-08-10 2017-01-04 中国银行股份有限公司 A kind of concurrent transaction data processing method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
徐承波: ""多种应用环境下身份认证与密钥协商协议的研究"", 《中国博士学位论文全文数据库(信息科技辑)》 *
梁兴琦: "《电子商务安全保密技术及应用》", 30 November 2006, 合肥工业大学出版社 *
武依文: ""O2O模式下电影在线选座系统设计与实现"", 《中国优秀硕士学位论文全文数据库(信息科技辑)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110490640A (en) * 2019-07-24 2019-11-22 阿里巴巴集团控股有限公司 Method, apparatus and system for object distribution processor
US11501295B2 (en) 2019-07-24 2022-11-15 Advanced New Technologies Co., Ltd. Object distribution processing

Also Published As

Publication number Publication date
CN107424036B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN110147990B (en) Payment withholding subscription method and device based on block chain and electronic equipment
US20110251921A1 (en) Method and system to facilitate billing of embedded applications in a serving platform
CN103067185B (en) Charging method in cloud computing system
TW200917084A (en) Metered pay-as-you-go computing experience
CN110233741B (en) Service charging method, device, equipment and storage medium
WO2014159296A1 (en) A method, system and program product for matching of transaction records
CN110599273B (en) Data processing method, data processing device, node equipment and storage medium
CN107424036A (en) Data processing method and device
CN107026897A (en) A kind of methods, devices and systems of data processing
CN106296248A (en) Information push method and device
CN111488353B (en) Intelligent contract implementation method and device for business data block chain
CN104137475B (en) Method and apparatus for charging
US9525687B2 (en) Template for customer attributes
US9645862B2 (en) Computing consumption of application programming interfaces
CN111143546A (en) Method and device for obtaining recommendation language and electronic equipment
US10074115B1 (en) Subscription management service
EP3331196B1 (en) Telecommunication system for monitoring and controlling of a network providing resource to a user
CN109450963A (en) Information push method and terminal device
CN114219629A (en) Fund collection method, device, equipment and medium
CN114445128A (en) Card ticket management method and device, electronic equipment and computer readable medium
WO2014047431A1 (en) Systems and methods of monetizing debt
CN106874327A (en) A kind of method of counting and device for business datum
CN111488343A (en) E-commerce data uplink method and device based on business data block chain
CN107797907A (en) The statistical method of behavioral data based on user behavior
CN114841791B (en) Budget management and control method, system, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant