美国IP白名单

master
tping 5 years ago
parent e5babcd693
commit a95703cb71

@ -768,37 +768,24 @@ class ExchangeController extends BaseController{
$isBeta = true;
// 美国IP 贝塔版
$ip = get_client_ip();
// todo: 暂时取消美国IP 后面做白名单
$isUSBeta = ip_is_country($ip);
// $isUSBeta = false;
$isUSBeta = ip_is_country($ip);
}
$game = new GameApi();
//判断是否开启苹果内购支付通知
$appleInteriorBuyStatus = M('tool','tab_')->where(['name'=>'apple_interior_buy'])->getField('status');
if ($isBeta && $isUSBeta) {
if (!$appleInteriorBuyStatus) {
$is_white_list = M('forbit_ip', 'tab_')->where(['user_id'=>$payamountVerify['user_id'],'status'=>1])->find();
if ($isBeta && $isUSBeta) {
$is_white_list = M('forbit_ip', 'tab_')->where(['user_id'=>$payamountVerify['user_id'],'status'=>1])->find();
if ($is_white_list) {
$game->game_pay_notify($param);
}
} else {
if ($is_white_list) {
$game->game_pay_notify($param);
}
} else {
$game->game_pay_notify($param);
}
break;
case 'PF':

@ -201,16 +201,12 @@ class GameController extends BaseController{
}
// var_dump($isUSIP);
//判断是否开启苹果内购beta包美国ip且是否在白名单当中
if (!getAppleInteriorBuyStatus()) {
if (isset($data['app_type']) && $data['app_type'] == 2 && $isUSIP) {
if (isset($data['app_type']) && $data['app_type'] == 2 && $isUSIP) {
if (!getIpForbitWhiteList($data['user_id'])) {
if ($v['name'] == 'gift' || $v['name'] == 'suppersign') {
unset($menus[$k]);
continue;
}
if ($v['name'] == 'gift' || $v['name'] == 'suppersign') {
unset($menus[$k]);
continue;
}
}
}
//测试账号苹果审核
@ -273,15 +269,10 @@ class GameController extends BaseController{
}
}
if (!getAppleInteriorBuyStatus()) {
if (isset($data['app_type']) && $data['app_type'] == 2 && $isUSIP) {
if (!getIpForbitWhiteList($data['user_id'])) {
if ($v['name'] == 'gift' || $v['name'] == 'balance') {
unset($personalMenu[$k]);
continue;
}
}
if (isset($data['app_type']) && $data['app_type'] == 2 && $isUSIP) {
if ($v['name'] == 'gift' || $v['name'] == 'balance') {
unset($personalMenu[$k]);
continue;
}
}

Loading…
Cancel
Save