Remote settlement method, electronic device, and storage medium

By receiving the identification information of the shared equipment to determine the location of the loan and conducting cross-regional settlement, the problem of inability to settle accounts when returning shared equipment is solved, and accurate settlement of cross-border rental fees is achieved.

CN114298732BActive Publication Date: 2025-10-28HANGZHOU XPOWER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111447195.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2025-10-28
Estimated Expiration
2041-11-30

Smart Images

  • Figure CN114298732B_ABST
    Figure CN114298732B_ABST
Patent Text Reader

Abstract

This application relates to a method, electronic device, and storage medium for cross-regional settlement. The method includes: receiving a return message from a first terminal, the return message including the identification information of a shared device and the return time of the shared device; determining the lending location identification information corresponding to the shared device based on the identification information of the shared device; and sending the return message to a target cluster based on the lending location identification information corresponding to the shared device. The target cluster is the cluster where the shared device was lent out, and includes order information created when the shared device was lent out, so that the target cluster can settle the rental fee of the shared device based on the order information and the return time in the return message. This application solves the problem that the return process cannot be truly completed when the shared device is returned due to the inability to settle the order, thus realizing cross-regional settlement of shared devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and in particular to remote settlement methods, remote settlement systems, electronic devices, and storage media. Background Technology

[0002] On April 14, 2016, the European Parliament voted to pass the General Data Protection Regulation (GDPR), which had been under discussion for four years. The new regulation consists of 11 chapters and 99 articles, and will officially come into effect on May 25, 2018. It will replace the existing Data Protection Directive (95 / 46 / EC), unifying the laws and regulations on data protection among EU member states. As a new set of regulations designed to protect the privacy and data of EU citizens, the GDPR signifies an unprecedented level of protection and regulation of personal information within the EU, making it arguably the strictest data protection law in history. The EU GDPR stipulates that user-related data cannot leave the country; for example, the EU does not allow users' private data to be transferred outside the EU via the internet.

[0003] Under the enactment of the EU GDPR, when shared equipment is used for international business, if the lending and return locations are not in the same country, there may be a problem where the shared equipment cannot be returned because the order cannot be settled. Summary of the Invention

[0004] This embodiment provides a method for remote settlement, an electronic device, and a storage medium to solve the problem in related technologies where the return process of shared devices cannot be truly completed due to the inability to settle orders.

[0005] Firstly, this embodiment provides a remote settlement method applied to a relay server, including:

[0006] Receive a return message sent by the first terminal, the return message including the identification information of the shared device and the return time of the shared device;

[0007] Determine the lending location identification information corresponding to the shared device based on the identification information of the shared device;

[0008] Based on the lending location identifier information corresponding to the shared device, the return message is sent to the target cluster, wherein the target cluster is the cluster where the shared device is lent out, and the target cluster includes order information created when the shared device was lent out, so that the target cluster can calculate the rental fee of the shared device based on the order information and the return time in the return message.

[0009] In some embodiments, before determining the lending location identification information corresponding to the shared device based on the identification information of the shared device, the method further includes:

[0010] Obtain order information from the target cluster; the order information includes the identification information of the shared device and the identification information of the lending location corresponding to the shared device;

[0011] Store the identification information of the shared device and the identification information of the lending location, and associate the identification information of the shared device with the identification information of the lending location.

[0012] In some embodiments, after obtaining the order information from the target cluster, the method further includes:

[0013] The identification information of the shared device and the lending location identification information corresponding to the shared device are sent to a third relay server, so that the third relay server stores the identification information of the shared device and the lending location identification information corresponding to the shared device, and associates the identification information of the shared device with the lending location identification information, wherein the third relay server is a relay server that has not obtained the order information in the target cluster.

[0014] In some embodiments, the return message further includes:

[0015] The store's identification information and the base information of the shared equipment, wherein the store is the store where the shared equipment is returned.

[0016] In some embodiments, sending the return message to the target cluster based on the lending location identifier information corresponding to the shared device includes:

[0017] The return message is sent to the target cluster based on the lending location identifier information corresponding to the shared device;

[0018] If the return message fails to be sent, the return message is resent to the target cluster until the target cluster successfully receives the return message.

[0019] In some embodiments, receiving a return message sent by a first terminal, followed by:

