zhangguidong 2 lat temu
rodzic
commit
1ed81ea2aa
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      application/api/controller/Order.php

+ 1 - 1
application/api/controller/Order.php

@@ -35,7 +35,7 @@ class Order extends Api
         $addres_model = new Useradress();
         $user_relationes_model = new UserRelations();
         $address_id = $input['address_id'];
-        $b_user_id = $user_relationes_model->where('c_user_id',$user)->where('b_level',3)->field('b_user_id,status')->find();
+        $b_user_id = $user_relationes_model->where('c_user_id',$user)->where('b_level',3)->field('b_user_id,status')->order('id','desc')->find();
         if(empty($b_user_id)){
             $this->error('联系管理人员添加配送员');
         }