diff --git a/Application/Sdk/Controller/SpendController.class.php b/Application/Sdk/Controller/SpendController.class.php index 45e606255..3ab04ae10 100644 --- a/Application/Sdk/Controller/SpendController.class.php +++ b/Application/Sdk/Controller/SpendController.class.php @@ -146,6 +146,9 @@ class SpendController extends Controller { $this->display ( 'pay_success' ); } public function pay_error() { + $Scheme = file_get_contents ( "./Application/Sdk/Scheme/" . $_GET ['game_id'] . ".txt" ); + + $this->assign ('Scheme', $Scheme?$Scheme:'txplatformsdk'); $this->display (); } public function notice($user_id = 0, $game_id = 0, $msg = '') { diff --git a/Application/Sdk/View/default/Spend/pay_error.html b/Application/Sdk/View/default/Spend/pay_error.html index e044ca8a7..380872648 100644 --- a/Application/Sdk/View/default/Spend/pay_error.html +++ b/Application/Sdk/View/default/Spend/pay_error.html @@ -41,6 +41,7 @@ border: 1px solid #999;
+
@@ -48,7 +49,7 @@ border: 1px solid #999;

支付失败

-返回 +返回
@@ -62,8 +63,21 @@ border: 1px solid #999; diff --git a/ThinkPHP/Library/Think/Pay/Driver/Alipay.class.php b/ThinkPHP/Library/Think/Pay/Driver/Alipay.class.php index 26fa0e91e..76dff8521 100644 --- a/ThinkPHP/Library/Think/Pay/Driver/Alipay.class.php +++ b/ThinkPHP/Library/Think/Pay/Driver/Alipay.class.php @@ -66,7 +66,7 @@ class Alipay extends \Think\Pay\Pay $param['return_url'] = $returnUrl; else $param['return_url']='http://' . $_SERVER ['HTTP_HOST'] . "/sdk.php/Spend/pay_success"; - $param['show_url'] = 'http://' . $_SERVER ['HTTP_HOST'] . "/sdk.php/Spend/pay_error"; + $param['show_url'] = 'http://' . $_SERVER ['HTTP_HOST'] . "/sdk.php/Spend/pay_error/game_id/".$vo->getGameId(); break; case 'refund': $param['seller_email'] = $this->config['email'];