This commit is contained in:
cool 2023-08-09 14:44:24 +08:00
commit a78a0e645d

View File

@ -177,9 +177,9 @@ export class UserLoginService extends BaseService {
throw new CoolCommException('token类型非refreshToken');
}
const userInfo = await this.userInfoEntity.findOneBy({
id: info['userId'],
id: info['id'],
});
return this.token(userInfo);
return this.token({ id: userInfo.id });
} catch (e) {
throw new CoolCommException(
'刷新token失败请检查refreshToken是否正确或过期'