From 65b2519f5291d02854900d251f64972ecb8390b8 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Fri, 18 Aug 2023 19:34:18 +0800 Subject: [PATCH] fix --- server/websocket/internal/logic/ws_render_image_logic.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/websocket/internal/logic/ws_render_image_logic.go b/server/websocket/internal/logic/ws_render_image_logic.go index f1ef8386..5f225038 100644 --- a/server/websocket/internal/logic/ws_render_image_logic.go +++ b/server/websocket/internal/logic/ws_render_image_logic.go @@ -114,7 +114,10 @@ func (w *wsConnectItem) consumeRenderCache(data []byte) { hashVal := renderImageData.RenderData hashVal.UserId = 0 hashVal.GuestId = 0 - taskId := hash.JsonHashKey(hashVal) + hashByte, _ := json.Marshal(hashVal) + var hashData map[string]interface{} + _ = json.Unmarshal(hashByte, &hashData) + taskId := hash.JsonHashKey(hashData) //查询有没有缓存的资源,有就返回###################### resource, err := w.logic.svcCtx.AllModels.FsResource.FindOneById(w.logic.ctx, taskId) if err != nil {