Invention content
The embodiment of the present invention provides a kind of shared charger baby leasing method based on shared leased equipment, device, readable deposits
Storage media and its terminal device,
As the first aspect of the embodiment of the present invention, the embodiment of the present invention provides a kind of being total to based on shared leased equipment
Charger baby leasing method is enjoyed, is included the following steps,
Server obtain information of mobile terminal, the shared leased equipment information mutually bound with the information of mobile terminal and
The information of charger baby in the shared leased equipment mutually bound with the information of mobile terminal;Wherein, the mobile terminal
At the time of information includes the specified electric quantity of the mobile terminal, the instant electricity of the mobile terminal, the acquisition instant electricity;
The shared leased equipment information includes the shared leased equipment number, the charger baby sum N of the shared leased equipment, institute
State the charge power and the first duration of the interior charger baby of shared leased equipment;The institute mutually bound with the information of mobile terminal
The information for stating the charger baby in shared leased equipment includes charger baby number;
The server generates the shared lease according to first duration and at the time of obtaining the instant electricity
The first of equipment leases the period;Wherein, described the is subtracted at the time of the described first initial time for leasing the period is instant electricity
One duration, the described first end time for leasing the period is at the time of obtaining the instant electricity;
The charger baby that the server obtains the shared leased equipment leases in the period described first and lends number
n;
The server leases the charger baby for lending frequency n and the shared leased equipment in the period according to described first
Total N determines that the shared leased equipment is leased described first in the period and lends ratio P;Wherein, P=n/N;
The server is according to the specified electric quantity a of the mobile terminal, the instant electricity b of the mobile terminal and altogether
Enjoy leased equipment charge power d estimate the mobile terminal be charged to it is full electricity when charging duration T;
The starting that the server obtains the charger baby mutually bound with the mobile terminal uses the moment, and according to described
Begin to use moment and the charging duration T, determines that the cut-off of the charger baby uses the moment;The server goes out described in judging
Whether it is more than first threshold by means of ratio P, if more than the first threshold, then sends cut-off when reaching the cut-off using the moment
Instruction is to charger baby corresponding with charger baby number, so that the charger baby stops being that the mobile terminal charges.
It is set as a further improvement, the server obtains the shared lease mutually bound with the information of mobile terminal
Charger baby in standby gives back time information;
The server obtains the shared leased equipment mutually bound with the information of mobile terminal with the server
In charger baby give back the end time that time information is first duration, obtain the shared leased equipment second rent
By means of the period;
The charger baby that the server obtains the shared leased equipment leases in the period described second and lends number
n1;
The server leases the charging for lending frequency n 1 and the shared leased equipment in the period according to described second
Treasured sum N determines that the shared leased equipment is leased described second in the period and lends ratio P1;Wherein, P1=n1/N;
The server lends whether frequency P1 is more than second threshold described in judging, if more than the second threshold, then institute
Stating server forbids the mobile terminal to lease the charger baby in the shared leased equipment again in pause duration;
The server according to the time information of giving back of first duration and the charger baby, generate it is described it is mobile eventually
The period is leased in the pause at end;Wherein, the initial time that the period is leased in the pause is that the time information of giving back of the charger baby subtracts
First duration, the pause is gone to lease the end time of period and give back time information for the charger baby.
As a further improvement, ranging from the 0.7~1.0 of the first threshold.
As a further improvement, ranging from the 0.7~1.0 of the first threshold.
Correspondingly, the embodiment of the present invention also provides a kind of shared charger baby renting device based on shared leased equipment, packet
It includes:
The server include acquisition module, first lease period generation module, first lend ratio module, first judge
Module
The shared leased equipment for obtaining mould and being used to obtain information of mobile terminal, mutually bind with the information of mobile terminal
The information of information and the charger baby in the shared leased equipment mutually bound with the information of mobile terminal;Wherein, described
Information of mobile terminal includes the specified electric quantity of the mobile terminal, the instant electricity of the mobile terminal, the acquisition instant electricity
At the time of amount;The shared leased equipment information includes the charging of shared the leased equipment number, the shared leased equipment
Precious sum N, the shared leased equipment interior charger baby charge power and the first duration;With the information of mobile terminal
Mutually the information of the charger baby in the shared leased equipment of binding includes charger baby number;
Described first lease period generation module for according to first duration and obtain the instant electricity when
It carves, generate the shared leased equipment first leases the period;Wherein, the described first initial time for leasing the period is immediately electric
First duration is subtracted at the time of amount, the described first end time for leasing the period is at the time of obtaining the instant electricity;
The charger baby that the server obtains the shared leased equipment leases in the period described first and lends number
n;
Described first lend ratio module according to described first lease in the period lend frequency n and it is described it is shared lease set
Standby charger baby sum N determines that the shared leased equipment is leased described first in the period and lends ratio P;Wherein, P=n/
N;
The charging duration calculation module be used for according to the specified electric quantity a of the mobile terminal, the mobile terminal i.e.
When electricity b and shared leased equipment charge power d estimate the mobile terminal be charged to it is full electricity when charging duration T;
The starting that the acquisition module is further used for obtaining the charger baby mutually bound with the mobile terminal uses the moment,
And moment and the charging duration T are used according to the starting, determine that the cut-off of the charger baby uses the moment;Described first
Judgment module is for judging that the ratio P that lends whether more than first threshold, if more than the first threshold, is then reaching described
Cut-off is using cutoff command is sent to charger baby corresponding with the charger baby number when moment, so that the charger baby stops
It charges for the mobile terminal.
As a further improvement, further comprising that second leases period generation module, second lend ratio module, second sentence
Module is leased in disconnected module and pause
The acquisition module is further used for obtaining the shared leased equipment mutually bound with the information of mobile terminal
In charger baby give back time information;
Described second leases period generation module for mutually being bound with the information of mobile terminal with server acquisition
The shared leased equipment in charger baby give back time information be first duration end time, obtain it is described total
Enjoy leased equipment second leases the period;
The charger baby that the acquisition module is further used for obtaining the shared leased equipment leases the period described second
Interior lends frequency n 1;
Described second, which lends ratio module, leases in the period according to described second and lends frequency n 1 and the shared lease
The charger baby sum N of equipment determines that the shared leased equipment is leased described second in the period and lends ratio P1;Wherein, P1
=n1/N;
Second judgment module is for judging the frequency P1 that lends whether more than second threshold, if more than described second
Threshold value, then the server forbid the mobile terminal to be leased in the shared leased equipment again in pause duration described
Charger baby;
The pause leases module for the time information of giving back according to first duration and the charger baby, generates
The period is leased in the pause of the mobile terminal;Wherein, described suspend leases the initial time of period giving back for the charger baby
Time information subtracts first duration, and the end time that the period is leased in the pause is that giving back for the charger baby is believed constantly
Breath.
In addition, the embodiment of the present invention provides a kind of computer readable storage medium, the computer readable storage medium packet
Include the computer program of storage, wherein where controlling the computer readable storage medium when the computer program is run
Equipment executes the shared charger baby leasing method as described above based on shared leased equipment.
And the embodiment of the present invention provides a kind of terminal device, including processor, deposit figure reservoir and be stored in described deposit
Reservoir and it is configured the computer program executed by the processor, the processor is realized such as when executing the computer program
Shared charger baby leasing method based on shared leased equipment described above.
Beneficial effects of the present invention compared with prior art,
The invention is intended to lease in the period to lease frequency according to first, judge that this leases whether the period is using peak
Phase controls the charging time of mobile device and shared charger baby if so, being most full of duration soon according to mobile device, convenient
Shared charger baby is used by more people.
In addition to this present invention is also intended to the second rent for end time at the time of giving back charger baby according to mobile device
Frequency is leased by means of the period, judges whether the shared charger baby of the shared leased equipment is lent again to same mobile device, if
It is peak period that father, which leases the period, then generates to suspend duration, avoiding user from being reused in peak period, to lease frequency high
The shared charger baby of leased equipment avoids the exclusive of shared resource.
Above-mentioned general introduction is merely to illustrate that the purpose of book, it is not intended to be limited in any way.Except foregoing description
Schematical aspect, except embodiment and feature, by reference to attached drawing and the following detailed description, the present invention is further
Aspect, embodiment and feature, which will be, to be readily apparent that.
Specific implementation mode
Hereinafter, certain exemplary embodiments are simply just described.As one skilled in the art will recognize that
Like that, without departing from the spirit or scope of the present invention, described embodiment can be changed by various different modes.
Therefore, attached drawing and description are considered essentially illustrative rather than restrictive.
In the description of the present invention, it is to be understood that, term "center", " longitudinal direction ", " transverse direction ", " length ", " width ",
" thickness ", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outside", " up time
The orientation or positional relationship of the instructions such as needle ", " counterclockwise ", " axial direction ", " radial direction ", " circumferential direction " be orientation based on ... shown in the drawings or
Position relationship is merely for convenience of description of the present invention and simplification of the description, and does not indicate or imply the indicated device or element must
There must be specific orientation, with specific azimuth configuration and operation, therefore be not considered as limiting the invention.
In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include one or more this feature.In the description of the present invention, the meaning of " plurality " is two or more,
Unless otherwise specifically defined.
Referring to Fig. 1, the embodiment of the present invention provides a kind of shared charger baby leasing method based on shared leased equipment, including
Following steps,
S10, server obtain information of mobile terminal, the shared leased equipment information mutually bound with information of mobile terminal and
The information of charger baby in the shared leased equipment mutually bound with information of mobile terminal;Wherein, information of mobile terminal includes movement
At the time of the specified electric quantity of terminal, the instant electricity of mobile terminal, acquisition instant electricity;Shared leased equipment information includes shared
Leased equipment number, the charger baby sum N of shared leased equipment, shared leased equipment interior charger baby charge power and
First duration;The information of charger baby in the shared leased equipment mutually bound with information of mobile terminal includes charger baby number;
S20, server generate the first rent for sharing leased equipment according to the first duration and at the time of obtaining instant electricity
By means of the period;Wherein, the first duration is subtracted at the time of the first initial time for leasing the period is instant electricity, first leases the period
End time is at the time of obtaining instant electricity;
Illustratively.First a length of 30 minutes when leasing, and the first end time for leasing the period is 10:30, then it first rents
Initial time by means of the period is 10:00;
S30, the charger baby of the shared leased equipment of server acquisition, which is leased first in the period, lends frequency n;
S40, the charger baby sum N for lending frequency n and shared leased equipment that server was leased according to first in the period are true
Surely shared leased equipment, which is leased first in the period, lends ratio P;Wherein, P=n/N;
Illustratively, it is assumed that the charger baby sum of shared leased equipment is 10, is leased in the period first and leases number
Be 8, then P=0.8.
S50, server is according to the specified electric quantity a of mobile terminal, the instant electricity b of mobile terminal and shared leased equipment
Charge power d estimate mobile terminal be charged to it is full electricity when charging duration T;
S60, server obtain the starting of charger baby mutually bound with mobile terminal and use the moment, and when according to starting use
Carve and charge duration T, determines that the cut-off of charger baby uses the moment;S70, server are judged to borrow whether ratio P is more than first
Threshold value then sends cutoff command when reaching cut-off using the moment and is filled to corresponding with charger baby number if more than first threshold
It is electric precious, so that charger baby stops being that mobile terminal charges.
S10~S70 of first embodiment, it is intended that leased in the period according to first and lease frequency, judge that this leases the period
Whether it is using peak period, if so, being most full of duration, control mobile device and shared charger baby soon according to mobile device
Charging time, convenient shared charger baby are used by more people.
Second of embodiment of the invention, further comprises on the basis of the first embodiment,
S80, what server obtained the charger baby in the shared leased equipment mutually bound with information of mobile terminal gives back the moment
Information;
Server obtains giving back for the charger baby in the shared leased equipment mutually bound with information of mobile terminal with server
Time information is the end time of the first duration, and obtain shared leased equipment second leases the period;
S90, the charger baby of the shared leased equipment of server acquisition, which is leased second in the period, lends frequency n 1;
The charger baby sum N for lending frequency n 1 and shared leased equipment that server is leased according to second in the period is determined
Shared leased equipment, which is leased second in the period, lends ratio P1;Wherein, P1=n1/N;
S100, server judge to borrow whether frequency P1 is more than second threshold, and if more than second threshold, then server is forbidden
Mobile terminal leases charger baby in shared leased equipment again in pause duration;
S110 servers give back time information according to the first duration and charger baby, and the pause for generating mobile terminal is leased
Period;Wherein, the initial time that the period is leased in pause is that the time information of giving back of charger baby subtracts the first duration, when pause is leased
The end time of section gives back time information for charger baby.
Preferably, ranging from the 0.7~1.0 of first threshold, the period is represented as using peak period.
Preferably, ranging from the 0.7~1.0 of first threshold, the period is represented as using peak period.
S80~S110, it is intended that second for end time at the time of giving back charger baby according to mobile device leases the period
Lease frequency, judge whether the shared charger baby of the shared leased equipment is lent again to same mobile device, if father leases
Period is peak period, then generates to suspend duration, avoids user from being reused in peak period and leases the high lease of frequency and set
Standby shared charger baby avoids the exclusive of shared resource.
The third embodiment of the invention, also provides a kind of shared charger baby renting device based on shared leased equipment, wraps
It includes:
Server includes acquisition module 10, first leases period generation module 20, first lends ratio module 30, first
Judgment module 40, second lease period generation module 50, second lend ratio module 60, the second judgment module 70 and pause rent
By means of module 80;
Obtain mould for obtain information of mobile terminal, the shared leased equipment information mutually bound with information of mobile terminal and
The information of charger baby in the shared leased equipment mutually bound with information of mobile terminal;Wherein, information of mobile terminal includes movement
At the time of the specified electric quantity of terminal, the instant electricity of mobile terminal, acquisition instant electricity;Shared leased equipment information includes shared
Leased equipment number, the charger baby sum N of shared leased equipment, shared leased equipment interior charger baby charge power and
First duration;The information of charger baby in the shared leased equipment mutually bound with information of mobile terminal includes charger baby number;
First leases period generation module 20 for according to the first duration and at the time of obtain instant electricity, generating shared
The first of leased equipment leases the period;Wherein, when subtracting first at the time of the first initial time for leasing the period is instant electricity
Long, the first end time for leasing the period is at the time of obtaining instant electricity;
The charger baby of the shared leased equipment of server acquisition, which is leased first in the period, lends frequency n;
First lends the charger baby for lending frequency n and shared leased equipment that ratio module 30 was leased according to first in the period
Total N determines that shared leased equipment is leased first in the period and lends ratio P;Wherein, P=n/N;
The duration calculation module that charges be used for according to the specified electric quantity a of mobile terminal, the instant electricity b of mobile terminal and
The charge power d of shared leased equipment estimates charging duration T when mobile terminal is charged to full electricity;
Acquisition module 10 is further used for obtaining the starting for the charger baby mutually bound with mobile terminal using the moment, and according to
Starting determines that the cut-off of charger baby uses the moment using moment and charging duration T;First judgment module 40 is for judging to borrow
Ratio P whether be more than first threshold, if more than first threshold, then reach cut-off using the moment when send cutoff command to fill
Electric treasured numbers corresponding charger baby, so that charger baby stops being that mobile terminal charges.
Acquisition module 10 is further used for obtaining the charger baby in the shared leased equipment mutually bound with information of mobile terminal
Give back time information;
Second leases period generation module 50 for obtaining the shared lease mutually bound with information of mobile terminal with server
Charger baby in equipment gives back the end time that time information is the first duration, obtains when sharing the second of leased equipment and leasing
Section;
Acquisition module 10 is further used for obtaining the charger baby of shared leased equipment and leases lending time in the period second
Number n1;
Second lends the charging for lending frequency n 1 and shared leased equipment that ratio module 60 was leased according to second in the period
Precious sum N determines that shared leased equipment is leased second in the period and lends ratio P1;Wherein, P1=n1/N;
Second judgment module 70 is for judging whether then taken if more than second threshold more than second threshold by means of frequency P1
Business device forbidden moves terminal leases charger baby in shared leased equipment again in pause duration;
Pause leases module 80 for giving back time information according to the first duration and charger baby, generates mobile terminal
The period is leased in pause;Wherein, the initial time that the period is leased in pause is that the time information of giving back of charger baby subtracts the first duration, temporarily
The end time off-hired by means of the period gives back time information for charger baby.
The third of the invention embodiment provides a kind of shared charger baby based on shared leased equipment and leases terminal device,
Including processor, memory and it is stored in the memory and is configured the computer program executed by the processor, example
Such as:The program of barcode scanning payment amount input.The processor realizes above-mentioned of first aspect when executing the computer program
Step in the embodiment of barcode scanning payment amount input described in one.
Illustratively, the computer program can be divided into one or more modules, one or more of moulds
Block is stored in the memory, and is executed by the processor, to complete the present invention.One or more of modules can be with
It is the series of computation machine program instruction section that can complete specific function, the instruction segment is for describing the computer program in institute
State the implementation procedure that the shared charger baby based on shared leased equipment is leased in terminal device.
The terminal device may include, but be not limited only to, processor, memory, display.Those skilled in the art can be with
Understand, the shared charger baby that the schematic diagram is only based on shared leased equipment leases the example of terminal device, does not constitute
May include than illustrating more or fewer portions to leasing the restriction of terminal device based on the shared charger baby of shared leased equipment
Part either combines certain components or different components, such as the shared charger baby based on shared leased equipment is leased terminal and set
Standby can also include input-output equipment, network access equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng the processor is the control centre for leasing terminal device based on the shared charger baby of shared leased equipment, using each
Kind interface and the entire various pieces that terminal device is leased based on the shared charger baby of shared leased equipment of connection.
The memory can be used for storing the computer program and/or module, and the processor is by running or executing
Computer program in the memory and/or module are stored, and calls the data being stored in memory, based on shared
The shared charger baby of leased equipment leases the various functions of terminal device.The memory can include mainly storing program area and deposit
Store up data field, wherein storing program area can storage program area, the application program needed at least one function (for example broadcast by sound
Playing function, text conversion function etc.) etc.;Storage data field can be stored uses created data (such as audio according to mobile phone
Data, text message data etc.) etc..In addition, memory may include high-speed random access memory, can also include non-easy
The property lost memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital
(Secure Digital, SD) block, flash card (Flash Card), at least one disk memory, flush memory device or other
Volatile solid-state part.
Wherein, if the shared charger baby based on shared leased equipment leases the module of terminal device with software function
The form of unit is realized and when sold or used as an independent product, can be stored in a computer read/write memory medium
In.Based on this understanding, the present invention realizes all or part of flow in above-described embodiment method, can also pass through computer
Program is completed to instruct relevant hardware, and the computer program can be stored in a computer readable storage medium,
The computer program is when being executed by processor, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer journey
Sequence includes computer program code, and the computer program code can be source code form, object identification code form, executable text
Part or certain intermediate forms etc..The computer-readable medium may include:Appointing for the computer program code can be carried
What entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications letter
Number and software distribution medium etc..It should be noted that the content that the computer-readable medium includes can be managed according to the administration of justice
Local legislation and the requirement of patent practice carry out increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent
Practice, computer-readable medium do not include electric carrier signal and telecommunication signal.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of module therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention
In embodiment attached drawing, the connection relation between module indicates there is communication connection between them, specifically can be implemented as one or
A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, you can to understand
And implement.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in its various change or replacement,
These should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with the guarantor of the claim
It protects subject to range.