hows the renting system works here "Technical field
The invention belongs to the field of communications, and in particular relates to an umbrella rental method, system and rental terminal.
Background technique
Suddenly encountering rain outside without an umbrella is a experience that many people have experienced. If a device is provided in a public place to carry out an umbrella rental service, it can solve the problem of rain caused by rain without an umbrella, but now there are some The method of renting umbrellas is not very practical. It is often not found when renting an umbrella, so it is not possible to provide users with flexible umbrella rental services.
Summary of the invention
An object of the present invention is to provide a method and system for renting an umbrella, and a rental terminal, which aims to solve the problem that the prior art does not provide a technology for renting an umbrella from an umbrella rental terminal, and thus cannot provide a flexible umbrella rental service to the user.
In a first aspect, the present invention provides a method for renting an umbrella, the method comprising:
The mobile terminal receives an instruction to rent the first umbrella;
The mobile terminal interacts with the umbrella rental terminal;
The mobile terminal sends a second rental umbrella instruction to the cloud server, and the cloud server determines whether the state of the umbrella rental terminal and the user who sends the second rental umbrella instruction have the right to rent an umbrella; the second rental umbrella instruction carries The identification number of the umbrella rental terminal;
If the umbrella rental terminal has an umbrella for renting and the user has the right, the cloud server sends an instruction to the third rental umbrella to the umbrella rental terminal corresponding to the identification number, and the umbrella of the rental in the umbrella rental terminal is changed. The status can be transmitted or indicated; the outgoing or indicated umbrella can be specified by the cloud server or by the umbrella rental terminal.
In a second aspect, the present invention provides an umbrella rental system for the built-in mobile terminal, the system comprising:
a first receiving module, configured to receive an instruction for renting an umbrella;
a second receiving module, configured to receive an identification number of the umbrella rental terminal;
a first sending module, configured to send, by the cloud server, a second rental umbrella instruction, to determine, by the cloud server, a status of the umbrella rental terminal and a user who sends the second rental umbrella instruction, whether the user has the right to rent an umbrella; And the user has the right to send the third rental umbrella instruction to the umbrella rental terminal corresponding to the identification number by the cloud server, so that the umbrella of the rental is turned into a usable state by the umbrella rental terminal or Instructing, the second rental umbrella instruction carries the identification number of the umbrella rental terminal.
In a third aspect, the present invention provides a method for renting an umbrella, the method comprising:
The cloud server receives an instruction of the second renting umbrella sent by the mobile terminal, where the second rental umbrella instruction carries the identification number of the umbrella rental terminal;
The cloud server obtains the identification number of the umbrella rental terminal according to the instruction of the second renting umbrella, and determines the state of the umbrella rental terminal corresponding to the identification number;
The cloud server determines whether the user who sends the second rental umbrella instruction has the right to rent an umbrella;
If the umbrella rental terminal has an umbrella for renting and the user has the right, the cloud server sends a third rental umbrella instruction to the umbrella rental terminal corresponding to the identification number, and the umbrella that is rented in the umbrella rental terminal is changed. Passed out or indicated in the usable state;
The umbrella that is transmitted or indicated may be specified by the cloud server or by the umbrella rental terminal;
The instruction that the cloud server sends the third renting umbrella to the umbrella rental terminal corresponding to the identification number specifically includes:
The cloud server generates an instruction for renting an umbrella according to the state of the umbrella rental terminal, and the instruction of the third renting umbrella may carry or not carry the identification number of the umbrella for renting;
The cloud server sends an instruction to the third rental umbrella to the umbrella rental terminal corresponding to the identification number.
In a fourth aspect, the present invention provides an umbrella rental system for the built-in cloud server, the system comprising:
a third receiving module, configured to receive an instruction of a second renting umbrella sent by the mobile terminal, where the second renting umbrella instruction carries an identification number of the umbrella rental terminal;
a first acquiring module, configured to acquire an identification number of the umbrella rental terminal according to the instruction of the second renting umbrella;
a first determining module, configured to determine whether a user who sends an instruction to rent the second umbrella has the right to rent an umbrella;
a first verification module, configured to check, when the first judging module determines that the user has the right, the lease state of the umbrella rental terminal corresponding to the identification number;
a third sending module, configured to: if the first verification module checks that the umbrella rental terminal has an umbrella for renting, send an instruction to the third rental umbrella to the umbrella rental terminal corresponding to the identification number, so as to be used by the umbrella rental terminal The sub-lally umbrella becomes a usable state or an indication;
The third sending module specifically includes:
a first generating module, configured to generate an instruction for renting an umbrella according to the state of the umbrella rental terminal, where the instruction of the third renting umbrella carries or does not carry an identification number of the umbrella available for renting;
And a fourth sending module, configured to send, by the umbrella rental terminal corresponding to the identification number, an instruction to rent a third umbrella.
In a fifth aspect, the present invention provides a method for renting an umbrella, the method comprising:
The umbrella rental terminal receives an instruction of the third rental umbrella sent by the cloud server, where the umbrella rental terminal is an umbrella rental terminal corresponding to the identification number of the umbrella rental terminal carried in the instruction of the second rental umbrella sent by the mobile terminal to the cloud server, The third rental umbrella instruction is that the cloud server determines whether the user who sends the second rental umbrella instruction has the right to rent an umbrella; if there is permission, the cloud server rents the umbrella rental terminal corresponding to the identification number. Status confirmation
The cloud server generates, according to the state of the umbrella rental terminal, and sends the identifier to the umbrella rental terminal corresponding to the identification number, and the instruction of the third renting umbrella may carry or not carry the identification number of the umbrella for renting;
The umbrella rental terminal turns the umbrella of the rental into a usable state according to the instruction of the third rental umbrella;
The umbrella rental terminal sends the processing result to the cloud server.
In a sixth aspect, the present invention provides an umbrella rental terminal, and the umbrella rental terminal system includes:
a fifth receiving module, configured to receive an instruction of a third rental umbrella sent by the cloud server, where the umbrella rental terminal is an identifier corresponding to the umbrella rental terminal carried in the instruction of the second rental umbrella sent by the mobile terminal to the cloud server The umbrella rental terminal, the third rental umbrella instruction is that the cloud server determines whether the user who sends the second rental umbrella instruction has the right to rent an umbrella; if there is permission, the cloud server rents the umbrella corresponding to the identification number. Whether the terminal is rentable or not; if the umbrella rental terminal has an umbrella for renting, the cloud server sends a rental request to the state of the umbrella rental terminal, and the third rental umbrella instruction may or may not carry an umbrella for renting Identification number;
a first control module, configured to send the rented umbrella into a usable state according to an instruction of the third renting umbrella;
The eighth sending module is configured to send the processing result to the cloud server.
In the present invention, since the mobile terminal receives the first instruction to borrow the umbrella, and then receives the identification number of the umbrella rental terminal, and sends a second instruction to borrow the umbrella to the cloud server, the cloud server controls the umbrella rental terminal to transmit the umbrella. Therefore, when the user is outside, the umbrella can be rented from the umbrella rental terminal, thereby providing the user with flexible umbrella rental service.
DRAWINGS
1 is a flow chart of a method for renting an umbrella according to Embodiment 1 of the present invention.
FIG. 2 is a schematic structural diagram of an umbrella rental system according to Embodiment 2 of the present invention.
FIG. 3 is a schematic structural diagram of an umbrella rental system according to Embodiment 3 of the present invention.
4 is a schematic structural diagram of an umbrella rental terminal according to Embodiment 4 of the present invention.
Detailed ways
The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to explain the technical solutions described in the present invention, the following description will be made by way of specific embodiments.
Embodiment 1:
Referring to FIG. 1, a method for renting an umbrella according to Embodiment 1 of the present invention includes the following steps:
S101. The mobile terminal receives an instruction to borrow the first umbrella;
S102. The mobile terminal interacts with the umbrella rental terminal.
In the first embodiment of the present invention, before S102, the method may further include the following steps:
The mobile terminal prompts the user to input the identification number of the umbrella rental terminal.
In the first embodiment of the present invention, S102 may specifically be:
The mobile terminal scans the identification two-dimensional code displayed by the umbrella rental terminal, or the mobile terminal receives the identification number of the umbrella rental terminal manually input by the user, or the mobile terminal and the umbrella rental terminal sense, or the mobile terminal rents the terminal by positioning the nearby umbrella And displaying a list of umbrella rental terminals, and then receiving, by the mobile terminal, an identification number corresponding to the umbrella rental terminal selected by the user.
S103. The mobile terminal sends a second rental umbrella instruction to the cloud server, where the cloud server determines, by the cloud server, the status of the umbrella rental terminal and the user who sends the second rental umbrella instruction whether the user has the right to rent an umbrella; the second rental umbrella instruction Carrying the identification number of the umbrella rental terminal;
S104. The cloud server receives an instruction of the second borrowed umbrella sent by the mobile terminal.
S105. The cloud server acquires an identification number of the umbrella rental terminal according to the second borrowing umbrella instruction;
S106. The cloud server sends a third borrowing umbrella instruction to the umbrella rental terminal corresponding to the identification number, and the umbrella that is rented in the umbrella rental terminal is turned into a usable state to be transmitted or indicated;
In the first embodiment of the present invention, before S106, the method further includes the following steps:
The cloud server determines whether the user who sends the second instruction to borrow the umbrella has the right to rent an umbrella; for example, whether there is a deposit in the account, a deposit indicates permission, or if the user has rented the umbrella and has not returned, it indicates that there is no authority;
If there is permission, the cloud server checks the available umbrella in the umbrella rental terminal corresponding to the identification number. If the umbrella rental terminal does not have an umbrella for renting, the user is prompted to borrow without an umbrella, and the rental process ends. If the umbrella rental terminal has an umbrella for renting, execute S106;
If there is no permission, the lease process is terminated, and the cloud server sends a prompt to the mobile terminal; if the permission is because the user has rented the umbrella and has not returned, the cloud server sends a message to the mobile terminal prompting the user to return the umbrella that the user has rented first. Then end the rental process.
S107. The umbrella rental terminal corresponding to the identity identification number receives an instruction of the third borrowed umbrella sent by the cloud server.
S108. The umbrella rental terminal turns the umbrella that is rented in the umbrella rental terminal into a usable state according to the instruction of the third borrowing umbrella;
S109. The umbrella rental terminal sends the processing result to the cloud server.
In the first embodiment of the present invention, S109 may specifically include the following steps:
The umbrella rental terminal determines whether the umbrella of the rental is successfully transmitted or indicated, and if so, sends the information about the successful rental to the cloud server; if the umbrella is not available, the umbrella is not available. Or indicating that the umbrella rental terminal sends the lease failure information to the cloud server;
S110. The cloud server receives the processing result sent by the umbrella rental terminal.
S111, the cloud server performs corresponding processing according to the processing result;
In the first embodiment of the present invention, S111 may specifically be:
The cloud server records information such as the identification number and borrowing time of the umbrella rented by the user.
S112. The cloud server sends the processing result to the mobile terminal.
S113. The mobile terminal receives a processing result sent by the cloud server.
S114. The mobile terminal prompts the processing result.
For example, information such as the identification number of the borrowed umbrella, the borrowing time, and the like.
In the first embodiment of the present invention, S106 may specifically be:
The cloud server generates an instruction for renting an umbrella according to the state of the umbrella rental terminal, and the instruction of the third renting umbrella may carry or not carry the identification number of the umbrella for renting;
The cloud server sends an instruction to the third rental umbrella to the umbrella rental terminal corresponding to the identification number.
Then, correspondingly, S108 may specifically include the following steps:
The umbrella rental terminal queries the state of the umbrella rental terminal according to the instruction of the third rental umbrella;
If there is no umbrella that meets the requirements, the umbrella rental terminal sends the information of the umbrella that does not meet the requirements to the cloud server, and then the cloud server sends the information of the umbrella that does not meet the requirements to the mobile terminal;
If there is an umbrella in a normal state, the umbrella rental terminal turns the required umbrella into a usable state to be transmitted or indicated.
In the first embodiment of the present invention, S106 may specifically include the following steps:
The cloud server generates a third instruction to borrow an umbrella;
The cloud server sends a third instruction to borrow an umbrella to the umbrella rental terminal corresponding to the identification number.
Then, correspondingly, S108 may specifically include the following steps:
The umbrella rental terminal queries the rentable state of the umbrella rental terminal according to the instruction of the third rental umbrella;
If the state of the umbrella rental terminal is rentable, the umbrella rental terminal turns the umbrella of the rental into a usable state to be transmitted or indicated;
If the status of the umbrella rental terminal is abnormal, the umbrella rental terminal sends the information of the stateless normal umbrella to the cloud server;
In the first embodiment of the present invention, the mobile terminal receives the first borrowing umbrella instruction, then receives the identification number of the umbrella rental terminal, and sends a second borrowing umbrella instruction to the cloud server to control the umbrella rental terminal transmission by the cloud server. Take out an umbrella. Therefore, when the user is outside, the umbrella can be rented from the umbrella rental terminal, thereby providing the user with flexible umbrella rental service.
Embodiment 2:
Referring to FIG. 2, a second embodiment of the present invention provides an umbrella rental system, where the system is used to be built in a mobile terminal, and the system includes:
The first receiving module 11 is configured to receive an instruction to borrow the first umbrella;
The second receiving module 12 is configured to receive an identification number of the umbrella rental terminal;
The first sending module 13 is configured to send a second rental umbrella instruction to the cloud server, to send, by the cloud server, an instruction for renting an umbrella to the umbrella rental terminal corresponding to the identification number, so that the umbrella rental terminal will The rented umbrella becomes outgoing or instructed, and the second rental umbrella instruction carries the identification number of the umbrella rental terminal.
The first prompting module 14 is configured to prompt the user to input an identification number of the umbrella rental terminal.
In the second embodiment of the present invention, the second receiving module is specifically configured to:
By scanning the identification QR code displayed by the umbrella rental terminal or receiving the identification number of the umbrella rental terminal manually input by the user, or the mobile terminal and the umbrella rental terminal sensing,
Alternatively, by locating the nearby umbrella rental terminal and displaying the umbrella rental terminal list, the mobile terminal receives the identification number corresponding to the umbrella rental terminal selected by the user.
Embodiment 3:
Referring to FIG. 3, a third embodiment of the present invention provides an umbrella rental system, which is used to be built in a cloud server, and the system includes:
The third receiving module 21 is configured to receive an instruction of the second renting umbrella sent by the mobile terminal, where the instruction of the second renting umbrella carries the identification number of the umbrella rental terminal;
The first obtaining module 22 is configured to obtain an identification number of the umbrella rental terminal according to the instruction of the second renting umbrella;
The third sending module 23 is configured to send an instruction for the third renting umbrella to the umbrella rental terminal corresponding to the identification number, so that the umbrella rental terminal turns the rented umbrella into a usable state to be transmitted or indicated;
The fourth receiving module 24 is configured to receive a request sent by the umbrella rental terminal to report the status of the umbrella rented by the user;
In the third embodiment of the present invention, the system further includes:
a first determining module, configured to determine whether a user who sends an instruction to rent the second umbrella has the right to rent an umbrella;
a first verification module, configured to check, when the first judging module determines that the user has the right, the lease state of the umbrella rental terminal corresponding to the identification number;
a second prompting module, configured to: if the verification module checks that the umbrella rental terminal has no umbrella for renting, prompting the user to borrow without an umbrella;
The third sending module is further configured to be used by the third sending module, if the first verification module checks that the umbrella rental terminal has an umbrella for renting, and sends an instruction for renting an umbrella to the umbrella rental terminal corresponding to the identification number, The umbrella that was rented by the umbrella rental terminal is turned into a usable state to be transmitted or instructed;
a fifth sending module, configured to send a prompt to the mobile terminal if the first determining module determines that there is no right, and obtain the right according to the specified process;
In the third embodiment of the present invention, the third sending module specifically includes:
a first generating module, configured to generate an instruction for renting an umbrella according to the state of the umbrella rental terminal, where the instruction of the third renting umbrella carries or does not carry an identification number of the umbrella available for renting;
And a fourth sending module, configured to send, by the umbrella rental terminal corresponding to the identification number, an instruction to rent a third umbrella.
In the third embodiment of the present invention, the third sending module specifically includes:
a second generating module, configured to generate a third rental umbrella instruction;
The fifth sending module is configured to send an instruction for the third renting umbrella to the umbrella rental terminal corresponding to the identity number.
In the third embodiment of the present invention, the system further includes:
a sixth sending module, configured to send a prompt for order processing timeout to the mobile terminal if the cloud server does not receive the processing result sent by the umbrella rental terminal within a preset time;
a fourth receiving module, configured to receive a request sent by the umbrella rental terminal to report the status of the umbrella rented by the user;
a second verification module, configured to check whether the umbrella rented by the user is still in the umbrella rental terminal;
The seventh sending module is configured to send a rental failure prompt to the mobile terminal if the second verification module checks that the umbrella rented by the user is still in the umbrella rental terminal; otherwise, send a rental success prompt to the mobile terminal.
Embodiment 4:
Referring to FIG. 4, an embodiment of the present invention provides an umbrella rental terminal, and the umbrella rental terminal system includes:
The fifth receiving module 31 is configured to receive an instruction of the third renting umbrella sent by the cloud server, where the umbrella rental terminal is an identifier of the umbrella rental terminal carried in the instruction of the second renting umbrella sent by the mobile terminal to the cloud server. Umbrella rental terminal;
The first control module 32 is configured to change the rented umbrella into a usable state according to the instruction of the third renting umbrella;
The eighth sending module 33 is configured to send the processing result to the cloud server.
In the fourth embodiment of the present invention, the ninth sending module specifically includes:
a second judging module, configured to determine whether the umbrella that is rented is successfully turned into a usable state to be transmitted or indicated;
The ninth sending module is configured to send the information about the successful rental to the cloud server if the second judging module judges that the umbrella of the rental is turned into a usable state, or sends the information to the cloud server; if the umbrella is not successfully unlocked, the cloud server is sent to the cloud server. Send a message that the lease failed.
In the fourth embodiment of the present invention, the first control module specifically includes:
a second query module, configured to query, according to an instruction of the third renting umbrella, an umbrella state corresponding to the identification number of the umbrella;
a second control module, configured to control, when the second query module queries the state of the umbrella corresponding to the identification number of the umbrella, to change the umbrella corresponding to the identification number of the umbrella to a usable state to be transmitted or indicated;
a third query module, configured to automatically query other umbrellas with normal status if the second query module queries the state of the umbrella corresponding to the identification number of the umbrella;
The tenth sending module is configured to: if the third query module does not query the umbrella with other normal status, send the information of the stateless umbrella to the cloud server;
And a third control module, configured to control, when the third query module queries the umbrella with other normal status, to control the other state-normal umbrella to become a usable state to be transmitted or indicated.
In the fourth embodiment of the present invention, the first control module specifically includes:
a fourth query module, configured to query an umbrella available for renting in the umbrella rental terminal according to the instruction of the third rental umbrella;
The eleventh sending module is configured to: if the fourth query module queries the umbrella that does not meet the requirement, send the information of the umbrella that does not meet the requirement to the cloud server;
And a fourth control module, configured to control, when the fourth query module queries the umbrella with a normal state, to control to transmit or indicate the eligible umbrella into a usable state.
One of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments may be completed by a program instructing related hardware, and the program may be stored in a computer readable storage medium, the storage. The medium may specifically be a ROM/RAM, a magnetic disk, an optical disk, or the like.
The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope."