Search

CN-121998728-A - Information interaction method and device

CN121998728ACN 121998728 ACN121998728 ACN 121998728ACN-121998728-A

Abstract

An information interaction method and device are disclosed. And determining a target journey identifier according to the order interaction request by receiving the order interaction request sent by the user terminal, wherein the journey identifier is used for identifying a unique order, the journey identifier is kept unchanged in the same order, and a response parameter corresponding to the order interaction request is generated and sent according to the target journey identifier. Therefore, by introducing the unique journey identifier, the integrity and the accuracy of the user journey tracking can be improved, the troubleshooting difficulty of the problem is reduced, and the root cause positioning efficiency is improved.

Inventors

  • CHEN SHIJIE
  • HAO TINGTING
  • LUO QINGLIN
  • HUANG SHIMING
  • SHEN YICHENG

Assignees

  • 北京骑胜科技有限公司

Dates

Publication Date
20260508
Application Date
20241107

Claims (18)

  1. 1. An information interaction method, characterized in that the method comprises: receiving an order interaction request sent by a user terminal; determining a target journey identifier according to the order interaction request, wherein the journey identifier is used for identifying a unique journey, and the journey identifier is kept unchanged in the same journey; Generating response parameters corresponding to the order interaction request according to the target journey identifier; And sending the response parameters to the user terminal.
  2. 2. The method of claim 1, wherein the trip identification comprises a unique identification of the user and a timestamp, the trip identification stored in a database.
  3. 3. The method of claim 2, wherein the order interaction request includes a unique identification of a target user.
  4. 4. A method according to claim 3, wherein the order interaction request is an order creation request, and wherein determining a target trip identification from the order interaction request comprises: determining a first detection result according to the unique identification of the target user, wherein the first detection result is used for representing whether the target user has an unfinished order; responding to the first detection result that an unfinished order exists, and determining a journey identifier corresponding to the unfinished order as the target journey identifier; and determining the target journey identifier according to a second detection result in response to the first detection result being that the unfinished order does not exist, wherein the second detection result is used for representing whether the journey identifier of the failed order creation exists for the target user.
  5. 5. The method of claim 4, wherein the determining the target trip identification from the second detection result comprises: determining the second detection result according to the database; generating the target trip identifier and storing the target trip identifier in the database in response to the second detection result being that the trip identifier of the failed creation order does not exist; And determining the trip identifier of the creation failure order as the target trip identifier in response to the second detection result being the trip identifier of the creation failure order.
  6. 6. The method of claim 5, wherein the method further comprises: Creating an order for the target user; in response to successful order creation, updating the validity period of the target trip identification to a first duration in the database; and in response to the failure of order creation, updating the validity period of the target journey identifier to a second time length in the database, wherein the first time length is longer than the second time length.
  7. 7. The method of claim 6, wherein the method further comprises: and deleting or invalidating the journey identification exceeding the validity period in the database.
  8. 8. The method of claim 6, wherein the method further comprises: Responsive to order completion, the corresponding trip identification is deleted or invalidated in the database.
  9. 9. A method according to claim 3, wherein the order interaction request is an order management request, and wherein determining a target trip identification from the order interaction request comprises: and acquiring the target journey identifier from a database according to the unique identifier.
  10. 10. The method according to claim 1, characterized in that the method comprises: a first log file is generated and stored.
  11. 11. The method of claim 1, wherein the generating response parameters corresponding to the order interaction request from the target trip identification comprises: determining an execution result corresponding to the order interaction request; And generating response parameters according to the execution result and the target journey identifier, wherein the response parameters comprise the target journey identifier and the execution result, so that the user terminal generates a second log file according to the response parameters and stores the second log file.
  12. 12. The method according to claim 1, wherein the method further comprises: generating a control instruction according to the order interaction request; And sending the control instruction to target control equipment.
  13. 13. The method according to claim 1, wherein the method further comprises: generating context information, the context information comprising the target journey identification; and sending the context information to the target control equipment so that the target control equipment generates and stores a third log file according to the context information.
  14. 14. The method of claim 1, wherein the same journey includes code scan success, order creation, order end, and order settlement, or wherein the same journey includes code scan failure to code scan success, and wherein a time interval from code scan failure to code scan success is less than a predetermined threshold.
  15. 15. An information interaction device, the device comprising: an order interaction request receiving unit, configured to receive an order interaction request sent by a user terminal; A target journey identifier determining unit, configured to determine a target journey identifier according to the order interaction request, where the journey identifier is used to identify a unique journey, and the journey identifier remains unchanged in the same journey; the response parameter generation unit is used for generating response parameters corresponding to the order interaction request according to the target journey identifier; And the response parameter sending unit is used for sending the response parameters to the user terminal.
  16. 16. An electronic device comprising a memory and a processor, wherein the memory is configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method of any of claims 1-14.
  17. 17. A computer program product comprising a computer program, characterized in that the computer performs the method of any of the preceding claims 1-14 when the computer program is run on a computer.
  18. 18. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1-14.

