Order refund processing method, device, equipment and medium

CN122597036APending Publication Date: 2026-08-18SHENZHEN XIAOPAI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610743388.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-27
Publication Date
2026-08-18

AI Technical Summary

Technical Problem

[0003]本发明实施例提供一种订单退款处理方法、装置、设备及介质,以解决相关技术中退款后待生效订单时间轴断裂、重叠及同步时机不统一的问题

Benefits of technology

[0014]In the above-mentioned order refund processing method, apparatus, equipment, and medium, the following steps are taken: Based on the received refund information, the corresponding current valid rights information and orders to be synchronized are determined; the order information of the orders to be synchronized is obtained, and the orders to be synchronized are sorted based on the order information to obtain an initial order sequence; Based on the current valid rights information, the reordering start time of the orders to be synchronized is determined; Based on the reordering start time and order information, the initial order sequence is reordered to obtain a reordered order sequence; Based on the current valid rights information, the first order to be synchronized in the reordered order sequence is processed for order synchronization. This method, by redetermining the start time of the orders to be synchronized based on the current valid rights information, thereby reordering the timeline of the orders to be synchronized, reduces the risk of misaligned effective times of the orders to be synchronized after refunds, and improves the accuracy of order effective time and the consistency of order processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122597036A_ABST
    Figure CN122597036A_ABST
Patent Text Reader

Abstract

The application discloses an order refund processing method, device and equipment and a medium. The method comprises the following steps: based on the received refund information, determining corresponding current effective right information and a to-be-synchronized order; acquiring order information of the to-be-synchronized order, and sorting the to-be-synchronized order based on the order information to obtain an initial order sequence; determining a rearrangement starting time of the to-be-synchronized order based on the current effective right information; rearranging the initial order sequence based on the rearrangement starting time and the order information to obtain a rearranged order sequence; and performing order synchronization processing on the first to-be-synchronized order in the rearranged order sequence based on the current effective right information. According to the method, the starting time of the to-be-synchronized order is determined again based on the current effective right information, so that the time axis of the to-be-synchronized order is rearranged, the risk of misplacement of the effective time of the to-be-synchronized order after the refund is reduced, and the order effective accuracy and order processing consistency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of internet payment technology, and in particular to a method, apparatus, device, and medium for processing order refunds. Background Technology

[0002] With the rapid popularization of IoT devices, smart terminals, and value-added services, businesses surrounding data plans, membership benefits, and cloud services for these devices are continuously developing, leading to an increasing prevalence of scenarios where multiple consecutive benefit orders for the same device run concurrently. Current technologies for handling orders awaiting activation after refunds often involve simply modifying the refund order status, deleting the refund order while keeping the subsequent order time unchanged, or simply moving subsequent orders forward while ignoring the current valid benefit status, or even relying on manual intervention. These methods fail to guarantee the continuity of the queue of orders awaiting activation after refunds in the time dimension, easily leading to overlapping or broken activation intervals. Furthermore, the timing of subsequent order synchronization lacks a unified automatic determination logic, making it difficult to adapt to the benefit synchronization requirements in refund scenarios. Therefore, there is an urgent need for an order refund processing method with a unified automatic determination logic and the ability to reorder the timeline. Summary of the Invention

[0003] This invention provides an order refund processing method, apparatus, device, and medium to solve the problems of broken, overlapping, and inconsistent synchronization timing of order timelines pending refund in related technologies.

[0004] In a first aspect, the present invention provides an order refund processing method, characterized in that it includes: Based on the received refund information, determine the corresponding current valid rights and interests information and orders to be synchronized; Obtain the order information of the orders to be synchronized, and sort the orders to be synchronized based on the order information to obtain the initial order sequence; Based on the current valid rights and interests information, determine the start time for the rearrangement of orders to be synchronized; Based on the rearrangement start time and order information, the initial order sequence is rearranged to obtain the rearranged order sequence; Based on the current valid equity information, the first order to be synchronized in the rearranged order sequence is processed for order synchronization.

[0005] In some embodiments, based on the received refund information, the corresponding currently valid rights information is determined, including: Based on the refund information, determine the corresponding refund device identifier; Based on the device identifier for the refund, the corresponding preset rights database is queried to obtain the currently valid rights information.

[0006] In some embodiments, order information includes at least one of the following: order benefit start time, order benefit end time, order creation time, order payment time, and order priority; The orders to be synchronized are sorted based on the order information to obtain an initial order sequence, which includes at least one of the following: Based on the order equity start time, the orders to be synchronized are sorted in ascending order to obtain the initial order sequence; Based on the order expiration time, the orders to be synchronized are sorted in ascending order to obtain the initial order sequence; Based on the order creation time, the orders to be synchronized are sorted in ascending order to obtain the initial order sequence; Based on the order payment time, the orders to be synchronized are sorted in ascending order to obtain the initial order sequence; Based on order priority, the orders to be synchronized are sorted to obtain the initial order sequence.

[0007] In some embodiments, the starting time for the reordering of orders to be synchronized is determined based on the currently valid equity information, including: Obtain the start and end times of the rights corresponding to the currently valid rights information, and determine the rights time interval based on the start and end times of the rights. If the equity time interval covers the preset first judgment time interval, then the preset offset time point corresponding to the equity expiration time will be determined as the rearrangement start time. If the equity time interval does not cover the preset first judgment time interval, then obtain the current time and determine the current time or the start time of the pre-designed fee cycle corresponding to the current time as the rearrangement start time.

