From 7004812acfd660b8adc1bd09d2fd4a69d17f6803 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 13 Nov 2023 10:19:12 +0800 Subject: [PATCH] fix --- server/websocket/internal/handler/rendernotifyhandler.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/websocket/internal/handler/rendernotifyhandler.go b/server/websocket/internal/handler/rendernotifyhandler.go index 5c6f3b95..aaf682c2 100644 --- a/server/websocket/internal/handler/rendernotifyhandler.go +++ b/server/websocket/internal/handler/rendernotifyhandler.go @@ -1,6 +1,8 @@ package handler import ( + "encoding/json" + "fmt" "github.com/zeromicro/go-zero/core/logx" "io" "net/http" @@ -16,7 +18,10 @@ import ( func RenderNotifyHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { b,_ := io.ReadAll(r.Body) - logx.Info("渲染回调数据:",string(b)) + var c map[string]interface{} + _ = json.Unmarshal(b,&c) + c["image"] = nil + logx.Info(fmt.Sprintf("回调渲染数据:%+v",c)) var req types.RenderNotifyReq userinfo, err := basic.RequestParse(w, r, svcCtx, &req) if err != nil {