From 65aaf1c05bd06cefa82ebc40cc3e01cf4ac233c0 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 27 七月 2024 13:52:08 +0800
Subject: [PATCH] 代理新功能完善

---
 src/test/java/com/taoke/autopay/KeyTest.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/test/java/com/taoke/autopay/KeyTest.java b/src/test/java/com/taoke/autopay/KeyTest.java
index 4c75ed2..61a3cac 100644
--- a/src/test/java/com/taoke/autopay/KeyTest.java
+++ b/src/test/java/com/taoke/autopay/KeyTest.java
@@ -6,6 +6,7 @@
 import com.taoke.autopay.exception.KeyOrderException;
 import com.taoke.autopay.exception.KeyVerifyException;
 import com.taoke.autopay.exception.WxOrderCountException;
+import com.taoke.autopay.manager.OrderPayFailProcessor;
 import com.taoke.autopay.service.KeyOrderService;
 import com.taoke.autopay.service.SystemConfigService;
 import com.taoke.autopay.utils.AlipayOrderUtil;
@@ -34,6 +35,9 @@
 
     @Resource
     private KeyOrderService keyOrderService;
+
+    @Resource
+    private OrderPayFailProcessor orderPayFailProcessor;
 
     private void addKey(SubmitKeyInfo keyInfo, Long wxUid) throws KeyVerifyException, KeyOrderException, WxOrderCountException {
         // 瑙f瀽閾炬帴
@@ -91,4 +95,13 @@
         }
     }
 
+    @Test
+    public void testRePay() throws InterruptedException {
+        for(int i=0;i<10;i++) {
+            orderPayFailProcessor.processPayFail("2c9d0dd55cd845819c8e6010fe10def4", "璇诲彇鏀粯瀹濈矘璐存澘瓒呮椂");
+            Thread.sleep(2000);
+            orderPayFailProcessor.processFromQueue();
+        }
+    }
+
 }

--
Gitblit v1.8.0