|
@@ -58,7 +58,7 @@ func GetByClassifyId(id int) (item *Classify, err error) {
|
|
|
// GetListByPid 根据分类名称查找专栏列表
|
|
|
func GetListByPid(pid int) (list []*Classify, err error) {
|
|
|
err = global.MYSQL["rddp"].Model(Classify{}).
|
|
|
- Select("id, classify_name, parent_id, report_author, author_descript, home_img_url").
|
|
|
+ Select("id, classify_name, parent_id, report_author, author_descript, home_img_url, vip_title").
|
|
|
Where("parent_id = ? AND is_show = 1 ", pid).Order("sort asc, id asc").Scan(&list).Error
|
|
|
if err == utils.ErrNoRow {
|
|
|
err = nil
|