This commit is contained in:
邹宗楠
2023-08-03 18:28:12 +08:00
parent 1a98736d1d
commit 891cc71b14
2 changed files with 5 additions and 5 deletions

View File

@@ -165,8 +165,9 @@ func IsImportantTaskRunning(taskName string) bool {
}
func Init() {
globals.SugarLogger.Debugf("==================2")
globals.SugarLogger.Debugf("========= %s", utils.Format4Output(globals.IsProductEnv(), false))
if globals.IsProductEnv() {
globals.SugarLogger.Debugf("=========2 %s", utils.Format4Output(globals.IsProductEnv(), false))
//ScheduleTimerFunc("doDailyWork2", doDailyWork2, dailyWorkTimeList2)
//京东的订单信息解密密钥获取
@@ -281,6 +282,8 @@ func Init() {
// }, []string{"13:00:00"})
//}
// 淘鲜达更新门店商品 ,接口收费暂不使用
globals.SugarLogger.Debugf("========= %s", utils.Format4Output(beego.BConfig.RunMode, false))
ScheduleTimerFunc("RefreshSyncSkuListTao", func() {
var hangzhou = []int{
669113,
@@ -520,7 +523,7 @@ func Init() {
}, []string{
"11:30:00",
"13:30:00",
"18:25:00",
"18:30:00",
"19:30:00",
"21:30:00",
"23:30:00",

View File

@@ -88,7 +88,6 @@ func Init() {
yb.CurPurchaseHandler.StartRefreshComment()
jdshop.CurPurchaseHandler.StartRefreshComment()
}
globals.SugarLogger.Debugf("==================3")
misc.Init()
enterprise.Init() // 初始化enterprise key
@@ -136,9 +135,7 @@ func checkCmdFlags() bool {
}
func main() {
globals.SugarLogger.Debugf("==================-1")
if !checkCmdFlags() {
globals.SugarLogger.Debugf("==================0")
Init()
if err := tasks.RefreshWeixinToken(); err != nil {
globals.SugarLogger.Errorf("RefreshWeixinToken failed with error:%s", err)