Payment channel availability early warning method, device and computer-readable storage medium

By receiving order payment information data from the online trading platform, calculating the order ID quantity and pushing alarm information, the problem of poor timeliness when payment channel is abnormal is solved, timely discovery and notification of payment channel is realized, and user experience and economic benefits are improved.

CN114298702BActive Publication Date: 2024-12-03GUANGZHOU FENGZHUSHOU NETWORK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111627504.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-12-03
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

Existing online trading platforms find poor timeliness when payment channels are abnormal, resulting in poor user experience, user churn and economic benefits loss. Manual inspections increase costs and passively wait for user complaints to affect the platform's image.

Method used

When receiving order payment information data, the order ID quantity is calculated, and the warning information is judged according to the warning rules, and the payment channel abnormality is discovered in a timely manner. The management and notification of warning records are realized through electronic devices and computer-readable storage media.

Benefits of technology

It realizes timely discovery and notification of payment channel abnormalities, saves inspection labor costs, improves service availability, and reduces user churn and economic losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114298702B_ABST
    Figure CN114298702B_ABST
Patent Text Reader

Abstract

The present invention provides a payment channel availability early warning method, device and computer-readable storage medium, the method comprising: after receiving order payment information data and when the payment status is a pending payment status, calculating the number of order IDs in the order payment information data; when the total value of the number of order IDs is greater than or equal to the continuous value in the predetermined early warning rule, reading the early warning record according to the payment channel ID; the early warning record records the warning information of the payment channel; when the early warning record does not exist, pushes the warning information to the user specified in the early warning rule; and when the early warning record exists and the number of warning notifications is less than the number of notifications specified in the early warning rule, pushes the warning information to the user. When the payment status is pending payment, by reading the early warning record, when it meets the conditions of the payment channel abnormality, the abnormality is pushed to the relevant personnel, so as to achieve the purpose of timely discovering the abnormality and pushing the relevant personnel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of online transactions, and in particular to an early warning method, an electronic device and a computer-readable storage medium for the availability of a payment channel. Background Art

[0002] Nowadays, there are countless online trading platforms. WeChat Pay and Alipay have basically become the required payment methods for most platforms. Based on payment channel security and payment fee costs, they usually connect to official channels and other third-party channels.

[0003] Most of the platform user traffic is of a niche type. When users encounter payment problems, they will not actively report to the platform customer service, or continue the transaction with other payment methods, or use other platform-related services. This problem will cause poor user experience and user loss.

[0004] The platform usually arranges operators to manually check whether the payment channel is available regularly or passively waits for user complaints to find problems. Manual inspections increase labor costs, poor timeliness in finding problems, and long periods of unavailability of services affect the platform's economic benefits. Passive waiting for user complaints will affect the platform's image and cause user loss, affecting the platform's economic benefits.

[0005] In view of this, this application is hereby filed. Summary of the invention

[0006] The present invention provides an early warning method, an electronic device and a computer-readable storage medium for payment channel availability, aiming to at least solve the above-mentioned problem of poor timeliness in detecting abnormalities in payment channels.

[0007] To achieve the above object, the present invention provides an early warning method for payment channel availability, which comprises:

[0008] After receiving the order payment information data and when the payment status is in a pending payment state, the number of order IDs in the order payment information data within the continuous time of the warning rule is calculated; wherein the order payment information includes the order ID, the payment channel ID and the payment status;

[0009] When the total value of the number of order IDs is greater than or equal to the continuous value in the predetermined warning rule, the warning record is read according to the payment channel ID; the warning record is used to record the warning information of the payment channel corresponding to a payment channel ID, and the warning information includes the current round trigger time and the number of warning notifications;

[0010] When the warning record does not exist, push warning information to the user specified in the warning rule; and

[0011] When the warning record exists and the number of warning notifications is less than the number of notifications specified in the warning rule, the warning information is pushed to the user.

[0012] Optionally, the order payment information is cached in a dedicated cache library, and after the step of receiving the order payment information data, the method further includes:

[0013] The payment status in the order payment information data is judged, and when the payment status is pending payment, the order payment information is written into the corresponding cache according to the payment channel ID, so as to calculate the order ID quantity.

[0014] Optionally, the order payment information also includes the time when the payment request is received, and the order payment information is cached in a shared cache library. After the step of receiving the order payment information data, the step further includes:

[0015] Determine the payment status in the order payment information data, and when the payment status is pending payment, read the order payment information in the database corresponding to the payment channel ID; and

[0016] The payment request receiving time is judged, and the payment request receiving time that is less than the current time minus the continuous time in the warning rule and the corresponding order ID quantity are deleted to facilitate the calculation of the order ID quantity.

[0017] Optionally, after the step of determining the payment status in the order payment information data, the method further includes:

[0018] When the payment status is successful, the corresponding warning record is deleted according to the payment channel ID; and

[0019] When the payment status is payment failed, no processing is performed.

[0020] Optionally, when the warning record exists and the number of warning notifications is less than the number of notifications specified in the warning rule, after the step of pushing the warning information to the user, the step further includes:

[0021] When the current round trigger time plus the notification interval in the warning rule is greater than or equal to the current time, the current round trigger time in the warning record is updated to the current time, and the corresponding alarm notification number is 1; and

[0022] When the current round of triggering time plus the notification interval in the warning rule is less than the current time, the alarm notification times are increased by one and then updated.

[0023] The present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores an early warning program for the availability of a payment channel that can be run on the processor, and when the early warning program for the availability of a payment channel is executed by the processor, the following steps are implemented:

[0024] After receiving the order payment information data and when the payment status is in a pending payment state, the number of order IDs in the order payment information data within the continuous time of the warning rule is calculated; wherein the order payment information includes the order ID, the payment channel ID and the payment status;

[0025] When the total value of the number of order IDs is greater than or equal to the continuous value in the predetermined warning rule, the warning record is read according to the payment channel ID; the warning record is used to record the warning information of the payment channel corresponding to a payment channel ID, and the warning information includes the current round trigger time and the number of warning notifications;

[0026] When the warning record does not exist, push warning information to the user specified in the warning rule; and

[0027] When the warning record exists and the number of warning notifications is less than the number of notifications specified in the warning rule, the warning information is pushed to the user.

[0028] Optionally, the order payment information is cached in a dedicated cache library, and after the step of receiving the order payment information data, the method further includes:

[0029] The payment status in the order payment information data is judged, and when the payment status is pending payment, the order payment information is written into the corresponding cache according to the payment channel ID, so as to calculate the order ID quantity.

[0030] Optionally, the order payment information also includes the time when the payment request is received, and the order payment information is cached in a shared cache library. After the step of receiving the order payment information data, the step further includes:

[0031] Determine the payment status in the order payment information data, and when the payment status is pending payment, read the order payment information in the database corresponding to the payment channel ID; and

[0032] The payment request receiving time is judged, and the payment request receiving time that is less than the current time minus the continuous time in the warning rule and the corresponding order ID quantity are deleted to facilitate the calculation of the order ID quantity.

[0033] Optionally, after the step of determining the payment status in the order payment information data, the method further includes:

[0034] When the payment status is successful, the corresponding warning record is deleted according to the payment channel ID; and

[0035] When the payment status is payment failed, no processing is performed.

[0036] Optionally, when the warning record exists and the number of warning notifications is less than the number of notifications specified in the warning rule, after the step of pushing the warning information to the user, the step further includes:

[0037] When the current round trigger time plus the notification interval in the warning rule is greater than or equal to the current time, the current round trigger time in the warning record is updated to the current time, and the corresponding alarm notification number is 1; and

[0038] When the current round of triggering time plus the notification interval in the warning rule is less than the current time, the alarm notification times are increased by one and then updated.

[0039] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a warning program for payment channel availability is stored. The warning program for payment channel availability can be executed by one or more processors to implement the steps of the payment channel availability warning method described in any of the above items.

[0040] In the above-mentioned early warning scheme for the availability of a payment channel of the present invention, when the payment status is in the pending payment status, the corresponding early warning record is read through the payment channel ID, and when the early warning record does not exist, or when the early warning record exists and the number of alarm notifications is less than the number of notifications specified in the early warning rule, that is, when the payment channel is abnormal, the abnormal alarm information is pushed to the user specified in the early warning rule, so that the relevant personnel can be discovered and pushed in time when the payment channel is abnormal. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings of the embodiments will be briefly introduced below. Obviously, the drawings in the following description only relate to some embodiments of the present invention, but are not intended to limit the present invention.

[0042] Figure 1 A schematic diagram of a process flow of a payment channel availability early warning method provided by an embodiment of the present invention;

[0043] Figure 2 A schematic diagram of the internal structure of an electronic device provided by an embodiment of the present invention;

[0044] Figure 3 A schematic diagram of a module of a payment channel availability warning program in an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0046] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. The components of the embodiments of the present invention described and shown in the accompanying drawings can be arranged and designed in various configurations. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] The present invention provides a payment channel availability early warning method, which is applied to an electronic device, which includes an order service, an early warning service, an exclusive cache library, a basic service and a shared cache library. The payment channel availability early warning method is operated by the early warning service.

[0048] The order payment information required for the early warning service includes three attributes: order ID, payment channel ID, and payment status. Depending on whether the cache library is shared with other payment channels (or applications or businesses), the early warning implementation method is divided into two types: exclusive cache library mode and shared cache library mode.

