超级签支付

master
zhengchanglong 5 years ago
parent 308903d396
commit 3bfb23b360

@ -121,14 +121,15 @@ class Ipa365Controller extends BaseController{
'game_id' => $gameId, 'game_id' => $gameId,
'pay_status' => 0 'pay_status' => 0
))->find(); ))->find();
$gameInfo = M('game', 'tab_')->field('game_name,supersign_token')->where(array(
'id' => $gameId,
))->find();
if ($payLog) { if ($payLog) {
$orderId = $payLog['order_id']; $orderId = $payLog['order_id'];
} else { } else {
$orderId = "SS_" . date('Ymd') . date('His') . sp_random_string(4); // 超级签 $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']) { if (!$gameInfo['supersign_token']) {
$this->error("超级签token未填写"); $this->error("超级签token未填写");
} }
@ -169,10 +170,10 @@ class Ipa365Controller extends BaseController{
$weixn = new Weixin(); $weixn = new Weixin();
$wx_pay = json_decode($weixn->weixin_pay('超级签消费', $orderId, $price, 'MWEB', 4), true); $wx_pay = json_decode($weixn->weixin_pay('超级签消费', $orderId, $price, 'MWEB', 4), true);
$this->assign("wxurl", $wx_pay['mweb_url']); $this->assign("wxurl", $wx_pay['mweb_url']);
$this->assign("price", self::signprice); $this->assign("price", self::signprice);
$this->assign("order_id", $orderId); $this->assign("order_id", $orderId);
$this->assign("game_name",$gameInfo['game_name']);
$this->display(); $this->display();
} }
@ -404,7 +405,7 @@ class Ipa365Controller extends BaseController{
->setUserId($param['user_id']) ->setUserId($param['user_id'])
->setSdkVersion($param['sdk_version']); ->setSdkVersion($param['sdk_version']);
$pay_['url']= $pay->buildRequestForm($vo); $pay_['url']= $pay->buildRequestForm($vo);
$pay_['out_trade_no']= $param['order_id']; //$pay_['out_trade_no']= $out_trade_no;
return $pay_; return $pay_;
} }

@ -41,7 +41,7 @@ body{
</div> --> </div> -->
<div class="title" > <div class="title" >
<img class="gologin" src="__IMG__/ssg/alipay/back.png" style="margin-left:.24rem;"> <img class="gologin" src="__IMG__/ssg/alipay/back.png" style="margin-left:.24rem;">
<div style="font-size: .32rem;color: #fff;">天宫计</div> <div style="font-size: .32rem;color: #fff;">{$game_name}</div>
<div class="titleright" style="margin-right:.24rem;"></div> <div class="titleright" style="margin-right:.24rem;"></div>
</div> </div>
<!-- 其他通道 --> <!-- 其他通道 -->
@ -105,7 +105,7 @@ body{
</div> </div>
</a> </a>
<a class="order-payinfo-item" <a class="order-payinfo-item"
href="#;" onclick="jump('{$url}', '{$order_id}')" href="#;" onclick="jump('{$xwurl}', '{$order_id}')"
title="微信支付" style="padding: .3rem 0;width: 6.3rem;margin-left: .3rem;"> title="微信支付" style="padding: .3rem 0;width: 6.3rem;margin-left: .3rem;">
<div class="order-payinfo-icon" style="width: .7rem;height: .7rem;"> <div class="order-payinfo-icon" style="width: .7rem;height: .7rem;">
<img src="__IMG__/ssg/alipay/wxpay.png" style="width: 100%;height: 100%;border: 0px;" alt="微信支付"> <img src="__IMG__/ssg/alipay/wxpay.png" style="width: 100%;height: 100%;border: 0px;" alt="微信支付">

Loading…
Cancel
Save