Specific embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and
Corresponding accompanying drawing is clearly and completely described to technical scheme.Obviously, described embodiment is only the application one
Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application is provided is described in detail.
The embodiment of the present application provide request sending method executive agent, can be, but not limited to for mobile phone, panel computer,
PC (Personal Computer, PC), intelligent television and any can run application (Application, APP)
Terminal device at least one.Additionally, the executive agent, or APP of the method are in itself.
For ease of description, as a example by hereafter executive agent in this way is for reading APP, the implementation method to the method is carried out
Introduce.It is appreciated that it is a kind of exemplary explanation that the executive agent of the method is reading APP, it is not construed as to this
The restriction of method.
The embodiment of the present application provides a kind of request sending method, is used to solve prior art in lifting user account authority
When can cause request send interrupt problem.The method implements schematic flow sheet as shown in figure 1, following steps can be included
Suddenly:
Step 11, operation requests are sent based on user account to server;
The user account can refer to that user is reading the account of Active Registration on APP, such as user's Active Registration
Caricature reads APP accounts or text reading APP accounts etc.;Or can also be read APP according to the behavior of user from
The dynamic account for creating, for example, it is assumed that user A is not reading registered user account on APP, when user A starts reading APP
When, reading APP can for user A creates account, (device number of the terminal device for such as, being used according to user A be automatically
User A creates user account corresponding with the device number).
Subsequent user often logs in reading APP firstly the need of by user account, and then is read using reading APP
Read.
It is then described that operation requests are sent to server based on user account, can refer to that user is logged in by user account
After reading APP, the operation requests that reading APP sends to server are triggered by assigned operation.
Step 12, the operating result that the reception server is returned according to the operation requests;
Usually, server can carry out operating right classification, the operating right of user account to different user accounts
Grade higher, and the content that can read is also abundanter after the user account is logged in and reads APP, conversely, user account
Operating right lower grade, then the content by that can be read after user account login reading APP is also less.
In order to avoid being mismatched with the operating right of user account to the operation requests that server sends based on user account
Problem, in one embodiment, server receive based on user account send operation requests after, first will be right
The operating right of user account for sending operation requests is inquired about, when Query Result for user account operating right be based on
When the operation requests that the user account sends are matched, server can perform according to operation requests and operate and returned to APP is read
Operating result.And work as the operating right that Query Result is user account and the operation requests sent based on the user account and mismatch
When, server will not perform the corresponding operation of the operation requests, and return to operating result to APP is read, and be received when APP is read
The operating result for arriving for the operating right of user account is mismatched with the operation requests when, subsequently reading APP will perform step
Rapid 13.
For example, read APP server can by the operating right grade classification of user account into a, b, c Three Estate,
The books of D classes, E classes and F classes can be read by the user account that Permission Levels are a grades, by the use that Permission Levels are b grades
Family account can read the books of D classes and E classes, and passing through the user account that Permission Levels are c grades can only read the book of D classes
Nationality, in this case, when user account Permission Levels please for the reading of E class books with user orientation server transmission for c grades
When asking, server is inquired about the operating right of the user account, determines that the user account does not possess the power for reading E class books
Limit, server will not perform the corresponding operation of the operation requests, and return to the operation that attendant exclusion is performed to reading APP
As a result, read after APP receives the operating result, can by interface as shown in Figure 2, to user show operating result and
The reason for causing the attendant exclusion to perform.
Step 13, when the operating result received by performing step 12 be the operating right of the user account with it is described
When operation requests are mismatched, the operation requests are preserved, and operating right lifting request is sent to the server;
Usually, APP often by the APP SDK (Software Development Kit,
SDK the correlation function of the APP) is realized, wherein, the SDK can be the software frame created for the functional realiey for specifying APP
The set of the instruments such as frame, operating system, application programming interface API.For example, read APP can be by the SDK of the APP
SDK for sending operation requests, read request is sent to server.
Then when the operating right that the operating result received by performing step 12 is the user account and the operation
When request is mismatched, the operation requests are preserved, can specifically included:By the software development for sending the operation requests
Kit SDK preserves the operation requests.
It should be noted that it is only a kind of implementation method, in addition, the application to preserve the operation requests by SDK
Embodiment can also be preserved using other modes to operation requests, such as, and can also be by slow corresponding to reading APP
Deposit to preserve the operation requests.Do not limited for how to preserve described operation requests the embodiment of the present application.
When the operating right that operating result is the user account is mismatched with the operation requests, user can be to clothes
Business device sends operating right lifting request, and still as a example by reading APP, user can log in the net of reading APP by browser
Stand, and the page is lifted by the website visiting operating right, sending operating right to the server for reading APP by the page carries
Rise request.
User's opening operation privilege-escalation page for convenience, and lift the page by Permission Levels and sent to server and grasp
Make the operation of privilege-escalation request, in one embodiment, in the operating result that the server that APP is received is returned, often
Include the address that operating right lifts the page, the address such as can be URL number (Uniform
Resource Locator, URL), i.e., for the website links of the linked operation privilege-escalation page, then sent to server and operated
Privilege-escalation is asked, and can specifically be included:The address of the page is lifted according to the operating right included in the operating result, to institute
State server and send operating right lifting request.
For example, as shown in figure 3, comprising operating right lifting the page address operating result, wherein, with underscore
Network address " www.quanxiantishe.com " is the address that operating right lifts the page.
It should be noted that the Permission Levels lifting page is generally HTML (HyperText
Markup Language, HTML) page, and conventional at present is the 5th version HTML, i.e. HTML5.
Usually, the HTML5 pages are loaded generally by HTLM5 containers, in order to load the operating right lifting
The HTML5 pages are, it is necessary to call HTML5 containers.
In one embodiment, the address of the page is lifted according to the operating right included in the operating result, to institute
State server and send operating right lifting request, can specifically include:Call HTML HTML containers;By described
HTML containers, according to the URL, the access request that operating right lifts the page are sent to the server;Load the service
The operating right that device is returned according to the access request lifts the page;The page is lifted by the operating right, to the service
Device sends operating right lifting request.
Step 14, after the operating right lifting of the user account, the operation requests for preserving is sent to the server.
It is connected it should be noted that reading APP and often setting up real-time Communication for Power with the server of reading APP, to read
APP can obtain the information change of the user account for currently logging in reading APP from server in real time, then as reading APP from clothes
After business device obtains the information about user account operating right lifting, reading APP can send to server and protect again
The operation requests deposited.
For example, reading the operating right lifting request that APP sends when server is received, and carried in response to the operating right
Rise after asking to lift user account operating right grade, server can return to user account and operate to reading APP
Permission Levels lift completion notice, read APP and lift completion in the user account operating right grade for receiving server return
After notice, you can send the operation requests for preserving with to server.In this case, user's using terminal is currently displayed
The page may still for operating right lifts the page, due to that cannot show reading APP warp-wise services on the operating right lifting page
Device resends the relevant information of operation requests, this may cause user cannot confirm read APP whether again to clothes
Business device have sent the operation requests of preservation, and then be likely to result in user by reading APP repetition transmission operation requests.
In order to avoid above mentioned problem, in one embodiment, the HTML5 pages are lifted to clothes by operating right in user
After business device sends operating right lifting request, the HTLM5 containers for loading the operating right lifting HTML5 pages can adjust back reading
APP, to cause after operating right lifting request is sent, terminal can again show reading APP, then step 13 is implemented
Mode can include:The SDK of preservation operation requests in the reading APP is adjusted back by the HTML containers;And by the SDK
The operation requests for preserving are sent to the server.
In order to ensure that HTML containers can adjust back the SDK for reading APP, when reading APP calls HTML containers, will set up
For sending the SDK of operation requests and the corresponding relation of the HTML containers in reading APP, meanwhile, the SDK will hold to the HTML
Device sends readjustment condition, and to cause when the readjustment condition is met, HTML containers are according to the corresponding relation for pre-building, readjustment
SDK。
Wherein, the readjustment condition, such as can be to work as HTML container receptions to the assigned operation instruction of user input
Triggering, for example, as described in Figure 4, when HTML container receptions to user are by click " submission " button, and the operating right being input into
After instruction is submitted in lifting request to, HTML container receptions can be considered as and meet the readjustment condition to the submission instruction, HTML appearances
Device will send operating right lifting request to server, while by according to the corresponding relation for pre-setting, adjusting back SDK, work as reading
After being used to preserve the SDK of operation requests in APP by HTML containers readjustment, reading APP can be considered as the user account operating rights
Limit lifting is completed, and sends the operation requests for preserving to server by the SDK.
A kind of specific implementation of the request sending method for being provided for the embodiment of the present application above, below will be with shopping
As a example by APP, it is specific introduce when using shopping APP it is a kind of pay request sending method, the method implements flow
Schematic diagram is as shown in figure 5, mainly comprise the steps:
Step 21, is sent to server based on user account and pays request;
User logs in shopping APP by user account, and then carries out commodity purchasing using shopping APP, when user is in purchase
After the commodity for expecting to buy are chosen on thing APP, user is somebody's turn to do by clicking on " payment " button, or other operations, and then triggering
Shopping APP sends to server and pays request.
Step 22, the reception server pays the payment result that request is returned according to described;
Usually, server can carry out paying amount classification, the payment amount of user account to different user accounts
Higher, user is also higher by the payment that can be used after user account login shopping APP, conversely, user account
Payment amount it is lower, then the user's payment that can use after the user account logs in shopping APP is also fewer.
In order to avoid being mismatched with the payment amount of user account to the payment request that server sends based on user account
Problem, in one embodiment, server receive based on user account send payment request after, first will be right
The payment amount for sending the user account of operation requests is inquired about, when Query Result for the payment amount of user account is more than base
When the amount of money paid required by the payment request that the user account sends, server can perform payment behaviour according to request is paid
Make and return to payment result to shopping APP.And work as the payment amount that Query Result is user account and be less than based on the user account
During the amount of money paid required by the payment request of transmission, server will be unable to complete delivery operation, and return to payment to shopping APP
As a result, when the operating result that payment APP is received pays the gold paid required by request for the payment amount of user account is less than
During volume, in order to complete this time transaction, user may need to lift the payment amount of active user's account by the APP that does shopping, specifically
The mode that lifting pays amount refers to step 13.
Step 23, preserves described payment and asks, and sends payment amount lifting request to server;
Wherein, it is general to pass through to preserve the payment request for sending the SDK SDK for paying request.
It should be noted that preserve described payment by SDK to ask to be only a kind of implementation method, in addition, the application
Embodiment can also be preserved using other modes to paying request, such as, and can also be by slow corresponding to shopping APP
Deposit to preserve the payment request.Do not limited for how to preserve the described request the embodiment of the present application that pays.
User opens and pays the amount lifting page for convenience, and lifts the page to server transmission branch by paying amount
The operation of amount lifting request is paid, in one embodiment, in the payment result that the server that shopping APP is received is returned,
Usually contain and pay the address that amount lifts the page, the address such as can be URL number (Uniform
Resource Locator, URL), i.e., the website links of the amount lifting page are paid for linking, then sent to server and paid
Amount lifting request, can specifically include:The address of the page is lifted according to the operating right included in the payment result, to institute
State server and send operating right lifting request.
It should be noted that the payment amount lifting page is generally the HTML5 pages, and the HTML5 pages are usually logical
Cross HTLM5 containers to load, thus the HTML5 pages are lifted, it is necessary to call HTML5 containers to load the operating right.
In one embodiment, the address of the page is lifted according to the payment amount included in the payment result, to institute
State server and send operating right lifting request, can specifically include:Call HTML containers;By the HTML containers, according to
The URL, sends to the server and pays the access request that amount lifts the page;The server is loaded according to the access
Ask the payment amount lifting page for returning;The page is lifted by the payment amount, is sent to the server and is paid amount
Lifting request.
Step 24, after the payment amount lifting of the user account, the payment for preserving is sent to the server and is asked.
In one embodiment, the HTML5 pages are lifted to server transmission payment amount by paying amount in user
After lifting request, the HTLM5 containers for loading the payment amount lifting HTML5 pages can adjust back reading APP, to cause sending
After paying amount lifting request, terminal can again arouse shopping APP, and show the payment interface of shopping APP, then step 13
Specific implementation can include:The SDK for paying request is preserved in adjusting back the shopping APP by the HTML containers;And lead to
Cross the SDK and the payment request for preserving is sent to server.
When the APP that does shopping calls HTML containers, will set up in shopping APP and the SDK and the HTML of request are paid for sending
The corresponding relation of container, meanwhile, the SDK will send readjustment condition to the HTML containers, to cause meeting the readjustment bar
During part, HTML containers adjust back SDK according to the corresponding relation for pre-building.
Wherein, the readjustment condition, such as can be to work as HTML container receptions to the assigned operation instruction of user input
Triggering, for example, when HTML container receptions to user are by clicking on " submission " button, and the payment amount lifting request being input into is carried
After interdigital order, HTML container receptions can be considered as and meet the readjustment condition to the submission instruction, and HTML containers will be to service
Device sends and pays amount lifting request, while by according to the corresponding relation that pre-sets, adjust back SDK, when in the APP that does shopping for protecting
After the SDK for paying request is deposited by HTML containers readjustment, the payment amount that reading APP can be considered as the user account has been lifted
Into, and the payment for preserving request is sent to server by the SDK, the payment request that now server meeting basis is received,
Again inquiry send the payment request user account payment amount, when server lookup to the account payment amount
After lifting, then server performs delivery operation, and return to payment successful result to shopping APP according to the payment request for receiving.
The embodiment of the present application additionally provides a kind of send-request unit, is used to solve prior art in lifting user account power
Request can be caused to send the problem interrupted in limited time.The concrete structure schematic diagram of the device as shown in fig. 6, including:Request sends the
One unit 31, operating result receiving unit 32, privilege-escalation request transmitting unit 33 and request send second unit 34.
Wherein, request sends first module 31, for sending operation requests to server based on user account;
Operating result receiving unit 32, for the operating result that the reception server is returned according to the operation requests;
Privilege-escalation request transmitting unit 33, for being described when the operating result that operating result receiving unit 32 is received
When the operating right of user account is mismatched with the operation requests, the operation requests are preserved, and send to the server
Operating right lifting request;
Request sends second unit 34, after the operating right lifting of the user account, is sent to the server and protected
The operation requests deposited.
In one embodiment, privilege-escalation request transmitting unit 33, specifically for:Wrapped according in the operating result
The operating right for containing lifts the address of the page, and operating right lifting request is sent to the server.
In one embodiment, the address is uniform resource position mark URL, then privilege-escalation request transmitting unit
33, specifically for:Call HTML HTML containers;By the HTML containers, according to the URL, to the clothes
Business device sends the access request that operating right lifts the page;Load the operating rights that the server is returned according to the access request
The limit lifting page;The page is lifted by the operating right, operating right lifting request is sent to the server.
In one embodiment, privilege-escalation request transmitting unit 33, specifically for:By for sending the operation
The SDK SDK of request preserves the operation requests.
In one embodiment, privilege-escalation request transmitting unit 33, specifically for:Call the HTML containers;Build
Found the corresponding relation of the SDK and the HTML containers;Determine that the HTML containers adjust back the readjustment condition of the SDK.
In one embodiment, request sends second unit 34, specifically for:When the readjustment condition is met, root
According to the corresponding relation, the SDK is adjusted back by the HTML containers;Send what is preserved to the server by the SDK
Operation requests.
The embodiment of the present application additionally provides a kind of payment send-request unit, is used to solve prior art in lifting user's account
Number pay amount when can cause pay request send interrupt problem.The concrete structure schematic diagram of the device is as shown in fig. 7, bag
Include:Pay request and send first module 41, payment result receiving unit 42, payment amount lifting request transmitting unit 43 and branch
Pay request and send second unit 44.
Wherein, pay request and send first module 41, request is paid for being sent to server based on user account;
Payment result receiving unit 42, the payment result that request is returned is paid for the reception server according to described;
Amount lifting request transmitting unit 43 is paid, for being when the payment result that payment result receiving unit 42 is received
When the payment amount of the user account is mismatched with the payment request amount of money to be paid, preserve described payment and ask,
And send payment amount lifting request to the server;
Pay request and send second unit 44, after the payment amount lifting of the user account, sent out to the server
The payment of preservation is sent to ask.
In one embodiment, amount lifting request transmitting unit 43 is paid, specifically for:According to the payment result
In the payment amount that includes lift the address of the page, sent to the server and pay amount lifting request.
In one embodiment, the address is uniform resource position mark URL, then pay amount lifting request and send single
Unit 43, specifically for:Call HTML HTML containers;By the HTML containers, according to the URL, to described
Server sends and pays the access request that amount lifts the page;Load the payment that the server is returned according to the access request
Amount lifts the page;The page is lifted by the payment amount, is sent to the server and is paid amount lifting request.
In one embodiment, amount lifting request transmitting unit 43 is paid, specifically for:By described for sending
The SDK SDK for paying request preserves the payment request.
In one embodiment, amount lifting request transmitting unit 43 is paid, specifically for:The HTML is called to hold
Device;Set up the corresponding relation of the SDK and the HTML containers;Determine that the HTML containers adjust back the readjustment condition of the SDK.
In one embodiment, pay request and send second unit 44, specifically for:When meeting the readjustment condition
When, according to the corresponding relation, the SDK is adjusted back by the HTML containers;Sent to the server by the SDK and protected
The payment request deposited.
Using the embodiment of the present application provide request sending method, when based on user account to server send operation requests
Afterwards, can be the user account operating right and institute server is received according to the operating result that the operation requests are returned
When stating operation requests mismatch, the operation requests are preserved, while operating right lifting request is sent to server, and described
After the lifting of the operating right of user account, the operation requests for preserving are sent from trend server, due in lifting user account
After authority, operation requests can be sent from trend server again, be input into the operation requests again without user, so that
Ensure that the continuity that operation requests send.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.And, the present invention can be used and wherein include the computer of computer usable program code at one or more
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions
The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information Store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, can be used to store the information that can be accessed by a computing device.Defined according to herein, calculated
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of key elements not only include those key elements, but also wrapping
Include other key elements being not expressly set out, or also include for this process, method, commodity or equipment is intrinsic wants
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there is other identical element in process, method, commodity or the equipment of element.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.And, the application can be used to be can use in one or more computers for wherein including computer usable program code and deposited
The shape of the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art
For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent
Replace, improve etc., within the scope of should be included in claims hereof.