From cde1d9842674aedc956b993e5bfa87c6aec513d0 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Mon, 3 Jun 2024 17:48:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LoginLogic.php | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/app/api/logic/LoginLogic.php b/app/api/logic/LoginLogic.php index 08f09d3b2..f68c8b4a7 100644 --- a/app/api/logic/LoginLogic.php +++ b/app/api/logic/LoginLogic.php @@ -227,19 +227,18 @@ class LoginLogic extends BaseLogic $response = (new WeChatMnpService())->getMnpResByCode($params['code']); $userServer = new WechatUserService($response, UserTerminalEnum::WECHAT_MMP); $userInfo = $userServer->getResopnseByUserInfo()->authUserLogin()->getUserInfo(); - // 更新登录信息 self::updateLoginInfo($userInfo['id']); //判断是不是员工 - $userInfo['is_staff'] = 0; - $userInfo['store_id'] = 0; - if(isset($userInfo['mobile']) && $userInfo['mobile']){ - $check = SystemStoreStaff::where('phone',$userInfo['mobile'])->find()??[]; - if ($check){ - $userInfo['is_staff'] = 1; - $userInfo['store_id'] = $check['store_id']; - } - } +// $userInfo['is_staff'] = 0; +// $userInfo['store_id'] = 0; +// if(isset($userInfo['mobile']) && $userInfo['mobile']){ +// $check = SystemStoreStaff::where('phone',$userInfo['mobile'])->find()??[]; +// if ($check){ +// $userInfo['is_staff'] = 1; +// $userInfo['store_id'] = $check['store_id']; +// } +// } Db::commit(); return $userInfo;