diff --git a/Application/Mobile/View/User/login.html b/Application/Mobile/View/User/login.html index 3acb4d0fd..493f3fe53 100644 --- a/Application/Mobile/View/User/login.html +++ b/Application/Mobile/View/User/login.html @@ -184,7 +184,7 @@ setTimeout(function(){ if (data.status == 2) { - window.location.href = 'http://' + "{:C('APPLY_DOWN_DOMAIN')}" + "/index.php?s=/Home/Home/promitionofregestion/gid/" + gameId + "/pid/" + promoteId + "/status/" + "1" + ".html"; + window.location.href = 'http://' + "{$_SERVER['HTTP_HOST']}" + "/index.php?s=/Home/Home/promitionofregestion/gid/" + gameId + "/pid/" + promoteId + "/status/" + "1" + ".html"; } else { if (url) { window.location.href = url; diff --git a/Application/Sdk/Controller/Ipa365Controller.class.php b/Application/Sdk/Controller/Ipa365Controller.class.php index e33ff91df..aadb1c3d9 100644 --- a/Application/Sdk/Controller/Ipa365Controller.class.php +++ b/Application/Sdk/Controller/Ipa365Controller.class.php @@ -268,7 +268,7 @@ class Ipa365Controller extends BaseController{ * 用户点击安装 */ public function install() { - $userId = $_SESSION['user_id']; + $userId = I('user_id', 0); if (!$userId ) { $this->error("请登入", "/mobile.php/ssg/login"); }