diff --git a/Application/Sdk/Controller/PayH5Controller.class.php b/Application/Sdk/Controller/PayH5Controller.class.php index 7d63d8f0..6a7c8418 100644 --- a/Application/Sdk/Controller/PayH5Controller.class.php +++ b/Application/Sdk/Controller/PayH5Controller.class.php @@ -51,7 +51,7 @@ class PayH5Controller extends BaseController{ } $request['pay_order_number'] = $pay_info['order_id']; - if(get_zfb_type()==0){ // 支付宝官方 + if(get_zfb_type($game_id, $user_id)==0){ // 支付宝官方 if(C('alipay.way')==1/* || ($request['is_create_ordernumer']==1 && C('alipay.way')==0) */){ /* wap */ $request['apitype'] = "alipay"; @@ -99,7 +99,7 @@ class PayH5Controller extends BaseController{ 'pay_url' => $request['pay_url'] ]); - }elseif(get_zfb_type() == 2) { // 双乾 + }elseif(get_zfb_type($game_id, $user_id) == 2) { // 双乾 $request['pay_way'] = C('PAY_WAY.SQ_ALIPAY'); $request['pay_status'] = 0; @@ -303,7 +303,7 @@ class PayH5Controller extends BaseController{ $this->other_price($request); - if(get_zfb_type()==0){ // 支付宝官方 + if(get_zfb_type($game_id, $user_id)==0){ // 支付宝官方 if(C('alipay.way')==1/* || ($request['is_create_ordernumer']==1 && C('alipay.way')==0) */){ /* wap */ $game_set_data = get_game_set_info($request['game_id']); @@ -346,8 +346,7 @@ class PayH5Controller extends BaseController{ 'pay_url' => $request['pay_url'] ]); - }elseif(get_zfb_type() == 2) { // 双乾 - + }elseif(get_zfb_type($game_id, $user_id) == 2) { // 双乾 $request['pay_way'] = C('PAY_WAY.SQ_ALIPAY'); $request['pay_status'] = 0; $request['spend_ip'] = get_client_ip();