修改判断
This commit is contained in:
parent
3eb1fb30b8
commit
7e7c0f3ed8
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user