Jelajahi Sumber

isShow 按钮显示

lichangdong 1 hari lalu
induk
melakukan
d27756ad2f
2 mengubah file dengan 30 tambahan dan 30 penghapusan
  1. 29 29
      crontask/init.go
  2. 1 1
      internal/logic/add_friend/add_friend_list_logic.go

+ 29 - 29
crontask/init.go

@@ -25,35 +25,35 @@ func NewCronTask(ctx context.Context, svcCtx *svc.ServiceContext) *CronTask {
 func ScheduleRun(c *cron.Cron, serverCtx *svc.ServiceContext) {
 
 	//除了fe环境任务关闭 其他环境任务要正常打开
-	l := NewCronTask(context.Background(), serverCtx)
-	c.AddFunc("* * * * *", func() {
-		l.sendMsg()
-	})
-
-	sendWx := NewCronTask(context.Background(), serverCtx)
-	c.AddFunc("* * * * *", func() {
-		sendWx.sendWx()
-	})
-
-	sendWxOnTimeout := NewCronTask(context.Background(), serverCtx)
-	c.AddFunc("* * * * *", func() {
-		sendWxOnTimeout.sendWxOnTimeout()
-	})
-
-	computeStatistic := NewCronTask(context.Background(), serverCtx)
-	c.AddFunc("0 * * * *", func() {
-		computeStatistic.computeStatistic()
-	})
-
-	contactForm := NewCronTask(context.Background(), serverCtx)
-	c.AddFunc("10 0 * * *", func() {
-		contactForm.analyze()
-	})
-
-	l = NewCronTask(context.Background(), serverCtx)
-	c.AddFunc("*/30 * * * *", func() {
-		l.wxAddFriend()
-	})
+	//l := NewCronTask(context.Background(), serverCtx)
+	//c.AddFunc("* * * * *", func() {
+	//	l.sendMsg()
+	//})
+	//
+	//sendWx := NewCronTask(context.Background(), serverCtx)
+	//c.AddFunc("* * * * *", func() {
+	//	sendWx.sendWx()
+	//})
+	//
+	//sendWxOnTimeout := NewCronTask(context.Background(), serverCtx)
+	//c.AddFunc("* * * * *", func() {
+	//	sendWxOnTimeout.sendWxOnTimeout()
+	//})
+	//
+	//computeStatistic := NewCronTask(context.Background(), serverCtx)
+	//c.AddFunc("0 * * * *", func() {
+	//	computeStatistic.computeStatistic()
+	//})
+	//
+	//contactForm := NewCronTask(context.Background(), serverCtx)
+	//c.AddFunc("10 0 * * *", func() {
+	//	contactForm.analyze()
+	//})
+	//
+	//l = NewCronTask(context.Background(), serverCtx)
+	//c.AddFunc("*/30 * * * *", func() {
+	//	l.wxAddFriend()
+	//})
 
 	//l = NewCronTask(context.Background(), serverCtx)
 	//c.AddFunc("* * * * *", func() {

+ 1 - 1
internal/logic/add_friend/add_friend_list_logic.go

@@ -115,7 +115,7 @@ func (l *AddFriendListLogic) AddFriendList(req *types.AddFriendListReq) (resp *t
 						2: 0,
 						3: 0,
 						4: 0,
-						5: 1,
+						5: 0,
 						6: 0,
 					}
 					isShow := statusMap[v.IsCanAdd]