diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 51d6a965c..29b90e198 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -2228,7 +2228,7 @@ func UpdateStoreName() error { storeDetail, _ := dao.GetStoreDetail2(db, v.StoreID, v.VendorStoreID, model.VendorIDMTPS) formalizeStore4Courier(storeDetail) err := mtps.UpdateStoreName(storeDetail.VendorStoreID, storeDetail.Name) - globals.SugarLogger.Debug("err := %v", err) + globals.SugarLogger.Debug("err := %v,storeID : %d,storeName :%s", err, v.VendorStoreID, storeDetail.Name) } return nil @@ -2354,7 +2354,7 @@ func formalizeStore4Courier(storeDetail *dao.StoreDetail2) *dao.StoreDetail2 { return nil } - storeDetail.Name = fmt.Sprintf("%s-%s-%s", brandInfo[0].Name, storeDetail.CityName, storeDetail.Name) + storeDetail.Name = fmt.Sprintf("%s-%s-%s", strings.TrimSpace(brandInfo[0].Name), strings.TrimSpace(storeDetail.CityName), strings.TrimSpace(storeDetail.Name)) if storeDetail.PayeeName == "" { storeDetail.PayeeName = "店主" } diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index ff907ccde..c3ea89d09 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -231,7 +231,7 @@ func Init() { ScheduleTimerFunc("UpdateStoreName ", func() { cms.UpdateStoreName() }, []string{ - "16:20:00", + "16:31:00", }) // 定时任务更新昨天的都要商品和本地商品id的映射关系