fix: 修复clogin多选类型登录失败的bug

This commit is contained in:
xiaojunnuo
2026-05-14 19:04:20 +08:00
parent af7297d671
commit 9f878a353c
2 changed files with 8 additions and 8 deletions
@@ -245,7 +245,7 @@ export class LoginService {
async loginByOpenId(req: { openId: string, type:string }) {
const {openId, type} = req;
const oauthBound = await this.oauthBoundService.findOne({
where:{openId, type: type.replace(':', '')}
where:{openId, type}
});
if (oauthBound == null) {
return null