diff --git a/server/auth/internal/logic/useremailregisterlogic.go b/server/auth/internal/logic/useremailregisterlogic.go index aaedb782..23ecf61f 100644 --- a/server/auth/internal/logic/useremailregisterlogic.go +++ b/server/auth/internal/logic/useremailregisterlogic.go @@ -72,19 +72,20 @@ func (l *UserEmailRegisterLogic) UserEmailRegister(req *types.RequestEmailRegist return resp.SetStatus(basic.CodeOAuthRegisterTokenErr) } + var platformAndID string var tplsel string = "email_register.tpl" if token.Platform == auth.PLATFORM_FUSEN { tplsel = "email_register.tpl" } else { - 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) - var platformAndID string - if oauthId, ok := token.Extend["oauth_id"]; ok { - platformAndID = token.Platform + " Id: " + oauthId.(string) - } // 进入发送邮箱的系统 EmailManager.EmailTasks <- &EmailFormat{