Commit 3bb4b663 authored by hujun's avatar hujun

客户编辑

parent cdbb41df
...@@ -375,11 +375,12 @@ class Member extends Basic{ ...@@ -375,11 +375,12 @@ class Member extends Basic{
$agent_data = $agent->getAgentInfo('name,phone', $this->params['agents_id']); $agent_data = $agent->getAgentInfo('name,phone', $this->params['agents_id']);
$remark = '新增为' . $agent_data['name'] . '-' . $agent_data['phone']; $remark = '新增为' . $agent_data['name'] . '-' . $agent_data['phone'];
$result = $this->user->edit($this->params, $this->params['id'], $this->userId); //新增或编辑 $result = $this->user->edit($this->params, $this->params['id'], $this->userId); //新增或编辑
$this->operating_records($this->userId, $type=3, $remark, $this->params['id']); //记录日志
} else { } else {
$user_data = $this->user->getUserById('id,agent_id', $this->params['id']); $user_data = $this->user->getUserById('id,agent_id', $this->params['id']);
if (empty($user_data)) { if (empty($user_data)) {
return $this->response(101, '没有用户信息'); return $this->response(101, '没有用户信息');
} else { }
if (!empty($this->params['agents_id'])) { if (!empty($this->params['agents_id'])) {
//是否修改客方 //是否修改客方
...@@ -390,10 +391,10 @@ class Member extends Basic{ ...@@ -390,10 +391,10 @@ class Member extends Basic{
} else { } else {
$remark = '用户编辑'; $remark = '用户编辑';
} }
$result = $this->user->edit($this->params, $this->params['id'], $this->userId); //新增或编辑
$this->operating_records($this->userId, $type=3, $remark, $this->params['id']); //记录日志 $this->operating_records($this->userId, $type=3, $remark, $this->params['id']); //记录日志
} }
} $result = $this->user->edit($this->params, $this->params['id'], $this->userId); //新增或编辑
} }
switch ($result) { switch ($result) {
......
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