新增抖音授权登录,添加定时任务,更新[配送中的订单骑手位置!
This commit is contained in:
@@ -2,6 +2,7 @@ package misc
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/business/partner/delivery"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -386,6 +387,10 @@ func Init() {
|
||||
}, []string{
|
||||
"20:00:00",
|
||||
})
|
||||
// 每五分钟轮询一次推送骑手信息坐标给美团
|
||||
ScheduleTimerFuncByInterval(func() {
|
||||
delivery.GetOrderRiderInfoToPlatform("")
|
||||
}, 10*time.Second, 5*time.Minute)
|
||||
}
|
||||
if configs, err := dao.QueryConfigs(dao.GetDB(), "ebaiStorePageCookie", model.ConfigTypeCookie, ""); err == nil {
|
||||
ebaiStorePageCookie = configs[0].Value
|
||||
|
||||
Reference in New Issue
Block a user