ios13.1绑定提示修改 下级推广员查询bug修复

master
chenxiaojun 5 years ago
commit 7d8f7b53e6

@ -2303,14 +2303,8 @@ class QueryController extends BaseController
public function getChildPromoteList() public function getChildPromoteList()
{ {
$promoteId = I('post.promote_id', 0); $promoteId = intval(I('post.promote_id', 0));
if ($promoteId == 0) { $promoteId = empty($promoteId) ? PID : $promoteId;
$data['status'] = 0;
$data['msg'] = '数据异常';
$this->ajaxReturn($data);
}
$promoteList = getAllPromoteListByType(3, false, $promoteId); $promoteList = getAllPromoteListByType(3, false, $promoteId);
$data['status'] = 1; $data['status'] = 1;
$data['data'] = $promoteList; $data['data'] = $promoteList;

@ -237,13 +237,13 @@ class UserController extends BaseController
$saveRes = M('User', 'tab_')->where(array('id' => $userData['id']))->save($saveData); $saveRes = M('User', 'tab_')->where(array('id' => $userData['id']))->save($saveData);
if ($saveRes) { if ($saveRes) {
$data = array('status' => 2, 'msg' => '登录成功!绑定成功'); $data = array('status' => 2, 'msg' => '登录成功');
} else { } else {
$data = array('status' => 0, 'msg' => '绑定失败'); $data = array('status' => 0, 'msg' => '绑定失败');
} }
} else { } else {
if ($userData['promote_id'] == $promoteId) { if ($userData['promote_id'] == $promoteId) {
$data = array('status' => 2, 'msg' => '登录成功!绑定成功'); $data = array('status' => 2, 'msg' => '登录成功');
} else { } else {
$data = array('status' => 2, 'msg' => '登录成功'); $data = array('status' => 2, 'msg' => '登录成功');
} }

Loading…
Cancel
Save