|
@@ -1068,17 +1068,6 @@ func (this *ReportController) ThsSendTemplateMsg() {
|
|
|
br.ErrMsg = "模板消息已推送,请勿重复操作1"
|
|
|
return
|
|
|
}
|
|
|
- // 周报无客群
|
|
|
- if report.HasChapter == 1 && report.ChapterType == utils.REPORT_TYPE_WEEK {
|
|
|
- br.Msg = "周报无需推送客群消息"
|
|
|
- return
|
|
|
- }
|
|
|
- err = services.SendReportMiniToThs(report)
|
|
|
- if err != nil {
|
|
|
- br.Msg = "消息已推送,请勿重复操作"
|
|
|
- br.ErrMsg = "模板消息已推送,请勿重复操作2, Err: " + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
err = models.ModifyReportThsMsgIsSend(report)
|
|
|
if err != nil {
|
|
|
br.Msg = "发送失败"
|
|
@@ -2159,17 +2148,6 @@ func (this *ReportController) SendMsg() {
|
|
|
_ = services.SendMiniProgramReportWxMsg(req.ReportId)
|
|
|
}()
|
|
|
}
|
|
|
- // 推送客群消息
|
|
|
- if report.ThsMsgIsSend == 0 {
|
|
|
- go func() {
|
|
|
- // 周报无客群消息
|
|
|
- // 2023-3-19 15:19:24 现在开始周报又要推送了
|
|
|
- //if report.HasChapter == 1 && report.ChapterType == utils.REPORT_TYPE_WEEK {
|
|
|
- // return
|
|
|
- //}
|
|
|
- _ = services.SendReportMiniToThs(report)
|
|
|
- }()
|
|
|
- }
|
|
|
|
|
|
// 更新推送消息状态
|
|
|
if err = models.ModifyReportMsgIsSendV2(req.ReportId); err != nil {
|