作者 tangxvhui

部分弹窗消息,推送消息停止使用

@@ -21,7 +21,7 @@ func main() { @@ -21,7 +21,7 @@ func main() {
21 startConfirmEvaluationScore() 21 startConfirmEvaluationScore()
22 go serviceTask.CheckYesterdayTaskRecord() 22 go serviceTask.CheckYesterdayTaskRecord()
23 go notify.RunTaskSmsNotify() 23 go notify.RunTaskSmsNotify()
24 - go notify.AppMessageRun() 24 + //go notify.AppMessageRun()
25 go consumer.Run() 25 go consumer.Run()
26 web.Run() 26 web.Run()
27 } 27 }
@@ -553,3 +553,30 @@ func (srv *MessagePersonalService) TodayMessageTaskStageModify(param *command.Ge @@ -553,3 +553,30 @@ func (srv *MessagePersonalService) TodayMessageTaskStageModify(param *command.Ge
553 } 553 }
554 return resp, nil 554 return resp, nil
555 } 555 }
  556 +
  557 +// 任务里程碑异常的消息弹窗通知,不再使用
  558 +func (srv *MessagePersonalService) TodayMessageTaskStageAnomalyV2(param *command.GetUserMessageCommand) (map[string]interface{}, error) {
  559 + resp := map[string]interface{}{
  560 + "needNotify": false,
  561 + "list": []adapter.MessageListAdapter{},
  562 + }
  563 + return resp, nil
  564 +}
  565 +
  566 +// 任务反馈碑异常的消息弹窗内容,不再使用
  567 +func (srv *MessagePersonalService) TodayMessageTaskRecordAnomalyV2(param *command.GetUserMessageCommand) (map[string]interface{}, error) {
  568 + resp := map[string]interface{}{
  569 + "needNotify": false,
  570 + "list": []adapter.MessageListAdapter{},
  571 + }
  572 + return resp, nil
  573 +}
  574 +
  575 +// 任务里程碑变更通知,不再使用
  576 +func (srv *MessagePersonalService) TodayMessageTaskStageModifyV2(param *command.GetUserMessageCommand) (map[string]interface{}, error) {
  577 + resp := map[string]interface{}{
  578 + "needNotify": false,
  579 + "list": []adapter.MessageListAdapter{},
  580 + }
  581 + return resp, nil
  582 +}
@@ -27,7 +27,7 @@ func (c *MessagePersonalController) TodayMessageTaskStageAnomaly() { @@ -27,7 +27,7 @@ func (c *MessagePersonalController) TodayMessageTaskStageAnomaly() {
27 userReq := middlewares.GetUser(c.Ctx) 27 userReq := middlewares.GetUser(c.Ctx)
28 param := command.GetUserMessageCommand{} 28 param := command.GetUserMessageCommand{}
29 param.UserId = int(userReq.UserId) 29 param.UserId = int(userReq.UserId)
30 - data, err := srv.TodayMessageTaskStageAnomaly(&param) 30 + data, err := srv.TodayMessageTaskStageAnomalyV2(&param)
31 c.Response(data, err) 31 c.Response(data, err)
32 } 32 }
33 33
@@ -36,7 +36,7 @@ func (c *MessagePersonalController) TodayMessageTaskRecordAnomaly() { @@ -36,7 +36,7 @@ func (c *MessagePersonalController) TodayMessageTaskRecordAnomaly() {
36 userReq := middlewares.GetUser(c.Ctx) 36 userReq := middlewares.GetUser(c.Ctx)
37 param := command.GetUserMessageCommand{} 37 param := command.GetUserMessageCommand{}
38 param.UserId = int(userReq.UserId) 38 param.UserId = int(userReq.UserId)
39 - data, err := srv.TodayMessageTaskRecordAnomaly(&param) 39 + data, err := srv.TodayMessageTaskRecordAnomalyV2(&param)
40 c.Response(data, err) 40 c.Response(data, err)
41 } 41 }
42 42
@@ -45,6 +45,6 @@ func (c *MessagePersonalController) TodayMessageTaskStageModify() { @@ -45,6 +45,6 @@ func (c *MessagePersonalController) TodayMessageTaskStageModify() {
45 userReq := middlewares.GetUser(c.Ctx) 45 userReq := middlewares.GetUser(c.Ctx)
46 param := command.GetUserMessageCommand{} 46 param := command.GetUserMessageCommand{}
47 param.UserId = int(userReq.UserId) 47 param.UserId = int(userReq.UserId)
48 - data, err := srv.TodayMessageTaskStageModify(&param) 48 + data, err := srv.TodayMessageTaskStageModifyV2(&param)
49 c.Response(data, err) 49 c.Response(data, err)
50 } 50 }