[0049] The warning record cache uses a shared cache library to record the warning information of a payment channel, including the current trigger time and the number of alarm notifications. The warning record cache uses the string data type, with the key value pay_alerted_ prefix + payment channel ID, and the value value is in json data format to store the current trigger time and the number of alarm notifications. The json format is {"triger_time":"current trigger time","notify_sum":"number of alarm notifications"}.

[0050] In this method, payment channels refer to payment methods that are subdivided under a certain supplier. For example, an e-commerce company uses WeChat Mini Program Payment and WeChat APP Payment provided by WeChat Official. In addition, it also uses WeChat Mini Program Payment and WeChat APP Payment provided by China Construction Bank. For this e-commerce company, there are 4 payment channels in total. In this method, payment status is simplified to pending payment, successful payment, and failed payment. The cache mentioned below refers to redis cache.

[0051] First embodiment:

[0052] In this embodiment, the order payment information is cached in a dedicated cache. Figure 1 This embodiment provides an early warning method for payment channel availability, which includes:

[0053] S100, after receiving order payment information data and when the payment status is in a pending payment state, calculate the number of order IDs in the order payment information data within the continuous time of the warning rule. The order payment information includes the order ID, the payment channel ID and the payment status. The payment status includes three states: pending payment, paid and unpaid.

[0054] Among them, the order payment information cache uses the string data type in the exclusive library mode, the key stores the order ID, and the value stores the payment status. The automatic expiration time of the string cache is set according to the continuous time in the warning rule.

[0055] In this embodiment, the order payment information data is pushed by the order service, and the early warning service calculates the number of order IDs in the order payment information data after receiving the order payment information data. After the step of receiving the order payment information data, the order service determines the payment status in the order payment information data, and when the payment status is pending payment, writes the order payment information in the corresponding cache according to the payment channel ID. Specifically, when the early warning service receives the order payment information data pushed by the order service, when the payment status is equal to pending payment, it finds the corresponding cache according to the payment channel ID and writes the order payment information cache.

[0056] S200, when the total value of the number of order IDs is greater than or equal to the continuous value in the predetermined warning rule, read the warning record according to the payment channel ID. The warning record is used to record the warning information of the payment channel corresponding to a payment channel ID, and the warning information includes the current round trigger time and the number of warning notifications.

[0057] After writing the order payment information cache, check the total number of cache keys. When the total number of keys is greater than or equal to the continuous value in the warning rule, read the warning record cache.

[0058] S300: When the warning record does not exist, push warning information to the user specified in the warning rule.

[0059] When the warning service determines that the warning record does not exist, it calls the SMS and email sending interface in the basic service to push the warning information to the reminder SMS group and the reminder email group in the warning rule. And write it into the warning record cache. Among them, the current round of trigger time in the warning record is the current time, and the number of alarm notifications is 1.

[0060] S400: When the warning record exists and the number of warning notifications is less than the number of notifications specified in the warning rule, push warning information to the user.

[0061] When the warning service determines that the warning record cache exists and the number of alarm notifications is less than the number of notifications specified in the warning rules, it calls the SMS and email sending interface in the basic service to push the alarm information to the reminder SMS group and the reminder email group in the warning rules.

[0062] When the warning service determines that the warning record cache exists, and the current round of trigger time plus the notification interval in the warning rule is greater than or equal to the current time, the current round of trigger time in the warning record cache is updated to the current time, and the number of alarm notifications is 1.

[0063] When the warning service determines that the warning record cache exists, and the current round of trigger time plus the notification interval in the warning rule is less than the current time, the cumulative number of notifications in the warning record cache is increased by one and then updated.

[0064] Therefore, when the early warning service determines that the payment status is to be paid, it reads the corresponding early warning record through the payment channel ID, and when the early warning record does not exist, or when the early warning record exists and the number of alarm notifications is less than the number of notifications specified in the early warning rules, that is, when the payment channel is abnormal, the abnormal alarm information is pushed to the user specified in the early warning rules, so that the payment channel can be discovered and pushed to relevant personnel in a timely manner when it is abnormal. This solves the technical problems of increased labor costs in manual inspections, poor timeliness in discovering problems, long-term unavailability of services affecting the platform's economic benefits, and passively waiting for user complaints to affect the platform's image and cause user loss, affecting the platform's economic benefits. It saves inspection labor costs, and can promptly and proactively discover and notify relevant personnel to handle system payment function failures, thereby improving service availability.

[0065] S500, when the payment status is payment success, the corresponding warning record is deleted according to the payment channel ID. Specifically, after the step of judging the payment status in the order payment information data, when the payment status is judged to be equal to payment success, the warning record cache is deleted according to the prefix "pay_alerted_" + "payment channel ID" and the exclusive cache library is cleared.

