boweniac 1 месяц назад
Родитель
Сommit
1ef809e094
2 измененных файлов с 5 добавлено и 5 удалено
  1. 4 4
      crontask/init.go
  2. 1 1
      wechat.go

+ 4 - 4
crontask/init.go

@@ -43,8 +43,8 @@ func ScheduleRun(c *cron.Cron, serverCtx *svc.ServiceContext) {
 		computeStatistic.computeStatistic()
 	})
 
-	syncWx := NewCronTask(context.Background(), serverCtx)
-	c.AddFunc("*/30 * * * *", func() {
-		syncWx.syncWx()
-	})
+	//syncWx := NewCronTask(context.Background(), serverCtx)
+	//c.AddFunc("*/30 * * * *", func() {
+	//	syncWx.syncWx()
+	//})
 }

+ 1 - 1
wechat.go

@@ -63,7 +63,7 @@ func main() {
 			//	ic = channel.NewWechatChannel(ws, ctx)
 			//}
 			//ws.RegisterMessageHandler(ic.OnMessage)
-			ws.RegisterMessageHandler(MessageHandlers.NewFriendPushNoticeHandler(ctx).Handler)
+			//ws.RegisterMessageHandler(MessageHandlers.NewFriendPushNoticeHandler(ctx).Handler)
 		}
 		logx.Info("注册个微处理通道~")
 	}