添加自动获取品牌

This commit is contained in:
邹宗楠
2023-02-21 11:09:12 +08:00
parent 8cdc3078be
commit babacd5233
6 changed files with 42 additions and 13 deletions

View File

@@ -1038,6 +1038,7 @@ func (a *API) GetJdUpcCodeByName(name, upcCode string, pageNo, pageSize int) (pr
UpcCode: v.(map[string]interface{})["upcCode"].(string),
Weight: float32(utils.Interface2Float64WithDefault(v.(map[string]interface{})["weight"], 0) * 1000),
ImgList: ImgList,
BrandName: v.(map[string]interface{})["brandName"].(string),
}
productInfos = append(productInfos, productInfo)
}