[0066] S600, when the payment status is payment failure, no processing is performed. Specifically, after the step of judging the payment status in the order payment information data, when the payment status is judged to be equal to payment failure, no processing is performed.

[0067] Second embodiment:

[0068] In this embodiment, the order payment information is cached in a shared cache library. This embodiment provides an early warning method for payment channel availability, which includes:

[0069] S100', after receiving the order payment information data and the payment status is in the pending payment state, calculate the number of order IDs in the order payment information data within the continuous time of the warning rule. The order payment information includes the order ID, payment channel ID and payment status. The payment status includes three states: pending payment, paid and unpaid.

[0070] The order payment information also includes the time when the payment request is received. The order payment information is cached in a shared cache library. After the step of receiving the order payment information data, the step further includes:

[0071] The payment status in the order payment information data is judged, and when the payment status is pending payment, the order payment information in the database corresponding to the payment channel ID is read.

[0072] The payment request receiving time is judged, and the payment request receiving time that is less than the current time minus the continuous time in the warning rule and the corresponding order ID quantity are deleted to facilitate the calculation of the order ID quantity.

[0073] Among them, the order payment information cache is stored in the shared library mode using a hash data structure. For example, the key is the "pay_info_" prefix + "payment channel ID", the hashKey is the formatted value of the time when the payment request was received (4-digit year, 2-digit month, 2-digit day, 4-digit hour and minute), such as: 202109291050, and the value is the number of "pending payment" orders received at a certain year, month, day, hour and minute.

[0074] When the warning service receives the order payment information data pushed by the order service, when the payment status is equal to pending payment, it directly reads the payment channel ID of the current order and the cache data of the current time (year, month, hour, and minute) according to the key and hashKey. If the cache does not exist, it writes a new cache, and the written data is: payment channel ID, year, month, hour, and minute, 1. If the cache exists, it updates the cache, where value=value+1.

[0075] S200', when the total value of the order ID quantity is greater than or equal to the continuous value in the predetermined warning rule, read the warning record according to the payment channel ID. The warning record is used to record the warning information of the payment channel corresponding to a payment channel ID, and the warning information includes the current round trigger time and the number of warning notifications.

[0076] Specifically, after reading the order payment information cache by key, after deleting the expired hashkey and value, when the sum of all value values ​​(i.e. the total amount of orders to be paid for a certain payment channel duration) is greater than or equal to the continuous value in the warning rule, read the warning record. Hashkey expiration rule: The hashkey value conversion time format is less than the current time minus the continuous time in the warning rule.

[0077] S300': When the warning record does not exist, push warning information to the user specified in the warning rule.

[0078] When the warning service determines that the warning record does not exist, it calls the SMS and email sending interface in the basic service to push the warning information to the reminder SMS group and the reminder email group in the warning rule. And write it into the warning record cache. Among them, the current round of trigger time in the warning record is the current time, and the number of alarm notifications is 1.

[0079] S400', when the warning record exists and the number of warning notifications is less than the number of notifications specified in the warning rule, push warning information to the user.

[0080] When the warning service determines that the warning record cache exists and the number of alarm notifications is less than the number of notifications specified in the warning rules, it calls the SMS and email sending interface in the basic service to push the alarm information to the reminder SMS group and the reminder email group in the warning rules.

[0081] When the warning service determines that the warning record cache exists, and the current round of trigger time plus the notification interval in the warning rule is greater than or equal to the current time, the current round of trigger time in the warning record cache is updated to the current time, and the number of alarm notifications is 1.

[0082] When the warning service determines that the warning record cache exists, and the current round of trigger time plus the notification interval in the warning rule is less than the current time, the cumulative number of notifications in the warning record cache is increased by one and then updated.

[0083] Therefore, when the early warning service determines that the payment status is to be paid, it reads the corresponding early warning record through the payment channel ID, and when the early warning record does not exist, or when the early warning record exists and the number of alarm notifications is less than the number of notifications specified in the early warning rules, that is, when the payment channel is abnormal, the abnormal alarm information is pushed to the user specified in the early warning rules, so that the payment channel can be discovered and pushed to relevant personnel in a timely manner when it is abnormal. This solves the technical problems of increased labor costs in manual inspections, poor timeliness in discovering problems, long-term unavailability of services affecting the platform's economic benefits, and passively waiting for user complaints to affect the platform's image and cause user loss, affecting the platform's economic benefits. It saves inspection labor costs, and can promptly and proactively discover and notify relevant personnel to handle system payment function failures, thereby improving service availability.

[0084] S500', when the payment status is payment success, the corresponding warning record is deleted according to the payment channel ID. Specifically, after the step of judging the payment status in the order payment information data, when the payment status is judged to be equal to payment success, the warning record cache is deleted according to the prefix "pay_alerted_" + "payment channel ID" and the exclusive cache library is cleared.

[0085] S600', when the payment status is payment failure, no processing is performed. Specifically, after the step of judging the payment status in the order payment information data, when the payment status is judged to be payment failure, no processing is performed.

[0086] Third embodiment:

[0087] The present invention also provides an electronic device 1. Figure 2 , which is a schematic diagram of the internal structure of an electronic device provided by an embodiment of the present invention.

[0088] In this embodiment, the electronic device 1 may be a computer, a smart terminal or a server. The electronic device 1 at least includes a memory 11, a processor 13, a communication bus 15, and a network interface 17. In this embodiment, the electronic device 1 is a smart terminal.

[0089] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device, such as a hard disk of the electronic device. In other embodiments, the memory 11 can also be an external storage device of the electronic device, such as a plug-in hard disk equipped on the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Further, the memory 11 can also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the early warning program 111 of the availability of the payment channel, but also can be used to temporarily store data that has been output or is to be output.

[0090] In some embodiments, the processor 13 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, and is used to run the program code stored in the memory 11 or process data.

[0091] The communication bus 15 is used to realize the connection and communication between these components.

[0092] The network interface 17 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface), which is usually used to establish a communication connection between the electronic device 1 and other electronic devices.

[0093] Optionally, the electronic device 1 may further include a user interface, which may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface may also include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0094] Figure 2 Only the electronic device 1 having components 11 to 17 is shown. It can be understood by those skilled in the art that Figure 2 The structure shown does not constitute a limitation on the electronic device, and may include fewer or more components than shown, or combine certain components, or arrange the components differently.

[0095] exist Figure 2 In the embodiment of the electronic device 1 shown, the order payment information is cached in a dedicated cache. The memory 11 stores a payment channel availability warning program 111; when the processor 13 executes the payment channel availability warning program 111 stored in the memory 11, the following steps are implemented:

[0096] S100, after receiving order payment information data and when the payment status is in a pending payment state, calculate the number of order IDs in the order payment information data within the continuous time of the warning rule. The order payment information includes the order ID, the payment channel ID and the payment status. The payment status includes three states: pending payment, paid and unpaid.

[0097] Among them, the order payment information cache uses the string data type in the exclusive library mode, the key stores the order ID, and the value stores the payment status. The automatic expiration time of the string cache is set according to the continuous time in the warning rule.

[0098] In this embodiment, the order payment information data is pushed by the order service, and the early warning service calculates the number of order IDs in the order payment information data after receiving the order payment information data. After the step of receiving the order payment information data, the order service determines the payment status in the order payment information data, and when the payment status is pending payment, writes the order payment information in the corresponding cache according to the payment channel ID. Specifically, when the early warning service receives the order payment information data pushed by the order service, when the payment status is equal to pending payment, it finds the corresponding cache according to the payment channel ID and writes the order payment information cache.

[0099] S200, when the total value of the number of order IDs is greater than or equal to the continuous value in the predetermined warning rule, read the warning record according to the payment channel ID. The warning record is used to record the warning information of the payment channel corresponding to a payment channel ID, and the warning information includes the current round trigger time and the number of warning notifications.

[0100] After writing the order payment information cache, check the total number of cache keys. When the total number of keys is greater than or equal to the continuous value in the warning rule, read the warning record cache.

[0101] S300: When the warning record does not exist, push warning information to the user specified in the warning rule.

[0102] When the warning service determines that the warning record does not exist, it calls the SMS and email sending interface in the basic service to push the warning information to the reminder SMS group and the reminder email group in the warning rule. And write it into the warning record cache. Among them, the current round of trigger time in the warning record is the current time, and the number of alarm notifications is 1.

[0103] S400: When the warning record exists and the number of warning notifications is less than the number of notifications specified in the warning rule, push warning information to the user.

[0104] When the warning service determines that the warning record cache exists and the number of alarm notifications is less than the number of notifications specified in the warning rules, it calls the SMS and email sending interface in the basic service to push the alarm information to the reminder SMS group and the reminder email group in the warning rules.

[0105] When the warning service determines that the warning record cache exists, and the current round of trigger time plus the notification interval in the warning rule is greater than or equal to the current time, the current round of trigger time in the warning record cache is updated to the current time, and the number of alarm notifications is 1.

[0106] When the warning service determines that the warning record cache exists, and the current round of trigger time plus the notification interval in the warning rule is less than the current time, the cumulative number of notifications in the warning record cache is increased by one and then updated.