[0008] In some embodiments, the initial order sequence is rearranged based on the rearrangement start time and order information to obtain a rearranged order sequence, including: Based on order information, determine the effective duration of orders to be synchronized in the initial order sequence; The rearrangement start time is determined as the update start time of the first order to be synchronized in the initial order sequence, and the update end time of the first order to be synchronized is determined based on the order's effective duration. Based on the update deadline, preset offset time point, and order validity period of the first order to be synchronized, the update start time and update deadline of the remaining orders to be synchronized in the initial order sequence are determined in turn, resulting in a rearranged order sequence.

[0009] In some embodiments, based on the currently valid equity information, the first order to be synchronized in the rearranged order sequence is processed for order synchronization, including: Based on the refund information, identify the corresponding refund device and obtain the device status information of the refund device; Based on at least one of the following: device status information, current valid rights information, and rearranged order sequence, determine whether the refunded device meets the preset synchronization conditions; If the preset synchronization conditions are met, then the first order to be synchronized will be processed for order synchronization. If the preset synchronization conditions are not met, then based on the preset synchronization time, or after the device status meets the preset synchronization conditions, the first order to be synchronized will be processed for order synchronization.

[0010] In some embodiments, the preset synchronization conditions include at least one of the following: The time interval corresponding to the currently valid rights information does not cover the preset first judgment time interval; The update start time of the first order to be synchronized is within the preset second judgment time interval; Based on the device status information, it was determined that the refunded device met the package synchronization conditions corresponding to the first order to be synchronized. Based on the device status information, it was determined that the device being refunded was not in a state where synchronization was prohibited. Based on the device status information, it is determined that the third-party interface of the refunded device is in an available state.

[0011] In a second aspect, the present invention provides an order refund processing apparatus, comprising: The information determination module is used to determine the corresponding currently valid rights information and orders to be synchronized based on the received refund information; The order sorting module is used to obtain the order information of the orders to be synchronized, and sort the orders to be synchronized based on the order information to obtain the initial order sequence; The starting point determination module is used to determine the reordering start time of orders to be synchronized based on the current valid rights and interests information; The sequence rearrangement module is used to rearrange the initial order sequence based on the rearrangement start time and order information to obtain the rearranged order sequence; The synchronization processing module is used to perform order synchronization processing on the first order to be synchronized in the rearranged order sequence based on the current valid equity information.

[0012] Thirdly, the present invention provides a computer 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 above-described order refund processing method.

[0013] Fourthly, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described order refund processing method.

[0014] In the above-mentioned order refund processing method, apparatus, equipment, and medium, the following steps are taken: Based on the received refund information, the corresponding current valid rights information and orders to be synchronized are determined; the order information of the orders to be synchronized is obtained, and the orders to be synchronized are sorted based on the order information to obtain an initial order sequence; Based on the current valid rights information, the reordering start time of the orders to be synchronized is determined; Based on the reordering start time and order information, the initial order sequence is reordered to obtain a reordered order sequence; Based on the current valid rights information, the first order to be synchronized in the reordered order sequence is processed for order synchronization. This method, by redetermining the start time of the orders to be synchronized based on the current valid rights information, thereby reordering the timeline of the orders to be synchronized, reduces the risk of misaligned effective times of the orders to be synchronized after refunds, and improves the accuracy of order effective time and the consistency of order processing. Attached Figure Description

[0015] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 This is a flowchart of an order refund processing method according to an embodiment of the present invention; Figure 2 This is another flowchart of an order refund processing method according to one embodiment of the present invention; Figure 3 This is another flowchart of an order refund processing method according to one embodiment of the present invention; Figure 4 This is another flowchart of an order refund processing method according to one embodiment of the present invention; Figure 5 This is another flowchart of an order refund processing method according to one embodiment of the present invention; Figure 6 This is a schematic block diagram of an order refund processing device according to an embodiment of the present invention; Figure 7 This is a schematic block diagram of a computer device according to an embodiment of the present invention. Detailed Implementation

[0017] As an example, such as Figure 1 As shown, a method for processing order refunds is provided, including the following steps: S101, based on the received refund information, determine the corresponding current valid rights information and orders to be synchronized; S102, Obtain the order information of the orders to be synchronized, and sort the orders to be synchronized based on the order information to obtain the initial order sequence; S103, Based on the current valid rights and interests information, determine the start time for the rearrangement of orders to be synchronized; S104, Based on the rearrangement start time and order information, rearrange the initial order sequence to obtain the rearranged order sequence; S105, based on the current valid equity information, perform order synchronization processing on the first order to be synchronized in the rearranged order sequence.

[0018] As an example, in step S101, the corresponding refund device can be determined based on the received refund information, and the currently effective rights and the set of ineffective orders of the refund device can be determined by querying the corresponding database. Based on the currently effective rights, the currently valid rights information can be determined, and based on the set of ineffective orders, the orders to be synchronized can be obtained.

