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

@@ -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)