Prechádzať zdrojové kódy

fix proxy check code

stanley-king 1 rok pred
rodič
commit
8508bb52d6
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      rdispatcher/proxy.php

+ 3 - 3
rdispatcher/proxy.php

@@ -262,11 +262,11 @@ class proxy
         if($errcode !== true)
         {
             //遇到网络错误情况,查询处理
-            if($errcode === refill\errcode::MERCHANT_REFILL_NETERROR && $neterr && refill\util::need_check($net_errno)) {
+            if($errcode === refill\errcode::MERCHANT_REFILL_NETERROR) {
                 QueueClient::async_push("QueryOrderNeterr",['order_id' => $order_id],15);
                 $fError = false;
             }
-            elseif (($errcode === refill\errcode::MERCHANT_REFILL_NETERROR && $neterr === false) || $errcode === refill\errcode::MERCHANT_REFILL_CHLIMIT) {
+            elseif ($errcode === refill\errcode::MERCHANT_REFILL_CHLIMIT) {
                 $fError = $reAdder($order, $order_id, $order_time, $mod_refill);
             }
             else {
@@ -408,7 +408,7 @@ class proxy
         [$errcode, $errmsg, $order_id, $neterr,$net_errno] = refill\RefillFactory::instance()->add($order);
         if($errcode !== true)
         {
-            if ($errcode === refill\errcode::MERCHANT_REFILL_NETERROR && $neterr && refill\util::need_check($net_errno)) {
+            if ($errcode === refill\errcode::MERCHANT_REFILL_NETERROR) {
                 return QueueClient::async_push("QueryOrderNeterr", ['order_id' => $order_id], 15);
             } else {
                 return $this->onEerror($order, $need_callback, $errmsg);