[0019] The refund information may include order refund requests, refund success notifications, or refund processing instructions, etc., which are not limited in this invention; the currently valid rights information refers to the rights information that the refund device is still in a valid state after the refund is completed, which may include the rights start time, rights end time, rights type, etc.; the orders to be synchronized refer to the paid orders that have not yet been synchronized with the rights time after the refund is completed. In other words, the orders to be synchronized can be paid orders that have not yet taken effect by the refund device.

[0020] In one embodiment, the refund information can be parsed to extract the device identifier contained or indicated therein, thereby determining the corresponding refund device based on the device identifier. Then, based on the device identifier, the associated currently valid rights information and order data (such as order payment records, rights configurations, etc.) can be queried in the corresponding database to determine the currently valid rights information and the orders to be synchronized.

[0021] In one optional embodiment, after obtaining the current valid benefits information, this information can be synchronized to the local storage of the refund device, and the device resource status of the refund device can be updated to ensure that the local benefits status of the refund device is consistent with the current valid benefits information, thus avoiding benefit mismatch or resource conflict caused by inconsistent status. For example, updating the VIP expiration time corresponding to the refund device, updating the long-term valid identifier of the refund device, refreshing the traffic pool status of the refund device, and refreshing the capability status of the refund device related to the corresponding package type.

[0022] As an example, in step S102, the order information of all orders to be synchronized can be obtained through database query, order information extraction, etc., and all orders to be synchronized can be arranged in order according to the preset sorting rules to obtain the initial order sequence.

[0023] The order information can be various types of data used to describe the basic attributes and time characteristics of the orders to be synchronized, such as the start time of order benefits, the end time of order benefits, and the order creation time. This invention does not limit this. The initial order sequence refers to the set of orders to be synchronized that have a fixed relative order after being arranged according to preset rules, which provides the basic order processing order for subsequent time rearrangement operations.

[0024] In one embodiment, the order information of all orders to be synchronized can be obtained in batches through the order database interface, and then these orders to be synchronized can be sorted according to the pre-configured sorting rules to generate an initial order sequence with a fixed order.

[0025] As an example, in step S103, the current valid rights information can be parsed, the time feature information can be extracted, and combined with the preset judgment logic, the base start time for the time reordering of the order to be synchronized can be determined, thereby obtaining the reordering start time.

[0026] The rearrangement start time refers to the base time point at which the order queue to be synchronized begins to adjust its time. In other words, the rearrangement start time is the starting anchor point of the new effective time axis for the entire order queue to be synchronized.

[0027] In one embodiment, the reordering start time can be determined by using corresponding logic based on the device rights status reflected by the current valid rights information, so that the reordered orders to be synchronized can be reasonably connected with the current valid rights.

[0028] As an example, in step S104, the effective time interval of each order to be synchronized can be adjusted sequentially according to the fixed relative order of the initial order sequence, based on the rearrangement start time, so as to obtain the rearranged order sequence.

[0029] Among them, rearrangement refers to the process of recalculating and adjusting the effective time of each order to be synchronized in the initial order sequence; rearranged order sequence refers to the new set of orders to be synchronized formed after time adjustment.

[0030] In one embodiment, the new effective start time and effective end time of each order to be synchronized can be calculated sequentially, starting from the first order to be synchronized, according to the order of the initial order sequence, thereby completing the time rearrangement of the entire initial order sequence and obtaining the rearranged order sequence.

[0031] As an example, in step S105, it can be determined whether the first order to be synchronized in the rearranged order sequence needs to be synchronized based on the current valid rights information, and the corresponding order synchronization operation can be performed according to the determination result.

[0032] Among them, the first order to be synchronized refers to the order that is ranked first in the rearranged order sequence; order synchronization processing refers to synchronizing the rights and interests information of the order to be synchronized to the corresponding refund device or third-party service platform, so that the rights and interests corresponding to the order officially take effect.

[0033] In one embodiment, the device rights status reflected by the current valid rights information can be used to determine whether the triggering conditions for order synchronization are met. If the triggering conditions are met, the synchronization processing of the first order to be synchronized is executed immediately. If the triggering conditions are not met, the synchronization processing is delayed until a suitable time.

[0034] In summary, this invention proposes an order refund processing method, comprising: determining the corresponding current valid rights information and orders to be synchronized based on received refund information; obtaining the order information of the orders to be synchronized, and sorting the orders to be synchronized based on the order information to obtain an initial order sequence; determining the reordering start time of the orders to be synchronized based on the current valid rights information; reordering the initial order sequence based on the reordering start time and order information to obtain a reordered order sequence; and performing order synchronization processing on the first order to be synchronized in the reordered order sequence based on the current valid rights information. This method, by redetermining the start time of the orders to be synchronized based on the current valid rights information, thereby reordering the timeline of the orders to be synchronized, reduces the risk of misaligned effective times of the orders to be synchronized after a refund, and improves the accuracy of order effective time and the consistency of order processing.

[0035] As an example, such as Figure 2 As shown, step S101, which involves determining the corresponding current valid rights information based on the received refund information, includes: S201, Based on the refund information, determine the corresponding refund device identifier; S202, based on the refund device identifier, query the corresponding preset rights database to obtain the currently valid rights information.

[0036] As an example, in step S201, the received refund information can be parsed and processed to extract the refund device identifier contained therein. The refund device identifier is used to indicate the device where the refund event occurred, such as device serial number, device ID, etc. This invention does not limit this.

