Browse Source

处理退货登记的问题

longyi 5 months ago
parent
commit
e6ab7f42a8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      core/CoreApp/controllers/Returngoods.php

+ 4 - 1
core/CoreApp/controllers/Returngoods.php

@@ -1169,7 +1169,9 @@ class Returngoods extends Start_Controller {
             return json_encode(['msg'=>'重发订单信息不存在!','success'=>false]);
         }
         $re_orderinfo = $this->_getOrderByNumber($info['back_no']);
-    
+        if(empty($re_orderinfo)){
+            return json_encode(['msg'=>'重发订单信息查询失败','success'=>false]);
+        }
         if(empty($re_orderinfo['waybill'])){
             return json_encode(['msg'=>'重发订单未打印快递单,不能点击快递发出','success'=>false]);
         }
@@ -1390,6 +1392,7 @@ class Returngoods extends Start_Controller {
 
     }
     private function _getOrderByNumber($order_no){
+        $order_no = trim($order_no);
         // 1 查询独立站
         $order_info = $this->fullorder->get_number($order_no);
         if(!empty($order_info)){