Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification embodiment, below in conjunction with this
Attached drawing in specification embodiment is described in detail the technical solution in this specification embodiment, it is clear that described
Embodiment is only a part of the embodiment of this specification, instead of all the embodiments.The embodiment of base in this manual,
Those of ordinary skill in the art's every other embodiment obtained, all should belong to the range of protection.
In the embodiment of this specification, using in the process of sharing articles, it is related to server-side, can also relate to article
End, client.Wherein, server-side can be deployed in cloud server, and article end can be deployed in the electricity that sharing articles are loaded
In sub-device, such as the electronic coded lock device of shared bicycle, shared umbrella, client can be deployed in hand used by a user
Application program, the public platform or browser circle of social program in machine, tablet computer electronic equipment, such as the installation in electronic equipment
Face etc..
The corresponding system architecture of this specification embodiment, as shown in Figure 1, including server device 10, article end equipment 20
And client device 30.The concrete form of server device 10 can be the shapes such as a specific server or server cluster
Formula, the application do not need this to be defined.
Article end equipment 20 and server device 10 and client device 30 and server device 10, can be by various
The network implementations of form communicates to connect, article end equipment 20 and client device 30, can be realized by latticed form direct
Communication connection, can also realize indirect communication connection by server device 10.For example, article end equipment 20 is set with client
Standby 30 can be attached by bluetooth, to realize that user can carry out the operation such as unlock to article end by client;Again
Such as, user is inputted or is scanned the identification code at article end by client and is uploaded to server-side, is issued from server-side to article end
It unlocks and notifies, i.e., article end equipment 20 and client device 30 realize indirect communication connection by server device 10.
Same sharing articles are used in order to be repeated as many times user can when needed, to promote the convenience of use process
Property, this specification provides a kind of sharing articles application method applied to server-side, as shown in Fig. 2, may comprise steps of:
S101 determines reservation demand of the user to sharing articles after user terminates to the use of sharing articles;
Reservation demand of the user to sharing articles, can specifically be confirmed in several ways.
In a specific embodiment, operation triggering mode can be preset, user passes through predetermined registration operation trigger notice
The request that client is generated and sent to server-side.
For example, can be arranged in client end interface " reservation " button, can input retain duration input frame, etc., i.e.,
Predetermined registration operation triggering, which can be input reservation duration, click holds bottom button, even clock synchronization is long carries out the operations such as supplementary payments triggering;
For another example, predetermined registration operation triggering can be the voice operating triggering of user, such as the verbal instructions of " reservation " are issued to client.
After the article that server-side receives client transmission retains request, the article received is retained into request and is determined as using
Reservation demand of the family to sharing articles.
In another specific embodiment, reservation confirmation message actively can be issued to user client from server-side, visitor
Whether family end retains sharing articles according to the reservation confirmation message confirmation user received, and in the case where user confirms and retains
It generates and returned articles retains request.Server-side asks this in the case where the article for receiving client transmission retains request
Ask the reservation demand for being determined as user to sharing articles.
Retain certain time limit (to avoid invalid reservation, when can be shorter further, it is also possible to be arranged and be defaulted as user
Between), reservation, change retention period etc. can be confirmed in user in default retention period, can also can also take without operation
The default that disappears retains, then server-side can confirm that the reservation of user needs in the case where user does not carry out cancelling default reservation operations
It asks, and by default or the retention period of user's change, as the retention period carried in reservation demand;Etc..This specification pair
Server-side confirms the concrete mode of the reservation demand to sharing articles without limitation, and those skilled in the art can be according to practical need
It asks, setting server-side is confirmed according to one kind or in conjunction with various ways.
S102 obtains the client identification, article mark and retention period carried in the reservation demand, by the article mark
Know corresponding sharing articles, the reservation article of client is corresponded to labeled as the client identification;The retention period is for indicating
The time limit of marked reserved state;
After retaining article, can be counted by server-side retain duration and/or it is remaining retain duration, and with reservation
Time limit is compared, so that it is determined that whether client and the reservation relationship of article expire, if returning in user and continuing to use this
It expires before sharing articles, then releases the reservation relationship of client and article, so that the shared object can be used normally in other users
Product.
As already mentioned it is possible to determine that the reservation demand of user can also accordingly lead in the demand in several ways
Various ways are crossed to obtain and carry retention period.
For example, default retention period can be preset, if user does not modify, it is preset for defaulting retention period
Default the time limit;For another example, user can specify retention period or modify on the basis of defaulting the time limit;For another example, it can be set
Free time period, if user has demand can be with the longer retention period of payment selection;Etc., this specification does not limit this.
In the specific embodiment of this specification, user can carry out extension operation to retention period by client, i.e.,
It is triggered by preset operation, " extend and retain " button in interface is pressed such as user, " extends and protects to client sending
Stay " verbal instructions, etc., make client receive extend retention period operation triggering, thus generate and to server-side send out
Article is sent to retain request of delaying.
Server-side receives article reservation and delays after requesting, and it is regular to confirm whether the request meets default extension.This field
Technical staff can neatly formulate default rule of delaying according to actual needs, for example, the total degree and/or total duration delayed are
No is more than preset threshold;For another example, whether the remaining sum of the paid back fee of user, and/or corresponding stored value card is not less than extension
The corresponding expense of retention period;For another example, whether grade, and/or history extension situation etc. according to the user's credit, judge the user
Meet this deferred terms;Etc., aforementioned each item or other rules that can also be arranged can be used alone, and can also combine makes
With this specification is without limitation.
Server-side, can be according to the request in the case where determining that received article reservation delays to request to meet extension rule
Client identification, article mark and the reservation extended period of middle carrying, which is corresponded into sharing articles and the client
The retention period for identifying the reservation relationship of corresponding client extends.
In this specification embodiment, after sharing articles are labeled as the reservation article of client, for the ease of the use
Family and other users identification, server-side further can also issue article reservation to the article end of retained sharing articles and refer to
Show.
After article termination receives the article reservation instruction that server-side issues, this article is shown by predetermined manner to retain shape
State.For example, can be shown by indicator light if sharing articles are provided with indicator light, such as it is always on or flashing red light;
For another example, it if sharing articles are provided with buzzer, voice announcer etc., can be shown by modes such as whistle, voice broadcasts
The reserved state of this article.
In addition, if can show the sharing articles that user current location is distributed around in the interface of client, then take
Business end will identify retained article when receiving inquiry request of the client for neighbouring sharing articles in returned data
Reserved state is removed trial use from and is had been found that so that user be allow to learn the reservation situation of the article by client end interface
For the trouble of the reservation article of other users.
S103, in the case where receiving article using request, according to the client identification and article carried in the request
Mark, determine the corresponding target sharing articles of the article mark whether be reserved state and the target sharing articles whether with this
There are reservation relationships for the corresponding client of client identification;
Can first determine whether the corresponding target sharing articles of the article mark are reserved state, are being determined as reserved state
Determine that there are reservation relationships for target sharing articles client whether corresponding with the client identification again afterwards, but can also be according to
Other sequences determine, or preset certain mapping relations, so as to be determined whether simultaneously for reserved state and corresponding
Client.
S104, determining for reserved state or there are in the case where reservation relationship, under client and/or article end
Article is sent out using instruction, so that user uses the target sharing articles by the instruction;
If it is determined that the sharing articles that user's request uses are not currently reserved state, then can be used normally, or determining should
Sharing articles are marked as the reservation article of the client of the user, then the user can use retained object by client
Product.
Specifically, server-side can be sent to the client of user by unlocking cipher of the sharing articles etc. using instruction,
So that user uses sharing articles according to the instruction;And/or notice article end auto-unlocking, displaying password etc., so that user can
To use sharing articles.
S105, in the case where being determined as reserved state and reservation relationship being not present, under client and/or article end
Article disabling instruction is sent out, to prompt target sharing articles described in user unusable.
If it is determined that sharing articles are marked as reserved state, and reservation relationship is not present with active client, does not then permit
Perhaps the user uses sharing articles by the client.
Specifically, server-side can issue article disabling instruction to article end, so that the article end passes through according to the instruction
Predetermined manner, such as by indicator light, buzzer, voice announcer, prompt target sharing articles described in user unusable;
And/or article disabling instruction is issued to client, so that the client shows the mesh to user according to the instruction
The unusable prompt information of sharing articles is marked, is shown such as in client end interface, and/or by voice broadcast " this shared object
Product are unusable " etc. information.
In addition, server-side can also issue the remaining time of retention period;Or, it is first determined the retention period remains
Remaining duration generates the article including the residual time length and disables instruction in the case where the residual time length is less than preset threshold,
It is issued to client, so that client be made to show the unusable residual time length of the sharing articles;Or it obtains and the article
In the presence of the current location of the client of the relationship of reservation, and judge whether the user can continue to use the article in time, thus right
The user makes prompt;Etc., this specification does not limit this.
Below with reference to one, more specifically example, the sharing articles application method provided this specification are illustrated.
Assuming that client is the application program installed in user mobile phone, to be equipped with the shared bicycle at smart lock (article end)
For, after user's car locking, client end interface can be as shown in figure 3, be provided with the button of " temporary to retain ".
If user still needs to after determining after riding to destination using the vehicle, " it can keep in retain and press by click
Button " makes client generate and send vehicle to server-side and retains request, which is the reservation of the client by server-side
Vehicle, and default reservation 20 minutes.User can further modify, extend retention period, or the retention period using default.And
And user can wouldn't carry out this vehicle and ride the clearing of expense at this time.
Server-side carries out timing to the remaining time of retention period.And in the surrounding vehicles that client end interface is shown,
By the shown in red equal Special displays form of the vehicle of reservation, to prompt the other users vehicle to be retained, and make reservation
User conveniently finds retained vehicle.
If the user returns before reservation expires, and by normal unlocking operation, make client generation and to server-side
Vehicle is issued using request, then server-side can be according to the reservation relationship of the client and the vehicle, and allowing the user to use should
Vehicle, i.e., to the smart lock of vehicle issue unlocking notice, automatically open the smart lock of vehicle, user can normal use should
Vehicle.
If other users generate client and issue vehicle to server-side by normal unlocking operation before reservation expires
Using request, then reservation relationship is not present according to the client and the vehicle in server-side, will issue disabling to the client and refer to
Show, the client is made to show the information such as " vehicle is in reservation phase, unusable " by boundary's user oriented, and will not be to
The smart lock of vehicle issues unlocking notice.
If the user does not return before reservation expires, server-side will release the reserved state of the vehicle after expiring, other
User can use the vehicle by normal unlocking operation.Also, server-side can issue expense to the client retained
It is notified with clearing, carries out the clearing for riding and retaining expense before.
As it can be seen that reservation function is provided a user in the service of sharing articles using above scheme, if user is terminating
It is determined after use later there is still a need for the article is used, then other users can be made temporarily can not by retaining to server-side application
Using the article, to keep user more convenient using the process of sharing articles under the premise of improving article utilization rate, improve
The usage experience of user.
Corresponding to above method embodiment, this specification embodiment also provides a kind of sharing articles use device, referring to fig. 4
It is shown, the apparatus may include:
Demand determining module 110, for after user terminates to the use of sharing articles, determining user to sharing articles
Reservation demand;
Retain mark module 120, for obtaining the client identification carried in the reservation demand, article mark and reservation
The corresponding sharing articles of the article mark are corresponded to the reservation article of client labeled as the client identification by the time limit;The guarantor
Stay the time limit for indicating the time limit of marked reserved state;
Retain detection module 130, for receive article using request in the case where, according to the visitor carried in the request
Family end mark and article mark determine whether the corresponding target sharing articles of the article mark are that reserved state and the target are total
Enjoying article client whether corresponding with the client identification, there are reservation relationships;
Instruction issues module 140, for determining for reserved state or there are in the case where reservation relationship, to client
End and/or article end issue article using instruction, so that user uses the target sharing articles by the instruction;It is also used to
In the case where being determined as reserved state and reservation relationship being not present, article disabling instruction is issued to client and/or article end,
To prompt target sharing articles described in user unusable.
In a kind of specific embodiment that this specification provides, the demand determining module 110 specifically can be used for:
Reservation confirmation message is issued to user client, so that whether the client retains altogether according to validation of information user
It enjoys article and generates simultaneously returned articles in the case where user confirms and retains and retain request;
In the case where receiving the article reservation request that the user client is sent, which is determined as user couple
The reservation demand of sharing articles.
In a kind of specific embodiment that this specification provides, the demand determining module 110 specifically can be used for:
It receives the article that user client is sent and retains request;The article retains request are as follows: the user client exists
The request for generating and being sent to server-side in the case where the predetermined registration operation triggering for receiving user.
The article received is retained into request and is determined as reservation demand of the user to sharing articles.
In a kind of specific embodiment that this specification provides, further includes retaining extension module 130, can specifically use
In:
It receives article and retains request of delaying, and confirm whether the request meets default rule of delaying;
In the case where received article retains request of delaying and meets extension rule, according to the client carried in the request
Mark, article mark and reservation extended period, which is corresponded into sharing articles client corresponding with the client identification
Reservation relationship retention period extend.
It is shown in Figure 5 in a kind of specific embodiment that this specification provides, it can also include retaining display module
150, for after sharing articles are labeled as the reservation article of client:
Article is issued to the article end of retained sharing articles and retains instruction, so that the article end passes through according to the instruction
Predetermined manner shows that this article is reserved state.
In a kind of specific embodiment that this specification provides, shown in Figure 6, the instruction issues module 140, can
To include:
Article end indicates issuance unit 141, for issuing article disabling instruction to article end, so that the article end is according to this
Instruction prompts target sharing articles described in user unusable by predetermined manner;And/or
Client indicates issuance unit 142, for issuing article disabling instruction to client, so that the client is according to this
It indicates to show the prompt information that the target sharing articles are unusable to user.
It is shown in Figure 5 in a kind of specific embodiment that this specification provides, it can also include instruction generation module
160, for before issuing article disabling instruction to client:
Determine the residual time length of the retention period;In the case where the residual time length is less than preset threshold, packet is generated
Include the article disabling instruction of the residual time length;
The prompt information includes: the unusable residual time length of the target sharing articles.
It is understood that retain display module 150 and indicate module of the generation module 160 as two kinds of functional independences,
Both it can configure in a device, can also individually configure in a device, therefore structure shown in fig. 5 simultaneously as shown in Figure 5
It should not be construed as the restriction to this specification example scheme.
The function of modules and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
This specification embodiment also provides a kind of computer equipment, includes at least memory, processor and is stored in
On reservoir and the computer program that can run on a processor, wherein processor is realized above-mentioned shared when executing described program
Article application method.This method includes at least:
A kind of sharing articles application method is applied to server-side, this method comprises:
After user terminates to the use of sharing articles, reservation demand of the user to sharing articles is determined;
The client identification, article mark and retention period carried in the reservation demand is obtained, by the article mark pair
The sharing articles answered correspond to the reservation article of client labeled as the client identification;The retention period is marked for indicating
Remember the time limit of reserved state;
In the case where receiving article using request, according to the client identification and article mark carried in the request,
Determine the corresponding target sharing articles of the article mark whether be reserved state and the target sharing articles whether with the client
Identifying corresponding client, there are reservation relationships;
Determining not for reserved state or there are in the case where reservation relationship, article is issued to client and/or article end
Using instruction, so that user uses the target sharing articles by the instruction;
In the case where being determined as reserved state and reservation relationship being not present, article is issued to client and/or article end
Disabling instruction, to prompt target sharing articles described in user unusable.
Fig. 7 shows one kind provided by this specification embodiment and more specifically calculates device hardware structural schematic diagram,
The equipment may include: processor 1010, memory 1020, input/output interface 1030, communication interface 1040 and bus
1050.Wherein processor 1010, memory 1020, input/output interface 1030 and communication interface 1040 are real by bus 1050
The now communication connection inside equipment each other.
Processor 1010 can use general CPU (Central Processing Unit, central processing unit), micro- place
Reason device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one
Or the modes such as multiple integrated circuits are realized, for executing relative program, to realize technical side provided by this specification embodiment
Case.
Memory 1020 can use ROM (Read Only Memory, read-only memory), RAM (Random Access
Memory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 1020 can store
Operating system and other applications are realizing technical solution provided by this specification embodiment by software or firmware
When, relevant program code is stored in memory 1020, and execution is called by processor 1010.
Input/output interface 1030 is for connecting input/output module, to realize information input and output.Input and output/
Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein
Input equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display,
Loudspeaker, vibrator, indicator light etc..
Communication interface 1040 is used for connection communication module (not shown), to realize the communication of this equipment and other equipment
Interaction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, can also be wirelessly
(such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 1050 include an access, equipment various components (such as processor 1010, memory 1020, input/it is defeated
Outgoing interface 1030 and communication interface 1040) between transmit information.
It should be noted that although above equipment illustrates only processor 1010, memory 1020, input/output interface
1030, communication interface 1040 and bus 1050, but in the specific implementation process, which can also include realizing normal fortune
Other assemblies necessary to row.In addition, it will be appreciated by those skilled in the art that, it can also be only comprising real in above equipment
Component necessary to existing this specification example scheme, without including all components shown in figure.
This specification embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
Sharing articles application method above-mentioned is realized when sequence is executed by processor.This method includes at least:
A kind of sharing articles application method is applied to server-side, this method comprises:
After user terminates to the use of sharing articles, reservation demand of the user to sharing articles is determined;
The client identification, article mark and retention period carried in the reservation demand is obtained, by the article mark pair
The sharing articles answered correspond to the reservation article of client labeled as the client identification;The retention period is marked for indicating
Remember the time limit of reserved state;
In the case where receiving article using request, according to the client identification and article mark carried in the request,
Determine the corresponding target sharing articles of the article mark whether be reserved state and the target sharing articles whether with the client
Identifying corresponding client, there are reservation relationships;
Determining not for reserved state or there are in the case where reservation relationship, article is issued to client and/or article end
Using instruction, so that user uses the target sharing articles by the instruction;
In the case where being determined as reserved state and reservation relationship being not present, article is issued to client and/or article end
Disabling instruction, to prompt target sharing articles described in user unusable.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification
Embodiment can be realized by means of software and necessary general hardware platform.Based on this understanding, this specification is implemented
Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,
The computer software product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are to make
It is each to obtain computer equipment (can be personal computer, server or the network equipment etc.) execution this specification embodiment
Method described in certain parts of a embodiment or embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description
Module may or may not be physically separated, can be each module when implementing this specification example scheme
Function realize in the same or multiple software and or hardware.Can also select according to the actual needs part therein or
Person's whole module achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not the case where making the creative labor
Under, it can it understands and implements.
The above is only the specific embodiment of this specification embodiment, it is noted that for the general of the art
For logical technical staff, under the premise of not departing from this specification embodiment principle, several improvements and modifications can also be made, this
A little improvements and modifications also should be regarded as the protection scope of this specification embodiment.