This commit is contained in:
laodaming 2023-08-21 15:30:52 +08:00
parent 72f07745b6
commit abdd263c44

View File

@ -5,6 +5,7 @@ import (
"fusenapi/utils/auth"
"fusenapi/utils/basic"
"fusenapi/utils/file"
"os"
"fusenapi/server/websocket/internal/svc"
"fusenapi/server/websocket/internal/types"
@ -44,7 +45,9 @@ func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq, userinfo *a
logx.Error("渲染回调参数错误invalid param image")
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "invalid param image")
}
logx.Info("渲染回调的base64:", req.Image)
f, _ := os.Create("b.txt")
defer f.Close()
f.WriteString(req.Image)
// 上传文件
var upload = file.Upload{
Ctx: l.ctx,