[0107] Therefore, when the early warning service determines that the payment status is to be paid, it reads the corresponding early warning record through the payment channel ID, and when the early warning record does not exist, or when the early warning record exists and the number of alarm notifications is less than the number of notifications specified in the early warning rules, that is, when the payment channel is abnormal, the abnormal alarm information is pushed to the user specified in the early warning rules, so that the payment channel can be discovered and pushed to relevant personnel in a timely manner when it is abnormal. This solves the technical problems of increased labor costs in manual inspections, poor timeliness in discovering problems, long-term unavailability of services affecting the platform's economic benefits, and passively waiting for user complaints to affect the platform's image and cause user loss, affecting the platform's economic benefits. It saves inspection labor costs, and can promptly and proactively discover and notify relevant personnel to handle system payment function failures, thereby improving service availability.

[0108] S500, when the payment status is payment success, the corresponding warning record is deleted according to the payment channel ID. Specifically, after the step of judging the payment status in the order payment information data, when the payment status is judged to be equal to payment success, the warning record cache is deleted according to the prefix "pay_alerted_" + "payment channel ID" and the exclusive cache library is cleared.

[0109] S600, when the payment status is payment failure, no processing is performed. Specifically, after the step of judging the payment status in the order payment information data, when the payment status is judged to be equal to payment failure, no processing is performed.

[0110] Fourth embodiment:

[0111] The present invention also provides an electronic device 1. Figure 2 , which is a schematic diagram of the internal structure of an electronic device provided by an embodiment of the present invention.

[0112] In this embodiment, the electronic device 1 may be a computer, a smart terminal or a server. The electronic device 1 at least includes a memory 11, a processor 13, a communication bus 15, and a network interface 17. In this embodiment, the electronic device 1 is a smart terminal.

[0113] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device, such as a hard disk of the electronic device. In other embodiments, the memory 11 can also be an external storage device of the electronic device, such as a plug-in hard disk equipped on the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Further, the memory 11 can also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the early warning program 111 of the availability of the payment channel, but also can be used to temporarily store data that has been output or is to be output.

[0114] In some embodiments, the processor 13 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, and is used to run the program code stored in the memory 11 or process data.

[0115] The communication bus 15 is used to realize the connection and communication between these components.

[0116] The network interface 17 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface), which is usually used to establish a communication connection between the electronic device 1 and other electronic devices.

[0117] Optionally, the electronic device 1 may further include a user interface, which may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface may also include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0118] Figure 2 Only the electronic device 1 having components 11 to 17 is shown. It can be understood by those skilled in the art that Figure 2 The structure shown does not constitute a limitation on the electronic device, and may include fewer or more components than shown, or combine certain components, or arrange the components differently.

[0119] exist Figure 2 In the embodiment of the electronic device 1 shown, the order payment information is cached in a shared cache library. The memory 11 stores a payment channel availability warning program 111; when the processor 13 executes the payment channel availability warning program 111 stored in the memory 11, the following steps are implemented:

[0120] S100', after receiving the order payment information data and the payment status is in the pending payment state, calculate the number of order IDs in the order payment information data within the continuous time of the warning rule. The order payment information includes the order ID, payment channel ID and payment status. The payment status includes three states: pending payment, paid and unpaid.

[0121] The order payment information also includes the time when the payment request is received. The order payment information is cached in a shared cache library. After the step of receiving the order payment information data, the step further includes:

[0122] The payment status in the order payment information data is judged, and when the payment status is pending payment, the order payment information in the database corresponding to the payment channel ID is read.

[0123] The payment request receiving time is judged, and the payment request receiving time that is less than the current time minus the continuous time in the warning rule and the corresponding order ID quantity are deleted to facilitate the calculation of the order ID quantity.

[0124] Among them, the order payment information cache is stored in the shared library mode using a hash data structure. For example, the key is the "pay_info_" prefix + "payment channel ID", the hashKey is the formatted value of the time when the payment request was received (4-digit year, 2-digit month, 2-digit day, 4-digit hour and minute), such as: 202109291050, and the value is the number of "pending payment" orders received at a certain year, month, day, hour and minute.

[0125] When the warning service receives the order payment information data pushed by the order service, when the payment status is equal to pending payment, it directly reads the payment channel ID of the current order and the cache data of the current time (year, month, hour, and minute) according to the key and hashKey. If the cache does not exist, it writes a new cache, and the written data is: payment channel ID, year, month, hour, and minute, 1. If the cache exists, it updates the cache, where value=value+1.

[0126] S200', when the total value of the order ID quantity is greater than or equal to the continuous value in the predetermined warning rule, read the warning record according to the payment channel ID. The warning record is used to record the warning information of the payment channel corresponding to a payment channel ID, and the warning information includes the current round trigger time and the number of warning notifications.

[0127] Specifically, after reading the order payment information cache by key, after deleting the expired hashkey and value, when the sum of all value values ​​(i.e. the total amount of orders to be paid for a certain payment channel duration) is greater than or equal to the continuous value in the warning rule, read the warning record. Hashkey expiration rule: The hashkey value conversion time format is less than the current time minus the continuous time in the warning rule.