[0020] The return message is sent to a second relay server, wherein the second relay server is a relay server that has not received the return message sent by the first terminal;

[0021] This enables the second relay server to determine the lending location identifier information corresponding to the shared device based on the identification information of the shared device, and to send the return message to the target cluster based on the lending location identifier information corresponding to the shared device.

[0022] Secondly, this embodiment provides a method for cross-regional settlement, applied to a first terminal, including:

[0023] Send a return message to at least one relay server, wherein the return message includes the identification information of the shared device and the return time of the shared device, and the identification information of the shared device is used to determine the lending location identification information corresponding to the shared device, so that the at least one relay server sends the return message to the target cluster according to the lending location identification information corresponding to the shared device;

[0024] Receive a settlement message, wherein the settlement message includes the rental fee of the shared equipment, and the rental fee is settled by the target cluster based on the order information created when the shared equipment was lent out and the return time in the return message.

[0025] In some embodiments, the number of the at least one relay server is multiple; sending a return message to the at least one relay server includes:

[0026] A first relay server is determined among the at least one relay server, wherein the first relay server is the relay server closest to the first terminal;

[0027] Send the return message to the first relay server.

[0028] In some embodiments, sending a return message to the at least one relay server includes, prior to:

[0029] Receive the return message sent by the shared device;

[0030] The shared device is determined to be a device in the return cluster based on the return message, wherein the return cluster is the cluster where the shared device is returned;

[0031] If the shared device is not a device in the return cluster, the step of sending the return message to at least one relay server is performed.

[0032] Thirdly, this embodiment provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the remote settlement method described in the first and second aspects above.

[0033] Fourthly, this embodiment provides a storage medium storing a computer program that, when executed by a processor, implements the remote settlement method described in the first and second aspects above.

[0034] Compared with related technologies, the off-site settlement method, electronic device and storage medium provided in this embodiment determine the lending location identification information corresponding to the shared device through the identification information of the shared device;

[0035] Based on the borrowing location identifier information corresponding to the shared device, the return message is sent to the target cluster, so that the target cluster can settle the rental fee of the shared device according to the order information and the return time in the return message. The target cluster is the cluster where the shared device is borrowed, and the target cluster includes the order information created when the shared device was borrowed. This solves the problem that the return process cannot be truly completed when the shared device is returned because the order cannot be settled, and realizes cross-regional settlement of shared devices.

[0036] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description

[0037] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0038] Figure 1 This is a hardware structure block diagram of the application terminal for the remote settlement method according to an embodiment of this application;

[0039] Figure 2 This is a flowchart of a cross-regional settlement method according to an embodiment of this application;

[0040] Figure 3 This is a flowchart of another method for cross-regional settlement according to an embodiment of this application;

[0041] Figure 4 This is a flowchart of another method for cross-regional settlement according to an embodiment of this application;

[0042] Figure 5This is a flowchart of another method for cross-regional settlement according to an embodiment of this application;

[0043] Figure 6 This is a timing diagram of the return of shared devices according to an embodiment of this application. Detailed Implementation

[0044] To better understand the purpose, technical solution, and advantages of this application, the application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0045] Unless otherwise defined, the technical or scientific terms used in this application shall have the general meaning as understood by one of ordinary skill in the art to which this application pertains. Words such as “a,” “an,” “an,” “the,” “the,” and “these,” used in this application, do not indicate quantitative limitation and may be singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that comprises a series of steps or modules (units) is not limited to the listed steps or modules (units) but may include steps or modules (units) not listed, or may include other steps or modules (units) inherent to such processes, methods, products, or devices. The terms “connected,” “linked,” and “coupled,” used in this application, are not limited to physical or mechanical connections but may include electrical connections, whether direct or indirect. The term “multiple” used in this application refers to two or more. The "and / or" operator describes the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: A alone, A and B simultaneously, and B alone. Typically, the character " / " indicates that the objects before and after it are in an "or" relationship. The terms "first," "second," and "third," etc., used in this application are merely for distinguishing similar objects and do not represent a specific ordering of the objects.

