|
@@ -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]);
|
|
|
}
|