[0128] S300': When the warning record does not exist, push warning information to the user specified in the warning rule.

[0129] When the warning service determines that the warning record does not exist, it calls the SMS and email sending interface in the basic service to push the warning information to the reminder SMS group and the reminder email group in the warning rule. And write it into the warning record cache. Among them, the current round of trigger time in the warning record is the current time, and the number of alarm notifications is 1.

[0130] S400', when the warning record exists and the number of warning notifications is less than the number of notifications specified in the warning rule, push warning information to the user.

[0131] When the warning service determines that the warning record cache exists and the number of alarm notifications is less than the number of notifications specified in the warning rules, it calls the SMS and email sending interface in the basic service to push the alarm information to the reminder SMS group and the reminder email group in the warning rules.

[0132] When the warning service determines that the warning record cache exists, and the current round of trigger time plus the notification interval in the warning rule is greater than or equal to the current time, the current round of trigger time in the warning record cache is updated to the current time, and the number of alarm notifications is 1.

[0133] When the warning service determines that the warning record cache exists, and the current round of trigger time plus the notification interval in the warning rule is less than the current time, the cumulative number of notifications in the warning record cache is increased by one and then updated.

[0134] Therefore, when the early warning service determines that the payment status is to be paid, it reads the corresponding early warning record through the payment channel ID, and when the early warning record does not exist, or when the early warning record exists and the number of alarm notifications is less than the number of notifications specified in the early warning rules, that is, when the payment channel is abnormal, the abnormal alarm information is pushed to the user specified in the early warning rules, so that the payment channel can be discovered and pushed to relevant personnel in a timely manner when it is abnormal. This solves the technical problems of increased labor costs in manual inspections, poor timeliness in discovering problems, long-term unavailability of services affecting the platform's economic benefits, and passively waiting for user complaints to affect the platform's image and cause user loss, affecting the platform's economic benefits. It saves inspection labor costs, and can promptly and proactively discover and notify relevant personnel to handle system payment function failures, thereby improving service availability.

[0135] S500', when the payment status is payment success, the corresponding warning record is deleted according to the payment channel ID. Specifically, after the step of judging the payment status in the order payment information data, when the payment status is judged to be equal to payment success, the warning record cache is deleted according to the prefix "pay_alerted_" + "payment channel ID" and the exclusive cache library is cleared.

[0136] S600', when the payment status is payment failure, no processing is performed. Specifically, after the step of judging the payment status in the order payment information data, when the payment status is judged to be payment failure, no processing is performed.

[0137] In addition, an embodiment of the present invention also proposes a computer-readable storage medium, on which a warning program 111 for payment channel availability is stored. The warning program 111 for payment channel availability can be executed by one or more processors to implement the steps implemented when the processor 13 of the above-mentioned electronic device executes the warning program 111 for payment channel availability stored in the memory 11.

[0138] The specific implementation of the computer-readable storage medium of the present invention is basically the same as the above-mentioned electronic device and method embodiments, and will not be repeated here.

[0139] Optionally, in other embodiments, the payment channel availability warning program 111 may also be divided into one or more modules, one or more modules are stored in the memory 11, and are executed by one or more processors (processor 13 in this embodiment) to complete the present invention. The module referred to in the present invention refers to a series of computer program instruction segments that can perform specific functions, and is used to describe the execution process of the payment channel availability warning program 111 in an electronic device.

[0140] For example, refer to Figure 3 FIG. 1 is a schematic diagram of a program module of a payment channel availability early warning program 111 in an embodiment of an electronic device of the present invention. In this embodiment, the payment channel availability early warning program 111 can be divided into a receiving module 10, a calculating module 20, and a reading module 30. For example:

[0141] The receiving module 10 is used to receive order payment information data.

[0142] The calculation module 20 is used to calculate the number of order IDs in the order payment information data within the continuous time of the warning rule after receiving the order payment information data and when the payment status is a pending payment status; wherein the order payment information includes the order ID, payment channel ID and payment status.

[0143] The reading module 30 is used to read the warning record according to the payment channel ID when the total value of the order ID quantity is greater than or equal to the continuous value in the predetermined warning rule; the warning record is used to record the alarm information of the payment channel corresponding to a payment channel ID, and the alarm information includes the trigger time of this round and the number of alarm notifications.

[0144] The push module 40 is used to push the warning information to the user specified in the warning rule when the warning record does not exist.

[0145] The push module 40 is further configured to push the warning information to the user when the warning record exists and the number of warning notifications is less than the number of notifications specified in the warning rule.

