1
This commit is contained in:
@@ -2228,7 +2228,7 @@ func UpdateStoreName() error {
|
|||||||
storeDetail, _ := dao.GetStoreDetail2(db, v.StoreID, v.VendorStoreID, model.VendorIDMTPS)
|
storeDetail, _ := dao.GetStoreDetail2(db, v.StoreID, v.VendorStoreID, model.VendorIDMTPS)
|
||||||
formalizeStore4Courier(storeDetail)
|
formalizeStore4Courier(storeDetail)
|
||||||
err := mtps.UpdateStoreName(storeDetail.VendorStoreID, storeDetail.Name)
|
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
|
return nil
|
||||||
@@ -2354,7 +2354,7 @@ func formalizeStore4Courier(storeDetail *dao.StoreDetail2) *dao.StoreDetail2 {
|
|||||||
return nil
|
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 == "" {
|
if storeDetail.PayeeName == "" {
|
||||||
storeDetail.PayeeName = "店主"
|
storeDetail.PayeeName = "店主"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ func Init() {
|
|||||||
ScheduleTimerFunc("UpdateStoreName ", func() {
|
ScheduleTimerFunc("UpdateStoreName ", func() {
|
||||||
cms.UpdateStoreName()
|
cms.UpdateStoreName()
|
||||||
}, []string{
|
}, []string{
|
||||||
"16:20:00",
|
"16:31:00",
|
||||||
})
|
})
|
||||||
|
|
||||||
// 定时任务更新昨天的都要商品和本地商品id的映射关系
|
// 定时任务更新昨天的都要商品和本地商品id的映射关系
|
||||||
|
|||||||
Reference in New Issue
Block a user