|
|
@ -48,14 +48,11 @@ class BaseController extends RestController{
|
|
|
|
|| in_array($a, $this->noToken)
|
|
|
|
|| in_array($a, $this->noToken)
|
|
|
|
|| in_array($c.".".$a, $this->noToken))) {
|
|
|
|
|| in_array($c.".".$a, $this->noToken))) {
|
|
|
|
|
|
|
|
|
|
|
|
if ($data['api_ver'] == 2) {
|
|
|
|
if (isset($data['api_ver']) && $data['api_ver'] == 2) {
|
|
|
|
self::apiverify($data['user_id'], $data['game_id'], $data['user_token']);
|
|
|
|
$this->userToken = self::apiverify($data['user_id'], $data['game_id'], $data['user_token']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->userToken = $userToken;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* if( !preg_match("/apple_alipay_pay/",GetCurUrl()) &&!preg_match("/apple_weixin_pay/",GetCurUrl()) &&!preg_match("/get_alipay_zmxy_return/",GetCurUrl()) &&!preg_match("/apple_platform_pay/",GetCurUrl()) &&!preg_match("/notice/",GetCurUrl()) &&!preg_match("/apple_union_pay/",GetCurUrl()) &&!preg_match("/test/",GetCurUrl()) &&!preg_match("/wap_shortcut_pay/",GetCurUrl()) &&!preg_match("/shortcut_pay/",GetCurUrl()) &&!preg_match("/android_shortcut_pay/",GetCurUrl()) &&!preg_match("/wap_shortcut_pay/",GetCurUrl()) &&!preg_match("/apple_weixin_pay/",GetCurUrl()) &&!preg_match("/Ipa365/",GetCurUrl()) &&!preg_match("/user_login/",GetCurUrl()) &&!preg_match("/platform_coin_deduction/",GetCurUrl()) ){
|
|
|
|
* if( !preg_match("/apple_alipay_pay/",GetCurUrl()) &&!preg_match("/apple_weixin_pay/",GetCurUrl()) &&!preg_match("/get_alipay_zmxy_return/",GetCurUrl()) &&!preg_match("/apple_platform_pay/",GetCurUrl()) &&!preg_match("/notice/",GetCurUrl()) &&!preg_match("/apple_union_pay/",GetCurUrl()) &&!preg_match("/test/",GetCurUrl()) &&!preg_match("/wap_shortcut_pay/",GetCurUrl()) &&!preg_match("/shortcut_pay/",GetCurUrl()) &&!preg_match("/android_shortcut_pay/",GetCurUrl()) &&!preg_match("/wap_shortcut_pay/",GetCurUrl()) &&!preg_match("/apple_weixin_pay/",GetCurUrl()) &&!preg_match("/Ipa365/",GetCurUrl()) &&!preg_match("/user_login/",GetCurUrl()) &&!preg_match("/platform_coin_deduction/",GetCurUrl()) ){
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -122,6 +119,8 @@ class BaseController extends RestController{
|
|
|
|
exit ();
|
|
|
|
exit ();
|
|
|
|
// 退出
|
|
|
|
// 退出
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $token;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
@ -169,11 +168,12 @@ class BaseController extends RestController{
|
|
|
|
* @return array 配置数组
|
|
|
|
* @return array 配置数组
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public static function get_tool(){
|
|
|
|
public static function get_tool(){
|
|
|
|
$tools = M('tool', 'tab_')->where([])->field('type,name,config,status')->select();
|
|
|
|
$tools = M('tool', 'tab_')->where([])->field('type,name,config,`status`')->select();
|
|
|
|
|
|
|
|
|
|
|
|
$config = array();
|
|
|
|
$config = array();
|
|
|
|
foreach ($tools as $value) {
|
|
|
|
foreach ($tools as $value) {
|
|
|
|
$config[$value['name']] = json_decode($value['config'], true);
|
|
|
|
$config[$value['name']] = json_decode($value['config'], true);
|
|
|
|
|
|
|
|
if (is_array($config[$value['name']]))
|
|
|
|
$config[$value['name']]['status'] = $value['status'];
|
|
|
|
$config[$value['name']]['status'] = $value['status'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $config;
|
|
|
|
return $config;
|
|
|
|