[0146] The functions or operation steps implemented when the program modules such as the receiving module 10, the calculating module 20, the reading module 30 and the pushing module 40 are executed are substantially the same as those in the above-mentioned embodiment, and will not be described in detail here.

[0147] It should be noted that the serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof in this article are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "including a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

Claims

1. A payment channel availability early warning method, characterized in that: include: After receiving the order payment information data and when the payment status is in a pending payment state, the number of order IDs in the order payment information data within the continuous time of the warning rule is calculated; wherein the order payment information includes the order ID, the payment channel ID and the payment status; When the total value of the number of order IDs is greater than or equal to the continuous value in the predetermined warning rule, the warning record is read according to the payment channel ID; the warning record is used to record the warning information of the payment channel corresponding to a payment channel ID, and the warning information includes the current round trigger time and the number of warning notifications; When the warning record does not exist, push warning information to the user specified in the warning rule; and When the warning record exists and the number of warning notifications is less than the number of notifications specified in the warning rule, push warning information to the user; When the current round trigger time plus the notification interval in the warning rule is greater than or equal to the current time, the current round trigger time in the warning record is updated to the current time, and the corresponding alarm notification number is 1; and When the current round of triggering time plus the notification interval in the warning rule is less than the current time, the alarm notification times are increased by one and then updated.

2. The payment channel availability early warning method according to claim 1, characterized in that: The order payment information is cached in a dedicated cache library. After the step of receiving the order payment information data, the method further includes: The payment status in the order payment information data is judged, and when the payment status is pending payment, the order payment information is written into the corresponding cache according to the payment channel ID, so as to calculate the order ID quantity.

3. The payment channel availability early warning method according to claim 1, characterized in that: The order payment information also includes the time when the payment request is received. The order payment information is cached in a shared cache library. After the step of receiving the order payment information data, the step further includes: Determine the payment status in the order payment information data, and when the payment status is pending payment, read the order payment information in the database corresponding to the payment channel ID; and The payment request receiving time is judged, and the payment request receiving time that is less than the current time minus the continuous time in the warning rule and the corresponding order ID quantity are deleted to facilitate the calculation of the order ID quantity.

4. The payment channel availability early warning method according to claim 2 or 3, characterized in that: After the step of determining the payment status in the order payment information data, the method further includes: When the payment status is successful, the corresponding warning record is deleted according to the payment channel ID; and When the payment status is payment failed, no processing is performed.

5. An electronic device, characterized in that: The electronic device includes a memory and a processor. The memory stores an early warning program for the availability of a payment channel that can be run on the processor. When the early warning program for the availability of a payment channel is executed by the processor, the following steps are implemented: After receiving the order payment information data and when the payment status is in a pending payment state, the number of order IDs in the order payment information data within the continuous time of the warning rule is calculated; wherein the order payment information includes the order ID, the payment channel ID and the payment status; When the total value of the number of order IDs is greater than or equal to the continuous value in the predetermined warning rule, the warning record is read according to the payment channel ID; the warning record is used to record the warning information of the payment channel corresponding to a payment channel ID, and the warning information includes the current round trigger time and the number of warning notifications; When the warning record does not exist, push the warning information to the user specified in the warning rule; or When the warning record exists and the number of alarm notifications is less than the number of notifications specified in the warning rule, the alarm information is pushed to the user; when the current round of trigger time plus the notification interval time in the warning rule is greater than or equal to the current time, the current round of trigger time in the warning record is updated to the current time, and the corresponding number of alarm notifications is 1; and when the current round of trigger time plus the notification interval time in the warning rule is less than the current time, the number of alarm notifications is increased by one and then updated.

6. An electronic device according to claim 5, characterized in that: The order payment information is cached in a dedicated cache library. After the step of receiving the order payment information data, the method further includes: The payment status in the order payment information data is judged, and when the payment status is pending payment, the order payment information is written into the corresponding cache according to the payment channel ID, so as to calculate the order ID quantity.

7. The electronic device according to claim 5, characterized in that: The order payment information also includes the time when the payment request is received. The order payment information is cached in a shared cache library. After the step of receiving the order payment information data, the step further includes: Determine the payment status in the order payment information data, and when the payment status is pending payment, read the order payment information in the database corresponding to the payment channel ID; and The payment request receiving time is judged, and the payment request receiving time that is less than the current time minus the continuous time in the warning rule and the corresponding order ID quantity are deleted to facilitate the calculation of the order ID quantity.

8. An electronic device according to claim 7, characterized in that: After the step of determining the payment status in the order payment information data, the method further includes: When the payment status is successful, the corresponding warning record is deleted according to the payment channel ID; and When the payment status is payment failed, no processing is performed.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an early warning program for payment channel availability, which can be executed by one or more processors to implement the steps of the early warning method for payment channel availability as described in any one of claims 1 to 4.