|
@@ -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('联系管理人员添加配送员');
|
|
|
}
|