[0037] In one embodiment, the refund information may directly include a refund device identifier field, which can be obtained directly through field parsing.

[0038] In one optional embodiment, when the refund information does not directly contain the device identifier, the corresponding database can be queried by associating the refund order identifier and other information contained in the refund information to obtain the purchased device information corresponding to the refund order, and then the refund device identifier can be extracted.

[0039] As an example, in step S202, the obtained refund device identifier can be used as a query condition to initiate a query request to the preset rights database, obtain all valid rights records corresponding to the refund device, and obtain the current valid rights information after filtering and sorting.

[0040] The preset rights database is used to store the rights status data of each device; the currently valid rights information refers to the relevant information of the rights that are in effect and have not expired on the device at the time of query.

[0041] In one embodiment, the preset rights database may include a device VIP status table, a rights record table, a user card pack record table, a device service status table, or a data table synchronized from a third-party rights platform.

[0042] In one optional embodiment, to improve query efficiency, a rights status cache layer can be set up for the preset rights database to cache frequently accessed device rights information in the rights status cache layer. When performing a rights query, the rights status cache layer is accessed first. When the rights status cache layer does not have the corresponding query data, a full query is then initiated on the preset rights database to improve the efficiency of obtaining the currently valid rights information.

[0043] In one optional embodiment, when obtaining the current valid rights and interests information, the validity of all the rights and interests information queried can be verified, and invalid rights and interests information that has expired, expired or been refunded can be removed, and only rights and interests information that is still in effect at the current moment can be retained, thereby improving the accuracy and timeliness of the current valid rights and interests information.

[0044] In one embodiment, order information may include, but is not limited to, at least one of the following: order benefit start time, order benefit end time, order creation time, order payment time, and order priority. The order benefit start time refers to the originally planned start time of the order (e.g., the effective time immediately after successful order payment); the order benefit end time refers to the originally planned end time of the order; the order creation time refers to the time when the user creates the order; the order payment time refers to the time when the user completes payment for the order; and the order priority refers to the priority pre-assigned to different types of orders according to business rules.

[0045] In one optional embodiment, the orders to be synchronized can be sorted in ascending order based on the order benefit start time to obtain an initial order sequence. This sorting method can be used in scenarios where it is desired that orders be executed sequentially according to the originally agreed effective time, thus maximizing the preservation of the user's expectations at the time of purchase.

[0046] In one optional embodiment, the orders to be synchronized can be sorted in ascending order based on their expiration dates to obtain an initial order sequence. This sorting method can be used in scenarios where orders nearing their expiration date need to be processed first, preventing short-cycle orders from being backlogged by long-cycle orders for extended periods.

[0047] In one optional embodiment, the orders to be synchronized can be sorted in ascending order based on their creation time to obtain an initial order sequence. This sorting method can be used in business scenarios where order placement and payment are separated, ensuring that users who place orders first receive priority benefits.

[0048] In one optional embodiment, the orders to be synchronized can be sorted in ascending order based on the order payment time to obtain an initial order sequence. This sorting method can be used in scenarios where benefits are considered to be effective upon payment completion, ensuring the immediate activation of user benefits.

[0049] In one optional embodiment, orders to be synchronized can be sorted based on order priority to obtain an initial order sequence. This sorting method can be used in business scenarios with different levels of benefits, ensuring that high-value orders take effect first.

[0050] In one embodiment, such as Figure 3 As shown, step S103, which determines the start time for the reordering of orders to be synchronized based on the current valid rights information, includes: S301, Obtain the start time and end time of the rights corresponding to the current valid rights information, and determine the rights time interval based on the start time and end time of the rights; S302, if the equity time interval covers the preset first judgment time interval, then the preset offset time point corresponding to the equity expiration time is determined as the rearrangement start time. S303, if the equity time interval does not cover the preset first judgment time interval, then obtain the current time and determine the current time or the start time of the pre-designed fee cycle corresponding to the current time as the rearrangement start time.

[0051] As an example, in step S301, the current valid rights information can be parsed and processed to extract the rights start time and rights end time fields contained therein. By calculating the time span between the two time points, the rights time interval corresponding to the current valid rights can be determined.

[0052] Among them, the rights and interests time interval refers to the complete time range from the start of the current valid rights and interests to the end of the validity period, and is the basis for determining whether the rights and interests are still within the validity period.

[0053] In one embodiment, the current valid rights information can directly include the rights start time and rights end time fields, and these two time points can be directly obtained through field parsing.

[0054] In an optional embodiment, if the current valid rights information does not directly include the rights expiration time, the rights expiration time can be calculated from the rights start time and the rights validity period, thereby determining the rights time interval.

[0055] As an example, in step S302, the determined equity time interval can be compared with the preset first judgment time interval to determine whether the two intervals have an inclusion relationship; if the equity time interval completely includes the preset first judgment time interval, then the equity expiration time is used as the benchmark, and a preset time is shifted backward to obtain the corresponding preset offset time point, and this time point is determined as the rearrangement start time.

[0056] Among them, the preset first judgment time interval refers to the pre-configured reference time range used to judge whether the current rights are valid; the preset offset time point refers to the time point obtained by shifting the rights expiration time backward by a preset time, which is used to ensure a smooth connection between adjacent rights.

