添加网站文件
This commit is contained in:
18
application/admin/controller/Common.php
Normal file
18
application/admin/controller/Common.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\controller;
|
||||
use app\admin\logic\GoodsCategoryLogic;
|
||||
use app\admin\logic\CommonLogic;
|
||||
|
||||
class Common extends AdminBase{
|
||||
public function selectGoods(){
|
||||
if ($this->request->isAjax()){
|
||||
$get = $this->request->get();
|
||||
$goods_list = CommonLogic::getGoodsList($get,true);
|
||||
$this->_success('',$goods_list);
|
||||
}
|
||||
$category_list = GoodsCategoryLogic::categoryTreeeTree();
|
||||
$this->assign('category_list', $category_list);
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user