Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide an article exchange method and apparatus. The technical scheme is as follows:
in a first aspect, there is provided an item exchange method, the method comprising:
receiving article information sent by a server, wherein the article information is uploaded to the server by a first terminal;
displaying the article information;
displaying exchange options corresponding to the exchangeable types according to the exchangeable types of the item information;
and exchanging articles with the first terminal based on the displayed exchange options.
Optionally, the receiving the item information sent by the server includes:
acquiring a keyword to be queried;
sending an item query request to the server, wherein the item query request comprises the keyword, so that the server returns item information matched with the keyword;
and receiving the item information matched with the keyword.
Optionally, the receiving the item information sent by the server includes:
positioning a home terminal to obtain the geographic position of the home terminal;
sending the geographical position to the server, so that the server returns the article information when determining that the distance between the geographical position of the first terminal and the geographical position of the home terminal is smaller than a preset distance;
and receiving the article information returned by the server.
Optionally, the presenting, according to the exchangeable type of the item information, an exchange option corresponding to the exchangeable type includes at least one of:
when the exchangeable type comprises an object exchange type, an object exchange option for displaying the object information is displayed;
when the exchangeable type comprises a rental type, displaying rental options of the article information;
when the exchangeable type comprises a selling type, showing a purchasing option of the item information;
when the exchangeable type includes an auction type, an auction option of the item information is presented.
Optionally, the exchanging item with the first terminal based on the displayed exchanging option includes:
when the selection operation of an object exchange option is detected, determining object information to be exchanged to the first terminal;
sending an object exchange request to the server, wherein the object exchange request carries the information of the object to be exchanged to the first terminal, so that the server generates an exchange order;
and when receiving the exchange order returned by the server, displaying the exchange order.
Optionally, the exchanging item with the first terminal based on the displayed exchanging option includes:
when the selection operation of the renting option is detected, sending a renting request to the server, enabling the server to generate an exchange order, and transferring a first numerical value in a second account corresponding to the local terminal to a third-party account;
and when receiving the exchange order returned by the server, displaying the exchange order.
Optionally, the exchanging item with the first terminal based on the displayed exchanging option includes:
when the selection operation of the purchase option is detected, sending a purchase request to the server, enabling the server to generate an exchange order, and transferring a specified numerical value in a second account corresponding to the local terminal to a third party account;
when an exchange order sent by the server is received, displaying the exchange order;
and when the confirmation operation of the exchange order is detected, sending a confirmation exchange completion request to the server, so that the server transfers the specified numerical value in the third party account to the first account corresponding to the first terminal.
Optionally, the exchanging item with the first terminal based on the displayed exchanging option includes:
when the selection operation of the auction option is detected, acquiring an input numerical value;
sending an auction request to the server, wherein the auction request comprises the numerical value, so that the server determines a second terminal corresponding to the maximum numerical value in the auction requests as a designated terminal, and transfers the maximum numerical value in the account corresponding to the designated terminal to a third party account;
when an exchange order generated by the server is received, displaying the exchange order;
and when the confirmation operation of the exchange order is detected, sending a confirmation exchange completion request to the server, so that the server transfers the specified numerical value in the third party account to the first account corresponding to the first terminal.
In a second aspect, there is provided a method of exchanging items, the method comprising:
receiving article information sent by a first terminal;
sending the item information to a second terminal, so that the second terminal displays the item information and displays an exchange option corresponding to the exchangeable type of the item information, wherein the exchange option is used for triggering a corresponding exchange request;
and when receiving an exchange request sent by the second terminal, sending the exchange request to the first terminal, so that the first terminal and the second terminal exchange articles based on the exchange request.
Optionally, the sending the item information to the second terminal includes:
acquiring the geographic position of the first terminal as a first geographic position;
positioning the second terminal to obtain the geographic position of the second terminal as a second geographic position;
and when the distance between the first geographical position and the second geographical position is determined to be smaller than a preset distance, sending the article information to the second terminal.
Optionally, the sending the item information to the second terminal includes:
receiving an item query request of the second terminal, wherein the item query request comprises a keyword;
and when the keyword is determined to be matched with the article information, sending the article information to the second terminal.
Optionally, the method further comprises:
the exchange request is an object exchange request, and when a confirmation request of the first terminal to the exchange request is received, an exchange order is generated according to the confirmation request;
sending the exchange order to the first terminal;
and sending the exchange order to the second terminal.
Optionally, the method further comprises:
the exchange request is a lease request, and when a confirmation request of the first terminal to the exchange request is received, an exchange order is generated;
transferring the first numerical value in the second account corresponding to the second terminal to a third party account;
sending the exchange order to the first terminal;
when a request of the first terminal for confirming the exchange order to complete exchange is received, transferring the second numerical value in the second account to the first account corresponding to the first terminal, and returning the first numerical value in the third party account to the second account; or,
and when the maintaining time length of the exchange order is determined to exceed the preset time length but a confirmation exchange completion request for the exchange order is not received, transferring the first numerical value in the third party account to the first account.
Optionally, the method further comprises:
the exchange request is a purchase request, and when a confirmation request of the first terminal to the exchange request is received, an exchange order is generated;
transferring the designated numerical value in the second account corresponding to the second terminal to a third party account;
sending the exchange order to the second terminal;
and when a request for confirming the exchange completion of the exchange order from the second terminal is received, transferring the specified numerical value in the third party account to a first account corresponding to the first terminal.
Optionally, the method further comprises:
the exchange request is an auction request, and when receiving auction requests of a plurality of second terminals for the item information, the exchange request determines a numerical value included in each auction request;
determining a second terminal corresponding to the maximum value in the plurality of values as a designated terminal;
generating an exchange order according to the appointed terminal;
transferring the maximum numerical value in the account corresponding to the appointed terminal to a third party account;
sending the exchange order to the appointed terminal;
and when receiving a request of the appointed terminal for confirming the exchange order, transferring the maximum value in the third party account to a first account corresponding to the first terminal.
In a third aspect, there is provided an item exchange method, the method comprising:
acquiring input article information;
sending the article information to a server, so that the server sends the article information to a second terminal, and returning an exchange request when receiving the exchange request sent by the second terminal;
and exchanging articles with the second terminal based on the exchange request.
Optionally, the acquiring the input item information includes:
acquiring an exchangeable type set by a user, wherein the exchangeable type comprises at least one of an object exchange type, a rental type, a sale type and an auction type.
Optionally, the exchanging the article with the second terminal based on the exchange request includes:
when the confirmation operation of the exchange request is detected, sending a confirmation request to the server, so that the server generates an exchange order;
and when the exchange order is received, displaying the exchange order.
In a fourth aspect, there is provided an article exchange apparatus, the apparatus comprising:
the receiving module is used for receiving the article information sent by the server, and the article information is uploaded to the server by the first terminal;
the display module is used for displaying the article information;
the display module is further used for displaying the exchange options corresponding to the exchangeable types according to the exchangeable types of the article information;
and the exchange module is used for exchanging articles with the first terminal based on the displayed exchange options.
Optionally, the apparatus further comprises:
the query word acquisition module is used for acquiring a keyword to be queried;
the sending module is used for sending an item query request to the server, wherein the item query request comprises the keyword, so that the server returns the item information matched with the keyword;
and the receiving module is used for receiving the item information matched with the keyword.
Optionally, the apparatus further comprises:
the positioning module is used for positioning the home terminal to obtain the geographic position of the home terminal;
a sending module, configured to send the geographic location to the server, so that the server returns the item information when determining that a distance between the geographic location of the first terminal and the geographic location of the home terminal is smaller than a preset distance;
and the receiving module is used for receiving the article information returned by the server.
Optionally, the display module is further configured to display an item exchange option of the item information when the exchangeable type includes an item exchange type;
the display module is also used for displaying the rental options of the article information when the exchangeable types comprise rental types;
the display module is further used for displaying the purchase options of the item information when the exchangeable types comprise selling types;
the display module is further configured to display an auction option for the item information when the exchangeable type includes an auction type.
Optionally, the exchange module is further configured to determine, when a selection operation of an item exchange option is detected, item information to be exchanged for the first terminal; sending an object exchange request to the server, wherein the object exchange request carries the information of the object to be exchanged to the first terminal, so that the server generates an exchange order; and when receiving the exchange order returned by the server, displaying the exchange order.
Optionally, the exchange module is further configured to send a lease request to the server when a selection operation on the lease option is detected, so that the server generates an exchange order and transfers a first value in a second account corresponding to the local terminal to a third party account; and when receiving the exchange order returned by the server, displaying the exchange order.
Optionally, the exchange module is further configured to send a purchase request to the server when a selection operation on the purchase option is detected, so that the server generates an exchange order and transfers a specified value in a second account corresponding to the local terminal to a third party account; when an exchange order sent by the server is received, displaying the exchange order; and when the confirmation operation of the exchange order is detected, sending a confirmation exchange completion request to the server, so that the server transfers the specified numerical value in the third party account to the first account corresponding to the first terminal.
Optionally, the exchange module is further configured to obtain an input numerical value when a selection operation of the auction option is detected; sending an auction request to the server, wherein the auction request comprises the numerical value, so that the server determines a second terminal corresponding to the maximum numerical value in the auction requests as a designated terminal, and transfers the maximum numerical value in the account corresponding to the designated terminal to a third party account; when an exchange order generated by the server is received, displaying the exchange order; and when the confirmation operation of the exchange order is detected, sending a confirmation exchange completion request to the server, so that the server transfers the specified numerical value in the third party account to the first account corresponding to the first terminal.
In a fifth aspect, there is provided an article exchange apparatus, the apparatus comprising:
the receiving module is used for receiving the article information sent by the first terminal;
a sending module, configured to send the item information to a second terminal, so that the second terminal displays the item information and displays an exchange option corresponding to an exchangeable type of the item information, where the exchange option is used to trigger a corresponding exchange request;
the sending module is further configured to send the exchange request to the first terminal when receiving the exchange request sent by the second terminal, so that the first terminal and the second terminal perform item exchange based on the exchange request.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring the geographic position of the first terminal as a first geographic position;
the positioning module is used for positioning the second terminal to obtain the geographic position of the second terminal as a second geographic position;
the sending module is further configured to send the item information to the second terminal when it is determined that the distance between the first geographic location and the second geographic location is smaller than a preset distance.
Optionally, the apparatus further comprises:
the receiving module is further configured to receive an item query request of the second terminal, where the item query request includes a keyword;
the sending module is further configured to send the item information to the second terminal when it is determined that the keyword matches the item information.
Optionally, the apparatus further comprises:
the order generation module is used for generating an exchange order according to a confirmation request when the exchange request is an object exchange request and the confirmation request of the first terminal to the exchange request is received;
the sending module is further configured to send the exchange order to the first terminal;
the sending module is further configured to send the exchange order to the second terminal.
Optionally, the apparatus further comprises:
the order generation module is used for generating an exchange order when the exchange request is a renting request and a confirmation request of the first terminal to the exchange request is received;
the value transferring module is used for transferring a first value in a second account corresponding to the second terminal to a third party account;
the sending module is further configured to send the exchange order to the first terminal;
the value transferring module is further configured to transfer the second value in the second account to the first account corresponding to the first terminal and return the first value in the third party account to the second account when receiving a request of the first terminal for confirming the exchange completion of the exchange order; or,
the value transferring module is further configured to transfer the first value in the third party account to the first account when it is determined that the duration of the exchange order exceeds a preset duration but a confirmation exchange completion request for the exchange order has not been received.
Optionally, the apparatus further comprises:
the order generation module is used for generating an exchange order when the exchange request is a purchase request and a confirmation request of the first terminal to the exchange request is received;
the value transfer module is used for transferring the designated value in the second account corresponding to the second terminal to a third party account;
the sending module is further configured to send the exchange order to the second terminal;
the value transferring module is further configured to transfer the specified value in the third party account to the first account corresponding to the first terminal when receiving a request for confirming the exchange completion of the exchange order from the second terminal.
Optionally, the apparatus further comprises:
the numerical value determining module is used for determining the numerical value included in each auction request when receiving the auction requests of a plurality of second terminals to the item information, wherein the exchange requests are auction requests;
the terminal determining module is used for determining a second terminal corresponding to the maximum value in the plurality of values as a designated terminal;
the order generating module is used for generating an exchange order according to the specified terminal;
the value transferring module is used for transferring the maximum value in the account corresponding to the appointed terminal to a third party account;
the sending module is further configured to send the exchange order to the designated terminal;
the value transferring module is further configured to transfer the maximum value in the third-party account to a first account corresponding to the first terminal when receiving a request for confirming the exchange completion of the exchange order from the designated terminal.
In a sixth aspect, there is provided an article exchange apparatus, the apparatus comprising:
the acquisition module is used for acquiring input article information;
a sending module, configured to send the item information to a server, so that the server sends the item information to a second terminal, and when receiving an exchange request sent by the second terminal, returns the exchange request;
and the exchange module is used for exchanging articles with the second terminal based on the exchange request.
Optionally, the obtaining module is further configured to obtain an exchangeable type set by the user, where the exchangeable type includes at least one of an exchange type of an object, a rental type, a sale type, and an auction type.
Optionally, the exchange module is further configured to send a confirmation request to the server when a confirmation operation on the exchange request is detected, so that the server generates an exchange order; and when the exchange order is received, displaying the exchange order.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
according to the method and the device provided by the embodiment of the invention, the first terminal uploads the article information to the server, and the server sends the article information to the second terminal, so that the second terminal can display the exchange options corresponding to the exchangeable types of the article information according to the exchangeable types of the article information, and then the article is exchanged with the first terminal based on the displayed exchange options. Through the server, any user can issue article information or display article information issued by other users, so that users who have idle articles can easily find users who need the idle articles, article exchange is realized, and the process of finding the users is convenient and fast.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of an article exchange system according to an embodiment of the present invention, and referring to fig. 1, the article exchange system includes a first terminal, a second terminal, and a server, the first terminal and the server are connected through a network, and the second terminal and the server are connected through a network.
The first terminal is used for acquiring the input article information and sending the article information to the server.
The server is used for receiving the article information and sending the article information to the second terminal.
The second terminal is used for displaying the article information when receiving the article information, displaying the exchange option corresponding to the exchangeable type of the article information, and exchanging articles with the first terminal based on the displayed exchange option.
Fig. 2 is a flowchart of an article exchange method according to an embodiment of the present invention. The execution subject of the embodiment of the present invention is the second terminal, and referring to fig. 2, the method includes:
201. and receiving the article information sent by the server, wherein the article information is uploaded to the server by the first terminal.
202. And displaying the article information.
203. And displaying the exchange options corresponding to the exchangeable type according to the exchangeable type of the item information.
204. And exchanging articles with the first terminal based on the displayed exchange options.
According to the method provided by the embodiment of the invention, the first terminal uploads the article information to the server, and the server sends the article information to the second terminal, so that the second terminal can display the exchange options corresponding to the exchangeable types according to the exchangeable types of the article information, and then the article exchange is carried out with the first terminal based on the displayed exchange options. Through the server, any user can issue article information or display article information issued by other users, so that users who have idle articles can easily find users who need the idle articles, article exchange is realized, and the process of finding the users is convenient and fast.
Optionally, the receiving the item information sent by the server includes:
acquiring a keyword to be queried;
sending an item query request to the server, wherein the item query request comprises the keyword, so that the server returns item information matched with the keyword;
and receiving the item information matched with the keyword.
Optionally, the receiving the item information sent by the server includes:
positioning the home terminal to obtain the geographic position of the home terminal;
sending the geographical position to the server, so that the server returns the article information when determining that the distance between the geographical position of the first terminal and the geographical position of the home terminal is smaller than a preset distance;
and receiving the article information returned by the server.
Optionally, the displaying, according to the exchangeable type of the item information, an exchange option corresponding to the exchangeable type includes at least one of:
when the exchangeable type comprises an object exchange type, an object exchange option for displaying the object information is displayed;
when the exchangeable type comprises a rental type, displaying rental options of the article information;
when the exchangeable type comprises a selling type, showing a purchasing option of the item information;
the exchangeable type includes an auction option to present the item information when the type of auction is included.
Optionally, the exchanging item with the first terminal based on the display includes:
when the selection operation of the object exchange option is detected, determining object information to be exchanged to the first terminal;
sending an object exchange request to the server, wherein the object exchange request carries the information of the object to be exchanged to the first terminal, so that the server generates an exchange order;
and when receiving the exchange order returned by the server, displaying the exchange order.
Optionally, the exchanging item with the first terminal based on the display includes:
when the selection operation of the renting option is detected, sending a renting request to the server, enabling the server to generate an exchange order, and transferring a first numerical value in a second account corresponding to the local terminal to a third-party account;
and when receiving the exchange order returned by the server, displaying the exchange order.
Optionally, the exchanging item with the first terminal based on the display includes:
when the selection operation of the purchase option is detected, sending a purchase request to the server, enabling the server to generate an exchange order, and transferring the specified numerical value in the second account corresponding to the local terminal to a third party account;
when receiving an exchange order sent by the server, displaying the exchange order;
and when the confirmation operation of the exchange order is detected, sending a confirmation exchange completion request to the server, so that the server transfers the specified numerical value in the third party account to the first account corresponding to the first terminal.
Optionally, the exchanging item with the first terminal based on the display includes:
when the selection operation of the auction option is detected, acquiring an input numerical value;
sending an auction request to the server, wherein the auction request comprises the numerical value, so that the server determines a second terminal corresponding to the maximum numerical value in the auction requests as a designated terminal, and transfers the maximum numerical value in the account corresponding to the designated terminal to a third party account;
when an exchange order generated by the server is received, displaying the exchange order;
and when the confirmation operation of the exchange order is detected, sending a confirmation exchange completion request to the server, so that the server transfers the specified numerical value in the third party account to the first account corresponding to the first terminal.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Fig. 3 is a flowchart of an article exchange method according to an embodiment of the present invention. The execution subject of the embodiment of the present invention is a server, and referring to fig. 3, the method includes:
301. and receiving the article information sent by the first terminal.
302. And sending the item information to a second terminal, so that the second terminal displays the item information and displays an exchange option corresponding to the exchangeable type of the item information, wherein the exchange option is used for triggering a corresponding exchange request.
303. When receiving the exchange request sent by the second terminal, sending the exchange request to the first terminal, so that the first terminal and the second terminal exchange articles based on the exchange request.
According to the method provided by the embodiment of the invention, the first terminal uploads the article information to the server, and the server sends the article information to the second terminal, so that the second terminal can display the exchange options corresponding to the exchangeable types according to the exchangeable types of the article information, and then the article is exchanged with the first terminal based on the displayed exchange options. Through the server, any user can issue article information or display article information issued by other users, so that users who have idle articles can easily find users who need the idle articles, article exchange is realized, and the process of finding the users is convenient and fast.
Optionally, the sending the item information to the second terminal includes:
acquiring the geographical position of the first terminal as a first geographical position;
positioning the second terminal to obtain the geographic position of the second terminal as a second geographic position;
and when the distance between the first geographical position and the second geographical position is determined to be smaller than the preset distance, the article information is sent to the second terminal.
Optionally, the sending the item information to the second terminal includes:
receiving an item query request of the second terminal, wherein the item query request comprises key words;
and when the keyword is determined to be matched with the item information, sending the item information to the second terminal.
Optionally, the method further comprises:
the exchange request is an object exchange request, and when a confirmation request of the first terminal to the exchange request is received, an exchange order is generated according to the confirmation request;
sending the exchange order to the first terminal;
and sending the exchange order to the second terminal.
Optionally, the method further comprises:
the exchange request is a lease request, and when a confirmation request of the first terminal to the exchange request is received, an exchange order is generated;
transferring the first numerical value in the second account corresponding to the second terminal to a third party account;
sending the exchange order to the first terminal;
when a request for confirming the exchange completion of the exchange order from the first terminal is received, transferring the second numerical value in the second account to the first account corresponding to the first terminal, and returning the first numerical value in the third party account to the second account; or,
and when the maintaining time length of the exchange order is determined to exceed the preset time length and a confirmation exchange completion request of the exchange order is not received, transferring the first value in the third party account to the first account.
Optionally, the method further comprises:
the exchange request is a purchase request, and when a confirmation request of the first terminal to the exchange request is received, an exchange order is generated;
transferring the designated numerical value in the second account corresponding to the second terminal to a third party account;
sending the exchange order to the second terminal;
and when a request for confirming the exchange completion of the exchange order from the second terminal is received, transferring the specified numerical value in the third party account to the first account corresponding to the first terminal.
Optionally, the method further comprises:
the exchange request is an auction request, and when receiving auction requests of a plurality of second terminals for the item information, the exchange request determines a numerical value included in each auction request;
determining a second terminal corresponding to the maximum value in the plurality of values as a designated terminal;
generating an exchange order according to the appointed terminal;
transferring the maximum value in the account corresponding to the appointed terminal to a third party account;
sending the exchange order to the appointed terminal;
and when a request for confirming the exchange completion of the exchange order from the designated terminal is received, transferring the maximum value in the third-party account to a first account corresponding to the first terminal.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Fig. 4 is a flowchart of an article exchange method according to an embodiment of the present invention. The execution subject of the embodiment of the present invention is the second terminal, and referring to fig. 4, the method includes:
401. and acquiring the input article information.
402. And sending the article information to a server, so that the server sends the article information to the second terminal, and returning the exchange request when receiving the exchange request sent by the second terminal.
403. And exchanging articles with the second terminal based on the exchange request.
According to the method provided by the embodiment of the invention, the server sends the article information to the second terminal by uploading the article information to the server, and the second terminal can display the exchange options corresponding to the exchangeable types according to the exchangeable types of the article information, so that article exchange is carried out with the first terminal based on the displayed exchange options. Through the server, any user can issue article information or display article information issued by other users, so that users who have idle articles can easily find users who need the idle articles, article exchange is realized, and the process of finding the users is convenient and fast.
Optionally, the acquiring the input item information includes:
acquiring an exchangeable type set by a user, wherein the exchangeable type comprises at least one of an object exchange type, a rental type, a sale type and an auction type.
Optionally, the exchanging the item with the second terminal based on the exchange request includes:
when the confirmation operation of the exchange request is detected, sending a confirmation request to the server so that the server generates an exchange order;
when the exchange order is received, the exchange order is presented.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Fig. 5 is a flowchart of an article exchange method according to an embodiment of the present invention. The interaction subject of the embodiment of the invention is a first terminal, a second terminal and a server, referring to fig. 5, the method includes:
501. the first terminal acquires the input article information and transmits the article information to the server.
In the embodiment of the present invention, both the first terminal and the second terminal may register personal information on a server, and after registration, the server may allocate user identifiers to the first terminal and the second terminal, and the first terminal and the second terminal may log in the server based on the corresponding user identifiers. The personal information may include name, gender, age, occupation, hobby, and the like, and the user identifier may be a user account, a user nickname, and the like, which is not limited in the embodiment of the present invention.
Further, the server may be configured to provide a service for the commodity exchange application, and the first terminal and the second terminal may install a commodity exchange application through which to interact with the server.
When a first terminal user has some idle articles and wants to exchange the idle articles to other users, article information can be input on the first terminal, and the first terminal can acquire the article information and send the article information to the server, so that the other users can check the article information through the server.
The article information is used to describe the article of the first end user, and may include the type, name, production date, manufacturer, picture, etc. of the article. And the item information may be different for different types of items. For example, the article information of the book includes a name, an author, a publisher, and the like of the book, and the article information of the mobile phone includes a model number, a screen size, a storage capacity, a system version, and the like of the mobile phone, which is not limited in the embodiment of the present invention.
In addition, when the first terminal acquires the article information, the first terminal can perform positioning, acquire the current geographic position, send the current geographic position to the server, and store the geographic position of the first terminal by the server. The first terminal may specifically perform positioning by using a GPS (global positioning system), or perform positioning by using a base station, which is not limited in the embodiment of the present invention. Alternatively, the first terminal may not perform positioning, but obtain the geographical location input by the user or the geographical location selected by the user from the network map, and send the geographical location to the server, and the server stores the geographical location.
And the first terminal sends the item information for the purpose of exchanging items with other users, the first terminal user may set an exchangeable type of the item, the first terminal obtains the set exchangeable type, and sends the exchangeable type to the server when sending the item information, and the exchangeable type may include at least one of an item exchange type, a rental type, a sale type, and an auction type, which is not limited in the embodiments of the present invention. Of course, the first end user may not set the exchangeable type, and the server may set the exchangeable type of the item information to the default exchangeable type.
In addition, after the first terminal issues the item information on the server, the item information can be modified or deleted according to the requirement of the first terminal user.
502. And when receiving the article information, the server stores the article information and sends the article information to the second terminal.
When the server receives the item information, the item information may be stored in correspondence with the personal information of the first terminal and the user identifier of the first terminal.
In the embodiment of the present invention, both the first terminal and the second terminal may publish item information on the server, or display the item information published by the server. Then, when the server receives the article information of the first terminal, the server can send the article information to the second terminal, and the second terminal can display the article information, at this time, the second terminal user can check the article information, and if the second terminal user needs the article, the second terminal user can exchange articles with the first terminal user.
In addition, the embodiment of the present invention is described only by taking an example that the server transmits the article information to the second terminal, but in practical applications, when the server receives the article information, the server may transmit the article information to any terminal that registers the server, or may transmit only the article information to a terminal that matches the article information.
The terminal matched with the item information may be a terminal matched with the item information by the queried keyword or a terminal near the first terminal. Correspondingly, for the second terminal, when transmitting the article information to the second terminal, the method further comprises the following steps (1) or (2):
(1) and the second terminal acquires the keyword to be inquired and sends an item inquiry request to the server, wherein the item inquiry request comprises the keyword. And when the server receives the item query request, acquiring the item information matched with the keyword, and sending the acquired item information to the second terminal.
The keyword may be a keyword for indicating information such as an item type, an exchangeable type of an item, and an item name, and the keyword may be input in a search bar by a second terminal user, or may be selected and determined by the second terminal user after being provided by the server for the second terminal, which is not limited in the embodiment of the present invention. And when the server receives an item query request, acquiring the keyword, judging whether each item information stored comprises the keyword, and if any item information comprises the keyword, determining that the item information is matched with the keyword.
By inquiring the article information, the server can acquire the article information matched with the keyword and send the article information to the second terminal, and for the article information not matched with the keyword, the server can not send the article information to the second terminal.
(2) The second terminal carries out positioning to obtain the geographic position of the second terminal and sends the geographic position to the server, and the server sends the article information to the second terminal when determining that the distance between the geographic position of the first terminal and the geographic position of the second terminal is smaller than a preset distance;
the second terminal may also send the current geographic position to the server, and then the server may obtain the geographic position of the first terminal as the first geographic position, obtain the geographic position of the second terminal as the second geographic position, determine whether the distance between the first geographic position and the second geographic position is smaller than a preset distance, send the item information to the second terminal when the distance between the first terminal and the second terminal is smaller than the preset distance, and receive the item information returned by the server by the second terminal.
For the second terminal, after acquiring the geographic position of the second terminal, the server may determine the distance between the geographic position of the second terminal and the geographic position corresponding to each item information, thereby determining a terminal whose distance between the geographic position and the geographic position of the second terminal is smaller than a preset distance, that is, a terminal near the second terminal, and then sending the item information issued by the terminal near the second terminal to the second terminal.
In practical application, for the first end user, the purpose of exchanging the idle articles by the first end user is to save resources and avoid waste. However, if the first end user finds a user who needs to idle the item, but the distance between the user and the first end user is too large, the first end user can only mail the item when exchanging the item, and the transportation cost of the mail item is high, and the resource of the first end user is consumed.
In view of the above problems, the server determines the geographical position, so that the distance between the first terminal and the second terminal is ensured to be short, excessive transportation cost is avoided when the article is mailed, and resources of the first terminal user and the second terminal user are saved.
503. And when the second terminal receives the article information, displaying the article information, and displaying the exchange options corresponding to the exchangeable types according to the exchangeable types of the article information.
When the second terminal receives the article information issued by the first terminal, the article information is displayed so that a second terminal user can check the article information and know the specific information of the article. And in order to facilitate the exchange of the articles, the second terminal can also display the exchange options corresponding to each exchangeable type according to the exchangeable type of the article information.
The exchangeable type is in one-to-one correspondence with the exchange option, and the exchangeable type may include at least one of an item exchange type, a rental type, a sale type, and an auction type, and correspondingly, the exchange option may include at least one of an item exchange option, a rental option, a purchase option, and an auction option. That is, when the exchangeable type includes an exchange type, the second terminal displays an exchange option of the item information. The exchangeable type includes a rental option for showing the item information when the rental type is included. The exchangeable type includes a purchase option for showing the item information when the selling type is included. The exchangeable type includes an auction option to present the item information when the type of auction is included.
504. And when the second terminal detects the click operation on any exchange option, sending an exchange request corresponding to the exchange option to the server, and sending the exchange request to the first terminal by the server.
In the embodiment of the present invention, the exchange option displayed by the second terminal is used to trigger a corresponding exchange request, when the second terminal user desires to exchange the item with the first terminal user, the corresponding exchange option may be clicked according to a desired exchange type, and then the second terminal sends the exchange request corresponding to the exchange option to the server when detecting a click operation on the exchange option, and when receiving the exchange request, the server sends the exchange request to the first terminal.
505. And when the first terminal receives the exchange request, the first terminal exchanges articles with the second terminal based on the exchange request.
The exchange request may be presented when the first terminal receives the exchange request, at which point the first terminal user may view the exchange request to determine whether to exchange items with the second terminal. Further, when the server sends the exchange request to the first terminal, the server may also send the personal information, the geographic location, or the user identifier of the second terminal, so that the first terminal user can view the personal information, the geographic location, or the user identifier of the second terminal. At this time, the first terminal user may determine whether to exchange items with the second terminal according to the personal information or the geographical location of the second terminal. Or, the first terminal user may also perform instant messaging with the second terminal user according to the user identifier of the second terminal, and negotiate about the specific matters of exchanging articles with the second terminal user, thereby determining whether to perform article exchange with the second terminal user, and improving negotiation efficiency.
If a first terminal user wants to exchange articles with a second terminal user and can trigger a confirmation operation of an exchange request, when the first terminal detects the confirmation operation of the exchange request, the first terminal sends a confirmation request to the server, when the server receives the confirmation request, an exchange order is generated, the server can send the exchange order to the first terminal and the second terminal, when the first terminal receives the exchange order, the exchange order is displayed, and when the second terminal receives the exchange order, the exchange order is displayed.
After the exchange order is generated, the first end user and the second end user may perform item exchange, at this time, the first end user may mail the item to an address determined by the second end user, or the first end user and the second end user may have an appointed place, and exchange the item at the appointed place, specifically, whether a mailing method or an in-place exchange method is adopted may be determined by negotiation between the first end user and the second end user, which is not limited in the embodiment of the present invention.
It should be noted that, for different exchange types, the exchange request is different, and the specific process of exchanging items between the first terminal and the second terminal is also different. That is, the step 507 may include at least one of the following steps (1) to (4):
(1) when a second terminal detects the selection operation of an object exchange option, determining the information of an object to be exchanged to the first terminal, sending an object exchange request to the server, wherein the object exchange request carries the information of the object to be exchanged to the first terminal, when the server receives the object exchange request, sending the object exchange request to the first terminal, when the first terminal receives the object exchange request, displaying the object exchange request, when the confirmation operation of the object exchange request is detected, sending a confirmation request to the server, when the server receives the confirmation request, generating an exchange order, sending the exchange order to the first terminal and the second terminal, when the first terminal receives the exchange order returned by the server, displaying the exchange order, and when the second terminal receives the exchange order returned by the server, and displaying the exchange order. At this time, the first end user and the second end user can exchange articles based on the exchange order.
The exchange order may include the item information of the first terminal, and various information such as the item information, the exchange location, the exchange type, and the exchange time to be exchanged to the first terminal by the second terminal.
For example, the B user checks the book X of the a user, selects the book Y or other articles of the B user when the B user wants to acquire the book X of the a user, initiates an article exchange request to the a user, and after the a user agrees, the B user and the a user can exchange articles at an appointed place or respectively mail the articles to be exchanged to the other party.
(2) When the second terminal detects the selection operation of the renting option, a renting request is sent to the server, when the server receives the renting request, the renting request is sent to the first terminal, when the first terminal receives the renting request, the renting request is displayed, when the confirmation operation of the renting request is detected, a confirmation request is sent to the server, when the server receives the confirmation request, an exchange order is generated, a first value in a second account corresponding to the second terminal is transferred to a third-party account, the exchange order is generated, the exchange order is sent to the first terminal and the second terminal, when the first terminal receives the exchange order returned by the server, the exchange order is displayed, and when the second terminal receives the exchange order returned by the server, the exchange order is displayed.
When the first terminal detects the exchange completion confirmation operation of the exchange order, the exchange completion confirmation request of the exchange order is sent to the server, and the server can transfer the second numerical value in the second account to the first account corresponding to the first terminal and return the first numerical value in the third party account to the second account.
The difference from step (1) above is that in step (2) the second end-user uses the item in a rental format, and the item is returned to the first end-user when subsequent uses are completed. The second terminal user may exchange the item by paying "deposit + rent", that is, the server maintains a first account corresponding to the first terminal and a second account corresponding to the second terminal, the server may transfer the first value in the second account as a deposit to a third party account, and then generate an exchange order, at this time, the first terminal user may exchange the item to the second terminal user. And when the subsequent second terminal user finishes using and returns the article to the first terminal user, the first terminal user confirms that the exchange is finished, the server can transfer the second numerical value in the second account to the first account as a rent, and return the deposit in the third party account to the second account. The second value in the second account may be transferred to the first account directly or via a third party account, which is not limited in the embodiment of the present invention.
Or, after the server generates the exchange order, the server may count the maintaining time of the exchange order along with the time, and when the second terminal user is overdue and does not return the item to the first terminal user, the server may determine that the maintaining time of the exchange order exceeds the preset time, but does not receive the confirmation exchange completion request of the first terminal user for the exchange order, and transfer the deposit in the third party account to the first account of the first terminal.
The first value and the second value may be agreed by the first end user and the second end user, or determined by the server according to a duration of renting the item by the second end user, which is not limited in the embodiment of the present invention.
For example, the user B wants to rent the book of the user a, and can submit the deposit first, the user a can select the express delivery or the appointed place to pick up the goods, and the like, and hand the book to the user B, and the book is returned to the user a after the user B finishes watching the book, at this time, the user a can receive the deposit, and the user B can also receive the returned deposit.
(3) When the second terminal detects the selection operation of the purchase option, a purchase request is sent to the server, when the server receives the purchase request, the purchase request is sent to the first terminal, when the first terminal receives the purchase request, the purchase request is displayed, when the confirmation operation of the purchase request is detected, a confirmation request is sent to the server, when the server receives the confirmation request, an exchange order is generated, the specified numerical value in a second account corresponding to the second terminal is transferred to a third-party account, when the first terminal receives the exchange order returned by the server, the exchange order is displayed, and when the second terminal receives the exchange order returned by the server, the exchange order is displayed.
And when the server receives the exchange confirmation request, transferring the specified numerical value in the third party account to the first account corresponding to the first terminal. The specified value may be determined by negotiation between the first end user and the second end user or determined by the server, which is not limited in the embodiment of the present invention.
(4) When the second terminal detects the selection operation of the auction option, the input numerical values are obtained, auction requests are sent to the server, the auction requests comprise the numerical values, when the server receives auction requests of a plurality of second terminals for the item information, the numerical values included in each auction request are determined, the second terminal corresponding to the maximum numerical value in the numerical values is determined to serve as a designated terminal, an exchange order is generated according to the designated terminal, the maximum numerical value in an account corresponding to the designated terminal is transferred to a third-party account, and the exchange order is sent to the first terminal and the designated terminal.
When the appointed terminal receives the exchange order generated by the server, the exchange order is displayed, when the confirmation operation of the exchange order is detected, a confirmation exchange completion request is sent to the server, and when the confirmation exchange completion request is received by the server, the appointed value in the third party account is transferred to the first account corresponding to the first terminal.
The difference from the above steps (1) - (3) is that in step (4), the plurality of second terminals adopt an auction form to rob for the item, when each second terminal initiates an auction request, it is necessary to determine the value paid for purchasing the item, then the server receives the auction requests sent by the plurality of second terminals, and selects the maximum value from the plurality of auction requests, thereby determining the designated terminal of the plurality of second terminals that the auction succeeds, and generating the exchange order according to the designated terminal. The server may transfer the value determined by the designated terminal, that is, the maximum value among the plurality of values, from the account corresponding to the designated terminal to a third party account, at which time the first terminal user may exchange the item to the designated terminal user, and in a subsequent process, when the designated terminal user confirms that the item is received, a confirmation operation of the exchange order may be triggered, and then the server may transfer the designated value in the third party account to the first account, thereby completing a payment process.
It should be noted that, the embodiment of the present invention is only described by taking the above four exchange types as examples, and other exchange types may also be adopted in practical applications, which is not limited in the embodiment of the present invention.
According to the method provided by the embodiment of the invention, the first terminal uploads the article information to the server, and the server sends the article information to the second terminal, so that the second terminal can display the exchange options corresponding to the exchangeable types according to the exchangeable types of the article information, and then the article exchange is carried out with the first terminal based on the displayed exchange options. Through the server, any user can issue article information or display article information issued by other users, so that users who have idle articles can easily find users who need the idle articles, article exchange is realized, and the process of finding the users is convenient and fast. Furthermore, users of both parties exchanging articles can communicate instantly through the server, and negotiation efficiency is improved.
Fig. 6 is a schematic structural diagram of an article exchange device according to an embodiment of the present invention, and referring to fig. 6, the device includes:
a receiving module 601, configured to receive item information sent by a server, where the item information is uploaded to the server by a first terminal;
a display module 602, configured to display the item information;
the display module 602 is further configured to display, according to the exchangeable type of the item information, an exchange option corresponding to the exchangeable type;
the exchanging module 603 is configured to exchange items with the first terminal based on the displayed exchanging option.
According to the device provided by the embodiment, the article information is uploaded to the server through the first terminal, and the server sends the article information to the device, so that the device can display the exchange options corresponding to the exchangeable types according to the exchangeable types of the article information, and then the article is exchanged with the first terminal based on the displayed exchange options. Through the server, any user can issue article information or display article information issued by other users, so that users who have idle articles can easily find users who need the idle articles, article exchange is realized, and the process of finding the users is convenient and fast.
Optionally, the apparatus further comprises:
the query word acquisition module is used for acquiring a keyword to be queried;
the sending module is used for sending an item query request to the server, wherein the item query request comprises the keyword, so that the server returns the item information matched with the keyword;
the receiving module 601 is configured to receive the item information matched with the keyword.
Optionally, the apparatus further comprises:
the positioning module is used for positioning the home terminal to obtain the geographic position of the home terminal;
the sending module is used for sending the geographical position to the server so that the server returns the article information when the distance between the geographical position of the first terminal and the geographical position of the home terminal is determined to be smaller than a preset distance;
the receiving module 601 is configured to receive the item information returned by the server.
Optionally, the display module 602 is further configured to display an item exchange option of the item information when the exchangeable type includes an item exchange type;
the display module 602 is further configured to display a rental option of the item information when the exchangeable type includes a rental type;
the display module 602 is further configured to display a purchase option of the item information when the exchangeable type includes a selling type;
the presentation module 602 is further configured to present an auction option for the item information when the exchangeable type comprises an auction type.
Optionally, the exchanging module 603 is further configured to determine, when a selection operation of an item exchanging option is detected, item information to be exchanged for the first terminal; sending an object exchange request to the server, wherein the object exchange request carries the information of the object to be exchanged to the first terminal, so that the server generates an exchange order; and when receiving the exchange order returned by the server, displaying the exchange order.
Optionally, the exchanging module 603 is further configured to send a lease request to the server when a selection operation on the lease option is detected, so that the server generates an exchange order and transfers the first value in the second account corresponding to the local terminal to the third party account; and when receiving the exchange order returned by the server, displaying the exchange order.
Optionally, the exchange module 603 is further configured to, when a selection operation of the purchase option is detected, send a purchase request to the server, so that the server generates an exchange order and transfers a specified value in a second account corresponding to the local terminal to a third party account; when receiving an exchange order sent by the server, displaying the exchange order; and when the confirmation operation of the exchange order is detected, sending a confirmation exchange completion request to the server, so that the server transfers the specified numerical value in the third party account to the first account corresponding to the first terminal.
Optionally, the exchanging module 603 is further configured to obtain an input numerical value when a selection operation of the auction option is detected; sending an auction request to the server, wherein the auction request comprises the numerical value, so that the server determines a second terminal corresponding to the maximum numerical value in the auction requests as a designated terminal, and transfers the maximum numerical value in the account corresponding to the designated terminal to a third party account; when an exchange order generated by the server is received, displaying the exchange order; and when the confirmation operation of the exchange order is detected, sending a confirmation exchange completion request to the server, so that the server transfers the specified numerical value in the third party account to the first account corresponding to the first terminal.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Fig. 7 is a schematic structural diagram of an article exchange device according to an embodiment of the present invention, and referring to fig. 7, the device includes:
a receiving module 701, configured to receive article information sent by a first terminal;
a sending module 702, configured to send the item information to a second terminal, so that the second terminal displays the item information and displays an exchange option corresponding to an exchangeable type of the item information, where the exchange option is used to trigger a corresponding exchange request;
the sending module 702 is further configured to send the exchange request to the first terminal when receiving the exchange request sent by the second terminal, so that the first terminal and the second terminal perform item exchange based on the exchange request.
According to the device provided by the embodiment of the invention, the article information is uploaded to the device through the first terminal, and the device sends the article information to the second terminal, so that the second terminal can display the exchange options corresponding to the exchangeable types according to the exchangeable types of the article information, and then the article exchange is carried out with the first terminal based on the displayed exchange options. By the device, any user can issue article information or display the article information issued by other users, so that users who have idle articles can easily find users who need the idle articles, article exchange is realized, and the process of finding the users is convenient and fast.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring the geographic position of the first terminal as a first geographic position;
the positioning module is used for positioning the second terminal to obtain the geographic position of the second terminal as a second geographic position;
the sending module 702 is further configured to send the item information to the second terminal when it is determined that the distance between the first geographic location and the second geographic location is smaller than a preset distance.
Optionally, the apparatus further comprises:
the receiving module 701 is further configured to receive an item query request of the second terminal, where the item query request includes a keyword;
the sending module 702 is further configured to send the item information to the second terminal when it is determined that the keyword matches the item information.
Optionally, the apparatus further comprises:
the order generation module is used for generating an exchange order according to a confirmation request when the exchange request is an object exchange request and the confirmation request of the first terminal to the exchange request is received;
the sending module 702 is further configured to send the exchange order to the first terminal;
the sending module 701 is further configured to send the exchange order to the second terminal.
Optionally, the apparatus further comprises:
the order generation module is used for generating an exchange order when the exchange request is a lease request and a confirmation request of the first terminal to the exchange request is received;
the value transfer module is used for transferring a first value in a second account corresponding to the second terminal to a third party account;
the sending module 702 is further configured to send the exchange order to the first terminal;
the value transferring module is further configured to transfer the second value in the second account to the first account corresponding to the first terminal and return the first value in the third party account to the second account when receiving a request of the first terminal for confirming the completion of the exchange order; or,
the value transferring module is further used for transferring the first value in the third party account to the first account when the maintaining time length of the exchange order is determined to exceed the preset time length but a confirmation exchange completion request for the exchange order is not received.
Optionally, the apparatus further comprises:
the order generation module is used for generating an exchange order when the exchange request is a purchase request and a confirmation request of the first terminal to the exchange request is received;
the value transfer module is used for transferring the designated value in the second account corresponding to the second terminal to a third party account;
the sending module 702 is further configured to send the exchange order to the second terminal;
the value transferring module is further configured to transfer the specified value in the third party account to the first account corresponding to the first terminal when receiving a request for confirming the exchange completion of the exchange order from the second terminal.
Optionally, the apparatus further comprises:
the numerical value determining module is used for determining the numerical value included in each auction request when receiving the auction requests of a plurality of second terminals to the item information, wherein the exchange requests are auction requests;
the terminal determining module is used for determining a second terminal corresponding to the maximum value in the plurality of values as a designated terminal;
the order generating module is used for generating an exchange order according to the specified terminal;
the value transferring module is used for transferring the maximum value in the account corresponding to the appointed terminal to a third party account;
the sending module 702 is further configured to send the exchange order to the designated terminal;
the value transferring module is further configured to transfer the maximum value in the third-party account to the first account corresponding to the first terminal when receiving a request for confirming the exchange completion of the exchange order from the designated terminal.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Fig. 8 is a schematic structural diagram of an article exchange device according to an embodiment of the present invention, and referring to fig. 8, the device includes:
an obtaining module 801, configured to obtain input item information;
a sending module 802, configured to send the item information to a server, so that the server sends the item information to a second terminal, and when receiving an exchange request sent by the second terminal, returns the exchange request;
an exchanging module 803, configured to perform item exchange with the second terminal based on the exchange request.
According to the device provided by the embodiment of the invention, the server sends the article information to the second terminal by uploading the article information to the server, and the second terminal can display the exchange options corresponding to the exchangeable types according to the exchangeable types of the article information, so that article exchange is carried out with the device based on the displayed exchange options. Through the server, any user can issue article information or display article information issued by other users, so that users who have idle articles can easily find users who need the idle articles, article exchange is realized, and the process of finding the users is convenient and fast.
Optionally, the obtaining module is further configured to obtain an exchangeable type set by the user, where the exchangeable type includes at least one of an exchange type of an object, a rental type, a sale type, and an auction type.
Optionally, the exchange module is further configured to send a confirmation request to the server when a confirmation operation of the exchange request is detected, so that the server generates an exchange order; when the exchange order is received, the exchange order is presented.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
It should be noted that: in the article exchange apparatus provided in the above embodiment, when exchanging articles, only the division of each function module is exemplified, and in practical applications, the function distribution may be completed by different function modules according to needs, that is, the internal structures of the terminal and the server are divided into different function modules to complete all or part of the functions described above. In addition, the article exchange device provided by the above embodiment and the article exchange method embodiment belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment and will not be described herein again.
Fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal may be used to implement the functions performed by the terminal in the method of exchanging items shown in the above embodiments. Specifically, the method comprises the following steps:
terminal 900 can include RF (radio frequency) circuitry 110, memory 120 including one or more computer-readable storage media, input unit 130, display unit 140, sensor 150, audio circuitry 160, transmission module 170, processor 180 including one or more processing cores, and power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 9 does not constitute a limitation of the terminal, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (low noise amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other terminals via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (global system for mobile communications), GPRS (general packet radio service), CDMA (code division multiple access), WCDMA (wideband code division multiple access), LTE (long term evolution), email, SMS (short messaging service), etc.
The memory 120 may be used to store software programs and modules, such as the software programs and modules corresponding to the terminal shown in the above exemplary embodiment, and the processor 180 executes various functional applications and data processing, such as implementing video-based interaction, by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 900, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, input unit 130 may include a touch-sensitive surface 131 as well as other input terminals 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding link device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input terminals 132. In particular, other input terminals 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 900, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and optionally, the display panel 141 may be configured in the form of an LCD (liquid crystal display), an OLED (organic light-emitting diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 9, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal 900 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal 900 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal 900, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 900. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal 900.
The terminal 900, through the transmission module 170, can assist a user in sending and receiving e-mail, browsing web pages, accessing streaming media, etc., and it provides the user with wireless or wired broadband internet access. Although fig. 9 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal 900 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 900, links various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal 900 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the handset. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Terminal 900 also includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to processor 180 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 900 may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the terminal is a touch screen display, the terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory, and the one or more programs executed by the one or more processors include instructions for implementing the operations performed by the terminal in the above embodiments.
Fig. 10 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 1000 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 1022 (e.g., one or more processors) and a memory 1032, and one or more storage media 1030 (e.g., one or more mass storage devices) for storing applications 1042 or data 1044. Memory 1032 and storage medium 1030 may be, among other things, transient or persistent storage. The program stored on the storage medium 1030 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, a central processor 1022 may be disposed in communication with the storage medium 1030, and configured to execute a series of instruction operations in the storage medium 1030 on the server 1000.
The server 1000 may also include one or more power supplies 1026, one or more wired or wireless network interfaces 1050, one or more input-output interfaces 1058, one or more keyboards 1056, and/or one or more operating systems 1041, such as a Windows ServerTM,MacOSXTM,UnixTM,LinuxTM,FreeBSDTMAnd so on.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.