Explorar el Código

提交扫码问题

lvhao hace 9 horas
padre
commit
c54adfd4b4
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  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');