CN109949521A - A kind of method of self-help book returning, system, terminal and storage medium - Google Patents

A kind of method of self-help book returning, system, terminal and storage medium Download PDF

Info

Publication number
CN109949521A
CN109949521A CN201910171945.2A CN201910171945A CN109949521A CN 109949521 A CN109949521 A CN 109949521A CN 201910171945 A CN201910171945 A CN 201910171945A CN 109949521 A CN109949521 A CN 109949521A
Authority
CN
China
Prior art keywords
book
code
returning
request
verify data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910171945.2A
Other languages
Chinese (zh)
Inventor
龚得星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ai Bu (wuhan) Technology Co Ltd
Original Assignee
Ai Bu (wuhan) Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ai Bu (wuhan) Technology Co Ltd filed Critical Ai Bu (wuhan) Technology Co Ltd
Priority to CN201910171945.2A priority Critical patent/CN109949521A/en
Publication of CN109949521A publication Critical patent/CN109949521A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to a kind of method of self-help book returning, system, terminal and storage mediums, utilize the interaction of mobile terminal and web terminal, construct a book returning system based on dynamic two-dimension code, user is helped to realize the self-service purpose for giving back books, human and material resources cost is reduced, more and more unattended business scenarios are adapted to.

Description

A kind of method of self-help book returning, system, terminal and storage medium
Technical field
The present invention relates to computer application technology, specifically a kind of method of self-help book returning, system, terminal and Storage medium.
Background technique
Still by the way of manually borrowing, recycling books, there is borrow for current most of libraries or personal study It reads, to give back books slow, the disadvantages of relying on manual operation.
Based on this, for limitation present in above-mentioned status, the invention proposes one kind can be applied to it is unattended Method, system, terminal and the storage medium of the self-help book returning of business scenario.
Summary of the invention
In order to solve above-mentioned problems of the prior art, the present invention, which provides one kind, can be applied to unattended business Method, system, terminal and the storage medium of the self-help book returning of scene.
The technical solution adopted by the present invention to solve the technical problems is:
According to embodiment of the present invention, a kind of method of self-help book returning is provided, is executed by web terminal, comprising:
Verify data is provided;
Instruction is requested according to the also book that verify data receives user's input, and requests instruction to obtain corresponding ask according to also book Ask verifying;
Requests verification is verified, is returned the result, and allows or do not allow the also book of user according to returning the result Request.
In the method for above-mentioned self-help book returning, further includes:
Preset time is set, starts to count as time zero to receive the time of reception of also book request instruction of user's input When;
After timing time reaches preset time, the verify data is updated;
Using updated verify data, the also book request for receiving user's input is executed.
In the method for above-mentioned self-help book returning, the verify data is two dimensional code concatenation character.
In the method for above-mentioned self-help book returning, the detailed process of the verify data update are as follows:
32 code character strings are generated using md5 encryption algorithm;
Spliced the link of configured web terminal and 32 code character strings to obtain updated verify data;
Updated verify data is obtained, and is shown in the service interface of web terminal.
In the method for above-mentioned self-help book returning, the process that requests verification is verified is to the parameter code in requests verification It is verified, specifically:
S1, the uniqueness for verifying code, if be to be used for the first time, if code has been used multiple times, return Error code is obtained, does not allow the also book of user to request, does not enter step S2, if code has uniqueness, which is to close Method parameter enters step in S2;
S2, the timeliness for verifying code show that the code has legitimacy, then if code is less than setting time Return obtains an also book voucher cert, and the also book of user is allowed to request.
According to another implementation of the invention, a kind of method of self-help book returning is provided, is executed by mobile terminal, comprising:
Also book is sent according to the verify data that web terminal provides to request;
Obtain the code parameter in verify data;
Checking request is sent according to code parameter, is allowed to or is not allowed to the instruction of also book request, if allowing, Into subsequent step, if not allowing, verifying is exited;
The cer credential fields of return are obtained from the also book request instruction being allowed to, and according to the two dimensional code to returning book Relevant information to returning book is provided;
It is verified according to the relevant information to returning book, the relevant information to returning book includes that cer voucher and books are compiled Number, if the verifying of cer voucher and book number is legal, also book request is completed, on the contrary then no.
In the method for above-mentioned self-help book returning, the verify data is two dimensional code concatenation character.
Yet another embodiment according to the present invention provides a kind of system of self-help book returning, the system comprises: it is mobile End, web terminal and server-side;
The mobile terminal is sent to the server-side for requesting the also book of user, including for building with web terminal front end The two dimensional code identification module of vertical connection, the also book for obtaining and sending parameter code in verify data link code verifying mould Block, the also book countdown module for showing the also book time, the books two dimensional code for scanning the two dimensional code to returning book identify Module and books for giving back books give back module;
The web terminal, for being requested according to the also book of user, the requests verification channel between foundation and server-side, and The front end services interface of the also book request of the user is provided, there is verify data on the service interface, including be used for clothes The two-dimensional code acquisition module of end acquisition verify data of being engaged in and the two dimensional code for obtaining two-dimensional code acquisition module are shown in front end Two-dimensional code generation module on service interface;
The server-side, for being requested by the verifying channel and mobile terminal interaction data and being carried out to the data of request Verifying, while update is timed to verify data.
Another embodiment according to the present invention, provide a kind of terminal of self-help book returning, including memory, processor with And the computer program that can be run in the memory and on the processor is stored, the processor executes the calculating It realizes when machine program such as the step of any of the above-described the method.
Another embodiment according to the present invention provides a kind of computer readable storage medium, described computer-readable Storage medium is stored with computer program, and such as any of the above-described the method is realized when the computer program is executed by processor The step of.
Compared with prior art, the beneficial effects of the present invention are:
The present invention utilizes mobile terminal and web terminal, constructs a book returning system based on dynamic two-dimension code, and user is helped to realize The self-service purpose for giving back books reduces human and material resources cost, adapts to more and more unattended business scenarios.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples.
Fig. 1 is the flow diagram that web terminal generates also book two dimensional code in the present invention;
Fig. 2 is that server-side generates also book two dimensional code link flow diagram in the present invention;
Fig. 3 is countdown flow diagram in mobile terminal in the present invention;
Fig. 4 is mobile terminal self-help book returning flow diagram in the present invention;
Fig. 5 is system framework schematic diagram in the present invention;
Fig. 6 is the system framework schematic diagram of web terminal and server-side in the present invention;
Fig. 7 is the system framework schematic diagram of mobile terminal in the present invention.
Appended drawing reference is as follows:
1, two dimensional code identification module, 2, also book link code authentication module, 3, also book countdown module, 4, books two dimensional code Identification module, 5, books give back module, 6, two-dimensional code acquisition module, 7, two-dimensional code generation module.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
A kind of method of self-help book returning, is executed by web terminal, comprising:
Verify data is provided;
Instruction is requested according to the also book that verify data receives user's input, and requests instruction to obtain corresponding ask according to also book Ask verifying;
Requests verification is verified, is returned the result, and allows or do not allow the also book of user according to returning the result Request.
When it is implemented, further include:
Preset time is set, starts to count as time zero to receive the time of reception of also book request instruction of user's input When;
After timing time reaches preset time, the verify data is updated;
Using updated verify data, the also book request for receiving user's input is executed.
When it is implemented, the verify data is two dimensional code concatenation character.
When it is implemented, as shown in Fig. 2, the detailed process that the verify data updates are as follows:
32 code character strings are generated using md5 encryption algorithm;
Spliced the link of configured web terminal and 32 code character strings to obtain updated verify data;
Updated verify data is obtained, and is shown in the service interface of web terminal.
When it is implemented, the process that requests verification is verified is to verify to the parameter code in requests verification, have Body are as follows:
S1, the uniqueness for verifying code, if be to be used for the first time, if code has been used multiple times, return Error code is obtained, does not allow the also book of user to request, does not enter step S2, if code has uniqueness, which is to close Method parameter enters step in S2;
S2, the timeliness for verifying code show that the code has legitimacy, then if code is less than setting time Return obtains an also book voucher cert, and the also book of user is allowed to request.
The present invention also provides a kind of methods of self-help book returning, as shown in figure 4, being executed by mobile terminal, comprising:
Also book is sent according to the verify data that web terminal provides to request;
Obtain the code parameter in verify data;
Checking request is sent according to code parameter, is allowed to or is not allowed to the instruction of also book request, if allowing, Into subsequent step, if not allowing, verifying is exited;
The cer credential fields of return are obtained from the also book request instruction being allowed to, and according to the two dimensional code to returning book Relevant information to returning book is provided;
It is verified according to the relevant information to returning book, the relevant information to returning book includes that cer voucher and books are compiled Number, if the verifying of cer voucher and book number is legal, also book request is completed, on the contrary then no.
In the method for above-mentioned self-help book returning, the verify data is two dimensional code concatenation character.
The present invention also provides a kind of systems of self-help book returning, as shown in Figures 5 to 7, the system comprises: mobile terminal, Web terminal and server-side;
The mobile terminal is sent to the server-side for requesting the also book of user, including for building with web terminal front end The two dimensional code identification module 1 of vertical connection, the also book for obtaining and sending parameter code in verify data link code verifying mould Block 2, the also book countdown module 3 for showing the also book time, the books two dimensional code for scanning the two dimensional code to returning book are known Other module 4 and the books for giving back books give back module 5;
The web terminal, for being requested according to the also book of user, the requests verification channel between foundation and server-side, and The front end services interface of the also book request of the user is provided, there is verify data on the service interface, including be used for clothes The two-dimensional code acquisition module 6 of end acquisition verify data of being engaged in and the two dimensional code for obtaining two-dimensional code acquisition module are shown in front end Two-dimensional code generation module 7 on service interface;
The server-side, for being requested by the verifying channel and mobile terminal interaction data and being carried out to the data of request Verifying, while update is timed to verify data.
On the basis of the method and system that aforementioned present invention provides, more specifically, process as shown in Figure 1, in web terminal side, The web terminal page can be developed using VUE front end frame, and web front-end is obtained by two-dimensional code acquisition module 6 to server-side transmission Two dimensional code linking request is taken, server-side returns to the json data of two dimensional code link, this concatenation character string mainly includes following Two parts:
1, small routine can recognize link part, and it is fixed word which, which mainly carries out relevant configuration on small routine backstage, Symbol string part;
2, small routine can recognize argument section, and the link mainly by generating a timeliness (in such as 3 minutes at random from the background Regular length character string effectively).
Does server-side splice two parts character string, and can use following form: small routine links part? code=ginseng Number part.
The character string spliced link is returned to web front-end by server-side in the form of json.
Web terminal passes through the two dimensional code chain that two-dimensional code generation module 7 transmits server-side using v-qrcode two dimensional code frame Character is connect, img object picture is generated using canvas, is shown in front end page.User uses two dimensional code in order to prevent Picture long-range also book mainly takes following measures in this programme:
1, front end page uses timer, such as every minor tick 30S to send primary request, obtains new two dimensional code link brush New web page;
2, the code parameter that two dimensional code chains not only has timeliness, and has number limitation, can only use one It is secondary, it directly reports an error when using for the second time, returns to corresponding error code;
3, two dimensional code generates the page, only just can be carried out login using administrator's account, prevents the two dimensional code page long-range Access.
In user side, the two dimensional code identification module 1 of mobile terminal, such as small routine entrance, scanning also book two dimension can be used Code enters small routine operation interface.Code authentication module is linked by also book when user enters in small routine operation interface to get Code value is sent as parameter to server-side and is requested by the parameter code also in the link of book two dimensional code, small routine, and server-side obtains School inspection is carried out to code value and to it, the timeliness and uniqueness of code is verified, is broadly divided into following two step:
Step 1: the uniqueness of server-side verifying code, if be to be used for the first time, if code is repeatedly made With then returning to the error code of front end one, do not enter step two.If code have uniqueness, the code be legal parameters into Enter in step 2.
Step 2: the timeliness of server-side verifying code shows this if code is less than server-side setting time Code has legitimacy, and server-side returns to the also book voucher cert of front end one.
Small routine gets returning the result for server-side, can be proceeded as follows according to return value:
Operation one, small routine end get error code, directly exit the current self-help book returning page and jump to homepage;
Operation two, small routine end get also book credential fields, then rest on current self-help book returning interface, allow user into Row also book operates.
More specifically, process as shown in Figure 3 is increased by one in small routine by also book countdown module 3 and set arrived Timing module, such as show that the module mainly has following two effect in the position on the lower side placed in the middle at interface:
Act on one, since the also book voucher that server-side returns has timeliness, it is ensured that user makes in also book interface operation Voucher is effective.
Effect two, certain customers may accidentally sweep also book two dimensional code, and setting also book countdown can automatically exit from also book circle User operation time is saved in face, reduces manpower and material resources cost.
The books two dimensional code to be given back is scanned using books two dimensional code identification module 4 at self-help book returning interface, it is automatic to obtain The books relevant information given back, the module mainly have following advantage:
1, the book information given back is merely able to scan the acquisition of books two dimensional code by camera, can not be filled out manually It writes, user is helped to improve also book efficiency;
2, increase restriction for user's also book, prevent user from situations such as long-range also book or few also book occur;
3, user oneself, which can independently increase, gives back book information, does not need administrator and operates, realize user nobody Self-help book returning business.
After user obtains book information by also book interface scanning books two dimensional code, can be given back by books module 5 into Row also book operates, and gives back that steps are as follows:
1, also books list shown in book interface is obtained, its unique two dimensional code character string is subjected to md5 encryption, more It is separated between books using comma;
2, it is sent also using the books character string got in step 1 and also book voucher cert as parameter to server-side Book request;
3, the also book request that server-side parsing front end is sent, judges the legitimacy of institute's returning book, and processing result is returned To front end applications.Front end applications do following processing according to returning the result:
One, server-side returns to also book successfully as a result, front end applications prompt user also book success, and empties also book list;
Two, server end return also book mistake as a result, the wrong books id that front end applications are returned according to server-side, prompt Also book fails and directly exits self-help book returning interface, jumps to using homepage, terminates self-help book returning operation.
The present invention also provides a kind of terminal of self-help book returning, including memory, processor and it is stored in the storage In device and the computer program that can run on the processor, the processor are realized as above when executing the computer program The step of stating any one the method.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage has calculating Machine program is realized when the computer program is executed by processor such as the step of any of the above-described the method.
The basic principles, main features and advantages of the present invention have been shown and described above.The technology of the industry Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the above embodiments and description only describe this The principle of invention, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its Equivalent thereof.

