Disclosure of Invention
The invention aims to provide a method and a system for leasing a shared charger, aiming at the defects in the background art, the problem of insufficient electricity of a mobile phone with long waiting time of a client can be solved by setting the shared charger at each business outlet, a bank software use scene can be created, the frequency of using the bank software by the client is increased, bank virtual currency use scenes such as small beans and the like are set up, the service handling time and the service handling business of the client at a bank are analyzed through the use duration data of the client, the related bank business is pushed, and the service quality of the bank is improved.
In order to achieve the purpose, the invention adopts the following technical scheme:
a leasing method of a shared charger baby comprises the following steps:
step A: setting a two-dimension code for the shared charger, scanning the two-dimension code for the shared charger, and generating lease information to trigger an allocation mechanism;
and B: preparing a power bank to be used based on an allocation mechanism and generating preparation information;
and C: generating loan confirmation information according to the preparation information;
step D: replying and feeding back the confirmed lending information, generating use permission information, binding the ID of the to-be-used charge pal with lending time according to the use permission information, and popping up the to-be-used charge pal.
Preferably, in the step B, preparing the charge pal to be used based on the allocation mechanism and generating the preparation information includes:
acquiring IDs, current electric quantity and available time of all the charge pal;
binding the current electric quantity and the available duration with the ID of the charge pal, and generating a temporary set;
and traversing the temporary set, acquiring the ID of the power bank with the largest current electric quantity and the longest available time in the temporary set, and preparing the power bank as the power bank to be used.
Preferably, in the step a, the generating of the rental information includes:
acquiring identity information of a user;
packaging the identity information and the lease request to generate the lease information;
in the step B, generating the preparation information includes:
and binding the lease information and the ID of the charger ready to be used to generate the preparation information.
Preferably, when the user returns the power bank, the return time is established, and the ID of the returned power bank is acquired;
inquiring the lending time of the charge pal according to the ID of the charge pal, and acquiring the service life based on the return time and the lending time;
generating payment information according to the using duration, wherein the payment information comprises a first payment mode and a second payment mode, the first payment mode comprises a combined payment mode using bank virtual currency and real currency, and the second payment mode comprises a single payment mode using real currency.
Preferably, the banking business is divided into a plurality of grades according to the handling time;
acquiring the identity information of the user according to the returned ID of the charger baby;
and pushing the banking business of the corresponding grade to the user according to the service life.
The utility model provides a sharing precious lease system that charges which characterized in that: the system executes a leasing method of a shared charger baby, and comprises a mobile terminal, a shared charger baby terminal and a server;
the shared charging terminal is provided with a shared charger two-dimensional code, and is used for receiving lease information sent by the mobile terminal, triggering a distribution mechanism, preparing a charger to be used based on the distribution mechanism, generating preparation information and sending the preparation information to the server;
the shared charging terminal is further used for receiving the use permission information sent by the server, binding the ID of the to-be-used charging treasure with lending time, and popping up the to-be-used charging treasure;
the mobile terminal is used for scanning the two-dimensional code used by the shared charger to generate leasing information;
the mobile terminal is also used for replying loan confirmation information sent by the server and feeding back the loan confirmation information to the server;
the server is used for receiving the preparation information, generating lending confirmation information and sending the lending confirmation information to the mobile terminal.
Preferably, the shared power bank terminal further includes a first obtaining module and a first executing module;
the first acquisition module is used for acquiring IDs, current electric quantity and available time of all charge pal terminals of the shared charge pal terminal, binding the current electric quantity and the available time with the IDs of the charge pal, and generating a temporary set;
the first execution module is used for traversing the temporary set, acquiring the ID of the power bank with the largest current electric quantity and the longest available time in the temporary set, and preparing the power bank as the power bank to be used.
Preferably, the mobile terminal comprises a second obtaining module;
the second acquisition module is used for acquiring the identity information of the user bound by the mobile terminal and packaging the identity information and the lease request to generate the lease information;
the shared power bank terminal comprises a third acquisition module;
the third acquisition module is used for binding lease information and the ID of the charger ready to be used to generate the preparation information.
Preferably, the shared power bank terminal comprises a time calculation module and a binding module;
the time calculation module is used for calculating the service life based on the return time and the lending time of the charge pal;
the binding module is used for binding the ID of the power bank with the lending time and the returning time;
the server comprises a payment information generation module;
the payment information generation module is used for generating payment information and sending the payment information to the mobile terminal, the payment information comprises a first payment mode and a second payment mode, the first payment mode comprises a combined payment mode using bank virtual currency and real currency, and the second payment mode comprises a single payment mode using real currency.
Preferably, the server comprises a push module;
the pushing module is used for dividing the banking business into a plurality of grades according to the handling time, acquiring the identity information of the user according to the returned ID of the charge pal, and pushing the banking business of the corresponding grade to the user according to the use time.
Has the advantages that:
1. according to the invention, the shared charger is arranged at each business outlet, so that the problem of insufficient mobile phone electricity for long waiting time of customers can be solved, a bank software use scene can be created through two payment modes, the frequency of using the bank software by the customers is increased, and bank virtual currency use scenes such as small beans are built;
2. the invention analyzes the service handling time and service handling time of the client in the bank through the use duration data of the client, pushes related banking services and improves the service quality of the bank.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings.
The invention discloses a leasing method of a shared charger baby, which comprises the following steps:
step A: setting a two-dimension code for the shared charger, scanning the two-dimension code for the shared charger, and generating lease information to trigger an allocation mechanism;
and B: preparing a power bank to be used based on an allocation mechanism and generating preparation information;
and C: generating loan confirmation information according to the preparation information;
step D: replying and feeding back the confirmed lending information, generating use permission information, binding the ID of the to-be-used charge pal with lending time according to the use permission information, and popping up the to-be-used charge pal.
In the embodiment, by arranging the shared charge pal terminal at a bank business office and arranging the shared charge pal use two-dimensional code at the shared charge pal terminal, a user can scan the shared charge pal use two-dimensional code by using the mobile terminal to generate lease information on the mobile terminal, wherein the lease information is a request of the user to lease the charge pal, the lease information corresponds to a lease request and is sent to the shared charge pal terminal, the shared charge pal terminal triggers a distribution mechanism after receiving the lease information, the distribution mechanism automatically distributes the charge pal which can be borrowed by the shared charge pal terminal at present and prepares a charge pal to be used, and then generates preparation information, the preparation information is sent to the server, the preparation information corresponds to inform the server, the shared charge pal terminal has configured the charge pal which can be borrowed, and the server generates borrow confirmation information after receiving the preparation information, borrowing confirmation information is sent to the mobile terminal, borrowing confirmation information is equivalent to that the user confirms to borrow the treasured that charges, and then need reply if confirming to borrow borrowing confirmation information, it is convenient the server generates the permission information of using, and shared treasured that charges terminal can pop out the treasured that charges and supply the user to use after obtaining the permission information of using this moment, can bind the ID and the time of borrowing of the treasured that charges that should pop out simultaneously, and calculation duration of use when convenient follow-up returning.
Preferably, in the step B, preparing the charge pal to be used based on the allocation mechanism and generating the preparation information includes:
acquiring IDs, current electric quantity and available time of all the charge pal;
binding the current electric quantity and the available duration with the ID of the charge pal, and generating a temporary set;
and traversing the temporary set, acquiring the ID of the power bank with the largest current electric quantity and the longest available time in the temporary set, and preparing the power bank as the power bank to be used.
In this embodiment, the process of the allocation mechanism is that after a user makes a lease request, the shared treasured charging terminal first obtains the IDs, the current electric quantity, and the available time length of all stored treasureds, binds the ID of each treasured charging to the current electric quantity and the available time length, then generates a temporary set of the IDs of all treasureds charging, traverses the temporary set, finds the ID of the treasured charging with the largest current electric quantity and the longest available time length in the temporary set, and uses the ID as a treasured charging that can be lent for use, it should be noted that, when there are a plurality of IDs of treasureds charging obtained after traversal, one of the IDs is randomly selected as a treasured charging that can be lent for use,
preferably, in the step a, the generating of the rental information includes:
acquiring identity information of a user;
packaging the identity information and the lease request to generate the lease information;
in this embodiment, when the user uses the mobile terminal to scan the shared power bank to use the two-dimensional code, a lease request is generated, and meanwhile, the identity information of the user is also obtained, it should be noted that the identity information of the user refers to the identity information of the user bound to the current mobile terminal, and the identity information and the lease request are packaged together to generate lease information.
In the step B, generating the preparation information includes:
and binding the lease information and the ID of the charger ready to be used to generate the preparation information.
In this embodiment, the provisioning information needs to be generated after the shared power bank terminal prepares a power bank to be used, and the provisioning information is generated by binding and packaging the lease information and the ID of the power bank to be used.
Preferably, when the user returns the power bank, the return time is established, and the ID of the returned power bank is acquired;
inquiring the lending time of the charge pal according to the ID of the charge pal, and acquiring the service life based on the return time and the lending time;
generating payment information according to the using duration, wherein the payment information comprises a first payment mode and a second payment mode, the first payment mode comprises a combined payment mode using bank virtual currency and real currency, and the second payment mode comprises a single payment mode using real currency.
In this embodiment, it should be noted that, when a user uses a mobile terminal to scan a two-dimensional code used by a shared power bank, the user may use bank software configured on the mobile terminal to scan the code; when a user returns the charge pal, the using time length can be obtained according to the returning time and the lending time, the lending time can be inquired from the ID of the charge pal, then payment information is generated based on the using time length, the user can use two payment modes on bank software, the first payment mode comprises a combined payment mode of using bank virtual currency and real currency, which can be understood as paying small bean (bank virtual currency) or 0.01 yuan through the bank software, providing the charge pal for free use for 1 hour service for the client, and charging according to 1 yuan/hour for more than 1 hour; the second payment mode comprises a separate payment mode using real money, and if the user selects the second payment mode, the user can use bank software to carry out separate payment on the real money, and can also select to jump to other payment pages in the bank software and carry out separate payment on the real money by using the other payment pages.
Preferably, the banking business is divided into a plurality of grades according to the handling time;
acquiring the identity information of the user according to the returned ID of the charger baby;
and pushing the banking business of the corresponding grade to the user according to the service life.
In this embodiment, the server may divide the banking business into a plurality of levels according to the handling time of the banking business, for example, divide the banking business with the handling time exceeding 30 minutes into level 1, and divide the banking business with the handling time exceeding 60 minutes into level 2, when the user uses the banking software to scan the code and uses the shared charging bank, according to the use time of the user using the charging bank, push the banking business with the corresponding level to the user, the banking business push may push to the banking software used by the user, for example, when the use time of the user using the charging bank is 30 minutes, push the banking business with the level 1 to the mobile terminal of the user or the banking software used by the user, and when the use time of the user using the charging bank is 60 minutes, push the banking business with the level 2.
The shared charging treasure is set at each business outlet, so that the problem of insufficient mobile phone electricity for long waiting time of a client can be solved, a bank software use scene can be created, the frequency of using the bank software by the client is increased, bank virtual currency use scenes such as small beans are set up, service handling time and service handling of the client in a bank are analyzed through the using time data of the client, related bank services are pushed, and the service quality of the bank is improved.
The utility model provides a sharing precious lease system that charges which characterized in that: the system executes a leasing method of a shared charger baby, and comprises a mobile terminal, a shared charger baby terminal and a server;
the shared charging terminal is provided with a shared charger two-dimensional code, and is used for receiving lease information sent by the mobile terminal, triggering a distribution mechanism, preparing a charger to be used based on the distribution mechanism, generating preparation information and sending the preparation information to the server;
the shared charging terminal is further used for receiving the use permission information sent by the server, binding the ID of the to-be-used charging treasure with lending time, and popping up the to-be-used charging treasure;
the mobile terminal is used for scanning the two-dimensional code used by the shared charger to generate leasing information;
the mobile terminal is also used for replying loan confirmation information sent by the server and feeding back the loan confirmation information to the server;
the server is used for receiving the preparation information, generating lending confirmation information and sending the lending confirmation information to the mobile terminal.
Preferably, the shared power bank terminal further includes a first obtaining module and a first executing module;
the first acquisition module is used for acquiring IDs, current electric quantity and available time of all charge pal terminals of the shared charge pal terminal, binding the current electric quantity and the available time with the IDs of the charge pal, and generating a temporary set;
the first execution module is used for traversing the temporary set, acquiring the ID of the power bank with the largest current electric quantity and the longest available time in the temporary set, and preparing the power bank as the power bank to be used.
Preferably, the mobile terminal comprises a second obtaining module;
the second acquisition module is used for acquiring the identity information of the user bound by the mobile terminal and packaging the identity information and the lease request to generate the lease information;
the shared power bank terminal comprises a third acquisition module;
the third acquisition module is used for binding lease information and the ID of the charger ready to be used to generate the preparation information.
Preferably, the shared power bank terminal comprises a time calculation module and a binding module;
the time calculation module is used for calculating the service life based on the return time and the lending time of the charge pal;
the binding module is used for binding the ID of the power bank with the lending time and the returning time;
the server comprises a payment information generation module;
the payment information generation module is used for generating payment information and sending the payment information to the mobile terminal, the payment information comprises a first payment mode and a second payment mode, the first payment mode comprises a combined payment mode using bank virtual currency and real currency, and the second payment mode comprises a single payment mode using real currency.
Preferably, the server comprises a push module;
the pushing module is used for dividing the banking business into a plurality of grades according to the handling time, acquiring the identity information of the user according to the returned ID of the charge pal, and pushing the banking business of the corresponding grade to the user according to the use time.
The technical principle of the present invention is described above in connection with specific embodiments. The description is made for the purpose of illustrating the principles of the invention and should not be construed in any way as limiting the scope of the invention. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive effort, which would fall within the scope of the present invention.