|
@@ -14,10 +14,10 @@ type EnglishReportShareController struct {
|
|
|
BaseCommonController
|
|
|
}
|
|
|
|
|
|
-// @Title 日评详情
|
|
|
-// @Description 日评详情接口
|
|
|
+// @Title 英文研报-分享详情
|
|
|
+// @Description 英文研报-分享详情
|
|
|
// @Param ReportCode query string true "报告唯一编码"
|
|
|
-// @Param ShareEmail query string false "分享的邮箱"
|
|
|
+// @Param ShareEmail query int false "推送的邮箱ID"
|
|
|
// @Success 200 {object} models.ReportShareDetailResp
|
|
|
// @router /share/detail [get]
|
|
|
func (this *EnglishReportShareController) EnglishReportDetail() {
|
|
@@ -49,8 +49,8 @@ func (this *EnglishReportShareController) EnglishReportDetail() {
|
|
|
report.Content = html.UnescapeString(report.Content)
|
|
|
|
|
|
// 记录邮箱
|
|
|
- shareEmail := this.GetString("ShareEmail")
|
|
|
- if shareEmail != "" {
|
|
|
+ shareEmail, _ := this.GetInt("ShareEmail", 0)
|
|
|
+ if shareEmail != 0 {
|
|
|
go func() {
|
|
|
var errMsg error
|
|
|
defer func() {
|
|
@@ -59,7 +59,7 @@ func (this *EnglishReportShareController) EnglishReportDetail() {
|
|
|
}
|
|
|
}()
|
|
|
|
|
|
- userEmail, e := models.GetEnglishReportEmailByEmail(shareEmail)
|
|
|
+ userEmail, e := models.GetEnglishReportEmailById(shareEmail)
|
|
|
if e != nil && e.Error() != utils.ErrNoRow() {
|
|
|
errMsg = errors.New("获取客户邮箱信息失败, Err:" + e.Error())
|
|
|
return
|