[0057] In an optional embodiment, the preset offset time point can be configured as the next day's midnight corresponding to the expiration time of the rights, the start time of the next billing unit, or a preset fixed duration (such as 30 minutes, 1 hour, etc.) after the expiration time of the rights.

[0058] As an example, in step S303, if the rights and interests time interval does not cover the preset first judgment time interval, it means that the valid rights and interests of the current device have expired or are about to expire. At this time, the current time can be obtained, and the current time or the start time of the pre-designed fee cycle corresponding to the current time can be selected as the reordering start time according to the business rules.

[0059] The pre-designed billing cycle start time refers to the time point at which the pre-configured billing cycle begins, such as midnight on the first day of a natural month or midnight on the first day of a natural week.

[0060] In one embodiment, when the time interval of the rights is completely before the preset first judgment time interval, it indicates that the current rights have expired. At this time, the current time can be directly determined as the start time of the reordering so as to activate the subsequent rights for the user as soon as possible.

[0061] In an optional embodiment, when the time interval of the rights is completely after the preset first judgment time interval, it indicates that the current rights have not yet taken effect. At this time, the starting time of the pre-designed fee cycle corresponding to the current time can be determined as the rearrangement starting time to comply with the billing rules.

[0062] For example, if the current time is 10:00 on May 25th, the preset first judgment time interval is 00:00-23:59 on May 25th, and the current valid equity time interval is from 00:00 on May 1st to 23:59 on May 20th, which does not cover the preset first judgment time interval; in this case, the current time 10:00 on May 25th can be determined as the rearrangement start time, or the preset design fee cycle start time corresponding to the current time, such as 00:00 on May 25th, can be determined as the rearrangement start time.

[0063] It should be understood that the preset first judgment time interval, preset offset time point, and preset design fee period can all be flexibly configured according to different business scenarios and user needs, and the present invention does not limit them.

[0064] In one embodiment, such as Figure 4 As shown, step S104, which involves rearranging the initial order sequence based on the rearrangement start time and order information to obtain the rearranged order sequence, includes: S401, Based on order information, determine the effective duration of orders to be synchronized in the initial order sequence; S402, the rearrangement start time is determined as the update start time of the first order to be synchronized in the initial order sequence, and the update end time of the first order to be synchronized is determined based on the order's effective duration; S403, based on the update deadline of the first order to be synchronized, the preset offset time point, and the order validity period, determine the update start time and update deadline of the remaining orders to be synchronized in the initial order sequence in turn, and obtain the rearranged order sequence.

[0065] As an example, in step S401, fields related to the order time can be extracted from the order information to calculate the effective duration of each order to be synchronized. The effective duration refers to the agreed-upon duration of benefits when the user purchases the order; it is a fixed relative time value that remains unchanged throughout the entire reordering process.

[0066] In one embodiment, the order validity period can be calculated by subtracting the order benefit start time from the order benefit expiration time.

[0067] In one optional embodiment, when the order information directly includes an order validity period field, the value of this field can be read directly. For example, if the order benefits start time of an order is May 1st 00:00 and the order benefits end time is May 31st 00:00, then the order validity period is 30 days.

[0068] As an example, in step S402, the determined rearrangement start time can be directly assigned to the first order to be synchronized in the initial order sequence as its new effective start time; then, based on this update start time, the order's effective duration is added to calculate the update deadline for that order. Here, the update start time refers to the time when the order begins to take effect after rearrangement; the update deadline refers to the time when the order ends to take effect after rearrangement.

[0069] For example, if the rearrangement starts at 00:00 on May 25th, and the first order to be synchronized has a validity period of 30 days, then the update start time for this order is 00:00 on May 25th, and the update end time is 00:00 on June 24th.

[0070] As an example, in step S403, each order can be processed sequentially, starting from the second order to be synchronized, according to the fixed relative order of the initial order sequence. The preset offset time point corresponding to the update deadline of the previous order to be synchronized is used as the update start time of the current order to be synchronized. Then, based on the effective duration of the current order to be synchronized, its update deadline is calculated. This process is repeated until all orders to be synchronized in the initial order sequence have been processed. Here, the preset offset time point refers to the time point offset backward from the end time of the previous order, which is used to ensure a smooth connection between orders and avoid overlapping rights or gaps.

[0071] For example, the initial order sequence contains three orders to be synchronized, with valid durations of 30 days, 15 days, and 7 days respectively. The update deadline for the first order is 23:59 on June 24, with a preset offset time configured as 00:00 the next day. The update start time for the second order is 00:00 on June 25, and the update deadline is 23:59 on July 10. The update start time for the third order is 00:00 on July 11, and the update deadline is 23:59 on July 18.

[0072] In one alternative embodiment, the entire rearrangement process follows the relative order of the initial order sequence, without changing the sequential relationship between orders, only adjusting the absolute effective time of each order.

[0073] In one optional embodiment, after the rearrangement is completed, the update start time and update end time of all orders to be synchronized can be written back to the corresponding order database to complete the update of the local order status and provide an accurate data foundation for subsequent order synchronization processing.

