|
@@ -168,38 +168,9 @@ func (this *ReportSelectionController) PreserveAndPublish() {
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- if req.DoType == 1 {
|
|
|
- //cygxService.DoThisWeekLastWeekWxTemplateMsg(itemCrs.Title, itemCrs.PublishDate.Format(utils.FormatDateTime), itemCrs.ProductDescription, req.ArticleId, 1)
|
|
|
- }
|
|
|
- //生成音频文件
|
|
|
- //articleId := req.ArticleId
|
|
|
- //existMap := make(map[int]int)
|
|
|
- //var content string
|
|
|
- //content = "产品说明" + req.ProductDescription + "变更说明" + req.UpdateDescription + "近期重点关注方向" + req.FocusOn
|
|
|
- //listLog, err := cygx.GetReportSelectionlogListAll(articleId)
|
|
|
- //if err != nil {
|
|
|
- // br.Msg = "获取失败"
|
|
|
- // br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
|
- // return
|
|
|
- //}
|
|
|
- //for _, v := range listLog {
|
|
|
- // if existMap[v.ChartPermissionId] == 0 {
|
|
|
- // content += v.PermissionName + "领域深度调研和报告"
|
|
|
- // listSonLog, err := cygx.GetReportSelectionlogSonListAll(articleId, v.ChartPermissionId)
|
|
|
- // if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
- // br.Msg = "获取信息失败"
|
|
|
- // br.ErrMsg = "获取信息失败,Err:" + err.Error()
|
|
|
- // return
|
|
|
- // }
|
|
|
- // if len(listSonLog) > 0 {
|
|
|
- // for _, v2 := range listSonLog {
|
|
|
- // content += v2.SubjectName + v2.Body
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // existMap[v.ChartPermissionId] = v.ChartPermissionId
|
|
|
+ //if req.DoType == 1 {
|
|
|
+ //cygxService.DoThisWeekLastWeekWxTemplateMsg(itemCrs.Title, itemCrs.PublishDate.Format(utils.FormatDateTime), itemCrs.ProductDescription, req.ArticleId, 1)
|
|
|
//}
|
|
|
- //go services.CreateVideoWhithContent(articleId, req.Title, content, "cygx_report_selection")
|
|
|
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
@@ -341,11 +312,6 @@ func (this *ReportSelectionController) Detail() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if err != nil {
|
|
|
- br.Msg = "获取失败"
|
|
|
- br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
|
|
|
//获取关联的文章信息
|
|
|
mapArticle := make(map[int]string)
|
|
@@ -936,6 +902,7 @@ func (this *ReportSelectionController) VisibleRange() {
|
|
|
br.ErrMsg = "操作失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ cygxService.UpdateReportSelectionResourceData(articleId) //首页最新页面数据逻辑处理 V11.1.1
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
br.Msg = "操作成功"
|