|
|
|
@ -169,6 +169,12 @@ class GameController extends BaseController{
|
|
|
|
|
re_msg(1004, 'fail', '用户不存在');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 白名单用户显示
|
|
|
|
|
$isWhite = M('forbit_ip', 'tab_')->where([
|
|
|
|
|
'user_id' => $data['user_id'],
|
|
|
|
|
'type' => 1
|
|
|
|
|
])->find();
|
|
|
|
|
|
|
|
|
|
// 测试白名单用户一定走内购支付
|
|
|
|
|
$testWhite = M('forbit_ip', 'tab_')->where([
|
|
|
|
|
'user_id' => $data['user_id'],
|
|
|
|
@ -213,7 +219,7 @@ class GameController extends BaseController{
|
|
|
|
|
}
|
|
|
|
|
// var_dump($isUSIP);
|
|
|
|
|
//判断是否开启苹果内购,beta包,美国ip,且是否在白名单当中
|
|
|
|
|
if (isset($data['app_type']) && $data['app_type'] == 2 && $isUSIP) {
|
|
|
|
|
if (isset($data['app_type']) && $data['app_type'] == 2 && $isUSIP && !$isWhite) {
|
|
|
|
|
if ($v['name'] == 'gift' || $v['name'] == 'suppersign') {
|
|
|
|
|
unset($menus[$k]);
|
|
|
|
|
continue;
|
|
|
|
@ -296,7 +302,7 @@ class GameController extends BaseController{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isset($data['app_type']) && $data['app_type'] == 2 && $isUSIP) {
|
|
|
|
|
if (isset($data['app_type']) && $data['app_type'] == 2 && $isUSIP && !$isWhite) {
|
|
|
|
|
if ($v['name'] == 'gift' || $v['name'] == 'balance') {
|
|
|
|
|
unset($personalMenu[$k]);
|
|
|
|
|
continue;
|
|
|
|
|