From b67a96f1ae620e8e4ce44aa0c4312ba33effbb2f Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Tue, 29 Aug 2023 16:33:27 +0800 Subject: [PATCH] fix --- server/auth/internal/logic/useremailconfirmationlogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/auth/internal/logic/useremailconfirmationlogic.go b/server/auth/internal/logic/useremailconfirmationlogic.go index ed1f2764..7e9b30b5 100644 --- a/server/auth/internal/logic/useremailconfirmationlogic.go +++ b/server/auth/internal/logic/useremailconfirmationlogic.go @@ -162,7 +162,7 @@ func (l *UserEmailConfirmationLogic) AfterLogic(w http.ResponseWriter, r *http.R ` // w.Write([]byte(successHtml)) - httpx.OkJsonCtx(r.Context(), w, successHtml) + httpx.OkJsonCtx(r.Context(), w, []byte(successHtml)) } else { httpx.OkJsonCtx(r.Context(), w, resp) }