Update UserService.php

This commit is contained in:
Anyon 2020-09-14 12:30:04 +08:00
parent cfee872aec
commit fa5d73cd30

View File

@ -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('登录授权失败');