Ver Fonte

提交扫码问题

lvhao há 8 horas atrás
pai
commit
c54adfd4b4
1 ficheiros alterados com 6 adições e 1 exclusões
  1. 6 1
      core/CoreApp/controllers/Lyerpapi/v1/Order.php

+ 6 - 1
core/CoreApp/controllers/Lyerpapi/v1/Order.php

@@ -85,7 +85,12 @@ class Order extends Lyapi_Controller{
         if(empty($info)){
             $this->_json_error('未查询到订单信息','500');
         }
-
+        if(empty($info['waybill'])){
+            $this->_json_error('订单未打印!','500');
+        }
+        if($info['library'] != 1){
+            $this->_json_error('订单状态不符合扫出库条件','500');
+        }
 
         if($data['qr'] != 'aliyuncheck'){
             $this->_json_error('参数错误','500');