Claims (10)

1. a kind of method of self-help book returning, which is characterized in that executed by web terminal, comprising:
Verify data is provided;
Instruction is requested according to the also book that verify data receives user's input, and requests instruction to obtain corresponding request according to also book and tests Card;
Requests verification is verified, is returned the result, and according to return the result allow or do not allow the also book of user to request.
2. a kind of method of self-help book returning according to claim 1, which is characterized in that further include:
Preset time is set, starts timing as time zero to receive the time of reception of also book request instruction of user's input;
After timing time reaches preset time, the verify data is updated;
Using updated verify data, the also book request for receiving user's input is executed.
3. a kind of method of self-help book returning according to claim 1 or 2, it is characterised in that: the verify data is two dimension Code concatenation character.
4. a kind of method of self-help book returning according to claim 2, which is characterized in that the verify data updates specific Process are as follows:
32 code character strings are generated using md5 encryption algorithm;
Spliced the link of configured web terminal and 32 code character strings to obtain updated verify data;
Updated verify data is obtained, and is shown in the service interface of web terminal.
5. a kind of method of self-help book returning according to claim 1, it is characterised in that: the process that requests verification is verified To be verified to the parameter code in requests verification, specifically:
S1, the uniqueness for verifying code, if be to be used for the first time, if code has been used multiple times, return is obtained Error code does not allow the also book of user to request, does not enter step S2, if code has uniqueness, which is legal ginseng Number enters step in S2;
S2, the timeliness for verifying code show that the code has legitimacy, then return if code is less than setting time An also book voucher cert is obtained, the also book of user is allowed to request.
6. a kind of method of self-help book returning, which is characterized in that executed by mobile terminal, comprising:
Also book is sent according to the verify data that web terminal provides to request;
Obtain the code parameter in verify data;
Checking request is sent according to code parameter, the instruction for being allowed to or not being allowed to also book request enters if allowing Subsequent step exits verifying if not allowing;
The cer credential fields of return are obtained from the also book request instruction being allowed to, and according to the two dimensional code offer to returning book Relevant information to returning book;
It is verified according to the relevant information to returning book, the relevant information to returning book includes cer voucher and book number, if The verifying of cer voucher and book number is legal, then also book request is completed, on the contrary then no.
7. a kind of method of self-help book returning according to claim 6, it is characterised in that: the verify data is two dimensional code chain Connect character.
8. a kind of system of self-help book returning, which is characterized in that the system comprises: mobile terminal, web terminal and server-side;
The mobile terminal for the request of the also book of user to be sent to the server-side, including is used for and web terminal front end is established and connected The two dimensional code identification module connect, the also book for obtaining and sending parameter code in verify data link code authentication module, use In display also the also book countdown module of book time, for scan the books two dimensional code identification module of the two dimensional code to returning book with And the books for giving back books give back module;
The web terminal establishes the requests verification channel between server-side, and provide for requesting according to the also book of user The front end services interface of the also book request of the user, has verify data on the service interface, including for server-side It obtains the two-dimensional code acquisition module of verify data and the two dimensional code for obtaining two-dimensional code acquisition module is shown in front end services Two-dimensional code generation module on interface;
The server-side, for being requested by the verifying channel with mobile terminal interaction data and being tested the data of request Card, while update is timed to verify data.
9. a kind of terminal of self-help book returning, including memory, processor and storage are in the memory and can be at the place The computer program run on reason device, it is characterised in that: realized when the processor executes the computer program as right is wanted The step of seeking any one of 1 to 5 the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In: it is realized when the computer program is executed by processor such as the step of any one of claim 1 to 5 the method.
CN201910171945.2A 2019-03-07 2019-03-07 A kind of method of self-help book returning, system, terminal and storage medium Pending CN109949521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910171945.2A CN109949521A (en) 2019-03-07 2019-03-07 A kind of method of self-help book returning, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910171945.2A CN109949521A (en) 2019-03-07 2019-03-07 A kind of method of self-help book returning, system, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN109949521A true CN109949521A (en) 2019-06-28

