fix
This commit is contained in:
parent
631a87abf1
commit
a8c44f7206
|
@ -143,6 +143,7 @@ func (l *UserEmailConfirmationLogic) UserEmailConfirmation(req *types.RequestEma
|
|||
|
||||
// 处理逻辑后 w,r 如:重定向, resp 必须重新处理
|
||||
func (l *UserEmailConfirmationLogic) AfterLogic(w http.ResponseWriter, r *http.Request, resp *basic.Response) {
|
||||
if resp.Code == 200 {
|
||||
successHtml := `<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
@ -162,4 +163,7 @@ func (l *UserEmailConfirmationLogic) AfterLogic(w http.ResponseWriter, r *http.R
|
|||
</html>`
|
||||
w.Write([]byte(successHtml))
|
||||
httpx.OkJsonCtx(r.Context(), w, nil)
|
||||
} else {
|
||||
httpx.OkJsonCtx(r.Context(), w, resp)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user