mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-29 18:09:16 +08:00
Update UserService.php
This commit is contained in:
parent
cfee872aec
commit
fa5d73cd30
@ -32,7 +32,7 @@ class UserService extends Service
|
||||
if (is_numeric($map)) {
|
||||
$map = ['id' => $map];
|
||||
} elseif (is_string($map)) {
|
||||
$map = ['token|openid1|openid2' => $map];
|
||||
$map = ['token|openid1|openid2|unionid' => $map];
|
||||
}
|
||||
$user = $this->save($map, [], $force);
|
||||
if (empty($user)) throw new \think\Exception('登录授权失败');
|
||||
|
Loading…
x
Reference in New Issue
Block a user