This commit is contained in:
eson 2023-09-06 18:51:02 +08:00
parent 23d608b96b
commit 48de2c7513

View File

@ -72,19 +72,20 @@ func (l *UserEmailRegisterLogic) UserEmailRegister(req *types.RequestEmailRegist
return resp.SetStatus(basic.CodeOAuthRegisterTokenErr) return resp.SetStatus(basic.CodeOAuthRegisterTokenErr)
} }
var platformAndID string
var tplsel string = "email_register.tpl" var tplsel string = "email_register.tpl"
if token.Platform == auth.PLATFORM_FUSEN { if token.Platform == auth.PLATFORM_FUSEN {
tplsel = "email_register.tpl" tplsel = "email_register.tpl"
} else { } else {
tplsel = "email_register_oauth2.tpl" tplsel = "email_register_oauth2.tpl"
if oauthId, ok := token.Extend["oauth_id"]; ok {
platformAndID = token.Platform + " Id: " + oauthId.(string)
logx.Error(platformAndID)
}
} }
userName := token.Extend["first_name"].(string) + " " + token.Extend["last_name"].(string) userName := token.Extend["first_name"].(string) + " " + token.Extend["last_name"].(string)
var platformAndID string
if oauthId, ok := token.Extend["oauth_id"]; ok {
platformAndID = token.Platform + " Id: " + oauthId.(string)
}
// 进入发送邮箱的系统 // 进入发送邮箱的系统
EmailManager.EmailTasks <- &EmailFormat{ EmailManager.EmailTasks <- &EmailFormat{