fix
This commit is contained in:
parent
72f07745b6
commit
abdd263c44
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user