Commit 3954b770 authored by hujun's avatar hujun

修改邀请注册判断

parent 61352057
...@@ -337,7 +337,10 @@ class Client extends Basic ...@@ -337,7 +337,10 @@ class Client extends Basic
$data['data'] = array(); $data['data'] = array();
$data['msg'] = ''; $data['msg'] = '';
if ($this->agentId) { if (empty($this->agentId)) {
return $this->response($data['status'],'id is null');
}
$where['status'] = 0; $where['status'] = 0;
$where['referrer_id'] = $this->agentId; $where['referrer_id'] = $this->agentId;
$where['referrer_source'] = 20; $where['referrer_source'] = 20;
...@@ -348,9 +351,6 @@ class Client extends Basic ...@@ -348,9 +351,6 @@ class Client extends Basic
$data['data'][$k]['user_pic'] = HEADERIMGURL.$v['user_pic']; $data['data'][$k]['user_pic'] = HEADERIMGURL.$v['user_pic'];
} }
$data['status'] = 200; $data['status'] = 200;
} else {
$data['msg'] = 'id is null';
}
return $this->response($data['status'], $data['msg'], $data['data']); return $this->response($data['status'], $data['msg'], $data['data']);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment