Commit 6741514f authored by hujun's avatar hujun

1

parent 0426d9c0
...@@ -369,6 +369,7 @@ class Member extends Basic{ ...@@ -369,6 +369,7 @@ class Member extends Basic{
if ($this->request->isPost()) { if ($this->request->isPost()) {
//编辑用户 //编辑用户
$result = '';
if (empty($this->params['id'])) { if (empty($this->params['id'])) {
//新增用户 //新增用户
$where['user_phone'] = $this->params['user_phone']; $where['user_phone'] = $this->params['user_phone'];
...@@ -398,10 +399,6 @@ class Member extends Basic{ ...@@ -398,10 +399,6 @@ class Member extends Basic{
$result = $this->user->edit($this->params, $this->params['id']); //新增或编辑 $result = $this->user->edit($this->params, $this->params['id']); //新增或编辑
$this->operating_records($this->userId, $type=3, $remark, $this->params['id']); //记录日志 $this->operating_records($this->userId, $type=3, $remark, $this->params['id']); //记录日志
} }
} else {
$remark = '用户编辑';
}
$result = $this->user->edit($this->params, $this->params['id'], $this->userId); //新增或编辑
} }
} }
......
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