Family

ID=67009207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910171945.2A Pending CN109949521A (en) 2019-03-07 2019-03-07 A kind of method of self-help book returning, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109949521A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110517120A (en) * 2019-09-05 2019-11-29 王志杰 Lease class product gives back method, terminal device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105678924A (en) * 2015-12-31 2016-06-15 梁振华 Automatic book borrowing, returning and exchanging method and automatic book borrowing system
CN106327718A (en) * 2016-08-31 2017-01-11 苏州嘉图软件有限公司 Self-service book-returning method
CN107395581A (en) * 2017-07-11 2017-11-24 上海众人网络安全技术有限公司 Quick Response Code generates and read method, device, system, equipment and storage medium
CN107733835A (en) * 2016-08-11 2018-02-23 凡学(上海)教育科技有限公司 A kind of self-service borrowing-returning books system in library based on O2O and method
CN109389386A (en) * 2018-09-13 2019-02-26 阿里巴巴集团控股有限公司 A kind of barcode scanning control method, apparatus and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105678924A (en) * 2015-12-31 2016-06-15 梁振华 Automatic book borrowing, returning and exchanging method and automatic book borrowing system
CN107733835A (en) * 2016-08-11 2018-02-23 凡学(上海)教育科技有限公司 A kind of self-service borrowing-returning books system in library based on O2O and method
CN106327718A (en) * 2016-08-31 2017-01-11 苏州嘉图软件有限公司 Self-service book-returning method
CN107395581A (en) * 2017-07-11 2017-11-24 上海众人网络安全技术有限公司 Quick Response Code generates and read method, device, system, equipment and storage medium
CN109389386A (en) * 2018-09-13 2019-02-26 阿里巴巴集团控股有限公司 A kind of barcode scanning control method, apparatus and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110517120A (en) * 2019-09-05 2019-11-29 王志杰 Lease class product gives back method, terminal device and storage medium

