|
@@ -1670,9 +1670,10 @@ func (this *ReportController) ShareGenerate() {
|
|
br.ErrMsg = "参数解析失败, Err: " + e.Error()
|
|
br.ErrMsg = "参数解析失败, Err: " + e.Error()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ var title string
|
|
reportItem, _ := models.GetReportByReportId(req.ReportId)
|
|
reportItem, _ := models.GetReportByReportId(req.ReportId)
|
|
if reportItem != nil && reportItem.Title != "" {
|
|
if reportItem != nil && reportItem.Title != "" {
|
|
- req.Title = reportItem.Title
|
|
|
|
|
|
+ title = reportItem.Title
|
|
}
|
|
}
|
|
|
|
|
|
link, err := services.GetReportShareUrlToken(req, this.SysUser.AdminId)
|
|
link, err := services.GetReportShareUrlToken(req, this.SysUser.AdminId)
|
|
@@ -1683,7 +1684,7 @@ func (this *ReportController) ShareGenerate() {
|
|
}
|
|
}
|
|
|
|
|
|
resp := new(models.ReportShartUrlResp)
|
|
resp := new(models.ReportShartUrlResp)
|
|
- resp.UrlToken = link
|
|
|
|
|
|
+ resp.UrlToken = fmt.Sprint(link, " ", title)
|
|
|
|
|
|
br.Ret = 200
|
|
br.Ret = 200
|
|
br.Success = true
|
|
br.Success = true
|
|
@@ -1705,6 +1706,10 @@ func (this *ReportCommonController) ShareTransform() {
|
|
}()
|
|
}()
|
|
|
|
|
|
token := this.GetString("Token")
|
|
token := this.GetString("Token")
|
|
|
|
+ tokenArr := strings.Split(token, " ")
|
|
|
|
+ if len(tokenArr) > 0 {
|
|
|
|
+ token = tokenArr[0]
|
|
|
|
+ }
|
|
|
|
|
|
link, msg, err := services.TransfromToOriginUrl(token)
|
|
link, msg, err := services.TransfromToOriginUrl(token)
|
|
if err != nil {
|
|
if err != nil {
|