From 0cfbab76f30d9534df8d92e930eb77aa24b934e6 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Thu, 6 Jun 2024 16:55:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=85=8D=E9=80=81=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=A1=A8=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LoginLogic.php | 3 ++- app/api/logic/user/UserLogic.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/api/logic/LoginLogic.php b/app/api/logic/LoginLogic.php index 2e76a4f4b..da85ad01d 100644 --- a/app/api/logic/LoginLogic.php +++ b/app/api/logic/LoginLogic.php @@ -16,6 +16,7 @@ namespace app\api\logic; use app\common\cache\WebScanLoginCache; use app\common\logic\BaseLogic; +use app\common\model\system_store\DeliveryService; use app\common\model\system_store\SystemStore; use app\common\model\system_store\SystemStoreStaff; use app\api\service\{UserTokenService, WechatUserService}; @@ -268,7 +269,7 @@ class LoginLogic extends BaseLogic $res['is_staff'] = 0; $res['store_id'] = 0; if(isset($res['mobile']) && $res['mobile']){ - $check = SystemStoreStaff::where('phone',$res['mobile'])->find()??[]; + $check = DeliveryService::where('phone',$res['mobile'])->find()??[]; if ($check){ $res['is_staff'] = 1; $res['store_id'] = $check['store_id']; diff --git a/app/api/logic/user/UserLogic.php b/app/api/logic/user/UserLogic.php index 5e6f8e75c..d76341db5 100644 --- a/app/api/logic/user/UserLogic.php +++ b/app/api/logic/user/UserLogic.php @@ -7,6 +7,7 @@ use app\common\{logic\BaseLogic, model\dict\DictData, model\finance\CapitalFlow, model\store_order\StoreOrder, + model\system_store\DeliveryService, model\system_store\SystemStore, model\system_store\SystemStoreStaff, model\user\User, @@ -81,7 +82,7 @@ class UserLogic extends BaseLogic $data['is_staff'] = 0; $data['store_id'] = 0; if(isset($data['mobile']) && $data['mobile']){ - $check = SystemStoreStaff::where('phone',$data['mobile'])->find()??[]; + $check = DeliveryService::where('phone',$data['mobile'])->find()??[]; if ($check){ $data['is_staff'] = 1; $data['store_id'] = $check['store_id'];