diff --git a/Application/Sdk/Controller/Ipa365Controller.class.php b/Application/Sdk/Controller/Ipa365Controller.class.php index c1eedca59..059b3cf90 100644 --- a/Application/Sdk/Controller/Ipa365Controller.class.php +++ b/Application/Sdk/Controller/Ipa365Controller.class.php @@ -121,14 +121,15 @@ class Ipa365Controller extends BaseController{ 'game_id' => $gameId, 'pay_status' => 0 ))->find(); + + $gameInfo = M('game', 'tab_')->field('game_name,supersign_token')->where(array( + 'id' => $gameId, + ))->find(); + if ($payLog) { $orderId = $payLog['order_id']; } else { $orderId = "SS_" . date('Ymd') . date('His') . sp_random_string(4); // 超级签 - - $gameInfo = M('game', 'tab_')->field('supersign_token')->where(array( - 'id' => $gameId, - ))->find(); if (!$gameInfo['supersign_token']) { $this->error("超级签token未填写!"); } @@ -169,10 +170,10 @@ class Ipa365Controller extends BaseController{ $weixn = new Weixin(); $wx_pay = json_decode($weixn->weixin_pay('超级签消费', $orderId, $price, 'MWEB', 4), true); - $this->assign("wxurl", $wx_pay['mweb_url']); $this->assign("price", self::signprice); $this->assign("order_id", $orderId); + $this->assign("game_name",$gameInfo['game_name']); $this->display(); } @@ -404,7 +405,7 @@ class Ipa365Controller extends BaseController{ ->setUserId($param['user_id']) ->setSdkVersion($param['sdk_version']); $pay_['url']= $pay->buildRequestForm($vo); - $pay_['out_trade_no']= $param['order_id']; + //$pay_['out_trade_no']= $out_trade_no; return $pay_; } diff --git a/Application/Sdk/View/default/Ipa365/pay.html b/Application/Sdk/View/default/Ipa365/pay.html index 8b564df45..2b67afc8b 100644 --- a/Application/Sdk/View/default/Ipa365/pay.html +++ b/Application/Sdk/View/default/Ipa365/pay.html @@ -41,7 +41,7 @@ body{ -->
-
天宫计
+
{$game_name}
@@ -105,7 +105,7 @@ body{
微信支付