|
|
@ -41,8 +41,6 @@ class GameController extends BaseController{
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function get_suspend(){
|
|
|
|
public function get_suspend(){
|
|
|
|
|
|
|
|
|
|
|
|
$base = M('site_base','tab_')->field('sites_ball_logo,ball_status')->where(['promote_id'=>$request['promote_id']])->find();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$sdkMenus = M('tool','tab_')->where(['name' => 'sdk_menu'])->find();
|
|
|
|
$sdkMenus = M('tool','tab_')->where(['name' => 'sdk_menu'])->find();
|
|
|
|
$menus = json_decode($sdkMenus['config'],true);
|
|
|
|
$menus = json_decode($sdkMenus['config'],true);
|
|
|
|
foreach($menus as $k => $v)
|
|
|
|
foreach($menus as $k => $v)
|
|
|
@ -51,12 +49,21 @@ class GameController extends BaseController{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
array_multisort(array_column($menus,'sort'),SORT_ASC,$menus);
|
|
|
|
array_multisort(array_column($menus,'sort'),SORT_ASC,$menus);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$ball_status = M('config','sys_')->where(['name' => 'WAP_SUSPEND_SHWO_STATUS'])->find()['value'];
|
|
|
|
|
|
|
|
$sites_ball_logo = M('config','sys_')->where(['name' => 'WAP_SUSPEND_ICON'])->find()['value'];
|
|
|
|
|
|
|
|
$sites_ball_logo = get_cover( $sites_ball_logo ,'path');
|
|
|
|
|
|
|
|
if(strpos($sites_ball_logo, 'http')!==false){
|
|
|
|
|
|
|
|
$sites_ball_logo = $sites_ball_logo;
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$sites_ball_logo = 'http://'.$_SERVER['HTTP_HOST'].$sites_ball_logo;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$data = [
|
|
|
|
$data = [
|
|
|
|
'code' => 200,
|
|
|
|
'code' => 200,
|
|
|
|
'msg' => '获取成功',
|
|
|
|
'msg' => '获取成功',
|
|
|
|
'data' => [
|
|
|
|
'data' => [
|
|
|
|
'sites_ball_logo' => $base['sites_ball_logo'],
|
|
|
|
'sites_ball_logo' => $sites_ball_logo,
|
|
|
|
'ball_status' => $base['ball_status'],
|
|
|
|
'ball_status' => $ball_status,
|
|
|
|
'menus' => $menus,
|
|
|
|
'menus' => $menus,
|
|
|
|
]
|
|
|
|
]
|
|
|
|
];
|
|
|
|
];
|
|
|
|