先屏蔽main 京东商城
This commit is contained in:
@@ -1624,13 +1624,13 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
||||
result2, _ := api.JdShopAPI.FindSkuById(vv.SkuID)
|
||||
_, _, _, specUnit, _, specQuality := jxutils.SplitSkuName(result2.SaleAttrs[0].AttrValueAlias[0])
|
||||
if specQuality < 100 && specUnit != "kg" && specUnit != "L" {
|
||||
var storeSku []*model.StoreSkuBind
|
||||
var storeSku *model.StoreSkuBind
|
||||
sql := `
|
||||
SELECT * FROM store_sku_bind WHERE store_id = 102919 AND jds_id = ?
|
||||
`
|
||||
sqlParams := []interface{}{vv.SkuID}
|
||||
err = dao.GetRow(dao.GetDB(), &storeSku, sql, sqlParams)
|
||||
if len(storeSku) == 0 {
|
||||
if storeSku == nil {
|
||||
rr = append(rr, vv.SkuID)
|
||||
}
|
||||
}
|
||||
@@ -1638,7 +1638,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
fmt.Println("testrr", rr)
|
||||
fmt.Println("testrr1", rr)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user