[0074] As an example, such as Figure 5 As shown, step S105, which involves synchronizing the first order to be synchronized in the rearranged order sequence based on the current valid equity information, includes: S501, based on the refund information, determines the corresponding refund device and obtains the device status information of the refund device; S502, based on at least one of the device status information, current valid rights information and rearranged order sequence, determine whether the refund device meets the preset synchronization conditions; S503, if it is determined that the preset synchronization conditions are met, then perform order synchronization processing on the first order to be synchronized; S504 If it is determined that the preset synchronization conditions are not met, then based on the preset synchronization time, or after the device status meets the preset synchronization conditions, the first order to be synchronized will be processed for order synchronization.

[0075] As an example, in step S501, the refund information can be parsed to extract the refund device identifier contained therein. The corresponding refund device can be determined through the refund device identifier, and then the status of the determined refund device can be queried to obtain the real-time device status information of the refund device. The device status information reflects the operating status, business status, and interface status of the refund device and is the basis for determining whether order synchronization can be performed.

[0076] In one embodiment, the device status information may include at least one of the following: device rights time, device order status, device business status, device synchronization status, and third-party interface status.

[0077] In one optional embodiment, an industrial IoT gateway or data acquisition terminal can establish a communication connection with the equipment management system or directly with the refund device using protocols such as MQTT, HTTP, and TCP to obtain equipment status information in real time, ensuring the accuracy and timeliness of the data.

[0078] As an example, in step S502, the device status information, current valid rights information, and relevant data in the rearranged order sequence can be combined to verify the preset synchronization conditions, and the result of the verification can be used to determine whether the order synchronization operation can be performed. The preset synchronization conditions refer to a set of rules pre-configured by the system to determine whether order synchronization can be performed immediately.

[0079] In one embodiment, the preset synchronization conditions include at least one of the following: the time interval corresponding to the current valid rights information does not cover the preset first judgment time interval; the update start time of the first order to be synchronized is within the preset second judgment time interval; based on the device status information, it is determined that the refund device meets the package synchronization conditions corresponding to the first order to be synchronized; based on the device status information, it is determined that the refund device is not in a prohibited synchronization state; based on the device status information, it is determined that the third-party interface status of the refund device is in an available state.

[0080] In one optional embodiment, if the time interval corresponding to the currently valid rights information does not cover the preset first judgment time interval, it indicates that the device currently has no active rights, resulting in a rights gap. The first order to be synchronized needs to be synchronized immediately to restore the user's rights. For example, if the current time is 10:00 AM on May 25th, the preset first judgment time interval is 00:00-23:59 on May 25th, and the current valid rights time interval is from 00:00 on May 1st to 23:59 on May 20th, this rights time interval does not cover the preset first judgment time interval, thus satisfying the preset synchronization condition.

[0081] In one optional embodiment, if the update start time of the first order to be synchronized falls within a preset second judgment time interval, it indicates that the order is about to take effect and synchronization preparation needs to be completed in advance. For example, the preset second judgment time interval is one hour before and after the current time. If the current time is 10:00 on May 25th, and the update start time of the first order to be synchronized is 10:30 on May 25th, this time falls within the preset second judgment time interval, thus satisfying the preset synchronization condition.

[0082] In one optional embodiment, the refund device meets the synchronization conditions for the first order to be synchronized, including that the device is online, the device hardware supports the package's functions, and the user account has no outstanding fees. For example, if the first order to be synchronized is a 4G data package, and the refund device's 4G module is working normally and online, then the preset synchronization conditions are met.

[0083] In one optional embodiment, the refund device is not in a synchronization-prohibited state, which is typically triggered by reasons such as device loss, freezing, unauthorized use, or repair. For example, the device has not been reported lost by the user, nor has it been marked as a non-compliant device by the platform, thus meeting the preset synchronization conditions.

[0084] In one optional embodiment, the third-party interface of the refund device is in an available state. The third-party interface may include a device service interface, a third-party rights interface, an IoT card platform interface, etc. For example, the heartbeat detection result of the IoT card platform interface is normal, and there is no downtime or data throttling, thus meeting the preset synchronization condition.

[0085] As an example, in step S503, when it is determined that all preset synchronization conditions are met or some preset synchronization conditions are met, the rights and interests information of the first order to be synchronized is synchronized to the device side or a third-party service platform to complete the order activation operation.

[0086] In other words, synchronization does not necessarily have to be performed only when all preset synchronization conditions are met. Instead, it can be performed when one or more preset synchronization conditions are met, based on the user's choice or the default configuration strategy.

[0087] In one embodiment, when performing order synchronization processing, a synchronization request message can be generated first, encapsulating information such as the update start time, update end time, and rights type of the first order to be synchronized in the message; the corresponding service interface is called to send the synchronization request; the synchronization result returned by the interface is received, and if the synchronization is successful, the order status is updated to synchronized; if the synchronization fails, the reason for the failure is recorded and a retry mechanism is triggered.

[0088] In one alternative embodiment, different synchronization interfaces can be selected based on the order type. For example, data plan orders call the IoT card platform interface, while membership benefit orders call the third-party benefits platform interface.

[0089] As an example, in step S504, when it is determined that some preset synchronization conditions are not met or all preset synchronization conditions are not met, the synchronization operation is not performed immediately, but a delayed synchronization method is selected according to the business rules.

[0090] In other words, synchronization is not necessarily prevented only when all preset synchronization conditions are not met. Instead, based on the user's choice or the default configuration strategy, it can be determined not to perform order synchronization processing when one or more preset synchronization conditions are not met.

