stanley-king vor 4 Jahren
Ursprung
Commit
3ecd79fa00
1 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen
  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);
             }