diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index 2e2f7d35a..1e34c2b17 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -2303,14 +2303,8 @@ class QueryController extends BaseController public function getChildPromoteList() { - $promoteId = I('post.promote_id', 0); - if ($promoteId == 0) { - $data['status'] = 0; - $data['msg'] = '数据异常'; - - $this->ajaxReturn($data); - } - + $promoteId = intval(I('post.promote_id', 0)); + $promoteId = empty($promoteId) ? PID : $promoteId; $promoteList = getAllPromoteListByType(3, false, $promoteId); $data['status'] = 1; $data['data'] = $promoteList; diff --git a/Application/Mobile/Controller/UserController.class.php b/Application/Mobile/Controller/UserController.class.php index de17feae5..7e32cf78e 100644 --- a/Application/Mobile/Controller/UserController.class.php +++ b/Application/Mobile/Controller/UserController.class.php @@ -237,13 +237,13 @@ class UserController extends BaseController $saveRes = M('User', 'tab_')->where(array('id' => $userData['id']))->save($saveData); if ($saveRes) { - $data = array('status' => 2, 'msg' => '登录成功!绑定成功'); + $data = array('status' => 2, 'msg' => '登录成功'); } else { $data = array('status' => 0, 'msg' => '绑定失败'); } } else { if ($userData['promote_id'] == $promoteId) { - $data = array('status' => 2, 'msg' => '登录成功!绑定成功'); + $data = array('status' => 2, 'msg' => '登录成功'); } else { $data = array('status' => 2, 'msg' => '登录成功'); }