浏览代码

fix async_add params error

stanley-king 4 年之前
父节点
当前提交
91fbf5f7e3
共有 3 个文件被更改,包括 4 次插入3 次删除
  1. 1 0
      crontab/control/minutes.php
  2. 2 2
      mobile/control/merchant_refill.php
  3. 1 1
      mobile/control/refill.php

+ 1 - 0
crontab/control/minutes.php

@@ -473,6 +473,7 @@ class minutesControl extends BaseCronControl
                 if(is_array($params))
                 {
                     foreach ($params as $key => $value) {
+                        Log::record("delay queue: {$key}",Log::DEBUG);
                         QueueClient::push($key,$value);
                     }
                 }

+ 2 - 2
mobile/control/merchant_refill.php

@@ -99,11 +99,11 @@ class merchant_refillControl extends mbMerchantControl
                     'card_no' => $no,
                     'mch_order' => "",
                     'notify_url' => ""];
-                
+
                 $card_type = mtopcard\simple_card_type($no);
                 [$can_refill, $period] = refill\util::can_commit($no, $card_type);
                 if ($can_refill === false) {
-                    $ret = refill\util::async_add($params, $period, $period);
+                    $ret = refill\util::async_add('add', $params, $period);
                 } else {
                     $ret = refill\util::push_add($params);
                 }

+ 1 - 1
mobile/control/refill.php

@@ -110,7 +110,7 @@ class refillControl extends merchantControl
 
         [$can_refill, $period] = refill\util::can_commit($card_no, $card_type);
         if ($can_refill === false) {
-            $state = refill\util::async_add($params, $period, $period);
+            $state = refill\util::async_add('add', $params, $period);
         } else {
             $state = refill\util::push_add($params);
         }