Parcourir la source

都已测试了

skyfffire il y a 1 mois
Parent
commit
b07015a457

+ 2 - 2
src/main/java/modules/withdraw/WithdrawMaintenanceTask.java

@@ -26,10 +26,10 @@ public class WithdrawMaintenanceTask implements Runnable {
         while (running) { // 循环直到收到停止指令
             try {
                 // 每次循环后休眠一段时间,避免CPU空转,并控制检查频率
-                Thread.sleep(TimeUnit.SECONDS.toMillis(60)); // 每 60 秒检查一次
+                Thread.sleep(TimeUnit.SECONDS.toMillis(10)); // 每 10 秒检查一次
                 
                 // 只处理已通过审批的
-                String sql = "SELECT id FROM t_withdraw WHERE state=20";
+                String sql = "SELECT * FROM t_withdraw WHERE state=20";
                 flushWithdrawState(Withdraw.dao.find(sql));
             } catch (InterruptedException e) {
                 LOGGER.warn("WithdrawMaintenanceTask 因中断而停止。");

+ 2 - 2
src/test/rest/WithdrawControllerTest.http

@@ -7,7 +7,7 @@ Content-Type: application/json
 dl-token: {{dl_token_var}}
 
 {
-  "amount": 1100
+  "amount": 100
 }
 
 ### 【超级管理员】 通过提现审批并给用户打款
@@ -17,7 +17,7 @@ Content-Type: application/json
 dl-token: {{dl_token_var}}
 
 {
-  "withdraw_sn": "DLTBH_WD_17588746359625898"
+  "withdraw_sn": "DLTBH_WD_17588834885852582"
 }
 
 ### 【超级管理员】 拒绝该用户的提现申请