SDK用户菜单

master
Your Name 5 years ago
parent a9ba68d254
commit 65fea2e0a8

@ -41,8 +41,6 @@ class GameController extends BaseController{
*/
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();
$menus = json_decode($sdkMenus['config'],true);
foreach($menus as $k => $v)
@ -51,12 +49,21 @@ class GameController extends BaseController{
}
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 = [
'code' => 200,
'msg' => '获取成功',
'data' => [
'sites_ball_logo' => $base['sites_ball_logo'],
'ball_status' => $base['ball_status'],
'sites_ball_logo' => $sites_ball_logo,
'ball_status' => $ball_status,
'menus' => $menus,
]
];

Loading…
Cancel
Save