fix
This commit is contained in:
parent
72f07745b6
commit
abdd263c44
|
@ -5,6 +5,7 @@ import (
|
||||||
"fusenapi/utils/auth"
|
"fusenapi/utils/auth"
|
||||||
"fusenapi/utils/basic"
|
"fusenapi/utils/basic"
|
||||||
"fusenapi/utils/file"
|
"fusenapi/utils/file"
|
||||||
|
"os"
|
||||||
|
|
||||||
"fusenapi/server/websocket/internal/svc"
|
"fusenapi/server/websocket/internal/svc"
|
||||||
"fusenapi/server/websocket/internal/types"
|
"fusenapi/server/websocket/internal/types"
|
||||||
|
@ -44,7 +45,9 @@ func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq, userinfo *a
|
||||||
logx.Error("渲染回调参数错误:invalid param image")
|
logx.Error("渲染回调参数错误:invalid param image")
|
||||||
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "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{
|
var upload = file.Upload{
|
||||||
Ctx: l.ctx,
|
Ctx: l.ctx,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user