CN110007904A - Data processing method, device and equipment - Google Patents
Data processing method, device and equipment Download PDFInfo
- Publication number
- CN110007904A CN110007904A CN201910226965.5A CN201910226965A CN110007904A CN 110007904 A CN110007904 A CN 110007904A CN 201910226965 A CN201910226965 A CN 201910226965A CN 110007904 A CN110007904 A CN 110007904A
- Authority
- CN
- China
- Prior art keywords
- section
- function
- payment
- assembled
- verification
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/22—Procedural
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/76—Adapting program code to run in a different environment; Porting
-
- 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/12—Payment architectures specially adapted for electronic shopping systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a kind of data processing method, device and equipment, belong to mobile payment technical field, for reducing payment code development difficulty, economize on resources.This method comprises: successively executing each verification section for paying verification when receiving payment request;When the check results of the last one verification section are to verify successfully, each assembled section for assembled payment parameter is successively executed;When the last one assembled section returns to assembled successful parameter, triggering payment flow handles payment data.In data processing method provided in an embodiment of the present invention, the main process of front-end payment is obtained after payment logic is carried out combing analysis, the main process can be used as the general frame of later period code development, the code of main process is without redeveloping, realizing the multiplexing of main process code, to reduce the exploitation amount of code, economize on resources.
Description
Technical field
The present invention relates to mobile payment technical field, in particular to a kind of data processing method, device and equipment.
Background technique
With the development of internet technology, various payment products emerge one after another.User passes through the business of internet payment
It is growing day by day.Usual user first browses merchandise items, and user selects corresponding channel of disbursement (such as bank card branch after determining purchase
Pay, stored value card payment etc.) initiate payment request, then equipment according to the payment request of user complete pay.
Since the displaying page content of merchandise items is changeable, and with different sales tactics, show that page and payment logic are equal
It is different.If 1 yuan is bought at competitive price commodity and is handled using the payment logic bought at competitive price, purchase by group commodity and not the commodity of discounted policy also because
Product or businessman are different and different.
However, when changing the sales tactics of merchandise items if necessary in the prior art, the corresponding code for paying logic
Exploitation requires to re-start.Buying commodity at competitive price often has the characteristics that the period is short, timeliness is strong, this will further result in payment and patrols
The workload for collecting code development aggravates, while also resulting in certain wasting of resources.
Summary of the invention
The embodiment of the present invention provides a kind of data processing method, device and equipment, for mitigating payment code exploitation test
With heavy work load, the problem of also resulting in certain wasting of resources simultaneously.
On the one hand, a kind of data processing method is provided, which comprises
When receiving payment request, each verification section for paying verification is successively executed, and a upper verification is cut
The check results in face are to execute next verification section when verifying successfully;
When the check results of the last one verification section are to verify successfully, successively execute for each of assembled payment parameter
A assembly section, and the assembled result of upper one assembled section is that next assembled section is executed when assembly is successful;
Second aspect, the embodiment of the present invention also provide a kind of data processing equipment, and described device includes:
Section execution module is verified, for successively executing each school for paying verification when receiving payment request
Section is tested, and the check results of upper verification section are to execute next verification section when verifying successfully;
Assembled section execution module, for successively holding when the check results of the last one verification section are to verify successfully
Row pays each assembled section of parameter for assembly, and the assembled result of upper one assembled section is under executing when assembly is successful
One assembled section;
Payment module, for triggering payment flow to branch when the last one assembled section returns to assembled successful parameter
Data are paid to be handled.
The third aspect, provides a kind of computer equipment, including memory, processor and storage on a memory and can located
The computer program run on reason device,
The processor realizes method and step described in above-mentioned aspect when executing the computer program.
Fourth aspect provides a kind of computer readable storage medium,
The computer-readable recording medium storage has computer instruction, when the computer instruction is run on computers
When, it enables a computer to execute method described in above-mentioned aspect.
In the embodiment of the present invention, when receiving payment request, each verification section for paying verification is successively executed;
When the check results of the last one verification section are to verify successfully, successively execute and cut for each assembly of assembled payment parameter
Face;When the last one assembled section returns to assembled successful parameter, triggering payment flow handles payment data.This hair
In the data processing method that bright embodiment provides, the main process of front-end payment is obtained after payment logic is carried out combing analysis,
The main process can be used as the general frame of later period code development, and the code of main process is without redeveloping, realizing main body stream
The multiplexing of range code, to reduce the exploitation amount of code, economize on resources.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Inventive embodiments for those of ordinary skill in the art without creative efforts, can also be according to mentioning
The attached drawing of confession obtains other attached drawings.
Fig. 1 is the payment scene figure of provided in an embodiment of the present invention typical member's product;
Fig. 2 is that the embodiment of the present invention is provided as changing the schematic diagram of payment logic by section mode;
Fig. 3 is the flow diagram of data processing method provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of reported data provided in an embodiment of the present invention;
Fig. 5 is the execution flow diagram of each section provided in an embodiment of the present invention;
Fig. 6 is another flow diagram of data processing method provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of data processing equipment provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
It is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.?
In the case where not conflicting, the feature in embodiment and embodiment in the present invention can mutual any combination.Although also, flowing
Logical order is shown in journey figure, but in some cases, it can be to be different from shown or described by sequence execution herein
The step of.
Technical solution provided in an embodiment of the present invention for ease of understanding, some passes that first embodiment of the present invention is used here
Key name word explains:
Section: being that the relevant code of non-traffic logic is extracted a kind of realization side navigated in specific point of penetration
Formula.AOP is to realize a kind of thought towards tangent plane programming.
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates may exist
Three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.Separately
Outside, character "/" herein typicallys represent the relationship that forward-backward correlation object is a kind of "or" in the case where not illustrating.
As shown in Figure 1, being the payment scene of one provided in an embodiment of the present invention typical member's product: user is not by
Same terminal opens the payment page, and the payment page can show the information of merchandise items.User selects merchandise items, and clicks payment
After button, the different channel of disbursement of page meeting pull-up (such as bank card payment, mobile phone charge payment), user selects one of them
Channel is paid.After paying successfully, billing of services backstage notifies member's business service backstage to carry out commodity delivery processing, delivery
After success, page presentation user is bought successfully.
After dissecting above-mentioned payment flow, inventor summarize the study found that payment product now mostly have it is following
Feature:
1, terminal type is more: such as Android mobile phone, iPhone, PC;
2, account type is more: wechat, QQ, cell-phone number etc.;
3, channel of disbursement is more: such as wechat payment, the payment of QQ wallet, the payment of Q coin, bank card, apple payment, mobile phone charge branch
Pay etc.;
4, the type of merchandise is more: monthly payment member, particular commodity etc..
In addition, usually businessman can also do some targetedly preferential activities for different types of user.At this moment it also needs
Whether to have purchase qualification to user to authenticate.
In conclusion Web (webpage) page as carrying payment behavior, payment logic also becomes more and more multiple accordingly
It is miscellaneous.When various forms of payment products are more and more, if it is one payment page of every kind of product development, the work of debugging is developed
It will be huge, while will lead to certain resource and being wasted.
In view of this, the embodiment of the invention provides a kind of data processing methods, in the method, payment request is received
Afterwards, each verification section for paying verification is successively executed;If the check results of the last one verification section are to verify successfully,
Then then successively execute each assembled section for assembled payment parameter;If the last one assembled section returns assembled successful
Parameter then enters the process completion delivery operation for initiating payment.
In data processing method provided in an embodiment of the present invention, front-end payment is obtained after payment logic is carried out combing analysis
Main process, which can be used as the general frame of later period code development, and the code of main process is without redevelopment, real
The multiplexing of main process code is showed, to reduce the exploitation amount of code.
Specifically, in the main process of front-end payment, including payment verification, the assembly of payment parameter and triggering payment.
Usually trigger pay calling be more bottom universal payment interface, carry out code development business side do not need it is too many
Change.Therefore, front-end payment is more concerned about the logic of payment verification and payment parameter assembly.Confirmation payment, confirmation when the user clicks
Upgrading etc. is various, and front end usually requires first to carry out payment verification when open button, and payment verification includes: user
The verification of place region, user account type checking, purchase qualification authentication, strong login verification etc..When these verification all by with
Afterwards, then start the various payment parameters of working process and carry out payment parameter assembly, assembled parameter is for example can include: the login of user
State information, merchandise news, coupon information and processing parameter etc. is adjusted back after buying successfully.Finally, according to specific business need
It asks, calls corresponding method of payment triggering payment, and obtain processing result to the end.
Based on the analysis of above-mentioned payment main process, in the embodiment of the present invention, will payment verification and payment parameter assembly all
It is realized using section, in this way, increasing section according to different business demands convenient for user to realize the change of payment logic.Such as
Shown in Fig. 2, for the schematic diagram for changing payment logic by section mode.It include number in original payment check logic in Fig. 2
Respectively 1 and 2 two verification sections, paying includes three sections for numbering respectively 3,4,5 in parameter assembly logic.It is newly-increased
After logic, increasing two sections in payment check logic is respectively Aspect A and the Aspect B in Fig. 2, is being paid
1 section i.e. Aspect C is increased in parameter assembly logic.
When executing payment logic, the execution sequence of each section is followed successively by 1,2,3,4,5 in original logic.Newly-increased logic
In the execution sequence of each section be followed successively by Aspect A, 1,2, Aspect B, 3, Aspect C, 4,5.It can be seen that in generation
In code development process, relatively original logic only needs the section of newly-increased logic being inserted into original logic, without to original logic
Each section overlapping development, to reduce code development shortening development cycle and cost.
After having introduced the design concept of the embodiment of the present invention, the implementation method of the embodiment of the present invention is done into one below
Step explanation, as shown in figure 3, being the flow diagram of this method, it may include following steps:
Step 301: when receiving payment request, successively executing each verification section for paying verification, and upper one
The check results of a verification section are to execute next verification section when verifying successfully.
Step 302: when the check results of the last one verification section are to verify successfully, successively executing for assembled payment
Each assembled section of parameter, and the assembled result of upper one assembled section is that next assembled section is executed when assembly is successful.
Step 303: when the last one assembled section returns to assembled successful parameter, triggering payment flow to payment data
It is handled.
For the ease of the sequence that executes of each section of determination, each section is the corresponding function of a completion in the embodiment of the present application
The function of energy.Different classes of section is stored in different Function Arrays, successively according to sequence of the section in Function Array
It executes.Specifically, each verification section is a function registered in advance into processor, the function composition of each verification section
First function group;Each assembly section is a function registered in advance into processor, the function composition the of each assembly section
Two Function Arrays.In this way, storage payment verifies section in first function array, assembled section is stored in second function array, is held
Each function in first function array is successively executed when row;It is executed after the function for having executed first function array, then successively
The successively execution of each section can be realized in each function in second function array.
When it is implemented, base class PayBase can be defined first, the relevant attribute of payment and method are defined in base class, and
Generalized flowsheet, but do not realize specific method of payment.When using the method for this programme, it is necessary first to be based on PayBase base
Class carrys out extension class, such as: MidasPay class.This class is responsible for realizing specific payment pay method.After the instantiation of MidasPay class
A payment SDK is obtained, such as sdk=new MidasPay ().Sdk.onBeforePay method, the party can be first defined before
Method is for registering section.So by call sdk.onBeforePay method by SDK be registered to verification section where first
In Function Array.
Similarly, sdk.addProc method can be pre-defined, assembled section is registered in second function array.
For the ease of the parameter of managing payment logic entirety, and it is convenient for all kinds of sections of extension, first in the embodiment of the present application
Function in Function Array and the second array is the function of the input and output parameter with same data type;Wherein,
Input and output parameter respectively includes the parameter of two objects, wherein the first object, which is used to store, pays bought commodity
The relevant parameter of object;Second object is for storing payment account relevant parameter.Such as, it defines payable and options two right
As, wherein payable is object relevant to commodity, its attribute includes commodity ID, the type of merchandise, commodity amount etc.,
Options is object relevant to payment accounts, its attribute includes account type, account ID, payment environment etc..Specific implementation
When, it can determine that the respective parameter of both of the aforesaid object, the application do not limit this according to actual needs.
When executing the verification section of payment verification, corresponding parameter can be obtained from both of the aforesaid object, then
To the check results of verification section.When it is implemented, the verification of verification section terminates, a Promise object can return to.Payment is drawn
The main flow held up can return to resolve or reject according to this Promise, and then judge whether into next section
It executes.If returning to resolve, next section is executed;If returning to reject, then it represents that verification does not pass through, in payment
Only, next section is not executed.
In addition, may also include solution in the Promise object returned, section is verified for each, if the verification
The check results of section are verification failure, then corresponding processing method is inquired from check results;If inquiring corresponding processing
Method is returned after then being handled according to the processing method inquired and is executed when receiving payment request, successively executes and be used for
Pay the operation of each verification section of verification.
After entering parameter assembly process, first as input parameter can be read for the function in second function array
Parameter in object and the second object reads first function from second function array and executes so as to execute first function
Obtained new parameter is spliced in the second object;And it is directed to each function except first function in second function array,
It executes: the first object and the second object for a upper function will be executed obtaining, as the input of the function, after executing the function
Obtained new parameter is spliced to the operation in the second object for inputing to the function.For example, passing through when all verification sections execute
, then the assembled section of assembled payment parameter is entered.The input parameter of assembled section is also payable and options.
Attribute on payable object need to only be used as and read, and the attribute of options needs to do assembled processing.Such as it realizes and does at account
The assembled section of reason, can be according to the type of account, and to call different methods to obtain account information, these information of acquisition will be made
The options handled well is exported after the completion of assembled section processing for the newly-increased attribute of options.It subsequently enters next
A assembly section, the output of upper one assembled section, by the input as next assembled section, thereby executing next assembly
The processing of section, until all assembled sections are finished.In this way, independent function is realized in each assembly section, carrying out
When payment flow is developed, it can go to increase by way of being simply easily achieved on the basis of main process according to actual needs
Section.
When implementing, the increase for verifying section be can be achieved are as follows: receives the function of newly-increased verification section being inserted into the first letter
The inserting instruction in array is counted, includes the point of penetration of the newly-increased verification section in the inserting instruction;Then according to point of penetration
Determine position of the function of newly-increased verification section in first function array;And the function of newly-increased verification section is inserted into determination
Position in.
Similarly, the increase of assembled section can be achieved are as follows: receives the function of newly-increased assembled section being inserted into second function number
Inserting instruction in group includes the point of penetration of the newly-increased assembled section in the inserting instruction;It is determined according to point of penetration newly-increased
Position of the function of assembled section in second function array;The function of newly-increased assembled section is inserted into determining position.
Since each section can complete independent function, each section can be considered as the abnormal anchor point of the smallest payment,
For the ease of realizing to monitor the executive condition of each section before initiating payment, orientation problem when facilitating payment abnormal.
Especially, when being connected to external network user's complaint, convenient for navigating to user is specifically at which by the executive condition for searching each section
Step section goes wrong, to help user quickly to solve payment problem.Each verification section and assembly are cut in the embodiment of the present invention
Face has corresponding unique section mark;It during executing payment logic, is executed for each section: executing the section
It is preceding to give the input reporting parameters of the section to abnormality processing center;If occurring exception in the section implementation procedure, by the section
Unique section mark be reported to abnormality processing center.In this way, can according to report data judgement specifically payment which
Link occurs abnormal.
As shown in figure 4, being the schematic diagram of reported data, for user after clicking confirmation payment, payment page first passes through the
Whether region where one verification section verification user supports purchase current commodity, secondly, verifying user by the second verification section
It whether is eligible for activity purchase current commodity, section is then verified by third and checks whether the current login state of user has
Effect, if the login state of user is expired, there is exception in this payment, and user is needed to log in again, after user's login again
Secondary initiation payment, re-starts payment flow next time.In this way, in whole process, due to the first and second verification section successes
It executes, so when the first and second verification respective parameters in section reported do not report the section of the first and second verification sections
Unique identification, however due to third verification section occur it is abnormal, so, the parameter of third verification section and its corresponding can be reported
Section unique identification can quickly navigate to third verification section according to section unique identification and go wrong, and can be according to upper
The reason of third verification section problem analysis of report occurs.
In conclusion the processing sequence of each section can be as shown in figure 5, the whole flow process of payment pay () can be drawn in the application
It is divided into and executes section runAspects and initiate to pay two key steps of dopay.In runAspects the step, including
Two class sections, one kind be execBeforePay (verification section), it is another kind of be (the assembled section) execProc.Wherein,
Include four verification sections sequentially executed in execBeforePay, includes that four assembly sequentially executed are cut in execProc
Face.When being executed, verification section is first carried out, and each verify just sequentially executes assembled section after section verifies successfully, if assembled
Section successful execution then enters doPay step.
To be explained referring herein to Fig. 6, such as convenient for further understanding payment flow provided by the embodiments of the present application
Shown in Fig. 6, it may include following steps:
Step 601: receiving the payment request of user.
The payment request can be user and confirm what the operation of payment triggered.
Step 602: sequentially executing verification section.
Step 603: judging whether that verification passes through, if verification passes through, return to step 602, if verification failure, holds
Row step 603.
Step 604, whether: inquiring from check results has corresponding processing method, if not having, end operation, if having
Execute step 605.
Step 605: returning to step 601 after executing respective handling method.
Step 606: after the last one verification section verification passes through, sequentially executing assembled section.
Step 607: judge whether assembled success, if so then execute step 608, otherwise end operation.
Step 608: triggering payment flow handles payment data.
Step 609: payment result is shown according to processing result.
Fig. 7 is referred to, based on the same inventive concept, the embodiment of the invention also provides a kind of data processing equipments, comprising:
Section execution module 701 is verified, for successively executing for paying each of verification when receiving payment request
Section is verified, and the check results of upper verification section are to execute next verification section when verifying successfully;
Assembled section execution module 702, the check results for verifying section when the last one are when verifying successfully, successively
Each assembled section that parameter is paid for assembly is executed, and the assembled result of upper one assembled section is that assembly executes when successful
Next assembly section;
Payment module 703, for triggering payment flow pair when the last one assembled section returns to assembled successful parameter
Payment data is handled.
Further, each verification section is a function registered in advance into processor, the letter of each verification section
Array is at first function group;
Each assembly section is a function registered in advance into processor, and the function of each assembly section forms the second letter
Number array.
Further, the function in first function array and the second array be input parameter with same data type and
The function of output parameter;
Input and output parameter respectively includes the parameter of two objects, wherein the first object is purchased for storing payment
The relevant parameter for the merchandise items bought;Second object is for storing payment account relevant parameter.
Further, the assembled section execution module, comprising:
First processing units, for reading for the function in second function array as the first object for inputting parameter and the
Parameter in two objects, from second function array read first function and execute so that execute first function obtain it is new
Parameter is spliced in the second object;
The second processing unit, for executing for each function except first function in second function array: will
The first object and the second object that a function obtains are executed, as the input of the function, is obtained after executing the function
New parameter is spliced in the second object for inputing to the function.
Further, described device further include:
First receiving module refers to the insertion that the function of newly-increased verification section is inserted into first function array for receiving
It enables, includes the point of penetration of the newly-increased verification section in the inserting instruction;
First position determining module, for being determined the function of newly-increased verification section in first function array according to point of penetration
Position;
First insertion module, for the function of newly-increased verification section to be inserted into determining position.
Further, described device further include:
Second receiving module refers to the insertion that the function of newly-increased assembled section is inserted into second function array for receiving
It enables, includes the point of penetration of the newly-increased assembled section in the inserting instruction;
Second position determining module, for being determined the function of newly-increased assembled section in second function array according to point of penetration
Position;
Second insertion module, for the function of newly-increased assembled section to be inserted into determining position.
Further, described device further include:
Enquiry module, for verifying section for each, if the check results of the verification section are verification failure, from
Corresponding processing method is inquired in check results;
Execution module is returned to, if for inquiring corresponding processing method, at the processing method inquired
It returns and is executed when receiving payment request after reason, successively execute the operation of each verification section for paying verification.
Further, each verification section and assembled section have corresponding unique section mark;Described device further include:
Data reporting module, for being executed for each section:
The input reporting parameters of the section are given to abnormality processing center before executing the section;
If occurring exception in the section implementation procedure, unique section mark of the section is reported in abnormality processing
The heart.
The device can be used for executing method shown in Fig. 3 and/or embodiment shown in fig. 6, therefore, for the device
The function etc. that can be realized of each functional module can refer to the description of Fig. 3 and/or embodiment shown in fig. 6, seldom repeat.
Fig. 8 is referred to, same technical concept is based on, it, can be with the embodiment of the invention also provides a kind of computer equipment 130
Including memory 1301 and processor 1302.
The memory 1301, the computer program executed for storage processor 1302.Memory 1301 can be wrapped mainly
Include storing program area and storage data area, wherein storing program area can application needed for storage program area, at least one function
Program etc.;Storage data area, which can be stored, uses created data etc. according to computer equipment.Processor 1302, can be one
A central processing unit (central processing unit, CPU), or be digital processing element etc..The present invention is implemented
The specific connection medium between above-mentioned memory 1301 and processor 1302 is not limited in example.The embodiment of the present invention in fig. 8 with
It is connected between memory 1301 and processor 1302 by bus 1303, bus 1303 is indicated in fig. 8 with thick line, other components
Between connection type, be only to be schematically illustrated, do not regard it as and be limited.The bus 1303 can be divided into address bus,
Data/address bus, control bus etc..Only to be indicated with a thick line convenient for indicating, in Fig. 8, it is not intended that an only bus or
A type of bus.
Memory 1301 can be volatile memory (volatile memory), such as random access memory
(random-access memory, RAM);Memory 1301 is also possible to nonvolatile memory (non-volatile
Memory), such as read-only memory, flash memory (flash memory), hard disk (hard disk drive, HDD) or solid
State hard disk (solid-state drive, SSD) or memory 1301 can be used for carrying or storing have instruction or number
According to structure type desired program code and can by any other medium of computer access, but not limited to this.Memory
1301 can be the combination of above-mentioned memory.
Processor 1302 is executed when for calling the computer program stored in the memory 1301 as in Fig. 3 or Fig. 6
Shown in method performed by equipment in embodiment.
In some possible embodiments, the various aspects of method provided by the invention are also implemented as a kind of program
The form of product comprising program code, when described program product is run on a computing device, said program code is used for
Execute the computer equipment in the method for illustrative embodiments various according to the present invention of this specification foregoing description
Step, for example, the computer equipment can execute method performed by equipment in the embodiment as shown in Fig. 3 or Fig. 6.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red
The system of outside line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing
(non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory
(RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc
Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of data processing method, which is characterized in that the described method includes:
When receiving payment request, each verification section for paying verification is successively executed, and upper one verifies section
Check results are to execute next verification section when verifying successfully;
When the check results of the last one verification section are to verify successfully, each spelling for assembled payment parameter is successively executed
Section is filled, and the assembled result of upper one assembled section is that next assembled section is executed when assembly is successful;
When the last one assembled section returns to assembled successful parameter, triggering payment flow handles payment data.
2. the method according to claim 1, wherein
Each verification section is a function registered in advance into processor, and the function of each verification section forms first function
Group;
Each assembly section is a function registered in advance into processor, and the function of each assembly section forms second function number
Group.
3. according to the method described in claim 2, it is characterized in that, function in first function array and the second array be with
The function of the input and output parameter of same data type;
Input and output parameter respectively includes the parameter of two objects, wherein the first object is used to store what payment was bought
The relevant parameter of merchandise items;Second object is for storing payment account relevant parameter.
4. according to the method described in claim 3, it is characterized in that, each spelling successively executed for assembled payment parameter
Fill section, comprising:
The parameter in the first object and the second object as input parameter is read for the function in second function array, from second
First function is read in Function Array and is executed is spliced in the second object so as to execute the new parameter that first function obtains;
For each function except first function in second function array, execute:
The first object and the second object for a upper function will be executed obtaining, as the input of the function,
The new parameter obtained after executing the function is spliced in the second object for inputing to the function.
5. according to the method described in claim 2, it is characterized in that, the method also includes:
It receives and the function of newly-increased verification section is inserted into the inserting instruction in first function array, include in the inserting instruction
The point of penetration of the newly-increased verification section;
Position of the function of newly-increased verification section in first function array is determined according to point of penetration;
The function of newly-increased verification section is inserted into determining position.
6. according to the method described in claim 2, it is characterized in that, the method also includes:
It receives and the function of newly-increased assembled section is inserted into the inserting instruction in second function array, include in the inserting instruction
The point of penetration of the newly-increased assembled section;
Position of the function of newly-increased assembled section in second function array is determined according to point of penetration;
The function of newly-increased assembled section is inserted into determining position.
7. the method according to claim 1, wherein the method also includes:
Section is verified for each, if the check results of the verification section are verification failure, phase is inquired from check results
The processing method answered;
If inquiring corresponding processing method, after being handled according to the processing method inquired, return, which executes to work as, receives branch
When paying request, the operation of each verification section for paying verification is successively executed.
8. according to the method for claim 1, it is characterized in that, each verification section and assembled section are with corresponding unique
Section mark;The method also includes:
It is executed for each section:
The input reporting parameters of the section are given to abnormality processing center before executing the section;
If occurring exception in the section implementation procedure, unique section mark of the section is reported to abnormality processing center.
9. a kind of data processing equipment, which is characterized in that described device includes:
Section execution module is verified, is cut for when receiving payment request, successively executing each verification for paying verification
Face, and the check results of upper verification section are to execute next verification section when verifying successfully;
Assembled section execution module, for successively executing use when the check results of the last one verification section are to verify successfully
In each assembled section of assembled payment parameter, and the assembled result of upper one assembled section is next to execute when assembled success
Assembled section;
Payment module, for when the last one assembled section returns to assembled successful parameter, triggering payment flow to be to payment number
According to being handled.
10. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that
The processor realizes method and step described in claim 1 to 8 any claim when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910226965.5A CN110007904B (en) | 2019-03-25 | 2019-03-25 | Data processing method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910226965.5A CN110007904B (en) | 2019-03-25 | 2019-03-25 | Data processing method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110007904A true CN110007904A (en) | 2019-07-12 |
CN110007904B CN110007904B (en) | 2020-11-20 |
Family
ID=67167994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910226965.5A Active CN110007904B (en) | 2019-03-25 | 2019-03-25 | Data processing method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110007904B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105024980A (en) * | 2014-04-29 | 2015-11-04 | 孙银海 | On-line near-field payment system and method based on cell phone number |
CN105139205A (en) * | 2015-08-18 | 2015-12-09 | 宇龙计算机通信科技(深圳)有限公司 | Payment verification method, terminal and server |
US20160063435A1 (en) * | 2014-08-27 | 2016-03-03 | Inam Shah | Systems and methods for facilitating secure ordering, payment and delivery of goods or services |
CN107230058A (en) * | 2017-04-27 | 2017-10-03 | 努比亚技术有限公司 | A kind of method of payment, equipment, server and computer-readable recording medium |
EP3349162A1 (en) * | 2017-01-13 | 2018-07-18 | Flytech Technology Co., Ltd. | Hybrid mobile payment architecture and mobile pos module thereof |
CN109325744A (en) * | 2018-10-23 | 2019-02-12 | 北京三快在线科技有限公司 | Payment processing method, device, medium and electronic equipment |
-
2019
- 2019-03-25 CN CN201910226965.5A patent/CN110007904B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105024980A (en) * | 2014-04-29 | 2015-11-04 | 孙银海 | On-line near-field payment system and method based on cell phone number |
US20160063435A1 (en) * | 2014-08-27 | 2016-03-03 | Inam Shah | Systems and methods for facilitating secure ordering, payment and delivery of goods or services |
CN105139205A (en) * | 2015-08-18 | 2015-12-09 | 宇龙计算机通信科技(深圳)有限公司 | Payment verification method, terminal and server |
EP3349162A1 (en) * | 2017-01-13 | 2018-07-18 | Flytech Technology Co., Ltd. | Hybrid mobile payment architecture and mobile pos module thereof |
CN107230058A (en) * | 2017-04-27 | 2017-10-03 | 努比亚技术有限公司 | A kind of method of payment, equipment, server and computer-readable recording medium |
CN109325744A (en) * | 2018-10-23 | 2019-02-12 | 北京三快在线科技有限公司 | Payment processing method, device, medium and electronic equipment |
Non-Patent Citations (2)
Title |
---|
BY RYAN GANDOLFO: "You May Be Asked to Verify WeChat Pay. Here"s How to Do It", 《HTTPS://WWW.THATSMAGS.COM/CHINA/POST/27250/YOU-MAY-BE-ASKED-TO-VERIFY-WECHAT-PAY-HERE-S-HOW-TO-DO-IT》 * |
欧阳思海: "spring Aop实现身份验证和springboot异常统一处理", 《HTTPS://BLOG.CSDN.NET/SIHAI12345/ARTICLE/DETAILS/80924870》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110007904B (en) | 2020-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107748985B (en) | Network-based payment method and network payment server | |
CN109447609A (en) | Method of payment, device, computer equipment and storage medium | |
CN104850993A (en) | Payment method and apparatus | |
CN108399543A (en) | Binding method, method for evaluating trust, device and the electronic equipment of Payment Card | |
CN105913245A (en) | Internet payment method, device and server | |
US9852407B2 (en) | Systems and methods for routing debit transactions | |
CN105931036A (en) | Payment method and device | |
CN109472585A (en) | Pay invoice generation method, device, equipment and medium based on data analysis | |
CN109754234A (en) | A kind of polymerization method of payment and device | |
CN108595579A (en) | Contact person's cohesion evaluation method, device, computer equipment and storage medium | |
CN109034962A (en) | A kind of information interacting method and system | |
CN110264169A (en) | A kind of payment method for routing, device, equipment and readable storage medium storing program for executing | |
CN109800063A (en) | Business method for parallel processing, device, server, storage medium | |
CN105160532A (en) | Palm vein authentication based payment management method, apparatus and system | |
CN106897870A (en) | A kind of method and system for solving foreign trade electric business platform RMB cashier availability | |
CN110874728A (en) | Online payment system, online payment method, device, medium and server | |
Kauffman et al. | Technology investment decision-making under uncertainty: the case of mobile payment systems | |
CN110007904A (en) | Data processing method, device and equipment | |
CN116777653A (en) | Enterprise collection checking method, device, equipment and readable storage medium | |
CN111522933A (en) | Conversation process control method, device, equipment and medium | |
CN107220818A (en) | online payment method and device | |
CN109325766A (en) | Pricing method and device under cross-border payment scene based on Multiple Currencies | |
CN114565391A (en) | Automatic payment method and device | |
CN113298650A (en) | Information processing method and device and electronic equipment | |
CN111583030A (en) | Payment routing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |