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;