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

master
chenxiaojun 5 years ago
commit 7d8f7b53e6

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

@ -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' => '登录成功');
}

Loading…
Cancel
Save