修补api/gm接口的几处错误

This commit is contained in:
2025-07-14 00:27:23 +08:00
parent 93d76b6e96
commit d76625fb34
3 changed files with 43 additions and 7 deletions
+8 -4
View File
@@ -8,13 +8,14 @@
#### 软件架构
开发及建议运行环境:
- 后端:PHP版本:7.x或8.0;
- 数据库:mysql 5.6;
- 数据库:mysql 5.6;(框架版本升级至3.x以上后,将升级至8.0)
- APP及H5: 基于uni-app开发
- 桌面应用版:基于electron开发
- git: 版本管理
开发工具:
- phpstorm
- sublime text
- HbuilderX
- vs code
- H-builderX
字符编码格式:UTF-8
PHP环境扩展:
- mbstring,必须,判断中文字符串长度需要;
@@ -28,7 +29,10 @@
- 一份车主信息,至少关联了主数据源的会员表c_member、本应用数据源的车主表car_owner、会员扩展字段表user_ext
- 存在多应用(平台)时,一个车主可能会在不同平台留下的信息并不一样
#### 参与贡献
### 开发工具使用小记
1. phpstorm,使用git更新后,利用 工具-部署-远程主机,可将当前已变更文件复制上传到指定文件目录,方便更新覆盖。
### 参与贡献
1. 方孟(fm453)
@@ -37,6 +37,8 @@ class IndexController extends Common
{
$apis = [
'h5data'=>'拉取APP首页数据',
'ads-splash'=>'开屏广告',
'ads-banner'=>'首页BANNER广告'
];
$this->result('您正使用CMTS系统接口!', $apis, 200);
}
@@ -37,10 +37,40 @@
{
$apis = [
'h5data' => '拉取APP首页数据',
'ads-splash' => '开屏广告',
'ads-banner' => '首页BANNER广告'
];
$this->result('您正使用CMTS-GM系统接口!', $apis, 200);
}
public function actionAdsSplash()
{
$ads = [
"http://public.hiluker.com/ctms/client/app-kp/kp01.jpg",
"http://public.hiluker.com/ctms/client/app-kp/kp03.jpg",
];
$this->result('开屏广告!', $ads, 200);
}
public function actionAdsBanner()
{
$ads = [
'0' => [
"image" => 'http://public.hiluker.com/ctms/client/app-banner/banner01.jpg',
"link" => '/pages/ctms/news/list/list'
],
'1' => [
"image" => 'http://public.hiluker.com/ctms/client/app-banner/banner03.jpg',
"link" => 'http://ctms.hiluker.cn'
],
'2' => [
"image" => 'http://public.hiluker.com/ctms/client/app-banner/banner02.jpg',
"link" => ''
]
];
$this->result('BANNER广告!', $ads, 200);
}
public function actionH5data()
{
$pid = $this->pid;