修补api/gm接口的几处错误
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user