Commit ff9215c7 authored by hujun's avatar hujun

接口key修改

parent 05cd6b1c
...@@ -138,7 +138,7 @@ class Agent extends Basic ...@@ -138,7 +138,7 @@ class Agent extends Basic
$data['create_time'] = date( 'Y-m-d H:i:s',time()); $data['create_time'] = date( 'Y-m-d H:i:s',time());
$data['update_time'] = date( 'Y-m-d H:i:s',time()); $data['update_time'] = date( 'Y-m-d H:i:s',time());
$id = 0; $id = 0;
$data['password'] = md5(substr($this->params['password'], -6)); //默认号码后6位 $data['password'] = md5(substr($this->params['phone'], -6)); //默认号码后6位
$data['auth_group_id'] = 5; $data['auth_group_id'] = 5;
} else { } else {
$data['update_time'] = date( 'Y-m-d H:i:s',time()); $data['update_time'] = date( 'Y-m-d H:i:s',time());
...@@ -160,7 +160,7 @@ class Agent extends Basic ...@@ -160,7 +160,7 @@ class Agent extends Basic
$data['admin_off'] = $this->params['admin_off']; $data['admin_off'] = $this->params['admin_off'];
$data['sex'] = $this->params['sex']; $data['sex'] = $this->params['sex'];
$data['remarks'] = $this->params['remarks']; $data['remarks'] = $this->params['remarks'];
if ($m_agent->editData($data, $id)) { if ($m_agent->editData($data, $id)) {
return $this->response(200, '成功'); return $this->response(200, '成功');
} else { } else {
......
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