fix
This commit is contained in:
@@ -72,10 +72,17 @@ func (l *UserEmailRegisterLogic) UserEmailRegister(req *types.RequestEmailRegist
|
||||
return resp.SetStatus(basic.CodeOAuthRegisterTokenErr)
|
||||
}
|
||||
|
||||
var tplsel string = "email_register.tpl"
|
||||
if token.Platform == auth.PLATFORM_FUSEN {
|
||||
tplsel = "email_register.tpl"
|
||||
} else {
|
||||
tplsel = "email_register_oauth2.tpl"
|
||||
}
|
||||
|
||||
userName := token.Extend["first_name"].(string) + " " + token.Extend["last_name"].(string)
|
||||
// 进入发送邮箱的系统
|
||||
EmailManager.EmailTasks <- &EmailFormat{
|
||||
TemplateName: "email_register.tpl",
|
||||
TemplateName: tplsel,
|
||||
UniqueKey: "register-" + req.Email,
|
||||
TargetEmail: req.Email,
|
||||
CompanyName: "fusen",
|
||||
|
||||
Reference in New Issue
Block a user