1
This commit is contained in:
@@ -222,9 +222,9 @@ func Init() {
|
||||
|
||||
// 每天更新美团门当的结算信息和配送费等等
|
||||
ScheduleTimerFunc("LoadingStoreOrderSettleAmount", func() {
|
||||
// delivery.LoadingStoreOrderSettleAmount(0, 0, nil)
|
||||
delivery.LoadingStoreOrderSettleAmount(0, 0, nil)
|
||||
}, []string{
|
||||
"04:50:00",
|
||||
"19:50:00",
|
||||
})
|
||||
|
||||
// 定时任务更新昨天的都要商品和本地商品id的映射关系
|
||||
|
||||
@@ -410,7 +410,7 @@ func LoadingStoreOrderSettleAmount(startTime, endTime int64, jxStoreId []int) er
|
||||
var (
|
||||
db = dao.GetDB()
|
||||
now = time.Now()
|
||||
from = time.Date(now.Year(), now.Month(), now.Day()-2, 0, 0, 0, 0, time.Local).Unix()
|
||||
from = time.Date(now.Year(), now.Month(), now.Day()-4, 0, 0, 0, 0, time.Local).Unix()
|
||||
to = time.Date(now.Year(), now.Month(), now.Day()-1, 23, 59, 59, 59, time.Local).Unix()
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user