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