Information exchange method, device, electronic device and readable storage medium
By realizing information exchange between multiple devices on the server side, it solves the problem of single function of electronic devices and online platform systems, dynamically exchanges numbers or resources, improves user experience and platform functions, and meets the needs of different users.
Patent Information
- Application Number
- CN202210168279.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-23
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-02-23
AI Technical Summary
Existing electronic equipment and online platform systems have single functions and cannot meet the actual needs of users, resulting in poor user experience, especially when online number queuing is caused by inaccurate time estimates or changes in arrangements, resulting in invalid numbers and increased waiting time. question.
After receiving the exchange request information of the device through the server, it sends the exchange information to multiple devices, and after receiving the feedback information, it exchanges the information of the target device with the information of the requesting device to realize the dynamic exchange of numbers or other resources to meet the requirements User needs.
It improves the social interaction between users and the diversity of platform functions, allowing users to dynamically exchange numbers or resources when they cannot arrive on time, avoiding resource failure and increasing waiting time, and improving user experience.
Smart Images

Figure CN114567610B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to an information exchange method, device, electronic device and readable storage medium. Background Art
[0002] With the widespread application of intelligent electronic devices, the functions of electronic devices are increasing. At present, electronic devices can usually interact with the servers of related platforms to realize functions such as online queuing, online shopping, and online ticket booking.
[0003] In the related art, when a user uses an electronic device to queue online, after picking up the number, if the user cannot arrive at the queuing place at the time indicated by the number due to inaccurate time estimation or changes in schedule, the user can only cancel the current queue or re-queue, making the original queue number invalid. In this way, when using online related functions, the functions of the electronic device and the online platform system are relatively single and cannot meet the actual needs of users, resulting in a poor user experience. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an information exchange that can solve the problem that the functions of electronic devices and online platform systems are relatively single and cannot meet the actual needs of users.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides an information exchange method, the method comprising: when a server receives first exchange request information sent by a first device, the server sends first exchange information to N second devices respectively, wherein the first exchange information includes the first information pre-allocated by the server to the first device; when the server receives first feedback information sent by M second devices, the server exchanges the second information of the target device with the first information of the first device, the first feedback information includes the second information pre-allocated by the server to the target device, and the M second devices include the target device; wherein the first feedback information is used to indicate that the M second devices agree to the exchange, M and N are positive integers, and M is less than or equal to N.
[0007] In a second aspect, an embodiment of the present application provides a server, comprising: a sending module and a processing module, wherein: the sending module is used to send first exchange information to N second devices respectively upon receiving first exchange request information sent by a first device; wherein the first exchange information includes first information pre-allocated for the first device; the processing module is used to exchange the second information of the target device with the first information of the first device upon receiving first feedback information sent by M second devices, the first feedback information includes second information pre-allocated for the target device, and the M second devices include the target device; wherein the first feedback information is used to indicate that the M second devices agree to the exchange, M and N are positive integers, and M is less than or equal to N.
[0008] In a third aspect, an embodiment of the present application provides an information exchange method, the method comprising: a first device sends a first exchange request message to a server, the first exchange request message is used to request information exchange; the first device receives first feedback information of M second devices sent by the server, the first feedback information comprises: second information pre-allocated by the server to each second device respectively; the first device sends an exchange response to the server, the exchange response is used to indicate that the first device confirms to exchange the first information with the second information of the target device, the first information is the information pre-allocated by the server to the first device; wherein the target device is one of the M second devices, and M is a positive integer.
[0009] In a fourth aspect, an embodiment of the present application provides an information exchange device, comprising: a sending module and a receiving module, wherein: the sending module is used to send a first exchange request message to a server, and the first exchange request message is used to request information exchange; the receiving module is used to receive first feedback information of M second devices sent by the server, and the first feedback information includes: second information pre-allocated by the server to each second device respectively; the sending module is also used to send an exchange response to the server, and the exchange response is used to indicate that the first device confirms to exchange the first information with the second information of the target device, and the first information is the information pre-allocated by the server to the first device; wherein the target device is one of the M second devices, and M is a positive integer.
[0010] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0011] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0012] In a seventh aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0013] In an eighth aspect, an embodiment of the present application provides a computer program product, which is stored in a non-volatile storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0014] In an embodiment of the present application, when the server receives the first exchange request information sent by the first device, the server sends the first exchange information to N second devices respectively, wherein the first exchange information includes the first information pre-allocated by the server for the first device; when the server receives the first feedback information sent by M second devices, the server exchanges the second information of the target device with the first information of the first device, wherein the first feedback information includes the second information pre-allocated by the server for the target device, and the M second devices include the target device; wherein the first feedback information is used to indicate that the M second devices agree to exchange. Through this method, after receiving the first exchange request information of the first device, the server can send the first exchange information to multiple second devices, and when receiving the first feedback information sent by at least one second device, the first information of the first device and the second information of the target device in the second device are exchanged. In this way, the information exchange function is provided for users, the sociality between users is increased, and the functional diversity of servers and electronic devices is increased, thereby meeting the information needs of different users. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is one of the flow charts of an information interaction method provided in an embodiment of the present application;
[0016] Figure 2 This is the second flowchart of an information interaction method provided in an embodiment of the present application;
[0017] Figure 3 This is one of the structural schematic diagrams of an information exchange device provided in an embodiment of the present application;
[0018] Figure 4 This is a second structural diagram of an information exchange device provided in an embodiment of the present application;
[0019] Figure 5This is one of the structural schematic diagrams of an electronic device provided in an embodiment of the present application;
[0020] Figure 6 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0023] The information exchange method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0024] The information exchange method provided in the embodiment of the present application can be applied to the scenario of online queuing.
[0025] Take online queuing through electronic devices as an example. When a user uses an electronic device to check the queue situation of the target restaurant online through an application / mini program and takes a number, if the user cannot arrive at the restaurant at the time indicated by the number due to inaccurate time estimation or changes in schedule, the user can only cancel the current queue and queue up again, making the original number invalid and increasing the waiting time, affecting the user's dining plan.
[0026] In the information exchange method provided in the embodiment of the present application, when a user uses an electronic device to check the queue situation of a target restaurant online through an application / mini program and takes a number, if the user is unable to arrive at the restaurant at the time indicated by the number due to inaccurate time estimation or changes in arrangements, the user can initiate a number exchange request through the electronic device. The server can transmit the number information of the electronic device to other electronic devices, and exchange the numbers of both parties after the electronic devices of both parties agree to exchange numbers, so that users can exchange the queue numbers they have taken, thereby enhancing the sociality of users when queuing online, thereby meeting the actual needs of users and increasing the sociality and functional diversity of the platform.
[0027] The present application embodiment provides an information exchange method, Figure 1 FIG. 1 is a flow chart showing the information exchange method provided by an embodiment of the present application. Figure 1 As shown, the information exchange method provided in the embodiment of the present application may include the following steps 201 and 202:
[0028] Step 201: When the server receives first exchange request information sent by a first device, the server sends first exchange information to N second devices respectively.
[0029] The first exchange information includes first information pre-allocated by the server to the first device.
[0030] In the embodiment of the present application, the first exchange request information is used to request information exchange with the second device.
[0031] In this embodiment of the present application, the first device may send the first exchange request information to the server.
[0032] Optionally, the first device may be a user equipment, that is, a terminal.
[0033] Optionally, in this embodiment of the present application, the first exchange request information includes first information pre-allocated by the server to the first device.
[0034] Optionally, the first information may include at least one of the following: queue number information, ticket purchase information, etc. Exemplarily, the queue number information may be: queue number information at a restaurant, queue number information at a scenic spot, queue number information when handling business (such as handling related business at a bank). Exemplarily, the ticket purchase information may be: bus ticket information, ticket information, etc.
[0035] For example, if a user needs to dine at a certain restaurant, the user can log in to the restaurant's platform to get a number online. After getting the number, the user can go to the restaurant to dine according to the number. Assuming that the number the user gets is 30, the user can dine at the restaurant when the number at the restaurant is 30. For another example, if a user needs to handle business at a bank, and the number information the user gets from the bank's calling system is 10, the user can handle the business when the calling system prompts that the number currently called is 10. For another example, if a user makes an online appointment for a consultation time at a certain hospital and the number is 40, the user can go to the hospital when the calling system prompts that the number currently called is 40.
[0036] It is understandable that after getting a number, users usually cannot eat or handle business immediately. For example, if the number the user gets is 40 and there are many people dining in the restaurant, such as 30 users waiting to eat before the user, the user needs to wait for a while before eating. The waiting time can be understood as the user's waiting time.
[0037] In an embodiment of the present application, the server may allocate first information to the first device when the first device initiates an information allocation application.
[0038] Exemplarily, in an online number queuing scenario, the server can allocate number information to the first device based on the time information when the first device initiates the number allocation application; in an online ticket purchase scenario, the server can allocate ticket information to the first device based on relevant information such as the train number submitted by the first device.
[0039] In the embodiment of the present application, when the server receives the first exchange request information sent by the first device, the server can push the first information of the first device in the first exchange request information in the first application.
[0040] Optionally, the first application may be an application provided by the server; illustratively, the first application may be an application program or an application applet. For ease of understanding, the first application may also be referred to as a first platform or a first system.
[0041] For example, the first information is the queue number for dining in restaurant A. The server receives the first number exchange request information sent by device 1, and synchronously pushes the queue number information allocated to device 1 to the homepage of restaurant A in the queue application platform, so that users of other devices who log in to the queue application platform can view the queue number information available for exchange on the homepage of restaurant A.
[0042] In the embodiment of the present application, the N second devices may be: second devices providing services by the server, and N is a positive integer. Optionally, the second devices may be user equipment, that is, terminals.
[0043] Optionally, in an embodiment of the present application, the above-mentioned N second devices may be devices that send second exchange request information to the server, or the above-mentioned N second devices may be devices whose second information assigned by the server is related to the first information of the first device. For example, if the first device is assigned number 10, the second device may be a device assigned numbers 11 to 20.
[0044] For example, the first information is a queue number for dining in restaurant A. The server receives the first exchange request information sent by electronic device 1, and sends the number information allocated to electronic device 1 to electronic devices 2, 3, and 4, so that users of electronic devices 2, 3, and 4 can view the number information available for exchange.
[0045] Optionally, in an embodiment of the present application, the server may send the first exchange information to the N second devices via (network) text messages or push messages (such as pop-up push messages).
[0046] Optionally, in the embodiment of the present application, the N second devices may receive and display the first exchange information sent by the server in a targeted manner.
[0047] Exemplarily, when the second device receives the first exchange information sent via SMS, it can display the first exchange information in the form of SMS; when the second device receives the first exchange information sent via push message, it can display the first exchange information in a prompt pop-up window.
[0048] Step 202: When the server receives the first feedback information sent by M second devices, the server exchanges the second information of the target device with the first information of the first device.
[0049] The first feedback information is used to indicate that M second devices agree to exchange, where M and N are positive integers, and M is less than or equal to N.
[0050] In the embodiment of the present application, the first feedback information includes the second information pre-allocated by the server to the target device, and the M second devices include the target device. It can be understood that the second information is similar to the first information, and can be queue number information, ticket purchase information, etc. Specifically, the first information and the second information are information sent by the server for the same scenario, for example, queue number information sent for the same restaurant.
[0051] In the embodiment of the present application, the first feedback information is used to indicate that the second device agrees to exchange its second information with the first information of the first device. It can be understood that the second feedback information may also be included, and the second feedback information is used to indicate that the second device does not agree to exchange with the first information.
[0052] Optionally, in the embodiment of the present application, when the N second devices receive the first exchange information sent by the server, they may determine whether to send the first exchange information to the server according to the user's input.
[0053] In an embodiment of the present application, when the server receives first feedback information sent by M second devices, the second information of the target device in the M second devices can be reallocated to the first device, and the first information of the first device can be reallocated to the above-mentioned target device.
[0054] Optionally, the target device is a second device randomly selected by the server from the M second devices, or the target device is a second device that meets the first preset condition. For an explanation of the first preset condition, please refer to the following content, which will not be repeated here.
[0055] For example, take the first information as the number information in the dining scene. The number information of device 1 (first device) is 10, and the number information of device 2 (second device) is 15. Device 2 receives the first exchange information sent by the server, and displays the number information of device 1 in the first exchange information. The user long presses the number information to display the "Confirm" control and the "Ignore" control. If the user clicks the "Confirm" control, it means that the exchange of number information with device 1 is agreed. The server will reallocate the number information of device 2 (i.e., 15) to device 1, and reallocate the number of device 1 to device 2 (i.e., 10), completing the exchange of number information between device 1 and device 2; if the user clicks the "Ignore" control, it means that device 2 does not exchange number information with device 1, and the server does not exchange number information between device 1 and device 2.
[0056] In the information exchange method provided in the present application, when the server receives the first exchange request information sent by the first device, the server sends the first exchange information to N second devices respectively, wherein the first exchange information includes the first information pre-allocated by the server for the first device; when the server receives the first feedback information sent by M second devices, the server exchanges the second information of the target device with the first information of the first device, wherein the first feedback information includes the second information pre-allocated by the server for the target device, and the M second devices include the target device; wherein the first feedback information is used to indicate that the M second devices agree to exchange. Through this method, after receiving the first exchange request information of the first device, the server can send the first exchange information to multiple second devices, and when receiving the first feedback information sent by at least one second device, the first information of the first device and the second information of the target device in the second device are exchanged. In this way, the information exchange function is provided for users, the sociality between users is increased, and the functional diversity of servers and electronic devices is increased, thereby meeting the information needs of different users.
[0057] Optionally, in the embodiment of the present application, before the above step 202, the information exchange method provided in the embodiment of the present application further includes the following step A1:
[0058] Step A1: when the server receives first feedback information sent by M second devices, the server determines a second device that meets a first preset condition among the M second devices as a target device.
[0059] The first preset condition includes at least one of the following:
[0060] The difference between the second information pre-allocated by the server and the first information is greater than or equal to the first threshold and less than the second threshold;
[0061] The distance to the target location is less than or equal to the third threshold, and the target location is a location related to the second information. For example, the first information is the dining number information in restaurant A, and the target location is restaurant A. For another example, the first information is the queue number information in scenic spot B, and the target location is scenic spot B.
[0062] In one example, taking the first information as number information, the server can determine the second device corresponding to the second number information (i.e., second number) of multiple second devices, which is greater than the first number information (i.e., first information) of the first device, as the target device. It is understandable that, if the user of the first device cannot reach the target location at the time corresponding to the number information, the user can choose to exchange a number information after it, thereby avoiding the invalidation of the original number information.
[0063] For example, take the first information as dining number information. Assuming that the user is far away from the restaurant corresponding to the dining number information, the electronic device 1 corresponding to the user sends a first exchange request message to the server, and the dining number information of the electronic device 1 is 10. The electronic devices 2 and 3 receive the first exchange information sent by the server, and respectively send first feedback information to the server. The dining number information of the electronic device 2 is 18, and the dining number information of the electronic device 3 is 35. Then the device 3 whose dining number information differs from the dining number information of the device 1 by more than 10 is determined as the target device. In this way, it is avoided that the original dining number becomes invalid and the waiting time for dining is increased when the user cannot dine according to the original number.
[0064] Optionally, in the embodiment of the present application, after the above step 202, the information exchange method provided in the embodiment of the present application further includes the following step 202a1:
[0065] Step 202a1: If the server does not receive the first feedback information sent by any of the second devices, the server sends a second prompt message to the first device, where the second prompt message is used to indicate that there is no information that can be exchanged currently.
[0066] Optionally, after receiving the second prompt information sent by the server, the first device may initiate an exchange application to the server again.
[0067] Optionally, in the embodiment of the present application, after the above step 202, the information exchange method provided in the embodiment of the present application further includes the following step 203:
[0068] Step 203: When the server receives the first feedback information sent by M second devices, the server sends the first feedback information to the first device.
[0069] Optionally, in combination with the above step 203, the above step 202 may include the following step 202a:
[0070] Step 202a: If the server receives the exchange response sent by the first device, the server exchanges the second information of the target device with the first information of the first device.
[0071] The exchange response is used to indicate that the first device agrees to exchange information with the target device. Exemplarily, the exchange response includes device information of the target device.
[0072] Exemplarily, the exchange response includes second information allocated by the server to the target device.
[0073] Exemplarily, the first feedback information includes: second information assigned by the server to each of the M second devices. For example, the server receives feedback information 1 sent by electronic device 1 and feedback information 2 sent by electronic device 2, wherein feedback information 1 includes number information A of electronic device 1, and feedback information 2 includes number information B of electronic device 2.
[0074] Optionally, when the server receives the exchange response sent by the first device, the server may exchange the second information of the target device indicated by the exchange response with the first information based on the exchange response.
[0075] For example, taking the first information as number information, when device 1 (the first device) receives the first feedback information of device 2, device 3, and device 4 respectively, it determines to exchange number information with device 2, and sends the device identification of device 2 and the number information of device 2 to the server. After receiving the number information of device 2, the server reallocates the number information of device 2 to device 1, and reallocates the number information of device 1 to device 2, so as to complete the exchange of number information between device 1 and device 2.
[0076] In this way, after the server sends the number information of multiple second devices that agree to exchange number information to the first device, the first device can autonomously determine the target device with which number information needs to be exchanged, thereby improving the flexibility of number information exchange.
[0077] Optionally, in the embodiment of the present application, before the above step 201, the information exchange method provided in the embodiment of the present application further includes the following step C1:
[0078] Step C1: When the first device meets the exchange condition, the server sends a first prompt message to the first device.
[0079] The first prompt information is used to prompt the user to trigger the first device to initiate a first exchange request.
[0080] In one example, when the first information is the number (queue number) information for queuing for a meal, the above exchange conditions include at least one of the following: the distance between the first device and the dining location is greater than a first threshold (such as 5 kilometers); the distance between the first device and the dining location is greater than a second threshold (such as 3 kilometers), and the waiting time corresponding to the number information of the first device is less than a third threshold (such as 10 minutes).
[0081] For example, when the server determines that the user of the first device cannot arrive on time for dining based on the number sorting of the first device and the distance to the dining location, the server sends a prompt message to prompt the user of the first device to trigger the number exchange operation.
[0082] In another example, when the first information is ticket information, the above exchange conditions include at least one of the following: the distance between the first device and the boarding location is greater than a fourth threshold (such as 8 kilometers), and the time difference between the departure time indicated by the ticket information and the current time is less than a sixth threshold (such as 15 minutes).
[0083] For example, when the server determines that the first device cannot arrive on time based on the departure time of the ticket information and the distance to the boarding location, it sends a prompt message to prompt the user of the first device to trigger the ticket information exchange operation.
[0084] In this way, the server can determine whether the user of the first device can dine or take the bus on time, and if the user cannot dine or take the bus on time, send a prompt message to prompt the user to exchange departure information, thereby preventing the user from missing the dining or bus time.
[0085] Optionally, when the first information is the queue number information when dining at a restaurant, the server can obtain the waiting time corresponding to the user's queue number information, and sort the waiting time of the user according to the user's region and restaurant, generate a waiting time ranking list, and display it as a user tag on the platform. For example, a tag of "queue king of xx region / restaurant" is generated for the user who has the longest waiting time at xx restaurant in xx region, thereby increasing the fun of the platform.
[0086] Optionally, in the embodiment of the present application, before the server sends the first exchange information to the N second devices respectively in the above step 201, the information exchange method provided in the embodiment of the present application further includes the following step D1:
[0087] Step D1: The server receives second exchange request information sent by N second devices.
[0088] The second exchange request information is used to request information exchange with a corresponding device.
[0089] It can be understood that the second exchange request is the exchange request information sent by the second device to the server, which is to inform the server that it has the need to exchange information. For example, device a, device b and device c are all in a queue scene in a restaurant, the queue number of device a is 31, the queue number of device b is 40, and the queue number of device c is 5. Then, since the queue numbers of devices a and b are larger, they can send the second exchange information to the server to inform the server that devices a and b can accept number exchange with other devices to obtain a relatively front queue number. Therefore, the corresponding device refers to the device whose queue number is received by the server later and needs to exchange numbers, such as the first device mentioned above.
[0090] Optionally, the server may only send the first exchange request information to the second devices when receiving the second exchange request information sent by at least one second device.
[0091] Exemplarily, N second devices include device 9, device 10 and device 11, and the first information number information is taken as an example. Device 9, device 10 and device 11 respectively send second exchange request information to the server. When the server receives the second exchange request information sent by the above multiple devices, it can only send the first exchange request information to device 9, device 10 and device 11 after receiving the first exchange request information.
[0092] In this way, the first exchange request information can be sent only to the second devices that have previously sent requests to the server, thereby avoiding sending information to all second devices and reducing interference to the user.
[0093] Optionally, in the embodiment of the present application, before the above step 201, the information exchange method provided in the embodiment of the present application further includes the following steps E1 and E2:
[0094] Step E1: The server receives an information distribution request sent by the first device.
[0095] Step E2: The server allocates first information to the first device and sends the first information to the first device.
[0096] Exemplarily, the first information may be number information, ticket purchase information, and the like.
[0097] The present application embodiment provides an information exchange method, Figure 2 FIG. 1 is a flow chart showing the information exchange method provided by an embodiment of the present application. Figure 2 As shown, the information exchange method provided in the embodiment of the present application may include the following steps 301 to 303:
[0098] Step 301: A first device sends a first exchange request message to a server.
[0099] The first exchange request information includes: first information allocated by the server to the first device.
[0100] In the embodiment of the present application, the first exchange request information is used to request information exchange.
[0101] In the embodiment of the present application, after the first device sends the first exchange request information to the server, the server receives the first exchange request information.
[0102] In the embodiment of the present application, the first information may include at least one of the following: queue number information, ticket purchase information (such as train ticket information, ticket information), etc. It should be understood that the queue number information may also be referred to as row number information.
[0103] For the explanation of the first information, please refer to the above, which will not be repeated here. It should be noted that the various method embodiments in the embodiments of the present application can be combined with each other.
[0104] Step 302: The first device receives first feedback information from M second devices sent by the server.
[0105] The first feedback information includes: second information pre-allocated by the server to each second device.
[0106] In the embodiment of the present application, after receiving the first exchange request information, the server sends the first exchange information to N second devices, where N is a positive integer.
[0107] The first exchange information is used to indicate that the first device requests to exchange information with the second device.
[0108] Step 303: The first device sends an exchange response to the server.
[0109] The exchange response is used to indicate confirmation (or agreement) of exchanging information with a target device, and the target device is one of the at least one second device.
[0110] Optionally, the above exchange response includes second information allocated by the server to the target device.
[0111] For example, take the first information as the number information in the dining scenario. Device 5 (first device) sends the first exchange request information to the server, the server receives the first exchange request information, and sends the number information of device 5 (number 15) to device 6 (number 25) through the first exchange information. After receiving the first feedback information sent by device 6 and device 8, device 7 and device 8 (i.e., the second device) send the number information of device 6 and device 8 to device 5 respectively, and device 5 sends the number information of device 6 to the server. The server exchanges the number information of device 5 and device 6, and assigns the number information of device 5 (number 15) to device 6, and the number information of device 6 to device 5 (number 20).
[0112] In the first device provided in the embodiment of the present application, the first device sends a first exchange request message to the server, the first exchange request message includes the first information assigned by the server to the first device, the first device receives the first feedback information of at least one second device sent by the server, and sends an exchange response to the server, the exchange response is used to indicate confirmation of information exchange with the target device. Through this method, when the first device receives the first feedback information of at least one second device, it sends an exchange response to the server to instruct the server to exchange the first information and the second information of the second device. In this way, the sociability between users is increased, and the functional diversity of the server and the first device is increased, thereby meeting the information needs of different users.
[0113] Optionally, in the embodiment of the present application, the target device includes at least one of the following:
[0114] A device determined according to a first input of a user;
[0115] A second device that meets a first preset condition among the M second devices;
[0116] Wherein, satisfying the first preset condition includes at least one of the following:
[0117] The difference between the second information pre-allocated by the server and the first information is greater than or equal to a first threshold and less than a second threshold;
[0118] The distance to a target location is less than or equal to a third threshold, and the target location is a location related to the second information.
[0119] It should be noted that the explanation of the target location can be found in the above content and will not be repeated here.
[0120] Exemplarily, when the first device receives the first feedback information of at least one second device sent by the server, it receives the first input of the user on the first feedback information of the target device in the second device, determines the target device as the second device, and sends the device information of the target device and the second information to the server. For example, the first device receives the number information of device 7 and the number information of device 8 sent by the server, and the user long presses the number information of device 7, then the device 7 is determined as the target device, and the server is requested to exchange number information with the device 7.
[0121] Optionally, in the embodiment of the present application, before the above step 301, the information exchange method provided in the embodiment of the present application further includes the following step F1:
[0122] Step F1: The first device receives the first prompt information sent by the server.
[0123] The first prompt information is used to prompt the user to trigger the first device to initiate the first exchange request information.
[0124] Optionally, in combination with the above step F1, the above step 301 may include the following step 301a:
[0125] Step 301a: upon receiving the first prompt information, the first device sends a first exchange request information to the server.
[0126] Optionally, in the embodiment of the present application, before the above step 301, the information exchange method provided in the embodiment of the present application further includes the following step G1:
[0127] Step G1: The first device determines whether the exchange condition is currently met.
[0128] Optionally, in combination with the above step G1, the above step 301 may include the following step 301b:
[0129] Step 301b: When the first device determines that the current exchange condition is met, it sends a first exchange request message to the server.
[0130] Exemplarily, in the case where the first information is the number (queue number) information for queuing for a meal, the above exchange conditions include at least one of the following: the distance between the first device and the dining location is greater than a first threshold (such as 5 kilometers); the distance between the first device and the dining location is greater than a second threshold (such as 3 kilometers), and the waiting time corresponding to the number information of the first device is less than a third threshold (such as 10 minutes).
[0131] For example, when the server determines that the user of the first device cannot arrive on time for dining based on the number sorting of the first device and the distance to the dining location, the server sends a prompt message to prompt the user of the first device to trigger the number exchange operation.
[0132] It should be noted that the information exchange method provided in the embodiment of the present application can be executed by an information exchange device or a control module in the information exchange device for executing the information exchange method. In the embodiment of the present application, the information exchange device provided in the embodiment of the present application is described by taking the information exchange device executing the information exchange method as an example.
[0133] The present application embodiment provides a server, such as Figure 3The server 400 includes: a sending module 401 and a processing module 402, wherein: the sending module 401 is used to send first exchange information to N second devices respectively when receiving first exchange request information sent by the first device; wherein the first exchange information includes first information pre-allocated for the first device; the processing module 402 is used to exchange the second information of the target device with the first information of the first device when receiving first feedback information sent by M second devices, the first feedback information includes second information pre-allocated for the target device, and the M second devices include the target device; wherein the first feedback information is used to indicate that the M second devices agree to the exchange, M and N are positive integers, and M is less than or equal to N.
[0134] Optionally, in an embodiment of the present application, the sending module is further used to send the first feedback information to the first device when the first feedback information sent by M second devices is received; the processing module, specifically, exchanges the second information of the target device with the first information of the first device if an exchange response sent by the first device is received; wherein the exchange response is used to indicate that the first device agrees to exchange information with the target device.
[0135] Optionally, in an embodiment of the present application, the sending module is further used to send first prompt information to the first device when the first device meets the exchange condition, and the first prompt information is used to prompt the user to trigger the first device to initiate a first exchange request.
[0136] Optionally, in the embodiment of the present application, the server further includes: a determination module; the determination module is configured to, upon receiving first feedback information sent by M second devices, determine a second device among the M second devices that meets a first preset condition as a target device; wherein the first preset condition includes at least one of the following:
[0137] The difference between the second information pre-allocated by the server and the first information is greater than or equal to a first threshold and less than a second threshold;
[0138] The distance to a target location is less than or equal to a third threshold, and the target location is a location related to the second information.
[0139] Optionally, in the embodiment of the present application, the server further includes: a receiving module;
[0140] The receiving module is used to receive second exchange request information sent by the N second devices, where the second exchange request information is used to request information exchange with corresponding devices.
[0141] In the server provided in the embodiment of the present application, when the server receives the first exchange request information sent by the first device, the server sends the first exchange information to N second devices respectively, wherein the first exchange information includes the first information pre-allocated by the server for the first device; when the server receives the first feedback information sent by M second devices, the server exchanges the second information of the target device with the first information of the first device, wherein the first feedback information includes the second information pre-allocated by the server for the target device, and the M second devices include the target device; wherein the first feedback information is used to indicate that the M second devices agree to exchange. Through this method, after receiving the first exchange request information of the first device, the server can send the first exchange information to multiple second devices, and when receiving the first feedback information sent by at least one second device, the first information of the first device and the second information of the target device in the second device are exchanged. In this way, the information exchange function is provided for users, the sociality between users is increased, and the functional diversity of servers and electronic devices is increased, thereby meeting the information needs of different users.
[0142] The present application embodiment provides an information exchange device, such as Figure 4 As shown, the information exchange device 500 includes: a sending module 501 and a receiving module 502, wherein: the sending module 501 is used to send a first exchange request information to the server, and the first exchange request information is used to request information exchange; the receiving module 502 is used to receive first feedback information of M second devices sent by the server, and the first feedback information includes: the second information pre-allocated by the server to each second device respectively; the sending module 501 is also used to send an exchange response to the server, and the exchange response is used to indicate that the first device confirms to exchange the first information with the second information of the target device, and the first information is the information pre-allocated by the server to the first device; wherein the target device is one of the M second devices, and M is a positive integer.
[0143] Optionally, in the embodiment of the present application, the target device includes at least one of the following:
[0144] A device determined according to a first input of a user;
[0145] A second device that meets a first preset condition among the M second devices;
[0146] Wherein, satisfying the first preset condition includes at least one of the following:
[0147] The difference between the second information pre-allocated by the server and the first information is greater than or equal to a first threshold and less than a second threshold;
[0148] The distance to a target location is less than or equal to a third threshold, and the target location is a location related to the second information.
[0149] Optionally, in an embodiment of the present application, the receiving module is further used to receive a second prompt message sent by the server, and the second prompt message is used to prompt the user to trigger the first device to initiate a first exchange request message; the sending module is specifically used to send the first exchange request message to the server when the receiving module receives the second prompt message.
[0150] Optionally, in the embodiment of the present application, the device further includes: a determination module;
[0151] The determination module is used to determine whether the exchange condition is currently met;
[0152] The sending module is specifically configured to send first exchange request information to the server when the determining module determines that the exchange condition is currently met.
[0153] In the information exchange device provided in the embodiment of the present application, when the server receives the first exchange request information sent by the first device, the server sends the first exchange information to N second devices respectively, wherein the first exchange information includes the first information pre-allocated by the server for the first device; when the server receives the first feedback information sent by M second devices, the server exchanges the second information of the target device with the first information of the first device, wherein the first feedback information includes the second information pre-allocated by the server for the target device, and the M second devices include the target device; wherein the first feedback information is used to indicate that the M second devices agree to exchange. Through this method, after receiving the first exchange request information of the first device, the server can send the first exchange information to multiple second devices, and when receiving the first feedback information sent by at least one second device, the first information of the first device and the second information of the target device in the second device are exchanged. In this way, the information exchange function is provided for users, the sociality between users is increased, and the functional diversity of servers and electronic devices is increased, thereby meeting the information needs of different users.
[0154] The information exchange device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0155] The information exchange device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0156] The information exchange device provided in the embodiment of the present application can achieve Figure 1 and Figure 2 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0157] Alternatively, if Figure 5 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the above-mentioned information exchange method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0158] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0159] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0160] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
[0161] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0162] The radio frequency unit 101 is used to send a first exchange request message to the server, and the first exchange request message is used to request information exchange; the radio frequency unit 101 is used to receive first feedback information of M second devices sent by the server, and the first feedback information includes: the second information pre-allocated by the server to each second device respectively; the radio frequency unit 101 is also used to send an exchange response to the server, and the exchange response is used to indicate that the first device confirms to exchange the first information with the second information of the target device, and the first information is the information pre-allocated by the server to the first device; wherein the target device is one of the M second devices, and M is a positive integer.
[0163] Optionally, in the embodiment of the present application, the target device includes at least one of the following:
[0164] A device determined according to a first input of a user;
[0165] A second device that meets a first preset condition among the M second devices;
[0166] Wherein, satisfying the first preset condition includes at least one of the following:
[0167] The difference between the second information pre-allocated by the server and the first information is greater than or equal to a first threshold and less than a second threshold;
[0168] The distance to a target location is less than or equal to a third threshold, and the target location is a location related to the second information.
[0169] Optionally, in an embodiment of the present application, the radio frequency unit 101 is also used to receive a second prompt message sent by the server, and the second prompt message is used to prompt the user to trigger the first device to initiate a first exchange request message; the radio frequency unit 101 is specifically used to send the first exchange request message to the server when the receiving module receives the second prompt message.
[0170] Optionally, in an embodiment of the present application, the processor 110 is used to determine whether the exchange condition is currently met; the radio frequency unit 101 is specifically used to send first exchange request information to the server when the processor 110 determines that the exchange condition is currently met.
[0171] In the electronic device provided in the embodiment of the present application, when the server receives the first exchange request information sent by the electronic device, the server sends the first exchange information to N second devices respectively, wherein the first exchange information includes the first information pre-allocated by the server for the first device; when the server receives the first feedback information sent by M second devices, the server exchanges the second information of the target device with the first information of the first device, wherein the first feedback information includes the second information pre-allocated by the server for the target device, and the M second devices include the target device; wherein the first feedback information is used to indicate that the M second devices agree to exchange. Through this method, after receiving the first exchange request information of the electronic device, the server can send the first exchange information to multiple second devices, and when receiving the first feedback information sent by at least one second device, the first information of the electronic device and the second information of the target device in the second device are exchanged. In this way, the information exchange function is provided for users, the sociality between users is increased, and the functional diversity of the server and the electronic device is increased, thereby meeting the information needs of different users.
[0172] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 109 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 110 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.
[0173] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned information exchange method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0174] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0175] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned information exchange method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0176] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0177] An embodiment of the present application provides a computer program product, which is stored in a non-volatile storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned information exchange method embodiment and can achieve the same technical effect.
[0178] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0179] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0180] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An information exchange method, characterized in that: Applied to a server, the method comprises: In the case where the server receives the first exchange request information sent by the first device, the server sends the first exchange information to N second devices respectively, wherein the first exchange information includes the first information pre-allocated by the server for the first device, and the N second devices include: a plurality of devices whose numbers indicated by the second information allocated by the server are greater than the numbers indicated by the first information, or the devices for which the server receives the second exchange request information; When the server receives first feedback information sent by M second devices, the server exchanges second information of a target device among the M second devices with the first information of the first device, where the first feedback information includes the second information pre-allocated by the server to the target device; The first feedback information is used to indicate that M second devices agree to exchange, M and N are positive integers, and M is less than or equal to N; the target device is a device among the M second devices that meets the first preset condition; The first preset condition includes at least one of the following: The difference between the second information pre-allocated by the server and the first information is greater than or equal to a first threshold and less than a second threshold; The distance to a target location is less than or equal to a third threshold, and the target location is a location related to the second information.
2. The method according to claim 1, characterized in that After the server sends the first exchange information to the N second devices respectively, the method further includes: When the server receives the first feedback information sent by the M second devices, the server sends the first feedback information to the first device; The server exchanges second information of the target device with the first information of the first device, including: If the server receives the exchange response sent by the first device, the server exchanges the second information of the target device with the first information of the first device; The exchange response is used to indicate that the first device agrees to exchange information with the target device.
3. The method according to claim 1, characterized in that: Before the server receives the first exchange request information sent by the first device, the method further includes: When the first device meets the exchange condition, the server sends first prompt information to the first device, where the first prompt information is used to prompt a user to trigger the first device to initiate a first exchange request.
4. The method according to claim 1, characterized in that: Before the server exchanges the second information of the target device among the M second devices with the first information of the first device, the method further includes: In a case where the server receives the first feedback information sent by M second devices, the server determines a second device that meets a first preset condition among the M second devices as the target device.
5. The method according to claim 1, characterized in that Before the server sends the first exchange information to the N second devices respectively, the method further includes: The server receives second exchange request information sent by the N second devices, where the second exchange request information is used to request information exchange with corresponding devices.
6. An information exchange method, characterized in that: Applied to a first device, the method includes: The first device sends first exchange request information to the server, where the first exchange request information is used to request information exchange; The first device receives first feedback information of M second devices sent by the server, the first feedback information comprising: second information pre-allocated by the server for each of the second devices respectively, the M second devices comprising: a plurality of devices whose numbers indicated by the second information allocated by the server are greater than the numbers indicated by the first information, or a device from which the server receives second exchange request information; The first device sends an exchange response to the server, where the exchange response is used to indicate that the first device confirms to exchange the first information with the second information of a target device among the M second devices, where the first information is information pre-allocated by the server to the first device, and M is a positive integer; and the target device is a device among the M second devices that meets a first preset condition; The first preset condition includes at least one of the following: The difference between the second information pre-allocated by the server and the first information is greater than or equal to a first threshold and less than a second threshold; The distance to a target location is less than or equal to a third threshold, and the target location is a location related to the second information.
7. A server, characterized in that: The server comprises: a sending module and a processing module, wherein: The sending module is configured to send first exchange information to N second devices respectively when receiving first exchange request information sent by the first device; wherein the first exchange information includes first information pre-allocated for the first device, and the N second devices include: a plurality of devices whose numbers indicated by the second information allocated by the server are greater than the numbers indicated by the first information, or a device for which the server receives the second exchange request information; The processing module is configured to, upon receiving first feedback information sent by M second devices, exchange second information of a target device among the M second devices with the first information of the first device, wherein the first feedback information includes the second information pre-allocated for the target device; The first feedback information is used to indicate that M second devices agree to exchange, M and N are positive integers, and M is less than or equal to N; the target device is a device among the M second devices that meets the first preset condition; The first preset condition includes at least one of the following: The difference between the second information pre-allocated by the server and the first information is greater than or equal to a first threshold and less than a second threshold; The distance to a target location is less than or equal to a third threshold, and the target location is a location related to the second information.
8. The server according to claim 7, characterized in that: The sending module is further configured to send the first feedback information to the first device when receiving the first feedback information sent by M second devices; The processing module specifically exchanges the second information of the target device with the first information of the first device if receiving the exchange response sent by the first device; The exchange response is used to indicate that the first device agrees to exchange information with the target device.
9. An information exchange device, characterized in that: The device comprises: a sending module and a receiving module, wherein: The sending module is used to send first exchange request information to the server, where the first exchange request information is used to request information exchange; The receiving module is configured to receive first feedback information of M second devices sent by the server, wherein the first feedback information includes: second information pre-allocated by the server for each of the second devices, and the M second devices include: a plurality of devices whose numbers indicated by the second information allocated by the server are greater than the numbers indicated by the first information, or a device from which the server receives the second exchange request information; The sending module is further used to send an exchange response to the server, where the exchange response is used to indicate that the first device confirms to exchange the first information with the second information of the target device among the M second devices, where the first information is information pre-allocated by the server to the first device, and M is a positive integer; and the target device is a device among the M second devices that meets a first preset condition; The first preset condition includes at least one of the following: The difference between the second information pre-allocated by the server and the first information is greater than or equal to a first threshold and less than a second threshold; The distance to a target location is less than or equal to a third threshold, and the target location is a location related to the second information.
10. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the information exchange method as described in any one of claims 1 to 5, or implements the steps of the information exchange method as described in claim 6.
11. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the information exchange method according to any one of claims 1 to 5 are implemented, or the steps of the information exchange method according to claim 6 are implemented.
