1
This commit is contained in:
3
main.go
3
main.go
@@ -88,6 +88,7 @@ func Init() {
|
||||
yb.CurPurchaseHandler.StartRefreshComment()
|
||||
jdshop.CurPurchaseHandler.StartRefreshComment()
|
||||
}
|
||||
globals.SugarLogger.Debugf("==================3")
|
||||
misc.Init()
|
||||
enterprise.Init() // 初始化enterprise key
|
||||
|
||||
@@ -135,7 +136,9 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user