Similar Documents

Publication Publication Date Title
EP3370384B1 (en) Two-dimensional code processing method and apparatus
CN111538596B (en) Resource processing method, device, computer equipment and storage medium
CN105162604B (en) A kind of verification method, server and system based on characteristic image identification
CN104820944A (en) Method and system for bank self-service terminal authentication, and device
CN105119722A (en) Identity verification method, equipment and system
CN112508566A (en) Alliance chain-based cross-chain private transaction method and equipment
KR20190065340A (en) Method and apparatus for service implementation
CN108989291A (en) Login validation method, the verification method of automated log on, server-side and client
CN111010363B (en) Information authentication method and system, authentication module and user terminal
CN105635036B (en) A kind of verification system and method for electronic ID card
CN110113366A (en) A kind of detection method and device of CSRF loophole
CN111143207A (en) Method for checking model training notice and training log at mobile terminal
CN109710535B (en) Service verification method and system for voice conversation platform
CN103095666B (en) Third-party application processing method and device
CN104348613B (en) User verification method, apparatus and system
CN110022350A (en) The treating method and apparatus of client registers and registration information
CN109840394A (en) Photographic intelligence authorization method, device, system, server and storage medium
CN113037505B (en) Method and system for realizing trusted Web application
CN109949521A (en) A kind of method of self-help book returning, system, terminal and storage medium
CN110766388B (en) Virtual card generation method and system and electronic equipment
CN113852639A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN106230702A (en) Identity information verification method, Apparatus and system
CN109241712A (en) A kind of method and apparatus for accessing file system
CN105306603B (en) Network verifying system and method, client, server
CN109977643A (en) User authen method, device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190628