From 5029614474476019df16cc57e48570aaa418493c Mon Sep 17 00:00:00 2001 From: tping Date: Mon, 30 Dec 2019 18:22:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E6=B8=B8=E6=88=8F=E5=8C=BA=E5=88=86?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=B8=A0=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/PayH5Controller.class.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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();