[0046] The method embodiments provided in this example can be executed on a terminal, computer, or similar computing device. For example, it can run on a terminal. Figure 1 This is a hardware structure block diagram of an application terminal for a remote settlement method according to an embodiment of this application. For example... Figure 1 As shown, a terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 and a memory 104 for storing data are also included. The processor 102 may be, but is not limited to, a microprocessor (MCU) or a programmable logic device (FPGA). The terminal may also include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that… Figure 1The structure shown is for illustrative purposes only and does not limit the structure of the terminal described above. For example, the terminal may also include components that are larger than... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown are illustrated.

[0047] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the remote settlement method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, thereby implementing the aforementioned method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0048] The transmission device 106 is used to receive or send data via a network. This network includes a wireless network provided by the terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 can be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0049] When borrowing shared devices, an order information is created, which includes the user's personal privacy information. If the user takes the borrowed shared device to a different country than where it was borrowed, such as for cross-border travel or study, due to GDPR regulations, the user will not be able to obtain the order information created when borrowing the shared device in the country where the device is returned. This results in the problem that the return process cannot be truly completed because the order cannot be settled when the shared device is returned. Based on this, this application solves the problem through the following method.

[0050] This embodiment provides a method for remote settlement, applied to a relay server. Figure 2 This is a flowchart of a remote settlement method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:

[0051] Step S201: Receive a return message sent by the first terminal. The return message includes the identification information of the shared device and the return time of the shared device.

[0052] In this embodiment, the first terminal is located at the return location of the shared device, which includes at least one of the following: a shared power bank, a shared umbrella, or a shared driving device.

[0053] Step S202: Determine the lending location identification information corresponding to the shared device based on the identification information of the shared device.

[0054] Step S203: Based on the borrowing location identifier information corresponding to the shared device, the return message is sent to the target cluster, where the target cluster is the cluster where the shared device is borrowed. The target cluster includes the order information created when the shared device was borrowed, so that the target cluster can calculate the rental fee of the shared device based on the order information and the return time in the return message.

[0055] Understandably, in this embodiment, the return message is sent to the target cluster through a relay server, that is, the return message is sent to the cluster where the shared device was lent out through the relay server. Thus, the target cluster can complete the settlement of the shared device rental fee based on the order information and the return time in the return message. This solves the problem that the shared device cannot be truly returned due to the inability to settle the order when it is returned, and realizes the cross-regional settlement of shared devices.

[0056] In some of these embodiments, a first table is used to store the identification information of the shared device and the identification information of the lending location.

[0057] In this embodiment, the off-site settlement method can be applied to cross-border scenarios, such as cross-border tourism and cross-border study. In cross-border scenarios, the location where the shared equipment is lent out and the location where it is returned are in different countries or regions.

[0058] In this embodiment, the first table is shown below, where UK represents the identification information of the lending location being the United States, p030000000000001 represents the identification information of the shared device lending location being the United States, HK represents the identification information of the lending location being Hong Kong, China, p030000000000002 represents the identification information of the shared device lending location being Hong Kong, China, MY represents the identification information of the lending location being Malaysia, and p030000000000003 represents the identification information of the shared device lending location being Malaysia.

[0059] Locale PowerbankNo UK p030000000000001 HK p030000000000002 MY p030000000000003

[0060] Understandably, in this embodiment, the identification information of the shared device and the identification information of the lending location are stored in a table, thereby enabling the association between the identification information of the shared device and the identification information of the lending location.

[0061] In some embodiments, before determining the lending location identification information corresponding to the shared device based on the identification information of the shared device, the method further includes:

[0062] Obtain order information from the target cluster; the order information includes the identification information of the shared device and the identification information of the lending location corresponding to the shared device;

[0063] Store the identification information of the shared device and the identification information of the lending location, and associate the identification information of the shared device with the identification information of the lending location.

[0064] Understandably, in this embodiment, the relay server pre-stores the identification information of the shared device and the identification information of the lending location, and associates the identification information of the shared device with the identification information of the lending location. Thus, when the relay server receives a return message, it can determine the lending location identification information corresponding to the shared device based on the identification information of the shared device. Furthermore, the relay server can send the return message to the target cluster based on the lending location identification information corresponding to the shared device, so that the target cluster can complete the settlement of the shared device rental fee based on the order information and the return time in the return message.

[0065] In some embodiments, after obtaining order information from the target cluster, the method further includes:

[0066] The identification information of the shared device and the corresponding lending location identification information are sent to the third relay server, so that the third relay server stores the identification information of the shared device and the corresponding lending location identification information, and associates the identification information of the shared device with the lending location identification information. The third relay server is a relay server that has not obtained the order information in the target cluster.

