|
@@ -107,7 +107,7 @@ class MainProject extends Controller
|
|
|
$menus = Db::name('system_goods_cate')->where(['status' => '1'])->where('is_deleted', 0)->order('id asc')->column('id,pid,title');
|
|
|
$this->menus = Data::arr2table(array_merge([['id' => '', 'pid' => '-1', 'title' => '--全部--']],$menus ));
|
|
|
|
|
|
- $template = Db::name('system_template')->where('is_del',1)->column('id,title');
|
|
|
+ $template = Db::name('system_template')->where('is_del',1)->field('id,title')->select();
|
|
|
dump($template);
|
|
|
$this->template = array_merge(['id' => '', 'title' => '--全部--'],$template );
|
|
|
dump($this->template);
|