lvhao 12 ore fa
parent
commit
42a5775cae
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      core/CoreApp/controllers/Outerrors.php

+ 3 - 3
core/CoreApp/controllers/Outerrors.php

@@ -289,10 +289,10 @@ class Outerrors extends  Start_Controller{
                 echo json_encode(['code'=>-1,'msg'=>'未发现和 '.$waybill.' 关联的订单信息']);exit;
                 echo json_encode(['code'=>-1,'msg'=>'未发现和 '.$waybill.' 关联的订单信息']);exit;
             }
             }
 
 
-            $info = $this->outerrors->find("waybill = '$waybill'");
+            $r_info = $this->outerrors->find("waybill = '$waybill'");
 
 
-            if(!empty($num)){
-                echo json_encode(['code'=>-1,'msg'=>''.$waybill.' 的相关信息已录入,记录单号为:'.$info['number']]);exit;
+            if(!empty($r_info)){
+                echo json_encode(['code'=>-1,'msg'=>''.$waybill.' 的相关信息已录入,记录单号为:'.$r_info['number']]);exit;
             }
             }
 
 
             $r = $this->_outerrorinfo($info,$weight,$outtype);
             $r = $this->_outerrorinfo($info,$weight,$outtype);