[0067] Understandably, in this embodiment, when there are two or more relay servers, one of the relay servers sends the received identification information of the shared device and the corresponding lending location identification information to the third relay server. Thus, all relay servers can receive and store the shared device identification information and the corresponding lending location identification information. Therefore, any one of the two or more relay servers can determine the corresponding lending location identification information based on the shared device's identification information. Furthermore, any one of the two or more relay servers can send a return message to the target cluster based on the corresponding lending location identification information. The target cluster can then settle the shared device rental fee based on the order information and the return time in the return message. Therefore, even if some of the two or more relay servers fail, the undamaged relay servers can still send the return message to the target cluster to achieve remote settlement of shared device fees.

[0068] In some embodiments, the return message also includes:

[0069] The information includes the store's signage and the base information of the shared equipment, where the store is the one where the shared equipment is returned.

[0070] Understandably, the return location and base information of shared devices can be identified within the target cluster, thereby determining the flow of shared devices. The lending store can request the shared devices from the returning store, or charge the returning store for the missing shared devices.

[0071] In some embodiments, sending a return message to the target cluster based on the lending location identifier information corresponding to the shared device includes:

[0072] Based on the lending location identifier information corresponding to the shared device, the return message is sent to the target cluster;

[0073] If the return message fails to be sent, resend the return message to the target cluster until the target cluster successfully receives the return message.

[0074] Understandably, by using the above method, it is ensured that the return message is sent to the target cluster, so that the target cluster can complete the settlement of the shared equipment rental fee based on the order information and the return time in the return message. This solves the problem that the return process cannot be truly completed when the shared equipment is returned because the order cannot be settled, and realizes the cross-regional settlement of shared equipment.

[0075] In some embodiments, receiving a return message sent by a first terminal, followed by:

[0076] The return message is sent to the second relay server, which is a relay server that has not received the return message sent by the first terminal;

[0077] This enables the second relay server to determine the lending location identifier information corresponding to the shared device based on the shared device's identifier information, and to send the return message to the target cluster based on the lending location identifier information corresponding to the shared device.

[0078] Understandably, in this embodiment, when there are two or more relay servers, one of the relay servers sends the received return message to the second relay server, so that any one of the two or more servers has a return message. Even if some relay servers are damaged, the undamaged relay servers can still send the return message to the target cluster to realize the remote settlement of shared devices.

[0079] In some of these embodiments, the shared device is a cross-border shared device.

[0080] This embodiment also provides a method for cross-regional settlement, which is applied to the first terminal. Figure 3 This is a flowchart of another method for cross-regional settlement according to an embodiment of this application, such as... Figure 3 As shown, the process includes the following steps:

[0081] Step S301: Send a return message to at least one relay server. The return message includes the identification information of the shared device and the return time of the shared device. The identification information of the shared device is used to determine the lending location identification information corresponding to the shared device, so that at least one relay server sends the return message to the target cluster according to the lending location identification information corresponding to the shared device.

[0082] In this embodiment, the first terminal is located at the return location of the shared device, which includes at least one of the following: a shared power bank, a shared umbrella, or a shared driving device.

[0083] Step S302: Receive a settlement message, wherein the settlement message includes the rental fee of the shared equipment. The rental fee is settled by the target cluster based on the order information created when the shared equipment is lent out and the return time in the return message.

[0084] In this embodiment, the target cluster is the cluster where the shared device is lent out, and the target cluster includes the order information created when the shared device is lent out.

[0085] Through the above steps, the first terminal located at the shared device's return location sends a return message to at least one relay server. The relay server can then send the return message to the target cluster based on the borrowing location identifier information corresponding to the shared device. Therefore, the target cluster can settle the rental fee for the shared device based on the order information created when the shared device was borrowed and the return time in the return message. This solves the problem that the return process cannot be truly completed when the shared device is returned because the order cannot be settled, and realizes cross-regional settlement of shared devices.

[0086] In some embodiments, the number of at least one relay server is multiple; sending a return message to at least one relay server includes:

[0087] A first relay server is determined among at least one relay server, wherein the first relay server is the relay server closest to the first terminal;

[0088] Send a return message to the first relay server.

