Pārlūkot izejas kodu

fix no call back

stanley-king 3 gadi atpakaļ
vecāks
revīzija
c4eaeee027
2 mainītis faili ar 6 papildinājumiem un 3 dzēšanām
  1. 4 2
      helper/refill/RefillBase.php
  2. 2 1
      rdispatcher/proxy.php

+ 4 - 2
helper/refill/RefillBase.php

@@ -388,7 +388,8 @@ class RefillBase
                 if(!is_string($errmsg)) {
                     $errmsg = "{$errmsg}";
                 }
-                $mod_refill->edit($order_id, ['commit_time' => time(), 'notify_time' => time(), 'err_msg' => $errmsg]);
+                $mod_refill->edit($order_id, ['commit_time' => time(), 'err_msg' => $errmsg]);
+//                $mod_refill->edit($order_id, ['commit_time' => time(), 'notify_time' => time(), 'err_msg' => $errmsg]);
             }
         }
 
@@ -398,7 +399,8 @@ class RefillBase
             return [errcode::MERCHANT_REFILL_ERROR, "充值失败", $last_orderid, $neterr, $net_errno];
         } else {
             //订单创建失败,不需要再重试了,可能已经是数据库等系统错误
-            return [errcode::MERCHANT_REFILL_ERROR, "充值失败", $last_orderid, false, 'ORDER_CREATE_FAIL'];
+            return [errcode::MERCHANT_REFILL_ERROR, "充值失败", $last_orderid, false, 0];
+//            return [errcode::MERCHANT_REFILL_ERROR, "充值失败", $last_orderid, false, 'ORDER_CREATE_FAIL'];
         }
     }
 

+ 2 - 1
rdispatcher/proxy.php

@@ -75,7 +75,8 @@ class proxy
                 QueueClient::async_push("QueryOrderNeterr",['order_id' => $order_id],15);
                 $fError = false;
             }
-            elseif(($errcode === refill\errcode::MERCHANT_REFILL_ERROR) && refill\util::order_errflag($net_errno) === false)
+            elseif(($errcode === refill\errcode::MERCHANT_REFILL_ERROR && $neterr))
+//            elseif(($errcode === refill\errcode::MERCHANT_REFILL_ERROR) && refill\util::order_errflag($net_errno) === false)
             {
                 [$org_quality,$quality] = refill\RefillFactory::instance()->find_quality($order,true);
                 $order->set_quality($org_quality,$quality);