mirror of
https://github.com/certd/certd.git
synced 2026-06-25 03:57:30 +08:00
fix: 修复clogin多选类型登录失败的bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user