[0089] Understandably, the first terminal sends a return message to the nearest relay server, which improves the efficiency of cross-regional settlement of shared devices and saves time in cross-regional settlement.

[0090] In some embodiments, sending a return message to at least one relay server includes, prior to:

[0091] Receive return messages sent by shared devices;

[0092] The return message determines whether the shared device is a device in the return cluster, where the return cluster is the cluster where the shared device is returned;

[0093] If the shared device is not a device in the return cluster, perform the step of sending a return message to at least one relay server.

[0094] In this embodiment, if the shared device is a device that is returned to the cluster, it means that the location where the shared device is lent out and the location where it is returned are in the same country. In this case, the order information created when the shared device is lent out can be obtained. Furthermore, the order settlement can be completed based on this order information without sending the return message to the relay server.

[0095] Understandably, in this embodiment, when the shared device is not a device in the return cluster, the first terminal sends a return message to at least one server, thereby enabling the return message to be sent to the target cluster via a relay server. That is, the return message is sent to the cluster where the shared device was lent out via the relay server, so that the target cluster can complete the settlement of the shared device rental fee based on the order information and the return time in the return message. This solves the problem that the return process cannot be truly completed when the shared device is returned because the order cannot be settled, and realizes the cross-regional settlement of shared devices.

[0096] This application proposes a cross-regional settlement system, including:

[0097] At least one relay server, a first terminal, a second terminal, and a target cluster, wherein the first terminal is located at the return location of the shared device, the target cluster is the cluster where the shared device was lent out, and the second terminal is a device in the target cluster;

[0098] The first terminal sends a return message to at least one relay server, wherein the return message includes the identification information of the shared device and the return time of the shared device;

[0099] At least one relay server receives the return message, determines the lending location identification information corresponding to the shared device based on the identification information of the shared device, and sends the return message to the target cluster based on the lending location identification information corresponding to the shared device.

[0100] The target cluster calculates the fees incurred by the shared equipment based on the order information and the return time in the return message. The order information is the order information created by the second terminal when the shared equipment is lent out.

[0101] Understandably, in this embodiment, the return message is sent to the target cluster through a relay server, that is, the return message is sent to the cluster where the shared device was lent out through the relay server. Thus, the target cluster can complete the settlement of the shared device rental fee based on the order information and the return time in the return message. This solves the problem that the shared device cannot be truly returned due to the inability to settle the order when it is returned, and realizes the cross-regional settlement of shared devices.

[0102] Figure 4 This is a flowchart of another method for cross-regional settlement according to an embodiment of this application. For example... Figure 4 As shown, the process includes the following steps:

[0103] Step S401: Obtain order information from the target cluster. The order information includes the identification information of the shared device and the identification information of the lending location corresponding to the shared device.

[0104] Step S402: Store the identification information of the shared device and the identification information of the lending location, and associate the identification information of the shared device with the identification information of the lending location.

[0105] Step S403: Send the identification information of the shared device and the lending location identification information corresponding to the shared device to the third relay server, so that the third relay server stores the identification information of the shared device and the lending location identification information corresponding to the shared device, and associates the identification information of the shared device with the lending location identification information. The third relay server is a relay server that has not obtained the order information in the target cluster.

[0106] Step S404: Receive a return message sent by the first terminal. The return message includes the identification information of the shared device and the return time of the shared device.

[0107] Step S405: Send the return message to the second relay server, wherein the second relay server is a relay server that has not received the return message sent by the first terminal.

[0108] In this embodiment, the second relay server determines the lending location identification information corresponding to the shared device based on the identification information of the shared device, and sends the return message to the target cluster based on the lending location identification information corresponding to the shared device.

[0109] Step S406: Determine the lending location identification information corresponding to the shared device based on the identification information of the shared device.

[0110] Step S407: Based on the borrowing location identifier information corresponding to the shared device, the return message is sent to the target cluster, where the target cluster is the cluster where the shared device is borrowed. The target cluster includes the order information created when the shared device was borrowed, so that the target cluster can calculate the rental fee of the shared device based on the order information and the return time in the return message.

[0111] Understandably, in this embodiment, the return message is sent to the target cluster through a relay server, that is, the return message is sent to the cluster where the shared device was lent out through the relay server. Thus, the target cluster can complete the settlement of the shared device rental fee based on the order information and the return time in the return message. This solves the problem that the shared device cannot be truly returned due to the inability to settle the order when it is returned, and realizes the cross-regional settlement of shared devices.

