This commit is contained in:
laodaming 2023-07-12 15:27:09 +08:00
parent b9f8876fde
commit 0f96eaac30

View File

@ -123,14 +123,11 @@ func (l *GetProductInfoLogic) GetProductInfo(req *types.GetProductInfoReq, useri
for _, v := range sizeList {
model3dInfo, ok := mapModel3dWithSizeIdIndex[v.Id]
if !ok {
fmt.Println("没有模型:", v.Id)
continue
}
if _, ok = mapTemplateModelId[model3dInfo.Id]; !ok {
fmt.Println("没有模板:", v.Id)
continue
}
fmt.Println("剩下的:", v.Id)
var title types.SizeTitle
if err = json.Unmarshal([]byte(*v.Title), &title); err != nil {
logx.Error(err)