This commit is contained in:
邹宗楠
2023-03-25 17:56:36 +08:00
parent 5446166708
commit 20ac41784f
3 changed files with 25 additions and 7 deletions

View File

@@ -1263,7 +1263,11 @@ func updateOrCreateSkuVendorCategoryMap(db *dao.DaoDB, ctx *jxcontext.Context, n
mtwmCategoryID = payload["mtwmCategoryID"].(string)
}
if payload["categoryID2"] != nil {
jxCategoryID = payload["categoryID2"].(int)
jxCategoryIDNumber, err := payload["categoryID2"].(json.Number).Int64()
if err != nil {
return false
}
jxCategoryID = int(jxCategoryIDNumber)
}
if jdCategoryId != "" {