ziwen 1 年之前
父节点
当前提交
3e5afa044d
共有 1 个文件被更改,包括 3 次插入6 次删除
  1. 3 6
      controller/english_report/english_report.go

+ 3 - 6
controller/english_report/english_report.go

@@ -296,14 +296,11 @@ func (er *EnglishReportController) Detail(c *gin.Context) {
 	reportItem.ContentSub = html.UnescapeString(reportItem.ContentSub)
 	reportItem.Content = html.UnescapeString(reportItem.Content)
 
-	shareEmailId := req.ShareEmail
-	if shareEmailId == 0 {
-		shareEmailIdStr := c.GetString("shareEmailId")
-		shareEmailId, _ = strconv.Atoi(shareEmailIdStr)
-	}
+	shareEmailId := userinfo.Id
+
 	// 记录邮箱
 	if shareEmailId > 0 {
-		go english_report_service.DealEmail(reportItem, req.ReportCode, shareEmailId)
+		go english_report_service.DealEmail(reportItem, req.ReportCode, int(shareEmailId))
 	}
 	reportDetail := &english_report.ReportDetail{
 		Id:                 reportItem.Id,