Bläddra i källkod

修改因为快递api返回错误的信息,前端返回信息不正确造成仓库同事误解的问题 将没运单是为错误 返回前端

lvhao 1 dag sedan
förälder
incheckning
57dd8ef973
1 ändrade filer med 6 tillägg och 1 borttagningar
  1. 6 1
      core/CoreApp/controllers/Systemprint.php

+ 6 - 1
core/CoreApp/controllers/Systemprint.php

@@ -1846,7 +1846,12 @@ class Systemprint extends Start_Controller {
 				$text['warehouse'] = $fullorder['warehouse']['title'];
 				$text['is_jiaji'] = $fullorder['is_jiaji'];
 				$rows = array('type'=>$type,'n'=>$n-1,'data'=>$v,'text'=>$text);
-			    echo json_encode(array('rows'=>($rows),'success'=>true));exit;
+				if(empty($text['yd'])){
+					echo json_encode(array('rows'=>($rows),'success'=>true));exit;
+				}else{
+					echo json_encode(array('msg'=>$fullorder['number'].' API接口获取运单失败','success'=>false));exit;
+				}
+			    
 			}
 			else if(($fullorder['printtype'] == 2 || $fullorder['printtype'] == 4) && $fullorder['library'] != 2)
 			{