Merge branch 'dev_zcl' into dev

master
zhengchanglong 5 years ago
commit 941303065d

@ -30,11 +30,6 @@ class SsgController extends BaseController {
redirect(U("ssg/index", array('promete_id' => $promoteId))); redirect(U("ssg/index", array('promete_id' => $promoteId)));
} }
// /*if (!$promoteId) {
// echo "链接失效,请重新向推广员索取链接。";
// exit();
// $this->error("参数非法");
// }*/
if ($promoteId) { if ($promoteId) {
$exists = M("promote", "tab_")->where(array('id' => $promoteId))->find(); $exists = M("promote", "tab_")->where(array('id' => $promoteId))->find();
if (!$exists) { if (!$exists) {
@ -456,6 +451,7 @@ class SsgController extends BaseController {
if($payLog && $payLog['pay_status']==1){ if($payLog && $payLog['pay_status']==1){
$this->assign("error","亲~您已购买过了~请到【订单查询】查看订单信息哟~"); $this->assign("error","亲~您已购买过了~请到【订单查询】查看订单信息哟~");
$this->display('blank'); $this->display('blank');
//redirect("/mobile.php/Ssg/install_show/user_id/$userId/game_id/$gameId/order_id/".$payLog['order_id']);
}else{ }else{
if (!$gameInfo['supersign_token']) { if (!$gameInfo['supersign_token']) {
//$this->error("超级签token未填写"); //$this->error("超级签token未填写");
@ -567,7 +563,8 @@ class SsgController 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);
if($wx_pay['status']==1){ if($wx_pay['status']==1){
redirect($wx_pay['mweb_url']); $redirect_url = $_SERVER['HTTP_HOST']."/mobile.php/Ssg/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}";
redirect($wx_pay['mweb_url']."&redirect_url=".urlencode($redirect_url));
}else{ }else{
$this->assign("error",$wx_pay['return_msg']); $this->assign("error",$wx_pay['return_msg']);
$this->display('blank'); $this->display('blank');

Loading…
Cancel
Save