diff --git a/README.md b/README.md index b001b6e..5c25871 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/ctms-api/controllers/client/v1/IndexController.php b/ctms-api/controllers/client/v1/IndexController.php index 3784948..f4295f3 100755 --- a/ctms-api/controllers/client/v1/IndexController.php +++ b/ctms-api/controllers/client/v1/IndexController.php @@ -37,6 +37,8 @@ class IndexController extends Common { $apis = [ 'h5data'=>'拉取APP首页数据', + 'ads-splash'=>'开屏广告', + 'ads-banner'=>'首页BANNER广告' ]; $this->result('您正使用CMTS系统接口!', $apis, 200); } diff --git a/ctms-api/controllers/gm/v1/IndexController.php b/ctms-api/controllers/gm/v1/IndexController.php index 81d38c3..d320cc1 100755 --- a/ctms-api/controllers/gm/v1/IndexController.php +++ b/ctms-api/controllers/gm/v1/IndexController.php @@ -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; @@ -137,9 +167,9 @@ $return['msg'] = '首页数据下载!'; $return['data'] = [ 'orderToday' => $order_today_count, - 'orderTodayCreate'=>$order_today_create, - 'orderYesterday'=>$order_yesterday_count, - 'orderYesterdayCreate'=>$order_yesterday_create, + 'orderTodayCreate' => $order_today_create, + 'orderYesterday' => $order_yesterday_count, + 'orderYesterdayCreate' => $order_yesterday_create, 'orderMonth' => $order_month_count, 'orderTotal' => $order_all_count, 'jiaocheToday' => $jiaoche_today_count,