stanley-king 4 년 전
부모
커밋
3ecd79fa00
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      helper/refill/RefillBase.php

+ 2 - 3
helper/refill/RefillBase.php

@@ -445,11 +445,10 @@ class RefillBase
             $refill_order->edit($order_id, ['mch_notify_times' => ['exp', 'mch_notify_times+1']]);
             $times = $refill_info['mch_notify_times'] + 1;
 
-            if ($times > 80) {
+            if ($times > 10) {
                 $refill_order->edit($order_id, ['mch_notify_state' => 2]);
             } else {
-                $N = intval($times / 5);
-                $period = intval(pow(2, $N));
+                $period = intval(pow(2, $times));
                 QueueClient::async_push("NotifyMerchantComplete", ['order_id' => $order_id,'manual' => false], $period);
             }