zhangguidong %!s(int64=2) %!d(string=hai) anos
pai
achega
1ed81ea2aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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('联系管理人员添加配送员');
         }