🐛 fix bug
This commit is contained in:
		@@ -47,7 +47,7 @@ func SendMsg2User() {
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				// 根据用户手术信息 发送提醒消息
 | 
			
		||||
				if user.IsSurgery == 0 && todo.RemindPeriod == 0 && todo.IsFinish == 0 {
 | 
			
		||||
				if todo.RemindPeriod == 0 && todo.IsFinish == 0 {
 | 
			
		||||
					// 根据年月日时发送消息
 | 
			
		||||
					job, err := WxTask.Every(1).Day().At(todo.RemindTime).LimitRunsTo(1).Do(MiniappSendMsg, strconv.Itoa(int(user.ID)), strconv.Itoa(int(todo.ID)))
 | 
			
		||||
					//job, err := WxTask.Cron("0 30 23 30 3 2024").Do(MiniappSendMsg, strconv.Itoa(int(user.ID)), strconv.Itoa(int(todo.ID)))
 | 
			
		||||
@@ -57,7 +57,8 @@ func SendMsg2User() {
 | 
			
		||||
						global.GVA_LOG.Error("定时任务创建失败:%s", zap.Error(err))
 | 
			
		||||
						return
 | 
			
		||||
					}
 | 
			
		||||
					global.GVA_LOG.Info("定时发送消息任务创建成功")
 | 
			
		||||
 | 
			
		||||
					global.GVA_LOG.Info("定时发送消息任务创建成功", zap.Any("任务TodoId:", todo.ID))
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user