|
@@ -104,13 +104,15 @@ func (this *TacticsController) List() {
|
|
|
list[k].IsRed = true
|
|
|
}
|
|
|
}
|
|
|
- detail, errCategory := models.GetdetailByCategoryId(categoryId)
|
|
|
- if errCategory != nil && errCategory.Error() != utils.ErrNoRow() {
|
|
|
- br.Msg = "获取信息失败"
|
|
|
- br.ErrMsg = "获取信息失败,Err:" + errCategory.Error()
|
|
|
- return
|
|
|
+ if categoryId > 0 {
|
|
|
+ detail, errCategory := models.GetdetailByCategoryId(categoryId)
|
|
|
+ if errCategory != nil {
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
+ br.ErrMsg = "获取信息失败,Err:" + errCategory.Error() + "categoryID 不存在:" + strconv.Itoa(categoryId)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ resp.MatchTypeName = detail.MatchTypeName
|
|
|
}
|
|
|
- resp.MatchTypeName = detail.MatchTypeName
|
|
|
resp.List = list
|
|
|
resp.Paging = page
|
|
|
br.Ret = 200
|