[0112] Figure 5 This is a flowchart of another remote settlement method according to an embodiment of this application, such as... Figure 5 As shown, this method for cross-regional settlement includes the following steps:

[0113] Step S501: The first rental service application creates an order and sends the corresponding power bank identifier and rental cluster identifier information to the relay server.

[0114] In this embodiment, when a user borrows a power bank, the rental service application creates an order. The borrowing cluster identification information is the identification information of the cluster corresponding to the location where the power bank is borrowed. The first rental service application is the rental service application of the borrowing cluster. Therefore, the borrowing cluster includes the created order information.

[0115] Due to the restrictions of the GDPR, the countries where the power bank is deployed do not allow the outflow of personal privacy data. However, the power bank return message itself does not carry the user's privacy data, so the cross-border flow of return messages is not within the jurisdiction of the GDPR. Therefore, a relay server is established to transmit the power bank return message to the lending cluster. For practical needs, relay servers can be set up at the regional (continental) level. The relay server maintains the global cluster messages. When a return message is forwarded to the relay server, the relay server needs to identify that the return message needs to be forwarded to the lending cluster.

[0116] In addition, the relay server maintains global Kafka cluster information. The relay server stores the following information: locale represents the cluster identifier information, and Server represents the cluster server address.

[0117]

[0118]

[0119] It's important to note that Kafka is a distributed messaging system characterized by high horizontal scalability and high throughput. In a Kafka cluster, there is no concept of a "central master node"; all nodes in the cluster are peers.

[0120] In step S502, the relay server saves the power bank identifier and the lending cluster identifier information, and associates the power bank identifier with the lending cluster identifier information.

[0121] In this embodiment, because the relay server needs to forward the return message based on the borrowing cluster identifier information after receiving the return message, when creating an order, the rental service application needs to send a message to the relay server. The content is as follows: the relay server saves the power bank identifier and the borrowing cluster identifier information, as shown below. UK represents the borrowing cluster identifier information, and p030000000000001 represents the power bank identifier.

[0122]

[0123] Furthermore, cross-border returns involve the flow of power banks between operators in different countries and regions. The transit server stores all cross-border return records, allowing for the determination of power bank flow data. Based on this data, corresponding power bank scheduling strategies can be implemented, and operators can be advised to take targeted measures. For example, the number of cross-border power banks returned by the lender can be tallied and replenished during the next procurement; the number of cross-border power banks returned by the returning party can also be tallied, as the number of power banks in the return location has actually increased, essentially representing a passive purchase of power banks from suppliers. The lending and returning parties can negotiate the handling of the purchased power banks via currency or freight. Freight refers to transporting the cross-border power banks to the lending country. If cross-border power bank returns are handled in currency, the agreed-upon price is deducted at settlement. If not deducted, the number of power banks in the lending location needs to be replenished, incurring costs. Deduction is a way to balance costs.

[0124] In step S503, when returning the power bank, the second rental service application sends the power bank return message to the return cluster.

[0125] In this embodiment, the second rental service application is the rental service application of the return cluster, and the return cluster is the cluster where the power bank is returned.

[0126] Figure 6 This is a timing diagram of the return of shared devices according to an embodiment of this application, such as... Figure 6 As shown, when a power bank is returned, it reports a return message. Upon receiving this message, the server sets the corresponding order to pending payment. This is a crucial node in the order lifecycle. When the returned power bank belongs to a return cluster, the order logic is correct, and settlement can be completed directly. However, when the returned power bank does not belong to a return cluster, such as across borders, the return message needs to be sent to the lending cluster to close the order. The return message includes the time the user returned the power bank.

[0127] In step S504, the second rental service application determines whether the power bank is a device in the return cluster.

[0128] In this embodiment, please refer to Figure 6 When a borrowed power bank reports a return request, the message is first pushed to the second rental service application via Kafka and Apollo. If the second rental service application cannot close the order, it means that the return cluster does not have a corresponding order for that power bank, implying that the power bank was not normally borrowed from the current cluster. At this point, two possibilities exist:

[0129] (1) Repair and return;

[0130] (2) Return to another location.

