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');
         }