From ea59eda5b1f4036f218df0fe3372462427817ce9 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Fri, 20 Oct 2023 14:28:34 +0800 Subject: [PATCH] fix --- server/websocket/internal/logic/ws_ok_response.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/websocket/internal/logic/ws_ok_response.go b/server/websocket/internal/logic/ws_ok_response.go index a64db391..0d2dab18 100644 --- a/server/websocket/internal/logic/ws_ok_response.go +++ b/server/websocket/internal/logic/ws_ok_response.go @@ -15,10 +15,10 @@ func (w *wsConnectItem) sendCombineImageStepResponseMessage(renderId, requestId, } combineTakesTime := "cache" uploadCombineImageTakesTime := "cache" - if debugData.DiffTimeLogoCombine > 0 { + if debugData != nil && debugData.DiffTimeLogoCombine > 0 { combineTakesTime = fmt.Sprintf("%dms", debugData.DiffTimeLogoCombine) } - if debugData.DiffTimeUploadFile > 0 { + if debugData != nil && debugData.DiffTimeUploadFile > 0 { uploadCombineImageTakesTime = fmt.Sprintf("%dms", debugData.DiffTimeUploadFile) } w.sendToOutChan(w.respondDataFormat(constants.WEBSOCKET_COMBINE_IMAGE, websocket_data.CombineImageRspMsg{