|
|
@ -35,7 +35,7 @@ class GameController extends BaseController{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* 初始化SDK接口
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function init_sdk() {
|
|
|
|
public function init_sdk() {
|
|
|
|
|
|
|
|
|
|
|
@ -46,7 +46,7 @@ class GameController extends BaseController{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$contact_cs = M('tool','tab_')->where(['name' => 'contact_cs'])->find();
|
|
|
|
$contact_cs = M('tool','tab_')->where(['name' => 'contact_cs'])->find();
|
|
|
|
$contact_cs = json_decode($sdkMenus['config'],true);
|
|
|
|
$contact_cs = json_decode($contact_cs['config'],true);
|
|
|
|
foreach($contact_cs as $k => &$v) {
|
|
|
|
foreach($contact_cs as $k => &$v) {
|
|
|
|
$contact_cs[$k]['icon'] = C('ADMIN_DOMAIN') . $contact_cs[$k]['icon'];
|
|
|
|
$contact_cs[$k]['icon'] = C('ADMIN_DOMAIN') . $contact_cs[$k]['icon'];
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -69,9 +69,8 @@ class GameController extends BaseController{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
array_multisort(array_column($contact_cs,'sort'),SORT_ASC,$menus);
|
|
|
|
array_multisort(array_column($contact_cs,'sort'),SORT_ASC,$menus);
|
|
|
|
|
|
|
|
|
|
|
|
$ret = [
|
|
|
|
$ret = [
|
|
|
|
'contact_cs' => $contact_cs,
|
|
|
|
'contact_cs' => $contact_cs[$k],
|
|
|
|
];
|
|
|
|
];
|
|
|
|
if (I('debug') == 1)
|
|
|
|
if (I('debug') == 1)
|
|
|
|
pp(($ret));
|
|
|
|
pp(($ret));
|
|
|
|