|
@@ -80,22 +80,22 @@ func PublishDayWeekReport(reportId int) (tips string, err error) {
|
|
|
updateCols = append(updateCols, "Title", "State", "ModifyTime")
|
|
|
|
|
|
// 发布后标题调整
|
|
|
- title := report.Title
|
|
|
- title = strings.ReplaceAll(title, "【弘则FICC晨报】", "")
|
|
|
- title = strings.ReplaceAll(title, "【弘则FICC周报】", "")
|
|
|
- if title == "" {
|
|
|
- // 取第一个需发布章节的标题
|
|
|
- firstId := publishIdArr[0]
|
|
|
- firstTitle := ""
|
|
|
- for i := 0; i < chapterLen; i++ {
|
|
|
- if chapters[i].ReportChapterId == firstId {
|
|
|
- firstTitle = chapters[i].Title
|
|
|
- break
|
|
|
- }
|
|
|
- }
|
|
|
- title = firstTitle
|
|
|
- }
|
|
|
- report.Title = title
|
|
|
+ //title := report.Title
|
|
|
+ //title = strings.ReplaceAll(title, "【弘则FICC晨报】", "")
|
|
|
+ //title = strings.ReplaceAll(title, "【弘则FICC周报】", "")
|
|
|
+ //if title == "" {
|
|
|
+ // // 取第一个需发布章节的标题
|
|
|
+ // firstId := publishIdArr[0]
|
|
|
+ // firstTitle := ""
|
|
|
+ // for i := 0; i < chapterLen; i++ {
|
|
|
+ // if chapters[i].ReportChapterId == firstId {
|
|
|
+ // firstTitle = chapters[i].Title
|
|
|
+ // break
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // title = firstTitle
|
|
|
+ //}
|
|
|
+ //report.Title = title
|
|
|
report.State = 2
|
|
|
|
|
|
// 研报后台4.4 只在没有发布过时更新发布时间,其余均按模版消息发送时间当作发布时间
|