wupengfei 2 years ago
parent
commit
c47dc6aa97
1 changed files with 2 additions and 0 deletions
  1. 2 0
      application/nutrition/controller/NewsManage.php

+ 2 - 0
application/nutrition/controller/NewsManage.php

@@ -1,5 +1,6 @@
 <?php
 namespace app\Nutrition\controller;
+use app\common\model\NewsChannel;
 use app\common\model\NutritionCase;
 use library\Controller;
 use think\Db;
@@ -151,6 +152,7 @@ class NewsManage extends Controller
             //选中的标签
             $this->label_arr = isset($data['label']) ? explode('|',trim($data['label'],'|')) : [];
             $this->case = NutritionCase::column('title','id');
+            $this->news_channel = NewsChannel::where(['is_deleted'=>0,'status'=>1])->order('sort desc ,id desc')->column('title','id');
         }