[0091] In one embodiment, synchronization processing can be performed based on a preset synchronization time, which can be used in scenarios where orders need to take effect at a specific time. For example, if the preset synchronization time is 00:00 on June 1st, the synchronization operation will be automatically triggered at that time.

[0092] In one optional embodiment, synchronization can be performed after the device status meets preset synchronization conditions, which can be used in scenarios where the device status is temporarily abnormal. For example, if the device is currently offline, its status can be continuously monitored, and the synchronization operation can be automatically triggered when the device comes back online.

[0093] In one optional embodiment, for orders that fail to synchronize, multiple retries can be performed according to a preset retry strategy. If the number of retries reaches the upper limit and still fails, an abnormal work order is generated to notify the operations personnel for manual processing.

[0094] In one embodiment, an order refund processing device is provided, which corresponds one-to-one with the order refund processing methods described in the above embodiments. For example... Figure 6 As shown, the order refund processing device includes an information determination module 601, an order sorting module 602, a starting point determination module 603, a sequence rearrangement module 604, and a synchronization processing module 605. Detailed descriptions of each functional module are as follows: The information determination module 601 is used to determine the corresponding currently valid rights information and orders to be synchronized based on the received refund information; The order sorting module 602 is used to obtain the order information of the orders to be synchronized, and sort the orders to be synchronized based on the order information to obtain an initial order sequence; The starting point determination module 603 is used to determine the reordering starting point time of orders to be synchronized based on the current valid rights and interests information; The sequence rearrangement module 604 is used to rearrange the initial order sequence based on the rearrangement start time and order information to obtain the rearranged order sequence; The synchronization processing module 605 is used to perform order synchronization processing on the first order to be synchronized in the rearranged order sequence based on the current valid equity information.

[0095] In one embodiment, the information determination module 601 is further configured to determine the corresponding refund device identifier based on the refund information; Based on the device identifier for the refund, the corresponding preset rights database is queried to obtain the currently valid rights information.

[0096] In one embodiment, the order information includes at least one of the following: order benefit start time, order benefit end time, order creation time, order payment time, and order priority; the order sorting module 602 is further configured to sort the orders to be synchronized in ascending order based on the order benefit start time to obtain an initial order sequence; Based on the order expiration time, the orders to be synchronized are sorted in ascending order to obtain the initial order sequence; Based on the order creation time, the orders to be synchronized are sorted in ascending order to obtain the initial order sequence; Based on the order payment time, the orders to be synchronized are sorted in ascending order to obtain the initial order sequence; Based on order priority, the orders to be synchronized are sorted to obtain the initial order sequence.

[0097] In one embodiment, the starting point determination module 603 is further configured to obtain the start time and end time of the rights corresponding to the current valid rights information, and determine the rights time interval based on the start time and end time of the rights. If the equity time interval covers the preset first judgment time interval, then the preset offset time point corresponding to the equity expiration time will be determined as the rearrangement start time. If the equity time interval does not cover the preset first judgment time interval, then obtain the current time and determine the current time or the start time of the pre-designed fee cycle corresponding to the current time as the rearrangement start time.

[0098] In one embodiment, the sequence rearrangement module 604 is further configured to determine the effective duration of orders to be synchronized in the initial order sequence based on order information; The rearrangement start time is determined as the update start time of the first order to be synchronized in the initial order sequence, and the update end time of the first order to be synchronized is determined based on the order's effective duration. Based on the update deadline, preset offset time point, and order validity period of the first order to be synchronized, the update start time and update deadline of the remaining orders to be synchronized in the initial order sequence are determined in turn, resulting in a rearranged order sequence.

[0099] In one embodiment, the synchronization processing module 605 is further configured to determine the corresponding refund device based on the refund information and obtain the device status information of the refund device; Based on at least one of the following: device status information, current valid rights information, and rearranged order sequence, determine whether the refunded device meets the preset synchronization conditions; If the preset synchronization conditions are met, then the first order to be synchronized will be processed for order synchronization. If the preset synchronization conditions are not met, then based on the preset synchronization time, or after the device status meets the preset synchronization conditions, the first order to be synchronized will be processed for order synchronization.

[0100] In one embodiment, the preset synchronization conditions include at least one of the following: The time interval corresponding to the currently valid rights information does not cover the preset first judgment time interval; The update start time of the first order to be synchronized is within the preset second judgment time interval; Based on the device status information, it was determined that the refunded device met the package synchronization conditions corresponding to the first order to be synchronized. Based on the device status information, it was determined that the device being refunded was not in a state where synchronization was prohibited. Based on the device status information, it is determined that the third-party interface of the refunded device is in an available state.

[0101] This invention provides an order refund processing device, comprising: an information determination module, used to determine the corresponding currently valid rights information and orders to be synchronized based on received refund information; an order sorting module, used to acquire the order information of the orders to be synchronized and sort the orders to be synchronized based on the order information to obtain an initial order sequence; a starting point determination module, used to determine the rearrangement starting time of the orders to be synchronized based on the currently valid rights information; a sequence rearrangement module, used to rearrange the initial order sequence based on the rearrangement starting time and order information to obtain a rearranged order sequence; and a synchronization processing module, used to perform order synchronization processing on the first order to be synchronized in the rearranged order sequence based on the currently valid rights information. This device, by redetermining the start time of the orders to be synchronized according to the currently valid rights information, thereby rearranging the timeline of the orders to be synchronized, reduces the risk of misaligned effective times of the orders to be synchronized after a refund, and improves the accuracy of order effective time and the consistency of order processing.

