Summary of the invention
In view of this, the embodiment of the present application provides the method for processing interception under a kind of credit contract system.The application is same
When be related to a kind of monitoring processing unit under credit contract system, a kind of electronic equipment and a kind of computer-readable storage medium
Matter, to solve technological deficiency existing in the prior art.
The application provides the method for processing interception under a kind of credit contract system, comprising:
Hair about side is monitored based on the long connection pre-established to participate in connecing in credit Project Process for what project event was submitted
Mouth call request, wherein the call parameters in the interface call request include by sending out about letter of the side based on the project event
With the about single corresponding hair of the hair generated after the signing of contract template about odd numbers;
The about single information of inquiry hair corresponding with the hair about odd numbers in the database, and obtain and the project event pair
The sign-up page template answered;
Page rendering is carried out based on the about single information of hair and the sign-up page template;
The request of inviting that the sign-up page that rendering obtains about should just participate in the credit project as invitation is answered to described
About side sends and shows, to respond the interface call request.
Optionally, the interface call request is submitted in the following way by the hair about side:
The interface call request is submitted based on the scanning Ying Yuefang credit sign code shown;Wherein, the interface calls
Call parameters in request include by the encrypted characters string of the scanning credit sign code acquisition and by the Fa Yuefangji
The about single corresponding hair of the hair generated after the credit contract template signing of target service about odd numbers.
Optionally, the long connection is established in the following way:
Receive the long connection foundation request sent out and about just sent;
It establishes the first long connection about square with the hair of event monitoring processing module and establishes request to respond long connect;
Start the monitoring processing for the event that the event monitoring processing module carries out under credit contract system.
Optionally, described monitored based on the long connection pre-established sends out about square participate in credit Project Process for project thing
Before the interface call request step that part is submitted executes, further includes:
It detects and sends out whether the described first long connection about just established disconnects with described;
If so, re-establishing the second long connection about square with the hair;
If it is not, then executing described connect in monitoring hair about side's participation credit Project Process based on the length pre-established is directed to item
The step of interface call request that mesh event is submitted.
Optionally, described that sign-up page that rendering obtains about should just be participated in the inviting for credit project and asked as invitation
Ask to it is described about should just send and show step execute after, further includes:
It keeps duration to reach preset duration threshold value in the connection of the described first long connection or the second long connection, then disconnects
Described first long connection or the second long connection.
Optionally, the starting event monitoring processing module carries out the monitoring processing of the event under credit contract system
Include:
Whether there is the hair about side to participate in connecing in credit Project Process for what project event was submitted with predeterminated frequency poll
Mouth call request, and the predeterminated frequency is not more than frequency threshold.
Optionally, described monitored based on the long connection pre-established sends out about square participate in credit Project Process for project thing
After the interface call request step that part is submitted executes, the sign-up page that rendering is obtained about should just participate in institute as invitation
State credit project invite request to it is described about should just send and show step execute before, further includes:
The credit accounts page that parsing obtains the Ying Yuefang is carried out to the encrypted characters string in the call parameters
Information;
Correspondingly, the sign-up page that rendering is obtained about should just participate in the inviting for credit project as invitation and ask
Ask to it is described about should just send and show include:
The sign-up page that rendering obtains about should just be participated in inviting for the credit project as invitation to request to institute
Stating about should just send and in the credit accounts page presentation of the Ying Yuefang.
Optionally, described to include: based on the about single information of hair and sign-up page template progress page rendering
Obtain multiple module informations to be presented in the sign-up page template;
Multiple component renderers are determined according to the multiple module information to be presented;
The multiple component to be presented is rendered respectively using the multiple component renderer, generates multiple page pieces
Section;
The multiple page fragments are combined to complete the rendering to the sign-up page template.
Optionally, described that sign-up page that rendering obtains about should just be participated in the inviting for credit project and asked as invitation
Ask to it is described about should just send and show step execute after, further includes:
That detects that the Ying Yuefang acts on the sign-up page executes movement;
In the case where execution movement acts for signing confirmation, based on the label for sending out the about single and described Ying Yuefang
About result generates credit contract corresponding with the project event.
The application also provides the monitoring processing unit under a kind of credit contract system, comprising:
Event monitoring module is configured as being monitored based on the long connection pre-established and sends out about square participate in credit Project Process
The interface call request submitted for project event, wherein the call parameters in the interface call request include about square by sending out
The about single corresponding hair of the hair generated after credit contract template signing based on the project event about odd numbers;
Message processing module is configured as inquiring the about single information of hair corresponding with the hair about odd numbers in the database, with
And obtain sign-up page template corresponding with the project event;
Page rendering module is configured as carrying out page rendering based on the about single information of hair and the sign-up page template;
Page sending module is configured as the sign-up page that rendering obtains about should just participate in the credit item as invitation
Purpose invites request and about just should send and show to described, to respond the interface call request.
Optionally, the event monitoring module, is also configured to
The hair about side is monitored based on the long connection pre-established to submit based on the scanning Ying Yuefang credit sign code shown
The interface call request;Wherein, the call parameters in the interface call request include by scanning the credit sign code
The encrypted characters string of acquisition and the hair by generating after credit contract template signing of the hair about side based on target service are about single
Corresponding hair about odd numbers.
Optionally, the monitoring processing unit under the credit contract system, further includes:
Request receiving module is configured as receiving the long connection foundation request sent out and about just sent;
First long connection establishment module is configured as establishing the event monitoring processing module first long company about square with the hair
It connects to respond the long connection and establish request;
SM service monitoring processing module is configured as starting under the event monitoring processing module progress credit contract system
The monitoring of event is handled.
Optionally, the monitoring processing unit under the credit contract system, further includes:
Detection module is configured as detection with described and sends out whether the described first long connection about just established disconnects;
If the implementing result of the detection module is yes, the second long connection establishment module of operation;
The second long connection establishment module is configured as re-establishing the second long connection about square with the hair;
If the implementing result of the detection module be it is no, run the event monitoring module.
Optionally, the SM service monitoring processing module is also configured to
Whether there is the hair about side to participate in connecing in credit Project Process for what project event was submitted with predeterminated frequency poll
Mouth call request, and the predeterminated frequency is not more than frequency threshold.
Optionally, the page rendering module includes:
Module information acquisition submodule is configured as obtaining multiple component letters to be presented in the sign-up page template
Breath;
Component renderer determines submodule, is configured as determining multiple component wash with watercolours according to the multiple module information to be presented
Contaminate device;
Submodule is rendered, is configured as respectively carrying out the multiple component to be presented using the multiple component renderer
Rendering, generates multiple page fragments;
Submodule is combined, is configured as being combined the multiple page fragments to complete to the sign-up page template
Rendering.
Optionally, the monitoring processing unit under the credit contract system, further includes:
Detection module, is configured as detecting that the Ying Yuefang acts on the sign-up page executes movement;
Credit contract generation module is configured as being based on institute in the case where the execution is acted and acted for signing confirmation
State the signing result generation credit contract corresponding with the project event for sending out the about single and described Ying Yuefang.
Present invention also provides a kind of electronic equipment, comprising:
Memory and processor;
For the memory for storing computer executable instructions, the processor is executable for executing the computer
Instruction:
Hair about side is monitored based on the long connection pre-established to participate in connecing in credit Project Process for what project event was submitted
Mouth call request, wherein the call parameters in the interface call request include by sending out about letter of the side based on the project event
With the about single corresponding hair of the hair generated after the signing of contract template about odd numbers;
The about single information of inquiry hair corresponding with the hair about odd numbers in the database, and obtain and the project event pair
The sign-up page template answered;
Page rendering is carried out based on the about single information of hair and the sign-up page template;
The request of inviting that the sign-up page that rendering obtains about should just participate in the credit project as invitation is answered to described
About side sends and shows, to respond the interface call request.
Present invention also provides a kind of computer readable storage mediums, are stored with computer instruction, and the instruction is processed
The step of device realizes the method for processing interception under the credit contract system when executing.
Compared with prior art, the application has the advantages that
Method for processing interception under a kind of credit contract system provided by the present application, comprising: based on the long company pre-established
Connect the interface call request monitored and submitted in hair about side's participation credit Project Process for project event, wherein the interface tune
It include by sending out the hair generated after about credit contract template signing of the side based on the project event about with the call parameters in request
Single corresponding hair about odd numbers;The inquiry about single information of hair corresponding with the hair about odd numbers in the database, and acquisition with it is described
The corresponding sign-up page template of project event;Page rendering is carried out based on the about single information of hair and the sign-up page template;By wash with watercolours
The sign-up page for contaminating acquisition, which about should just participate in inviting for the credit project as invitation, to be requested about just to send and open up to described
Show, to respond the interface call request.
Method for processing interception under credit contract system provided by the present application passes through the long connection carry out event pre-established
Monitoring, it is ensured that the real-time of information transmission improves event handling efficiency, while can reduce in message transmitting procedure and causing
Resource loss.In addition, using the about single information of hair as the partial content of sign-up page to the corresponding signing page of the project event
The sign-up page that face die plate carries out rendering acquisition is sent to the user, about can singly be believed by the hair for including in the sign-up page
Breath realizes the limitation of corresponding about square behavior of honouring an agreement, and then advantageously reduces to should the wind do not honoured an agreement by regulation of about user Ying Yuehou
Danger.
Specific embodiment
Many details are explained in the following description in order to fully understand the application.But the application can be with
Much it is different from other way described herein to implement, those skilled in the art can be without prejudice to the application intension the case where
Under do similar popularization, therefore the application is not limited by following public specific implementation.
The term used in this specification one or more embodiment be only merely for for the purpose of describing particular embodiments,
It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and appended claims
The "an" of singular used in book, " described " and "the" are also intended to including most forms, unless context is clearly
Indicate other meanings.It is also understood that term "and/or" used in this specification one or more embodiment refers to and includes
One or more associated any or all of project listed may combine.
It will be appreciated that though may be retouched using term first, second etc. in this specification one or more embodiment
Various information are stated, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other
It opens.For example, first can also be referred to as second, class in the case where not departing from this specification one or more scope of embodiments
As, second can also be referred to as first.Depending on context, word as used in this " if " can be construed to
" ... when " or " when ... " or " in response to determination ".
Firstly, the vocabulary of terms being related to one or more embodiments of the invention explains.
Credit contract: refer to that the participant of two sides or two sides or more are reached based on use of the credit to a certain service
" power ", " duty ", the common recognition of " benefit ", also, each participant reached common understanding can all retain a common recognition data reached;Than
Books are carried out by means of common recognition also based on credit as reached between library and user, multiple users just participate under credit constraint
The common recognition that public good project is reached goes back wealth or by means of going back object alternatively, reaching under the premise of with credit as security between user and borrowing
The common recognition of product;
Wherein, " power " defines the right that one party is enjoyed, it is understood that the behavior honoured an agreement is needed for another party, such as
It is returned in the way of agreement and has borrowed books, participation to make a promise the public good project participated in, returned and borrowed money wealth or borrowed article
Deng;
" duty " defines delinquent party and needs the liability for breach of contract that undertakes, for example, record in the credit of delinquent party event of default,
It reduces the credit scoring of delinquent party or delinquent party is imposed a fine etc.;
" benefit " defines the interests or reward that the side of honouring an agreement can obtain, for example successfully returns the user's meeting for the books borrowed
The credit scoring that itself is promoted by this time credit behavior of checking out can be obtained according to the user for arranging successfully to participate in public good project
Fiduciary reward, successfully give back borrowed money wealth or borrowed the user of article can obtain delinquent party compensate the amount of money
Deng.
Long connection: multiple data packets can be continuously transmitted in a connection by referring to, during connecting holding, if do not counted
It is sent according to packet, both sides is needed to send out link detecting packet.
This application provides the method for processing interception under a kind of credit contract system.The application also provides a kind of credit contract
Monitoring processing unit under system, a kind of electronic equipment and a kind of computer readable storage medium, below in conjunction with this Shen
The attached drawing for the embodiment that please be provided is described in detail one by one.
Method for processing interception embodiment under a kind of credit contract system provided by the present application is as follows:
Referring to attached drawing 1, it illustrates the streams of the method for processing interception under a kind of credit contract system provided in this embodiment
Cheng Tu, including step 102 is to step 108.
Step 102, hair about side is monitored based on the long connection pre-established to participate in credit Project Process for project event
The interface call request of submission.
Wherein, the call parameters in the interface call request include being closed by sending out about credit of the side based on the project event
The about single corresponding hair of the hair about generated after template signing about odd numbers.
In hair about processing method under the credit contract system provided by the embodiments of the present application, the credit project includes
Credit checks out project or credit public good project, and different from traditional service mode, the present embodiment checks out project and letter in credit
With having incorporated credit contract in public good project, based on the building of credit contract to should about between user and hair about side credit system,
Corresponding business processing is completed based on constructed credit system.
The credit project of checking out refers to based on the credit information of user, meets books in the credit information of user and borrows and goes back machine
Structure setting check out condition when, by establishing credit contract between books rental and return mechanism and user, and then user can realize and exempt from cash pledge
Exempt from borrower's card to check out, books rental and return mechanism is updated the credit information of user according to whether user honours an agreement on time.In credit
In the project that checks out, hair about side is books rental and return mechanism, and Ying Yuefang is user, specifically, the user is the user that checks out, the figure
Book rental and return mechanism may include library, bookstore or other for should about user carry out books borrow also mechanism.
Credit public good project refers to based on the credit information of user, meets public welfare activities hair in the credit information of user
When playing the public welfare activities participation condition being just arranged, by establishing credit contract, user between public welfare activities initiator and user
Public welfare activities are participated in, public welfare activities initiator is updated the credit information of user according to whether user honours an agreement on time.Believing
With in public good project, hair about side is public welfare activities initiator, and Ying Yuefang is the user for participating in public welfare activities.
Credit contract is to be assured based on user using its credit, by computer system, acquires the credit row of user
To form a set of credit value standard, and with this credit standard, instead of currency or marketable securities or material object, serve as guarantee fund or
Person's guaranty, so that the user and another user establish a kind of technical solution of contract.It, can using credit value as assuring
By replace in some original fields using the general universal equivalent such as currency, marketable securities in a manner of serve as guarantee fund and mortgage
The mode of object.
Hair about side is movable promoter, and waits for about user initiating to be added and movable inviting request to other.If wait answer
About user is requested and adheres to activity receiving to invite, then described to should user be about Ying Yuefang, hair about side initiating
Before inviting request, first can for it is described activity generate contract template carry out signature generate hair it is about single, wait answering to other
About user initiates to be added movable while invite request, the hair is about single and be sent to should about user.Pass through credit
Contract treat should about user and the side Fa Yue establish connection.
Specifically, the credit account information of Ying Yuefang is stored in credit platform, and including in credit account information should be about
Side detailed credit information, hair about Fang Yuying about just establish credit contract after, according to Ying Yuefang specifically honour an agreement situation to it
Credit information is updated, i.e., in the case where Ying Yuefang honours an agreement on time, credit platform can be encouraged according to the contract in credit contract
Encourage the corresponding about side of clause and carry out fidelity bonus, about should just to increase credit score, should about Fang Wei honours an agreement on time in the case where, letter
Credit punishment, i.e. the part letter of deduction Ying Yuefang can be carried out according to the corresponding about side of the contract penalty clause in credit contract with platform
With integral.
Long connection, which refers to, can continuously transmit multiple data packets in a connection, during connecting holding, if do not had
Data packet is sent, and both sides is needed to send out link detecting packet.Using long connection, after the completion of a webpage is opened, visitor
The transmission control protocol connection that Hyper text transfer data are used for transmission between family end and server does not turn off, if client is again
The secondary webpage accessed on this server, will continue to use this established connection.
Specifically, the long connection is established in the following way:
Receive the long connection foundation request sent out and about just sent;
It establishes the first long connection about square with the hair of event monitoring processing module and establishes request to respond long connect;
Start the monitoring processing for the event that the event monitoring processing module carries out under credit contract system.
Wherein, whether the event monitoring processing module has the hair about side to participate in credit project mistake with predeterminated frequency poll
The interface call request submitted in journey for project event, and the predeterminated frequency is not more than frequency threshold.
It is that credit checks out for project by the credit project, the credit hair in project that checks out is just about library, should be about
Side is user, then during sending out about side and the long connection of credit platform foundation, hair about direction credit platform initiation length connection is established
Request, credit platform receive the long connection and establish request, establish event monitoring processing module and send out about square long connection with sound
The long connection is answered to establish request.After hair about side completes primary read-write with the event monitoring processing module, between the two
Connection can't actively close, and subsequent read-write operation will continue to connect using this, and after establishing long connection, credit
Platform starts the event monitoring processing module, it is assumed that the predeterminated frequency is 60s/ times, i.e., the described event monitoring processing module
Monitor whether library passes through the long connection transmission event handling request with 60s/ frequency.
Specifically, the interface call request is submitted in the following way by the hair about side:
The interface call request is submitted based on the scanning Ying Yuefang credit sign code shown;Wherein, the interface calls
Call parameters in request include by the encrypted characters string of the scanning credit sign code acquisition and by the Fa Yuefangji
The about single corresponding hair of the hair generated after the credit contract template signing of target service about odd numbers.
It is still that credit checks out for project by the credit project, it is assumed that the credit checks out the hair about Fang Weitu in project
Book shop, Ying Yuefang are user, and user can carry out book borrowing and reading by the self-service machine that checks out in library, i.e. user is self-service by clicking
The machine of checking out can " checking out " button of touch-control interactive interface check out request to the self-service machine initiation that checks out, self-service check out is borrowed described in machine reception
After book request, the book information in specified books placement region is detected, and the order that checks out is generated according to the book information detected,
Generation checks out after order, and the self-service machine of checking out can prompt user to show credit sign code, specifically, user shows credit sign code
Interface schematic diagram is as shown in Fig. 2, and prompt the user that the credit sign is piled up to the designated identification for being placed in the self-service machine that checks out
Code scanning area carries out barcode scanning, and after barcode scanning success, Xiang Xinyong platform submits the interface call request;Wherein, the interface tune
Include the encrypted characters string obtained by the scanning credit sign code with the call parameters in request and is based on by library
The about single corresponding hair of the hair generated after the credit contract template signing for the business that checks out about odd numbers.
After long connection is established, will not permanent retention connection, it has a retention time, and the specific retention time can basis
Actual needs is set.Therefore, before receiving the event handling request that hair is about just sent, also need judgement and the hair about square
Whether the long connection of first established disconnects, and can specifically be realized by following steps:
It detects and sends out whether the described first long connection about just established disconnects with described;
If so, re-establishing the second long connection about square with the hair;
If it is not, then executing described connect in monitoring hair about side's participation credit Project Process based on the length pre-established is directed to item
The step of interface call request that mesh event is submitted.
Specifically, after detecting that the described first long connection disconnects the second long connection need to be re-established, method for building up is with before
State in embodiment that the first long establishment of connection method is consistent, details are not described herein.
Step 104, the about single information of inquiry hair corresponding with the hair about odd numbers, and acquisition and the item in the database
The corresponding sign-up page template of mesh event.
Sign-up page i.e. should about direction hair about side initiate credit project participate in request after, hair about side scanning described in about should just go out
After the credit sign code shown, it about should just show to described, supply the page about just contracted.In actual application, the signing
The page can be shown at the mobile device terminal interface of Ying Yuefang or the about square terminal interface of hair.Include hair in the sign-up page
About side's hair for carrying out signature generation to contract template in advance is about single, and the hair about may include behavior of specifically honouring an agreement in list
Corresponding credit rewards and punishments rule about can should check that the hair is about single in sign-up page, with choose whether should be about.
Specifically, being still that credit checks out for project by the credit project, it is assumed that the credit checks out the hair in project
About side is library, and Ying Yuefang is user, and before user sends the request that checks out to library, library is sent out to credit platform in advance
Send hair about to apply, the hair about apply involved in business be check out business, and the credit platform is returned with the industry that checks out
Relevant contract template of being engaged in carries out signature, and to generate hair about single, the hair is about single and its corresponding hair about odd numbers stores, together
When library it is the hair is about single and hair about odd numbers information is sent to credit platform and is stored again.
After the event monitoring processing module of credit platform receives the interface call request that the library is sent, institute is obtained
The hair carried in interface call request about odd numbers is stated, is inquired in database and the hair about odd numbers pair according to the hair about odd numbers
The hair answered about single information can further determine that and the hair after library obtains the hair about list according to the content in hair about list
About the business of simple correlation is the business that checks out, then obtains sign-up page template corresponding with the business that checks out.
In addition, if the credit sign code that shows of library scanning user, can obtain in scanning result with the credit mark
The corresponding encrypted characters string of code is known, specifically, the encrypted characters string can be uniform resource locator, by the unified resource
Positioning meets hair about odd numbers as interface call parameters and is sent to credit platform by long connect and is handled.
After the event monitoring processing module of credit platform receives the interface call request that the library is sent, institute is obtained
The encrypted characters string carried in interface call request is stated, and parsing is carried out to the encrypted characters string in the call parameters and is obtained
Obtain the credit accounts page info of the user.
Step 106, page rendering is carried out based on the about single information of hair and the sign-up page template.
In one embodiment provided by the present application, page rendering is carried out based on the about single information of hair and the sign-up page template
It can specifically be realized by following steps:
Obtain multiple module informations to be presented in the sign-up page template;
Multiple component renderers are determined according to the multiple module information to be presented;
The multiple component to be presented is rendered respectively using the multiple component renderer, generates multiple page pieces
Section;
The multiple page fragments are combined to complete the rendering to the sign-up page template.
Still by taking the credit project checks out project for credit as an example, it is assumed that have " 30 days in including in the about single information of hair
Inside also book accumulates credit score ", and include multiple module informations to be presented in sign-up page template, specifically, described wait open up
Show that component may include table, tree, linkage combobox etc..Different components are carried out to render required component renderer difference, because
This, need to determine respectively corresponding component renderer according to different module informations.After determining component renderer, described group is utilized
Part renderer renders module information, generates page fragments, and all components information in the sign-up page is completed
After rendering and generating corresponding page fragments, the multiple page fragments are combined to the signing page that can be obtained after rendering
Face, specifically, the sign-up page that rendering obtains is as shown in Figure 3.
Step 108, the sign-up page that rendering obtains is invited into request as what invitation about should just participate in the credit project
About just it should send and show to described, to respond the interface call request.
After being established due to long connection will not permanent retention connection, it has a retention time, and the specific retention time can
It is set according to actual needs.Therefore, the sign-up page that rendering obtains about should just be participated in into the credit project as invitation
Invite request to it is described about just should send and show after, the link that need to detect the described first long connection or the second long connection is protected
Duration is held, if detecting, the described first long connection or the connection of the second long connection keep duration to reach preset duration threshold value,
Then disconnect the described first long connection or the second long connection.
In one embodiment provided by the present application, if the credit sign code that library scanning user shows, can obtain and sweep
Encrypted characters string corresponding with the credit sign code in result is retouched, specifically, the encrypted characters string can be unified resource
The uniform resource locator is closed hair about odd numbers as interface call parameters and is sent to credit platform by long connection by finger URL
It is handled.
After the event monitoring processing module of credit platform receives the interface call request that the library is sent, institute is obtained
The encrypted characters string carried in interface call request is stated, and parsing is carried out to the encrypted characters string in the call parameters and is obtained
Obtain the credit accounts page info of the user.
Correspondingly, using rendering obtain sign-up page as invite about should just participate in the credit project invite request to
It is described about just to send and show that the sign-up page that will render acquisition about should just participate in the credit project as invitation
Invite request about should just send and to described in the credit accounts page presentation of the Ying Yuefang.
In another embodiment provided by the present application, about should just it be participated in using the sign-up page that rendering obtains as invitation described
Credit project invite request to it is described about should just send and show step execute after, can also carry out following operation:
That detects that the Ying Yuefang acts on the sign-up page executes movement;
In the case where execution movement acts for signing confirmation, based on the label for sending out the about single and described Ying Yuefang
About result generates credit contract corresponding with the project event.
Specifically, still rendering sign-up page such as Fig. 3 institute of acquisition so that the credit project checks out project for credit as an example
Show, if user checks the hair about list and approves content of the hair about in list, and clicks the virtual key of sign-up page " I will add
Enter ", then the execution can be acted and be determined as confirming signing movement, the signature result about single to the hair generates letter according to user
With contract and the storage of checking out.
In addition, approving the content in hair about list, and click the virtual key of sign-up page if user checks that the hair is about single
The execution can then be acted and be determined as confirming signing movement, and acted based on the execution and generate user's by " I will be added "
Credit score acquisition instruction.
It can also include the condition that checks out of user in the hair about list in library, in the case where the user confirms and is added,
The credit score of user is obtained again and judges whether the credit score meets the condition that checks out of library's setting, if the letter of user
It is more than or equal to the integral threshold of library's setting with integral, then can successfully checks out;Conversely, then checking out unsuccessfully.
In addition to this, if user checks that the hair is about single, approve the content in hair about list, and click the virtual of sign-up page
The execution can then be acted and be determined as confirming signing movement, can continue to judge whether the user opens by key " I will be added "
Individual credit system is led to;Since the credit project that checks out is associated with the credit information of user by credit contract, it uses
The precondition that family can successfully check out is to open individual credit system, if not open-minded, will lead to and checks out unsuccessfully, and system can be to
It is described to about user send and open the prompt information of individual credit system;If open-minded, can successfully check out.
In addition to situation above-mentioned, if user checks that the hair is about single, the content in hair about list is approved, and click sign-up page
Virtual key " I will be added ", then can by the execution act be determined as confirm signing movement, based on the execution movement life
At geographical location information acquisition instruction, the geographical location information of the books and working as the user are obtained according to described instruction
Front position information calculates the user at a distance from inter-library, if the user is less than or equal in advance at a distance from inter-library
If distance threshold, then can successfully check out;Conversely, then checking out unsuccessfully.
Method for processing interception under credit contract system provided by the present application passes through the long connection carry out event pre-established
Monitoring, it is ensured that the real-time of information transmission improves event handling efficiency, while can reduce in message transmitting procedure and causing
Resource loss.In addition, using the about single information of hair as the partial content of sign-up page to the corresponding signing page of the project event
The sign-up page that face die plate carries out rendering acquisition is sent to the user, about can singly be believed by the hair for including in the sign-up page
Breath realizes the limitation of corresponding about square behavior of honouring an agreement, and then advantageously reduces to should the wind do not honoured an agreement by regulation of about user Ying Yuehou
Danger.
Fig. 4 shows the method for processing interception under the credit contract system of one embodiment of this specification, the credit contract body
Method for processing interception under system is to check out project to the credit project as credit, and the credit hair in project that checks out is about square
To be described for library, including step 402 is to step 414.
Step 402, it receives the long connection that library is sent and establishes request.
Step 404, it establishes event monitoring processing module and the long of the library connects.
Step 406, credit is participated in library described in predeterminated frequency poll to check out to go out based on scanning user in Project Process
The interface call request that the credit sign code shown is submitted.
Specifically, the interface call parameters in the interface call request include being obtained by scanning the credit sign code
Encrypted characters string and answered by the hair about single pair that generates after credit contract template signing of the hair about side based on the business of checking out
Hair about odd numbers.
Step 408, inquiry is corresponding with the hair about odd numbers in the database sends out about single information, and obtains and borrow with described
The corresponding sign-up page template of book industry business.
Step 410, page rendering is carried out based on the about single information of hair and the sign-up page template.
Step 412, sign-up page that rendering obtains the credit the inviting for project that check out is participated in as invitation user to ask
It asks to the user and sends and show, to respond the interface call request.
Step 414, in the case where detecting user's confirmation participation, based on the signing for sending out the about single and described user
As a result corresponding with the business that checks out credit is generated to check out contract.
In the embodiment of the present application, it is based on long connection communication link, library can receive the push of credit platform at any time
Business datum improves the availability of long connection service.And long connection can save the behaviour that more TCP is established and closed
Make, in the case where library frequently initiates business processing request to credit platform, carries out business datum by establishing long connection
Transmission, advantageously reduces the wasting of resources, improve data transfer efficiency.
Monitoring processing device embodiment under a kind of credit contract system provided by the present application is as follows:
In the above-described embodiment, the method for processing interception under a kind of credit contract system is provided, it is corresponding,
Present invention also provides the monitoring processing units under a kind of credit contract system, are illustrated with reference to the accompanying drawing.
Referring to attached drawing 5, it illustrates the monitoring processing device embodiments under a kind of credit contract system provided by the present application
Schematic diagram.
Since Installation practice is substantially similar to embodiment of the method, so being described relatively simple, relevant part please join
The corresponding explanation of the embodiment of the method for above-mentioned offer is provided.Installation practice described below is only schematical.
The application provides the monitoring processing unit under a kind of credit contract system, comprising:
Event monitoring module 502 is configured as participating in credit project mistake based on the long connection monitoring hair about side pre-established
The interface call request submitted in journey for project event, wherein the call parameters in the interface call request include by sending out
The about single corresponding hair of the hair about odd numbers about generated after credit contract template signing of the side based on the project event;
Message processing module 504 is configured as inquiring the about single information of hair corresponding with the hair about odd numbers in the database,
And obtain sign-up page template corresponding with the project event;
Page rendering module 506 is configured as carrying out page rendering based on the about single information of hair and the sign-up page template;
Page sending module 508 is configured as the sign-up page that rendering obtains about should just participate in the letter as invitation
It requests about just to send and show to described with inviting for project, to respond the interface call request.
Optionally, the event monitoring module, is also configured to
The hair about side is monitored based on the long connection pre-established to submit based on the scanning Ying Yuefang credit sign code shown
The interface call request;Wherein, the call parameters in the interface call request include by scanning the credit sign code
The encrypted characters string of acquisition and the hair by generating after credit contract template signing of the hair about side based on target service are about single
Corresponding hair about odd numbers.
Optionally, the monitoring processing unit under the credit contract system, further includes:
Request receiving module is configured as receiving the long connection foundation request sent out and about just sent;
First long connection establishment module is configured as establishing the event monitoring processing module first long company about square with the hair
It connects to respond the long connection and establish request;
SM service monitoring processing module is configured as starting under the event monitoring processing module progress credit contract system
The monitoring of event is handled.
Optionally, the monitoring processing unit under the credit contract system, further includes:
Detection module is configured as detection with described and sends out whether the described first long connection about just established disconnects;
If the implementing result of the detection module is yes, the second long connection establishment module of operation;
The second long connection establishment module is configured as re-establishing the second long connection about square with the hair;
If the implementing result of the detection module be it is no, run the event monitoring module.
Optionally, the monitoring processing unit under the credit contract system, further includes:
Long connection disconnects module, is configured as keeping duration in the connection of the described first long connection or the second long connection
Reach preset duration threshold value, then disconnects the described first long connection or the second long connection.
Optionally, the SM service monitoring processing module is also configured to
Whether there is the hair about side to participate in connecing in credit Project Process for what project event was submitted with predeterminated frequency poll
Mouth call request, and the predeterminated frequency is not more than frequency threshold.
Optionally, the monitoring processing unit under the credit contract system, further includes:
Parsing module, being configured as carrying out the encrypted characters string in the call parameters should be about described in parsing acquisition
The credit accounts page info of side;
Correspondingly, the page sending module, is also configured to
The sign-up page that rendering obtains about should just be participated in inviting for the credit project as invitation to request to institute
Stating about should just send and in the credit accounts page presentation of the Ying Yuefang.
Optionally, the page rendering module includes:
Module information acquisition submodule is configured as obtaining multiple component letters to be presented in the sign-up page template
Breath;
Component renderer determines submodule, is configured as determining multiple component wash with watercolours according to the multiple module information to be presented
Contaminate device;
Submodule is rendered, is configured as respectively carrying out the multiple component to be presented using the multiple component renderer
Rendering, generates multiple page fragments;
Submodule is combined, is configured as being combined the multiple page fragments to complete to the sign-up page template
Rendering.
Optionally, the monitoring processing unit under the credit contract system, further includes:
Detection module, is configured as detecting that the Ying Yuefang acts on the sign-up page executes movement;
Credit contract generation module is configured as being based on institute in the case where the execution is acted and acted for signing confirmation
State the signing result generation credit contract corresponding with the project event for sending out the about single and described Ying Yuefang.
A kind of electronic equipment embodiment provided by the present application is as follows:
Fig. 6 shows the structural block diagram of the electronic equipment 600 according to one embodiment of this specification.The electronic equipment 600
Component includes but is not limited to memory 610 and processor 620.Processor 620 is connected with memory 610 by bus 630, number
According to library 650 for saving data.
Electronic equipment 600 further includes access device 640, access device 640 enable electronic equipment 600 via one or
Multiple networks 660 communicate.The example of these networks includes public switched telephone network (PSTN), local area network (LAN), wide area network
(WAN), the combination of the communication network of personal area network (PAN) or such as internet.Access device 640 may include wired or wireless
One or more of any kind of network interface (for example, network interface card (NIC)), such as IEEE802.11 wireless local area
Net (WLAN) wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) connect
Mouth, cellular network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of this specification, other unshowned portions in the above-mentioned component and Fig. 6 of electronic equipment 600
Part can also be connected to each other, such as pass through bus.It should be appreciated that electronic devices structure block diagram shown in fig. 6 merely for the sake of
Exemplary purpose, rather than the limitation to this specification range.Those skilled in the art can according to need, and increases or replaces it
His component.
Electronic equipment 600 can be any kind of static or mobile electronic device, including mobile computer or mobile electricity
Sub- equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement
Phone (for example, smart phone), wearable electronic equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting
Dynamic equipment, or the stationary electronic devices of such as desktop computer or PC.Electronic equipment 600 can also be mobile or state type
Server.
Wherein, processor 620 is for executing following computer executable instructions:
Hair about side is monitored based on the long connection pre-established to participate in connecing in credit Project Process for what project event was submitted
Mouth call request, wherein the call parameters in the interface call request include by sending out about letter of the side based on the project event
With the about single corresponding hair of the hair generated after the signing of contract template about odd numbers;
The about single information of inquiry hair corresponding with the hair about odd numbers in the database, and obtain and the project event pair
The sign-up page template answered;
Page rendering is carried out based on the about single information of hair and the sign-up page template;
The request of inviting that the sign-up page that rendering obtains about should just participate in the credit project as invitation is answered to described
About side sends and shows, to respond the interface call request.
Optionally, the interface call request is submitted in the following way by the hair about side:
The interface call request is submitted based on the scanning Ying Yuefang credit sign code shown;Wherein, the interface calls
Call parameters in request include by the encrypted characters string of the scanning credit sign code acquisition and by the Fa Yuefangji
The about single corresponding hair of the hair generated after the credit contract template signing of target service about odd numbers.
Optionally, the long connection is established in the following way:
Receive the long connection foundation request sent out and about just sent;
It establishes the first long connection about square with the hair of event monitoring processing module and establishes request to respond long connect;
Start the monitoring processing for the event that the event monitoring processing module carries out under credit contract system.
Optionally, described monitored based on the long connection pre-established sends out about square participate in credit Project Process for project thing
Before the interface call request step that part is submitted executes, further includes:
It detects and sends out whether the described first long connection about just established disconnects with described;
If so, re-establishing the second long connection about square with the hair;
If it is not, then executing described connect in monitoring hair about side's participation credit Project Process based on the length pre-established is directed to item
The step of interface call request that mesh event is submitted.
Optionally, described that sign-up page that rendering obtains about should just be participated in the inviting for credit project and asked as invitation
Ask to it is described about should just send and show step execute after, further includes:
It keeps duration to reach preset duration threshold value in the connection of the described first long connection or the second long connection, then disconnects
Described first long connection or the second long connection.
Optionally, the starting event monitoring processing module carries out the monitoring processing of the event under credit contract system
Include:
Whether there is the hair about side to participate in connecing in credit Project Process for what project event was submitted with predeterminated frequency poll
Mouth call request, and the predeterminated frequency is not more than frequency threshold.
Optionally, described monitored based on the long connection pre-established sends out about square participate in credit Project Process for project thing
After the interface call request step that part is submitted executes, the sign-up page that rendering is obtained about should just participate in institute as invitation
State credit project invite request to it is described about should just send and show step execute before, further includes:
The credit accounts page that parsing obtains the Ying Yuefang is carried out to the encrypted characters string in the call parameters
Information;
Correspondingly, the sign-up page that rendering is obtained about should just participate in the inviting for credit project as invitation and ask
Ask to it is described about should just send and show include:
The sign-up page that rendering obtains about should just be participated in inviting for the credit project as invitation to request to institute
Stating about should just send and in the credit accounts page presentation of the Ying Yuefang.
Optionally, described to include: based on the about single information of hair and sign-up page template progress page rendering
Obtain multiple module informations to be presented in the sign-up page template;
Multiple component renderers are determined according to the multiple module information to be presented;
The multiple component to be presented is rendered respectively using the multiple component renderer, generates multiple page pieces
Section;
The multiple page fragments are combined to complete the rendering to the sign-up page template.
Optionally, described that sign-up page that rendering obtains about should just be participated in the inviting for credit project and asked as invitation
Ask to it is described about should just send and show step execute after, further includes:
That detects that the Ying Yuefang acts on the sign-up page executes movement;
In the case where execution movement acts for signing confirmation, based on the label for sending out the about single and described Ying Yuefang
About result generates credit contract corresponding with the project event.
The exemplary scheme of the above-mentioned a kind of electronic equipment for the present embodiment.It should be noted that the skill of the electronic equipment
The technical solution of method for processing interception under art scheme and above-mentioned credit contract system belongs to same design, the skill of electronic equipment
The detail content that art scheme is not described in detail may refer to the technical side of the method for processing interception under above-mentioned credit contract system
The description of case.
A kind of computer readable storage medium embodiment provided by the present application is as follows:
One embodiment of the application also provides a kind of computer readable storage medium, is stored with computer instruction, the instruction
It is used for when being executed by processor:
Hair about side is monitored based on the long connection pre-established to participate in connecing in credit Project Process for what project event was submitted
Mouth call request, wherein the call parameters in the interface call request include by sending out about letter of the side based on the project event
With the about single corresponding hair of the hair generated after the signing of contract template about odd numbers;
The about single information of inquiry hair corresponding with the hair about odd numbers in the database, and obtain and the project event pair
The sign-up page template answered;
Page rendering is carried out based on the about single information of hair and the sign-up page template;
The request of inviting that the sign-up page that rendering obtains about should just participate in the credit project as invitation is answered to described
About side sends and shows, to respond the interface call request.
Optionally, the interface call request is submitted in the following way by the hair about side:
The interface call request is submitted based on the scanning Ying Yuefang credit sign code shown;Wherein, the interface calls
Call parameters in request include by the encrypted characters string of the scanning credit sign code acquisition and by the Fa Yuefangji
The about single corresponding hair of the hair generated after the credit contract template signing of target service about odd numbers.
Optionally, the long connection is established in the following way:
Receive the long connection foundation request sent out and about just sent;
It establishes the first long connection about square with the hair of event monitoring processing module and establishes request to respond long connect;
Start the monitoring processing for the event that the event monitoring processing module carries out under credit contract system.
Optionally, described monitored based on the long connection pre-established sends out about square participate in credit Project Process for project thing
Before the interface call request step that part is submitted executes, further includes:
It detects and sends out whether the described first long connection about just established disconnects with described;
If so, re-establishing the second long connection about square with the hair;
If it is not, then executing described connect in monitoring hair about side's participation credit Project Process based on the length pre-established is directed to item
The step of interface call request that mesh event is submitted.
Optionally, described that sign-up page that rendering obtains about should just be participated in the inviting for credit project and asked as invitation
Ask to it is described about should just send and show step execute after, further includes:
It keeps duration to reach preset duration threshold value in the connection of the described first long connection or the second long connection, then disconnects
Described first long connection or the second long connection.
Optionally, the starting event monitoring processing module carries out the monitoring processing of the event under credit contract system
Include:
Whether there is the hair about side to participate in connecing in credit Project Process for what project event was submitted with predeterminated frequency poll
Mouth call request, and the predeterminated frequency is not more than frequency threshold.
Optionally, described monitored based on the long connection pre-established sends out about square participate in credit Project Process for project thing
After the interface call request step that part is submitted executes, the sign-up page that rendering is obtained about should just participate in institute as invitation
State credit project invite request to it is described about should just send and show step execute before, further includes:
The credit accounts page that parsing obtains the Ying Yuefang is carried out to the encrypted characters string in the call parameters
Information;
Correspondingly, the sign-up page that rendering is obtained about should just participate in the inviting for credit project as invitation and ask
Ask to it is described about should just send and show include:
The sign-up page that rendering obtains about should just be participated in inviting for the credit project as invitation to request to institute
Stating about should just send and in the credit accounts page presentation of the Ying Yuefang.
Optionally, described to include: based on the about single information of hair and sign-up page template progress page rendering
Obtain multiple module informations to be presented in the sign-up page template;
Multiple component renderers are determined according to the multiple module information to be presented;
The multiple component to be presented is rendered respectively using the multiple component renderer, generates multiple page pieces
Section;
The multiple page fragments are combined to complete the rendering to the sign-up page template.
Optionally, described that sign-up page that rendering obtains about should just be participated in the inviting for credit project and asked as invitation
Ask to it is described about should just send and show step execute after, further includes:
That detects that the Ying Yuefang acts on the sign-up page executes movement;
In the case where execution movement acts for signing confirmation, based on the label for sending out the about single and described Ying Yuefang
About result generates credit contract corresponding with the project event.
A kind of exemplary scheme of above-mentioned computer readable storage medium for the present embodiment.It should be noted that this is deposited
The technical solution of method for processing interception under the technical solution of storage media and above-mentioned credit contract system belongs to same design, deposits
The detail content that the technical solution of storage media is not described in detail may refer to the monitoring processing side under above-mentioned credit contract system
The description of the technical solution of method.
It is above-mentioned that the application specific embodiment is described.Other embodiments are within the scope of the appended claims.
In some cases, the movement recorded in detail in the claims or step can be executed according to the sequence being different from embodiment
And desired result still may be implemented.In addition, process depicted in the drawing not necessarily require the particular order shown or
Person's consecutive order is just able to achieve desired result.In some embodiments, multitasking and parallel processing are also possible
Or it may be advantageous.
The computer instruction includes computer program code, the computer program code can for source code form,
Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute
State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code
Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory),
Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior
Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts
Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Shen
It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
The application preferred embodiment disclosed above is only intended to help to illustrate the application.There is no detailed for alternative embodiment
All details are described, are not limited the invention to the specific embodiments described.Obviously, according to the content of this specification,
It can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to preferably explain the application
Principle and practical application, so that skilled artisan be enable to better understand and utilize the application.The application is only
It is limited by claims and its full scope and equivalent.