From c596052b59e60e6f663f6fc19390423c81325e2e Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Tue, 1 Oct 2019 03:52:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=BD=E5=9C=B0=E9=A1=B5=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/HomeController.class.php | 2 +- .../Mobile/Controller/UserController.class.php | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index 736dbf6a7..8113c3010 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -149,7 +149,7 @@ class HomeController extends Controller } if ($status == 1) { - $downLink = 'itms-services://?action=download-manifest&url=' . "https://" . $_SERVER["HTTP_HOST"] . M('GameSource', 'tab_')->where(array('game_id' => $gameId))->getField('org_plist_url'); + $downLink = 'itms-services://?action=download-manifest&url=' . "https://" . ltrim('.', $_SERVER["HTTP_HOST"] . M('GameSource', 'tab_')->where(array('game_id' => $gameId))->getField('org_plist_url')); } else { $downLink = get_apply_dow_url($gameId, $promoteId); } diff --git a/Application/Mobile/Controller/UserController.class.php b/Application/Mobile/Controller/UserController.class.php index ad510b5df..b88cfbb7f 100644 --- a/Application/Mobile/Controller/UserController.class.php +++ b/Application/Mobile/Controller/UserController.class.php @@ -169,20 +169,25 @@ class UserController extends BaseController { ); } else { $data = array( - 'status' => 0, + 'status' => 1, 'msg' => '登录成功!绑定失败', ); } + } else { + $data = array( + 'status' => 1, + 'msg' => '登录成功', + ); } } else { $data = array( - 'status' => 0, + 'status' => 1, 'msg' => '登录成功!绑定失败', ); } } else { $data = array( - 'status' => 0, + 'status' => 1, 'msg' => '登录成功!绑定失败', ); }