Compare commits
No commits in common. "00196c7299c804a6f997a0764452584f19eb9e46" and "0d04e69c54d1ee632dbf40dbac2ae957cea4fb11" have entirely different histories.
00196c7299
...
0d04e69c54
@ -7,7 +7,9 @@ class NormalController extends PublicController
|
||||
/**
|
||||
* @description: 子类的初始化
|
||||
*/
|
||||
public function _initialize() {}
|
||||
public function _initialize()
|
||||
{
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
echo "hello world";
|
||||
@ -27,21 +29,6 @@ class NormalController extends PublicController
|
||||
echo json_encode(array('status' => 0, 'msg' => '暂无分类数据'));
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @description: 获取banner列表
|
||||
*/
|
||||
public function getBannerList()
|
||||
{
|
||||
$where['shop_id'] = $_REQUEST["shop_id"];
|
||||
$order['sort'] = 'desc';
|
||||
$field = array('id', 'name', 'shop_id', 'sort', 'photo', 'type', 'action', 'addtime');
|
||||
$bannerDb = D('banner');
|
||||
if ($bannerList = $bannerDb->where($where)->order($order)->field($field)->select()) {
|
||||
echo json_encode(array('status' => 1, 'msg' => '访问成功', "bannerList" => $bannerList));
|
||||
} else {
|
||||
echo json_encode(array('status' => 0, 'msg' => '暂无分类数据'));
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @description: 获取spu列表
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user