|
|
@@ -59,6 +59,10 @@ func List(c *gin.Context) { |
|
|
|
} |
|
|
|
if notice != nil { |
|
|
|
for _, v := range *notice { |
|
|
|
isHide := "1" |
|
|
|
if v.Pid == 4 { |
|
|
|
isHide = "0" |
|
|
|
} |
|
|
|
tmp := md.ArticleList{ |
|
|
|
CateId: utils.IntToStr(v.CateId), |
|
|
|
Title: v.Title, |
|
|
@@ -69,7 +73,7 @@ func List(c *gin.Context) { |
|
|
|
Sort: utils.IntToStr(v.Sort), |
|
|
|
IsShow: utils.IntToStr(v.IsShow), |
|
|
|
Pid: utils.IntToStr(v.Pid), |
|
|
|
Url: fmt.Sprintf("%s%s?id=%s&is_hide=0", svc.GetSysCfgStr("wap_host"), "/#/pages/course-detail-page/course-detail-page", utils.AnyToString(v.Id)), |
|
|
|
Url: fmt.Sprintf("%s%s?id=%s&is_hide=%s", svc.GetSysCfgStr("wap_host"), "/#/pages/course-detail-page/course-detail-page", utils.AnyToString(v.Id), isHide), |
|
|
|
} |
|
|
|
noticeList = append(noticeList, tmp) |
|
|
|
} |
|
|
|