From 41291daa3f47671f2164a56fb3b24f1ebb2d75f0 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Thu, 10 Oct 2019 09:07:30 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/GameDivideController.class.php | 15 +++++++-------- .../Home/View/default/GameDivide/index.html | 6 +++++- .../Home/View/default/Public/promote_base.html | 14 +++++++------- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/Application/Home/Controller/GameDivideController.class.php b/Application/Home/Controller/GameDivideController.class.php index d0ef8b617..6db691700 100644 --- a/Application/Home/Controller/GameDivideController.class.php +++ b/Application/Home/Controller/GameDivideController.class.php @@ -15,15 +15,15 @@ class GameDivideController extends BaseController //首页 public function index() { - $parentId = getParentPromoteId(PID); + $parentId = getParentPromoteId(PID);//上级ID if ($parentId > 0) { $this->error('权限异常'); } - $securityCode = empty(session('game_divide_second_pwd')) ? '' : session('game_divide_second_pwd'); + $securityCode = empty(session('game_divide_second_pwd')) ? '' : session('game_divide_second_pwd');//安全密码 $model = new PromoteApi(); - $res = $model->verify_er_User(PID, $securityCode); - if (!empty($securityCode) && $res) { + $res = $model->verify_er_User(PID, $securityCode);//验证安全密码 + if ($res) { $map['tab_game.online_status'] = 1;//开发者游戏上线状态 $map['tab_game.down_port'] = 1;//游戏端口 第三方接口不能申请 $map['tab_game.game_status'] = 1;//游戏状态 @@ -83,6 +83,7 @@ class GameDivideController extends BaseController $this->display(); } + //验证安全密码 public function verifyPassword() { $password = I('post.password'); @@ -94,13 +95,11 @@ class GameDivideController extends BaseController $data['status'] = 1; $data['msg'] = '验证成功'; - - $this->ajaxReturn($data); } else { $data['status'] = 0; $data['msg'] = '安全密码不正确'; - - $this->ajaxReturn($data); } + + $this->ajaxReturn($data); } } \ No newline at end of file diff --git a/Application/Home/View/default/GameDivide/index.html b/Application/Home/View/default/GameDivide/index.html index 48db62b84..39bd2c94d 100644 --- a/Application/Home/View/default/GameDivide/index.html +++ b/Application/Home/View/default/GameDivide/index.html @@ -245,7 +245,7 @@ -