[0102] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 7 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database is used for data employed in the order refund processing method. The network interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements an order refund processing method.

[0103] In one embodiment, a computer device is provided, 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 an order refund processing method.

[0104] In one embodiment, a computer-readable storage medium is provided that stores a computer program, which, when executed by a processor, implements an order refund processing method.

[0105] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), IAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0106] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0107] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A method for processing order refunds, characterized in that, include: Based on the received refund information, determine the corresponding current valid rights and interests information and orders to be synchronized; Obtain the order information of the orders to be synchronized, and sort the orders to be synchronized based on the order information to obtain an initial order sequence; Based on the current valid rights and interests information, determine the start time for the reordering of the orders to be synchronized; Based on the rearrangement start time and the order information, the initial order sequence is rearranged to obtain the rearranged order sequence; Based on the current valid rights and interests information, the first order to be synchronized in the rearranged order sequence is processed for order synchronization.

2. The method according to claim 1, characterized in that, The process of determining the corresponding current valid rights information based on the received refund information includes: Based on the refund information, determine the corresponding refund device identifier; Based on the refund device identifier, the corresponding preset rights database is queried to obtain the currently valid rights information.

3. The method according to claim 1, characterized in that, The order information includes at least one of the following: order benefit start time, order benefit end time, order creation time, order payment time, and order priority; The process of sorting the orders to be synchronized based on the order information to obtain an initial order sequence includes at least one of the following: Based on the order benefit start time, the orders to be synchronized are sorted in ascending order to obtain the initial order sequence; Based on the order benefit expiration time, the orders to be synchronized are sorted in ascending order to obtain the initial order sequence; Based on the order creation time, the orders to be synchronized are sorted in ascending order to obtain the initial order sequence; Based on the order payment time, the orders to be synchronized are sorted in ascending order to obtain the initial order sequence; Based on the order priority, the orders to be synchronized are sorted to obtain the initial order sequence.

4. The method according to claim 1, characterized in that, The step of determining the reordering start time of the orders to be synchronized based on the current valid rights information includes: Obtain the start time and end time of the rights corresponding to the currently valid rights information, and determine the rights time interval based on the start time and end time of the rights; If the equity time interval covers the preset first judgment time interval, then the preset offset time point corresponding to the equity expiration time is determined as the rearrangement start time. If the equity time interval does not cover the preset first judgment time interval, then the current time is obtained, and the current time or the start time of the pre-designed fee cycle corresponding to the current time is determined as the rearrangement start time.

5. The method according to claim 1, characterized in that, The step of rearranging the initial order sequence based on the rearrangement start time and the order information to obtain the rearranged order sequence includes: Based on the order information, determine the effective duration of the orders to be synchronized in the initial order sequence; The rearrangement start time is determined as the update start time of the first order to be synchronized in the initial order sequence, and the update end time of the first order to be synchronized is determined based on the effective duration of the order. Based on the update deadline of the first order to be synchronized, the preset offset time point, and the effective duration of the order, the update start time and update deadline of the remaining orders to be synchronized in the initial order sequence are determined in sequence to obtain the rearranged order sequence.

6. The method according to claim 1, characterized in that, The step of synchronizing the first order to be synchronized in the rearranged order sequence based on the current valid equity information includes: Based on the refund information, the corresponding refund device is determined, and the device status information of the refund device is obtained; Based on at least one of the device status information, the current valid rights information, and the rearranged order sequence, determine whether the refund device meets the preset synchronization conditions; If the preset synchronization conditions are met, then the first order to be synchronized will be processed for order synchronization. If it is determined that the preset synchronization conditions are not met, then based on the preset synchronization time, or after the device status meets the preset synchronization conditions, the order synchronization processing is performed on the first order to be synchronized.

7. The method according to claim 6, characterized in that, The preset synchronization conditions include at least one of the following: The time interval corresponding to the currently valid rights information does not cover the preset first judgment time interval; The update start time of the first order to be synchronized is within the preset second judgment time interval; Based on the device status information, it is determined that the refunded device meets the package synchronization conditions corresponding to the first order to be synchronized; Based on the device status information, it is determined that the refund device is not in a state where synchronization is prohibited; Based on the device status information, it is determined that the third-party interface of the refund device is in an available state.

8. An order refund processing device, characterized in that, include: The information determination module is used to determine the corresponding currently valid rights information and orders to be synchronized based on the received refund information; The order sorting module is used to obtain the order information of the orders to be synchronized, and sort the orders to be synchronized based on the order information to obtain an initial order sequence; The starting point determination module is used to determine the reordering starting point time of the order to be synchronized based on the current valid rights information; The sequence rearrangement module is used to rearrange the initial order sequence based on the rearrangement start time and the order information to obtain a rearranged order sequence; The synchronization processing module is used to perform order synchronization processing on the first order to be synchronized in the rearranged order sequence based on the current valid rights and interests information.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the order refund processing method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the order refund processing method as described in any one of claims 1 to 7.