修改判断

This commit is contained in:
liu 2024-06-03 17:34:05 +08:00
parent 3eb1fb30b8
commit 7e7c0f3ed8

View File

@ -233,7 +233,7 @@ class LoginLogic extends BaseLogic
//判断是不是员工 //判断是不是员工
$userInfo['is_staff'] = 0; $userInfo['is_staff'] = 0;
$userInfo['store_id'] = 0; $userInfo['store_id'] = 0;
if($userInfo['mobile']){ if(isset($userInfo['mobile']) && $userInfo['mobile']){
$check = SystemStoreStaff::where('phone',$userInfo['mobile'])->find()??[]; $check = SystemStoreStaff::where('phone',$userInfo['mobile'])->find()??[];
if ($check){ if ($check){
$userInfo['is_staff'] = 1; $userInfo['is_staff'] = 1;