Explorar o código

新增分享title

hongze hai 7 meses
pai
achega
8c0d4a5575
Modificáronse 2 ficheiros con 5 adicións e 0 borrados
  1. 4 0
      controllers/smart_report.go
  2. 1 0
      models/smart_report.go

+ 4 - 0
controllers/smart_report.go

@@ -157,6 +157,10 @@ func (this *SmartReportController) WechatShareDetail() {
 		resp.H5ReportShareImg = v
 	}
 
+	if v, ok := conf[models.BusinessConfH5ShareName]; ok {
+		resp.H5ShareName = v
+	}
+
 	resp.H5ShareTitle = shareTitle
 	br.Ret = 200
 	br.Success = true

+ 1 - 0
models/smart_report.go

@@ -219,6 +219,7 @@ func GetResourceItemById(id int) (item *SmartReportResource, err error) {
 }
 
 type SmartReportWechatShareDetailResp struct {
+	H5ShareName      string `description:"研报分享抬头"`
 	H5ShareTitle     string `description:"研报分享抬头"`
 	H5ReportShareImg string `description:"研报分享图片"`
 }