1
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user