Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop

This commit is contained in:
邹宗楠
2022-11-04 18:19:35 +08:00
4 changed files with 18 additions and 3 deletions

View File

@@ -5896,6 +5896,15 @@ func UpdateStorePoiStatus(ctx *jxcontext.Context) error {
return nil
}
//抖音定时任务
//func UpdateStoreRelInformation(ctx *jxcontext.Context) error {
// var (
// db = dao.GetDB()
// )
//storeList,_:=dao.GetStoreList(db,[]int{model.VendorIDDD},nil,[]int{model.store})
// return nil
//}
//获取抖店门店建议范围 (即电子围栏)
func GetDDScope(ctx *jxcontext.Context, storeID int, vendorStoreID string) (warehouse_getFences_response.FencesItem, error) {
var (

View File

@@ -185,6 +185,12 @@ func Init() {
}, []string{
"22:00:00",
})
//每天晚上23:00获取门店 电子围栏、仓库、限售模板、运费模板ID同步进数据库
ScheduleTimerFunc("UpdateStoreRelInformation", func() {
//cms.UpdateStoreRelInformation(jxcontext.AdminCtx)
}, []string{
"22:00:00",
})
// 每分钟轮询一次,推送抖店骑手信息
ScheduleTimerFuncByInterval(func() {