Compare commits

...

2 Commits

Author SHA1 Message Date
00196c7299 【类 型】:feat
【原  因】:增加 获取banner列表 api
【过  程】:
【影  响】:

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
2025-05-12 00:42:07 +08:00
10ea45ba80 【类 型】:test
【原  因】:无用文件
【过  程】:
【影  响】:

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
2025-05-12 00:41:02 +08:00
2 changed files with 16 additions and 3 deletions

View File

@ -7,9 +7,7 @@ class NormalController extends PublicController
/** /**
* @description: 子类的初始化 * @description: 子类的初始化
*/ */
public function _initialize() public function _initialize() {}
{
}
public function index() public function index()
{ {
echo "hello world"; echo "hello world";
@ -29,6 +27,21 @@ class NormalController extends PublicController
echo json_encode(array('status' => 0, 'msg' => '暂无分类数据')); 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列表 * @description: 获取spu列表
*/ */

BIN
a.apk

Binary file not shown.