diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index 87ab5e9b1..9aeb0c1ec 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -2200,7 +2200,7 @@ func writeToExcel(excelTitle []string, dataList interface{}, ctx *jxcontext.Cont func RefreshJdDepot(ctx *jxcontext.Context) (err error) { var thingMaps []model.ThingMap sql := ` - SELECT * FROM thing_map WHERE thing_type = ? AND vendor_id = ? AND vendor_org_code = ? AND deleted_at = ? ORDER BY thing_id DESC + SELECT * FROM thing_map WHERE sync_status = 1 AND thing_type = ? AND vendor_id = ? AND vendor_org_code = ? AND deleted_at = ? ORDER BY thing_id DESC ` sqlParams := []interface{}{model.ThingTypeSku, model.VendorIDJD, "320406", utils.DefaultTimeValue} err = dao.GetRows(dao.GetDB(), &thingMaps, sql, sqlParams) @@ -2209,7 +2209,8 @@ func RefreshJdDepot(ctx *jxcontext.Context) (err error) { } if len(thingMaps) > 0 { for _, v := range thingMaps { - _, err = api.JdAPI.RefreshJdDepot(int(utils.Str2Int64(v.VendorThingID))) + SyncSkus(ctx, nil, []int{0}, []string{"320406"}, nil, []int{int(v.ThingID)}, true) + // _, err = api.JdAPI.RefreshJdDepot(int(utils.Str2Int64(v.VendorThingID))) } } return err diff --git a/conf/app.conf b/conf/app.conf index 16bce976c..5ac44b17a 100644 --- a/conf/app.conf +++ b/conf/app.conf @@ -476,12 +476,12 @@ tonglianPayNotifyURL = "http://callback.jxc4.com/tonglian/msg/" dbConnectStr = "root:WebServer@1@tcp(127.0.0.1:3306)/jxd_dev_0?charset=utf8mb4&loc=Local&parseTime=true" -enableStoreWrite = true -enableJdStoreWrite = true -enableEbaiStoreWrite = true -enableMtwmStoreWrite = true -enableWscStoreWrite = true -enableYbStoreWrite = true +enableStoreWrite = false +enableJdStoreWrite = false +enableEbaiStoreWrite = false +enableMtwmStoreWrite = false +enableWscStoreWrite = false +enableYbStoreWrite = false disableWeimob = false weimobCallbackURL = "http://callback.jxc4.com/weimob" diff --git a/globals/globals.go b/globals/globals.go index 4ee8bde0a..48aa35b91 100644 --- a/globals/globals.go +++ b/globals/globals.go @@ -134,7 +134,7 @@ func IsCallbackAlwaysReturnSuccess() bool { } func IsMainProductEnv() bool { - return beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "prod3" + return beego.BConfig.RunMode == "prod" } func IsProductEnv() bool {