From 1a332da390717e53c6aa646630450ae04d148f66 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Fri, 26 Jan 2024 15:07:18 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E4=BB=8E=E6=96=B0=E4=BE=9B=E9=94=80?= =?UTF-8?q?=E6=9F=A5=E9=85=8D=E9=80=81=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LogisticsLogic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'=>'配送员未匹配'];