diff --git a/Application/Sdk/Controller/ExchangeController.class.php b/Application/Sdk/Controller/ExchangeController.class.php index 7c23cf26..e700f9b5 100644 --- a/Application/Sdk/Controller/ExchangeController.class.php +++ b/Application/Sdk/Controller/ExchangeController.class.php @@ -760,7 +760,7 @@ class ExchangeController extends BaseController{ } - $field = array("pay_status"=>1,"pay_amount"=>$request['price'],"receipt"=>$data,"order_number"=>$info['receipt']['transaction_id']); + $field = array("pay_status"=>0,"pay_amount"=>$request['price'],"receipt"=>$data,"order_number"=>$info['receipt']['transaction_id']); $field['payed_time'] = time(); switch ($pay_where) { @@ -769,7 +769,7 @@ class ExchangeController extends BaseController{ $result = M('spend','tab_')->where($map)->setField($field); if ($result) { // 通知后台 - try { + /* try { $url = C('TASK_URL')."/game-event/recharge"; post_async($url, [ 'form_params' => [ @@ -778,7 +778,7 @@ class ExchangeController extends BaseController{ ]); } catch(\Exception $e) { - } + } */ } $param['out_trade_no'] = $out_trade_no; @@ -787,14 +787,14 @@ class ExchangeController extends BaseController{ if (isset($request['app_type']) && $request['app_type'] == 2) { $isBeta = true; // 美国IP 贝塔版 - $ip = get_client_ip(); - $isUSBeta = ip_is_country($ip); +// $ip = get_client_ip(); +// $isUSBeta = ip_is_country($ip); } $game = new GameApi(); //判断是否开启苹果内购支付通知 - if ($isBeta && $isUSBeta) { + if ($isBeta /* && $isUSBeta */) { $is_white_list = M('forbit_ip', 'tab_')->where(['user_id'=>$payamountVerify['user_id'],'status'=>1])->find(); @@ -803,7 +803,7 @@ class ExchangeController extends BaseController{ } } else { - $game->game_pay_notify($param); +// $game->game_pay_notify($param); } break; @@ -830,7 +830,7 @@ class ExchangeController extends BaseController{ if($result){ - $this->set_ratio($out_trade_no); +// $this->set_ratio($out_trade_no); echo base64_encode(json_encode(array("status"=>200,"return_code"=>"success","return_msg"=>"支付成功"))); diff --git a/Application/Sdk/Controller/GameController.class.php b/Application/Sdk/Controller/GameController.class.php index ef3231d5..acc2e473 100644 --- a/Application/Sdk/Controller/GameController.class.php +++ b/Application/Sdk/Controller/GameController.class.php @@ -78,6 +78,7 @@ class GameController extends BaseController{ // 魔幻游戏 隐藏客服 if ($data['game_id'] == 197 || $data['game_id'] == 198 || $data['game_id'] == 201 || $data['game_id'] == 202 // 马踏乱世 + || $data['game_id'] == 211 || $data['game_id'] == 212 // 盛世龙城 ) { // android $contact_cs[$k]['act'] = ""; diff --git a/Application/Sdk/Controller/NoticeController.class.php b/Application/Sdk/Controller/NoticeController.class.php index 16732ed7..9db7f73b 100644 --- a/Application/Sdk/Controller/NoticeController.class.php +++ b/Application/Sdk/Controller/NoticeController.class.php @@ -410,7 +410,9 @@ class NoticeController extends BaseController{ $data['APP_EMAIL'] = C('APP_EMAIL'); // 魔幻游戏 隐藏客服 if ($request['game_id'] == 197 || $request['game_id'] == 198 - || $request['game_id'] == 201 || $request['game_id'] == 202) { // 马踏乱世 + || $request['game_id'] == 201 || $request['game_id'] == 202 // 马踏乱世 + || $request['game_id'] == 211 || $request['game_id'] == 212 // 盛世龙城 + ) { $data['APP_QQ'] = ""; } $this->new_set_message(200,"成功",$data);