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

This commit is contained in:
richboo111
2023-03-06 14:12:03 +08:00
10 changed files with 143 additions and 72 deletions

View File

@@ -45,7 +45,7 @@ func UpdateStoreOperatorConfig() {
if err != nil {
return
}
if err := dao.UpdateOperatorConfig(string(byteData)); err != nil {
if err := dao.UpdateOperatorConfig(string(byteData), "Sys", "FZR"); err != nil {
return
}
return

View File

@@ -180,7 +180,7 @@ func Init() {
// 每五分钟轮询一次推送骑手信息坐标给美团
ScheduleTimerFuncByInterval(func() {
delivery.GetOrderRiderInfoToPlatform("", 0)
}, 10*time.Second, 5*time.Minute)
}, 10*time.Second, 4*time.Minute)
//每天晚上23:00更新抖店 审核状态
ScheduleTimerFunc("UpdateStorePoiStatus", func() {
@@ -209,7 +209,7 @@ func Init() {
// 抖音自动刷单
ScheduleTimerFuncByInterval(func() {
auto_delivery.AutoSettingFakeDelivery()
}, 10*time.Second, 5*time.Second)
}, 10*time.Second, 3*time.Minute)
// 定时任务更新负责人信息
ScheduleTimerFunc("RefreshStoreOperator", func() {
@@ -597,33 +597,7 @@ func syncStoreSkuTiktok() {
if beego.BConfig.RunMode != "jxgy" {
errList.AddErr(cms.DeleteSkuNameExPrefixOverdue(db))
errList.AddErr(cms.SetMultiStoreSkuSyncModifyStatus(db, partner.GetMultiStoreVendorIDs()))
var storeList2GD = []int{
102533,
668619,
100336,
102014,
103089,
667212,
667510,
100328,
100524,
102046,
103190,
667149,
100334,
101995,
102563,
102039,
100329,
102465,
102417,
100517,
102377,
666761,
102592,
102057,
}
_, err = cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, db, []int{model.VendorIDDD}, storeList2GD, false, nil, nil, syncFlag, true, true)
_, err = cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, db, []int{model.VendorIDDD}, nil, false, nil, nil, syncFlag, true, true)
errList.AddErr(err)
}
case 1: