Merge branch 'dev' of 47.111.118.107:/srv/git/platform into dev

master
ELF 5 years ago
commit a0bb839f8b

@ -26,7 +26,7 @@
<if condition="$data_list"> <if condition="$data_list">
<ul> <ul>
<volist name="data_list" id="data"> <volist name="data_list" id="data">
<li onclick="handleOrderDetail('{$data[\'order_id\']}','{$data[\'pay_status\']}','{$data[\'game_id\']}')"> <li onclick="handleOrderDetail('{$data[\'order_id\']}','{$data[\'pay_status\']}','{$data[\'game_id\']}','{$data[\'user_id\']}')">
<p>订单编号:{$data.order_id}</p> <p>订单编号:{$data.order_id}</p>
<dl> <dl>
<dt><img src="{$data['icon']|get_cover='path'}"></dt> <dt><img src="{$data['icon']|get_cover='path'}"></dt>
@ -54,10 +54,10 @@
</if> </if>
</div> </div>
<script> <script>
function handleOrderDetail(orderID, state, game_id) { function handleOrderDetail(orderID, state, game_id, user_id) {
if (state == 1) { if (state == 1) {
//前往详情 //前往详情
window.location.href = "/sdk.php/Ipa365/install_show/order_id/"+orderID+"/game_id/"+game_id; window.location.href = "/sdk.php/Ipa365/install_show/order_id/"+orderID+"/game_id/"+game_id+"/user_id/"+user_id;
} }
} }
</script> </script>

@ -150,8 +150,8 @@ class Ipa365Controller extends BaseController{
$param['payway'] = 1; $param['payway'] = 1;
$param['title'] = $price; $param['title'] = $price;
$param['body'] = $price; $param['body'] = $price;
$param['callback'] = "https://api.wmtxkj.com/sdk.php/Ipa365/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}"; $param['callback'] = "https://m.wmtxkj.com/sdk.php/Ipa365/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}";
$param['notifyurl'] = "https://api.wmtxkj.com/callback.php/Notify/notify/apitype/alipay"; $param['notifyurl'] = "https://m.wmtxkj.com/callback.php/Notify/notify/apitype/alipay";
$ret = $this->alipay($param); $ret = $this->alipay($param);
@ -214,8 +214,13 @@ class Ipa365Controller extends BaseController{
public function install_show() { public function install_show() {
$orderId = I('order_id', 0); $orderId = I('order_id', 0);
$gameId = I('game_id', 0); $gameId = I('game_id', 0);
$userId = I('user_id', 0);
$userId = $_SESSION['user_id']; $user = M('user', 'tab_')->where(array(
'id' => $userId
))->find();
// $userId = $_SESSION['user_id'];
if (!$userId ) { if (!$userId ) {
$this->error("请登入", "/mobile.php/ssg/login"); $this->error("请登入", "/mobile.php/ssg/login");
} }

@ -69,7 +69,7 @@
<span>{$price}元</span> <span>{$price}元</span>
</div> </div>
<a class="order-payinfo-item" <a class="order-payinfo-item"
href="#;" onclick="jump('{$order_id}')" href="#;" onclick="jump('{$url}')"
title="支付宝"> title="支付宝">
<div class="order-payinfo-icon"> <div class="order-payinfo-icon">
<img src="__IMG__/ssg/alipay/zfb-pic.jpg" alt="支付宝"> <img src="__IMG__/ssg/alipay/zfb-pic.jpg" alt="支付宝">

Loading…
Cancel
Save