[0131] The second rental service application needs to determine which of the two scenarios mentioned above applies. In this case, the second rental service application needs to call the asset management system to identify whether the power bank is an asset to be returned to the cluster. If it is equipment under maintenance, then the power bank must be an asset to be returned to the cluster, and the maintenance logic will be followed.

[0132] If it is not a return cluster asset, it can be identified as a cross-border return business scenario. In this case, the return message needs to be forwarded to the lending cluster.

[0133] It should be noted that Apollo is a distributed configuration center developed by Ctrip's framework department. It can centrally manage the configuration of applications in different environments and clusters. After the configuration is modified, it can be pushed to the application in real time. It also has standardized permissions, process governance and other features, and is suitable for microservice configuration management scenarios.

[0134] In step S505, if the power bank is not a device in the return cluster, the second rental service application sends a return message to the relay server, wherein the return message includes the power bank identifier and the return time of the power bank.

[0135] In this embodiment, the second rental service application packages the power bank's reporting message and adds information not found in the lending cluster to obtain a return message. The return message includes a return timestamp, the store where the power bank was returned, and the information of the base on which the power bank was placed. The return timestamp can be used to calculate the time difference between the lending location and the return location. Since the store where the power bank was returned is not in the lending cluster, the store information needs to be included in the forwarded return message. For example, the return message is as follows.

[0136]

[0137] In step S506, the relay server determines the borrowing cluster identifier information based on the power bank identifier.

[0138] In this embodiment, when the power bank is returned in a different location, that is, when the location where the power bank was lent out and the location where it was returned are not in the same country, the second rental service application sends the return message to the relay server. The relay server finds the lending cluster based on the power bank's identifier and then sends the return message to the lending cluster.

[0139] In step S507, the relay server sends the return message to the lending cluster based on the lending cluster identifier information.

[0140] In step S508, the lending cluster settles the power bank rental fee based on the return message and the created order information.

[0141] In this embodiment, the lending cluster receives the return message and calculates the cost of the borrowed power bank based on the return message. The return message includes the return timestamp, the store where the power bank was returned, and the base information of the power bank. The lending cluster calculates the cost of the borrowed power bank based on the order information created by the user and the return timestamp.

[0142] In addition, the first rental service application creates a new table for out-of-town returns to store store information. Meanwhile, the original order table records the returned store as 0, indicating a non-local return. When the business logic encounters a store with a value of 0, it adds a query to the out-of-town return information table, which is shown below.

[0143] field name type default value non-empty Remark id bigint(20) auto_increment order_no varvhar(24) Y Order number returned from another location return_locale varvhar(10) Y Returned country or region identifier return_box_no varvhar(45) Y Returned base number return_shop_id bigint(20) Y Returned store ID return_shop_name varvhar(64) Y Store name to be returned

[0144] Through the above steps, when the return location and the lending location of the power bank are not in the same country, when the power bank is lent out, the transit server saves the identifier of the lent power bank and the identifier of the lending cluster. When the power bank is returned, the transit server finds the corresponding lending cluster identifier based on the power bank identifier, determines the lending location based on the lending cluster identifier, and sends a return message to the lending cluster. The lending cluster calculates the cost of the power bank based on the return message and the order information created when the power bank was lent out, thus realizing cross-border settlement of power banks.

[0145] This embodiment also provides an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.

[0146] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0147] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0148] Receive a return message sent by the first terminal. The return message includes the identification information of the shared device and the return time of the shared device.

[0149] The location identification information corresponding to the shared equipment is determined based on the identification information of the shared equipment.

[0150] Based on the location identifier information corresponding to the shared device, the return message is sent to the target cluster, which is the cluster where the shared device was lent out. The target cluster includes the order information created when the shared device was lent out, so that the target cluster can calculate the rental fee of the shared device based on the order information and the return time in the return message.

[0151] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated in this embodiment.

[0152] Furthermore, in conjunction with the remote settlement methods provided in the above embodiments, this embodiment can also provide a storage medium for implementation. This storage medium stores a computer program; when executed by a processor, the computer program implements any of the remote settlement methods described in the above embodiments.

[0153] It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. All other embodiments derived by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.

