This commit is contained in:
laodaming 2023-08-23 10:06:17 +08:00
parent 3e7b4e9c4b
commit 0a635e5113

View File

@ -138,6 +138,7 @@ func (w *wsConnectItem) consumeRenderCache(data []byte) {
resource, err := w.logic.svcCtx.AllModels.FsResource.FindOneById(w.logic.ctx, taskId)
if err != nil {
if !errors.Is(err, gorm.ErrRecordNotFound) {
w.sendToOutChan(w.respondDataFormat(constants.WEBSOCKET_RENDER_IMAGE_ERR, fmt.Sprintf("获取云渲染缓存资源错误 task_id:%s ", taskId)))
logx.Error("failed to find render resource:", err)
return
}