fix
This commit is contained in:
parent
731cf006a6
commit
3f73edae00
|
@ -45,7 +45,7 @@ func (m *MqConsumerRenderAssemble) Run(ctx context.Context, data []byte) error {
|
|||
return errors.New("allmodels is nil!!")
|
||||
}
|
||||
rabbitmq := initalize.RabbitMqHandle{}
|
||||
//获取模板
|
||||
//获取模板(产品第一个sku的模板)
|
||||
templateInfo, err := allmodels.FsProductTemplateV2.FindOneByProductIdTagIdWithSizeTable(ctx, parseInfo.RenderData.ProductId, fmt.Sprintf("%d", parseInfo.RenderData.TemplateTagId))
|
||||
if err != nil {
|
||||
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||
|
@ -55,7 +55,10 @@ func (m *MqConsumerRenderAssemble) Run(ctx context.Context, data []byte) error {
|
|||
logx.Error("failed to get template info:", err)
|
||||
return err
|
||||
}
|
||||
// todo 获取sku对应用来合成刀版图的json数据
|
||||
|
||||
// todo curl请求python获取刀版图 baseImage######
|
||||
|
||||
baseImage := ""
|
||||
//获取渲染设置信息
|
||||
element, err := allmodels.FsProductTemplateElement.FindOneByModelId(ctx, *templateInfo.ModelId)
|
||||
|
|
Loading…
Reference in New Issue
Block a user