diff --git a/app/api/logic/LogisticsLogic.php b/app/api/logic/LogisticsLogic.php index 45499439..062f3c98 100644 --- a/app/api/logic/LogisticsLogic.php +++ b/app/api/logic/LogisticsLogic.php @@ -192,9 +192,9 @@ class LogisticsLogic extends BaseLogic ->where("CONCAT_WS(',',province,city,area,street,village,brigade) = '". $order['user_address_code']."'") ->whereIn('group_id',[2, 18])->find(); // if(!$captain) return ['code'=>0, 'msg'=>'无法确定所在小队']; - //获取配送员信息 + //获取配送员信息 , 'village' => $userAddressCode[4] $courier = Courier::field('nickname as company_name,id as user_id,nickname as master_name,mobile as master_phone') - ->where(['province' => $userAddressCode[0], 'city' => $userAddressCode[1], 'area' => $userAddressCode[2], 'street' => $userAddressCode[3], 'village' => $userAddressCode[4]]) + ->where(['province' => $userAddressCode[0], 'city' => $userAddressCode[1], 'area' => $userAddressCode[2], 'street' => $userAddressCode[3]]) ->where('group_id',20)->find(); //判断配送员是否存在 if(!$courier) return ['code'=>0, 'msg'=>'配送员未匹配'];