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 @@