fix
This commit is contained in:
parent
34a055aa05
commit
d101d241f4
@ -33,6 +33,11 @@ type MqConsumerRenderAssemble struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *MqConsumerRenderAssemble) Run(ctx context.Context, data []byte) error {
|
func (m *MqConsumerRenderAssemble) Run(ctx context.Context, data []byte) error {
|
||||||
|
defer func() {
|
||||||
|
if err := recover(); err != nil {
|
||||||
|
logx.Error("MqConsumerRenderAssemble panic:", err)
|
||||||
|
}
|
||||||
|
}()
|
||||||
logx.Info("收到需要组装的消息:", string(data))
|
logx.Info("收到需要组装的消息:", string(data))
|
||||||
var parseInfo websocket_data.AssembleRenderData
|
var parseInfo websocket_data.AssembleRenderData
|
||||||
if err := json.Unmarshal(data, &parseInfo); err != nil {
|
if err := json.Unmarshal(data, &parseInfo); err != nil {
|
||||||
@ -244,6 +249,7 @@ func getCombineImage(ctx context.Context, svcCtx *svc.ServiceContext, parseInfo
|
|||||||
logx.Error("failed to parse python api rsp:", err)
|
logx.Error("failed to parse python api rsp:", err)
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
//fmt.Println("××××××××××××××××××××:", pythonApiInfo)
|
||||||
//上传刀版图
|
//上传刀版图
|
||||||
var upload = file.Upload{
|
var upload = file.Upload{
|
||||||
Ctx: ctx,
|
Ctx: ctx,
|
||||||
|
@ -13,6 +13,11 @@ type MqConsumerRenderResult struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *MqConsumerRenderResult) Run(ctx context.Context, data []byte) error {
|
func (m *MqConsumerRenderResult) Run(ctx context.Context, data []byte) error {
|
||||||
|
defer func() {
|
||||||
|
if err := recover(); err != nil {
|
||||||
|
logx.Error("MqConsumerRenderResult panic:", err)
|
||||||
|
}
|
||||||
|
}()
|
||||||
logx.Info("接收到MqConsumerRenderResult数据:", string(data))
|
logx.Info("接收到MqConsumerRenderResult数据:", string(data))
|
||||||
var parseInfo websocket_data.RenderImageNotify
|
var parseInfo websocket_data.RenderImageNotify
|
||||||
if err := json.Unmarshal(data, &parseInfo); err != nil {
|
if err := json.Unmarshal(data, &parseInfo); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user