|
@@ -267,6 +267,23 @@ func (this *EnglishReportController) Detail() {
|
|
|
}
|
|
|
item.Content = html.UnescapeString(item.Content)
|
|
|
item.ContentSub = html.UnescapeString(item.ContentSub)
|
|
|
+ classifyNameMap := make(map[int]*models.EnglishClassifyFullName)
|
|
|
+ if item.ClassifyIdSecond > 0 {
|
|
|
+ nameList, tErr := models.GetEnglishClassifyFullNameByIds([]int{item.ClassifyIdSecond})
|
|
|
+ if tErr != nil {
|
|
|
+ br.Msg = "获取分类名称失败"
|
|
|
+ br.ErrMsg = "获取分类名称失败, ERR:" + tErr.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ for _, v := range nameList {
|
|
|
+ classifyNameMap[v.Id] = v
|
|
|
+ }
|
|
|
+ //处理分类名
|
|
|
+ if n, ok := classifyNameMap[item.ClassifyIdSecond]; ok {
|
|
|
+ item.ClassifyNameRoot = n.RootName
|
|
|
+ item.ClassifyIdRoot = n.RootId
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
// 获取邮件配置-是否有权限群发
|
|
|
conf := new(models.EnglishReportEmailConf)
|