wupengfei 2 年之前
父節點
當前提交
c47dc6aa97
共有 1 個文件被更改,包括 2 次插入0 次删除
  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');
         }