xyxie 1 周之前
父節點
當前提交
d76ed80712
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      controllers/report_ice_message.go

+ 3 - 1
controllers/report_ice_message.go

@@ -311,6 +311,7 @@ func (c *ReportIceMessageController) IceMsgPush() {
 			sendClassifyId = reportInfo.ClassifyIdFirst
 		}
 		title = reportInfo.Title
+		content = reportInfo.Title
 		url = reportInfo.DetailPdfUrl
 	} else if classifyType == 2 {// 推送PPT
 		if req.PptId <= 0 {
@@ -329,6 +330,7 @@ func (c *ReportIceMessageController) IceMsgPush() {
 		}
 		sendClassifyId = pptInfo.ClassifyId
 		title = pptInfo.Title
+		content = pptInfo.Title
 		url = pptInfo.PptxUrl
 	}
 	// 获取分类名称
@@ -387,7 +389,7 @@ func (c *ReportIceMessageController) IceMsgPush() {
 			// 推送模版消息
 			sendStatus := 1
 			// 生成taskId
-	        taskId := utils.MD5(fmt.Sprintf("%s_%s_%s_%s", req.ReportId, req.PptId, item.AdminId, time.Now().Format("20060102150405")))
+	        taskId := utils.MD5(fmt.Sprintf("%d_%d_%d_%s", req.ReportId, req.PptId, item.AdminId, time.Now().Format("20060102150405")))
 	
 			err = ice_message.PushIceMessage(title, summary, content, item.EmployeeId, taskId, req.ReportId, req.PptId, url, classifyName)
 			if err != nil {