[0154] Obviously, the accompanying drawings are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar situations based on these drawings without any creative effort. Furthermore, it is understood that although the work done in this development process may be complex and lengthy, for those skilled in the art, certain design, manufacturing, or production modifications made based on the technical content disclosed in this application are merely conventional technical means and should not be considered as insufficient disclosure of this application.

[0155] The term "embodiment" in this application refers to a specific feature, structure, or characteristic described in connection with an embodiment that may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily imply the same embodiment, nor does it imply that it is mutually exclusive with or independent of other embodiments. It will be clearly or implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0156] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the appended claims.

Claims

1. A method for off-site settlement, applied to a relay server, characterized in that, include: Retrieve order information from the target cluster; The order information includes the identification information of the shared device and the identification information of the lending location corresponding to the shared device; The system stores the identification information of the shared device and the identification information of the lending location, and associates the identification information of the shared device with the identification information of the lending location; it then sends the identification information of the shared device and the lending location identification information corresponding to the shared device to a third relay server, so that the third relay server stores the identification information of the shared device and the lending location identification information corresponding to the shared device, and associates the identification information of the shared device with the lending location identification information, wherein the third relay server is a relay server that has not obtained the order information in the target cluster; Receive a return message sent by the first terminal, the return message including the identification information of the shared device and the return time of the shared device; Determine the lending location identification information corresponding to the shared device based on the identification information of the shared device; Based on the lending location identifier information corresponding to the shared device, the return message is sent to the target cluster, wherein the target cluster is the cluster where the shared device is lent out, and the target cluster includes order information created when the shared device was lent out, so that the target cluster can calculate the rental fee of the shared device based on the order information and the return time in the return message.

2. The method for cross-regional settlement according to claim 1, characterized in that, The return message also includes: The store's identification information and the base information of the shared equipment, wherein the store is the store where the shared equipment is returned.

3. The method for cross-regional settlement according to claim 1, characterized in that, Sending the return message to the target cluster based on the lending location identifier information corresponding to the shared device includes: Based on the lending location identifier information corresponding to the shared device, the return message is sent to the target cluster; If the return message fails to be sent, the return message is resent to the target cluster until the target cluster successfully receives the return message.

4. The method for cross-regional settlement according to claim 1, characterized in that, Receive the return message sent by the first terminal, followed by: The return message is sent to a second relay server, wherein the second relay server is a relay server that has not received the return message sent by the first terminal; This enables the second relay server to determine the lending location identifier information corresponding to the shared device based on the identification information of the shared device, and to send the return message to the target cluster based on the lending location identifier information corresponding to the shared device.

5. A method for cross-regional settlement, applied to a first terminal, characterized in that, include: A return message is sent to at least one relay server, wherein the return message includes the identification information of the shared device and the return time of the shared device. The identification information of the shared device is used to determine the lending location identification information corresponding to the shared device, so that the at least one relay server sends the return message to the target cluster based on the lending location identification information corresponding to the shared device. The identification information of the shared device and the lending location identification information corresponding to the shared device are determined by order information in the target cluster and stored in the relay server, so that the relay server associates the identification information of the shared device with the lending location identification information. The message is also sent to a third relay server, so that the third relay server stores the identification information of the shared device and the lending location identification information corresponding to the shared device, and associates the identification information of the shared device with the lending location identification information. The third relay server is a relay server that has not obtained the order information in the target cluster. Receive a settlement message, wherein the settlement message includes the rental fee of the shared equipment, and the rental fee is settled by the target cluster based on the order information created when the shared equipment was lent out and the return time in the return message.

6. The method for cross-regional settlement according to claim 5, characterized in that, The number of the at least one relay server is multiple; sending a return message to the at least one relay server includes: A first relay server is determined among the at least one relay server, wherein the first relay server is the relay server closest to the first terminal; Send the return message to the first relay server.

7. The method for cross-regional settlement according to claim 5, characterized in that, Sending a return message to the at least one relay server, prior to which includes: Receive the return message sent by the shared device; The shared device is determined to be a device in the return cluster based on the return message, wherein the return cluster is the cluster where the shared device is returned; If the shared device is not a device in the return cluster, the step of sending the return message to at least one relay server is performed.

8. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the off-site settlement method according to any one of claims 1 to 7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the remote settlement method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Shared power bank lease method device, readable storage medium and other terminal equipment based on shared rental equipment,

    CN108777033A

  • Power bank returning method, device and system

    CN113222188A