|
@@ -174,14 +174,23 @@ func (this *SmartReportController) WechatShareDetail() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- date := strings.Replace(item.CreateTime, "-", "", -1)
|
|
|
- dateStr := date[4:9]
|
|
|
+ var dateStr string
|
|
|
+ if item.CreateTime != `` {
|
|
|
+ date := strings.Replace(item.CreateTime, "-", "", -1)
|
|
|
+ dateStr = date[4:9]
|
|
|
+ }
|
|
|
var shareTitle string
|
|
|
// 研报分享抬头
|
|
|
if utils.BusinessCode == "E2023080700" || utils.BusinessCode == "E2023080900" || utils.BusinessCode == "E2023080901" {
|
|
|
- shareTitle = "【第" + strconv.Itoa(item.Stage) + "期|FICC】" + item.Title + "(" + dateStr + ")"
|
|
|
+ shareTitle = "【第" + strconv.Itoa(item.Stage) + "期|FICC】" + item.Title
|
|
|
+ if dateStr != `` {
|
|
|
+ shareTitle += "(" + dateStr + ")"
|
|
|
+ }
|
|
|
} else {
|
|
|
- shareTitle = "【第" + strconv.Itoa(item.Stage) + "期】" + item.Title + "(" + dateStr + ")"
|
|
|
+ shareTitle = "【第" + strconv.Itoa(item.Stage) + "期】" + item.Title
|
|
|
+ if dateStr != `` {
|
|
|
+ shareTitle += "(" + dateStr + ")"
|
|
|
+ }
|
|
|
}
|
|
|
if v, ok := conf[models.BusinessConfH5ReportShareImg]; ok {
|
|
|
resp.H5ReportShareImg = v
|