Commit 9e93716f authored by hujun's avatar hujun

user_nick

parent b74bea83
...@@ -44,6 +44,10 @@ class Client extends Basic ...@@ -44,6 +44,10 @@ class Client extends Basic
public function editClient() { public function editClient() {
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
if (empty($this->params['user_name'])) {
$this->params['user_name'] = $this->params['user_nick'];
}
if (!empty($this->params['user_name']) || !empty($this->params['id'])) { if (!empty($this->params['user_name']) || !empty($this->params['id'])) {
$data = []; $data = [];
if ($this->request->isPost()) { if ($this->request->isPost()) {
...@@ -88,7 +92,7 @@ class Client extends Basic ...@@ -88,7 +92,7 @@ class Client extends Basic
} }
} else { } else {
$this->code = 101; $this->code = 101;
$this->msg = 'user_name or user_phone or id is null'; $this->msg = 'user_name or id is null';
} }
return $this->response($this->code, $this->msg,$data); return $this->response($this->code, $this->msg,$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