From 58f489199ccd867994cf4238b9bed3d6d4ccd4f2 Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Mon, 21 Oct 2019 17:23:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Mobile/Controller/SsgController.class.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index e31bb7255..26bb1f8d0 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -30,11 +30,6 @@ class SsgController extends BaseController { redirect(U("ssg/index", array('promete_id' => $promoteId))); } - // /*if (!$promoteId) { - // echo "链接失效,请重新向推广员索取链接。"; - // exit(); - // $this->error("参数非法"); - // }*/ if ($promoteId) { $exists = M("promote", "tab_")->where(array('id' => $promoteId))->find(); if (!$exists) { From eea9cc772c15bcc1c02fcaf54b9b6f9ac8ed6c83 Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Tue, 22 Oct 2019 10:29:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=9B=9E=E8=B7=B3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Mobile/Controller/SsgController.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index 26bb1f8d0..ae682b418 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -451,6 +451,7 @@ class SsgController extends BaseController { if($payLog && $payLog['pay_status']==1){ $this->assign("error","亲~您已购买过了~请到【订单查询】查看订单信息哟~"); $this->display('blank'); + //redirect("/mobile.php/Ssg/install_show/user_id/$userId/game_id/$gameId/order_id/".$payLog['order_id']); }else{ if (!$gameInfo['supersign_token']) { //$this->error("超级签token未填写!"); @@ -562,7 +563,8 @@ class SsgController extends BaseController { $weixn = new Weixin(); $wx_pay = json_decode($weixn->weixin_pay('超级签消费', $orderId, $price, 'MWEB', 4), true); 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{ $this->assign("error",$wx_pay['return_msg']); $this->display('blank');