This commit is contained in:
邹宗楠
2024-12-04 09:15:05 +08:00
parent f66b3ff1c9
commit 36a0ae7b6f
12 changed files with 229 additions and 16 deletions

View File

@@ -1901,8 +1901,16 @@ func GetJdUpcCodeByCode(ctx *jxcontext.Context, upcCode string) (productInfos []
}
func GetJdUpcCodeByName(ctx *jxcontext.Context, name, upcCode string) (productInfos []*jdapi.ProductInfo, err error) {
appOrgCode := ""
if beego.BConfig.RunMode == model.ServerTypeFruits {
appOrgCode = "339032"
} else if beego.BConfig.RunMode == model.ServerTypePet {
appOrgCode = "320406"
} else {
appOrgCode = "320406"
}
var (
apijd = apimanager.CurAPIManager.GetAPI(model.VendorIDJD, "320406").(*jdapi.API)
apijd = apimanager.CurAPIManager.GetAPI(model.VendorIDJD, appOrgCode).(*jdapi.API)
productInfo []*jdapi.ProductInfo
)
if name != "" {