修复可选注册码报错
(cherry picked from commit b40c62f94d6e33814db1498534d585b5b8d4303f)
This commit is contained in:
@@ -55,14 +55,14 @@ const loginService = {
|
|||||||
|
|
||||||
if (regKey === settingConst.regKey.OPEN) {
|
if (regKey === settingConst.regKey.OPEN) {
|
||||||
const result = await this.handleOpenRegKey(c, regKey, code)
|
const result = await this.handleOpenRegKey(c, regKey, code)
|
||||||
type = result.type
|
type = result?.type
|
||||||
regKeyId = result.regKeyId
|
regKeyId = result?.regKeyId
|
||||||
}
|
}
|
||||||
|
|
||||||
if (regKey === settingConst.regKey.OPTIONAL) {
|
if (regKey === settingConst.regKey.OPTIONAL) {
|
||||||
const result = await this.handleOpenOptional(c, regKey, code)
|
const result = await this.handleOpenOptional(c, regKey, code)
|
||||||
type = result.type
|
type = result?.type
|
||||||
regKeyId = result.regKeyId
|
regKeyId = result?.regKeyId
|
||||||
}
|
}
|
||||||
|
|
||||||
const accountRow = await accountService.selectByEmailIncludeDelNoCase(c, email);
|
const accountRow = await accountService.selectByEmailIncludeDelNoCase(c, email);
|
||||||
|
|||||||
Reference in New Issue
Block a user