diff --git a/server/auth/internal/logic/useremailconfirmationlogic.go b/server/auth/internal/logic/useremailconfirmationlogic.go index fdd04c7c..7ab31e47 100644 --- a/server/auth/internal/logic/useremailconfirmationlogic.go +++ b/server/auth/internal/logic/useremailconfirmationlogic.go @@ -6,6 +6,7 @@ import ( "fusenapi/utils/auth" "fusenapi/utils/basic" "fusenapi/utils/wevent" + "net/http" "time" "context" @@ -15,6 +16,7 @@ import ( "github.com/474420502/requests" "github.com/zeromicro/go-zero/core/logx" + "github.com/zeromicro/go-zero/rest/httpx" "gorm.io/gorm" ) @@ -140,6 +142,24 @@ func (l *UserEmailConfirmationLogic) UserEmailConfirmation(req *types.RequestEma } // 处理逻辑后 w,r 如:重定向, resp 必须重新处理 -// func (l *UserEmailConfirmationLogic) AfterLogic(w http.ResponseWriter, r *http.Request, resp *basic.Response) { -// // httpx.OkJsonCtx(r.Context(), w, resp) -// } +func (l *UserEmailConfirmationLogic) AfterLogic(w http.ResponseWriter, r *http.Request, resp *basic.Response) { + successHtml := ` + +
+感谢您在我们网站进行注册。您的账号已经激活。
+ +您现在可以使用您的邮箱地址和密码登录我们的网站,享受完整的服务和功能。
+ +再次感谢您的信任和支持。如果您有任何问题,请随时联系我们。
+ +祝您使用愉快!
+ + ` + w.Write([]byte(successHtml)) + httpx.OkJsonCtx(r.Context(), w, nil) +}