浏览代码

提交数据

lvhao 1 月之前
父节点
当前提交
a5250c1927
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      core/CoreApp/controllers/Systemprint.php

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

@@ -1419,7 +1419,13 @@ class Systemprint extends Start_Controller {
 					{
 						//云尚比较特殊 有时间请求500 也会在对方系统中
 						//$fullorder['printnumber'] = $fullorder['printnumber'] +1;
-						$failed = $barcode['Description'];//错误提示
+						if(empty($barcode['Description'])){
+							$this->logic_ding->sendToDing("云尚打印返回错误未保存【".$fullorder['number']."】".json_encode($barcode));
+							$failed = "订单打印失败";//错误提示
+						}else{
+							$failed = $barcode['Description'];//错误提示
+						}
+						
 						//$this->$fullorder_name->save(array('print'=>1,'failed'=>$failed,'printnumber'=>$fullorder['printnumber']),$va[$n]);
 						$this->$fullorder_name->save(array('print'=>1,'failed'=>$failed),$va[$n]);
 					}