Description

Information interaction method and device Technical Field The present invention relates to the field of internet technologies, and in particular, to an information interaction method and apparatus. Background With the development of internet technology, information interaction such as sharing devices, electronic commerce and the like is required in various fields. The whole course tracking and anomaly detection of the user's journey become particularly important. Taking the field of shared bicycles and similar intelligent equipment leasing services as an example, starting from a user code scanning initiation vehicle using request until successful unlocking and returning of the vehicle, each link in the whole process is directly related to smoothness of the service and satisfaction degree of the user. However, in the prior art, tracking and monitoring of user tours often relies on a more decentralized or less accurate identification mechanism, and it is difficult to implement seamless serial and deep analysis of the complete chain of user behavior from front-end applications, server-side processing to intelligent device-side execution. Particularly when dealing with critical problems such as code scanning failure, abnormal unlocking and locking, and the like, the lack of a unique identifier to traverse the entire user journey results in difficult problem troubleshooting due to inefficient positioning. Disclosure of Invention Therefore, an objective of the embodiments of the present invention is to provide an information interaction method and apparatus, which can improve the integrity and accuracy of user trip tracking, reduce the difficulty in troubleshooting problems, and improve the root cause positioning efficiency by introducing unique trip identifiers. In a first aspect, an embodiment of the present invention provides an information interaction method, where the method includes: receiving an order interaction request sent by a user terminal; determining a target journey identifier according to the order interaction request, wherein the journey identifier is used for identifying a unique journey, and the journey identifier is kept unchanged in the same journey; Generating response parameters corresponding to the order interaction request according to the target journey identifier; And sending the response parameters to the user terminal. In some embodiments, the trip identification includes a unique identification of the user and a timestamp, the trip identification being stored in a database. In some embodiments, the order interaction request includes a unique identification of the target user. In some embodiments, the order interaction request is an order creation request, and the determining a target trip identification from the order interaction request includes: determining a first detection result according to the unique identification of the target user, wherein the first detection result is used for representing whether the target user has an unfinished order; responding to the first detection result that an unfinished order exists, and determining a journey identifier corresponding to the unfinished order as the target journey identifier; and determining the target journey identifier according to a second detection result in response to the first detection result being that the unfinished order does not exist, wherein the second detection result is used for representing whether the journey identifier of the failed order creation exists for the target user. In some embodiments, the determining the target trip identification from the second detection result includes: determining the second detection result according to the database; generating the target trip identifier and storing the target trip identifier in the database in response to the second detection result being that the trip identifier of the failed creation order does not exist; And determining the trip identifier of the creation failure order as the target trip identifier in response to the second detection result being the trip identifier of the creation failure order. In some embodiments, the method further comprises: Creating an order for the target user; in response to successful order creation, updating the validity period of the target trip identification to a first duration in the database; and in response to the failure of order creation, updating the validity period of the target journey identifier to a second time length in the database, wherein the first time length is longer than the second time length. In some embodiments, the method further comprises: and deleting or invalidating the journey identification exceeding the validity period in the database. In some embodiments, the method further comprises: Responsive to order completion, the corresponding trip identification is deleted or invalidated in the database. In some embodiments, the order interaction request is an order management request, and the determining the t