Commit 2c6d9524 authored by hujun's avatar hujun

修改客方记录信息

parent 77df2bbe
......@@ -48,9 +48,18 @@ class Client extends Basic
$data = [];
if ($this->request->isPost()) {
if (!empty($this->params['id'])) {
//是否修改客方
if ($this->params['agents_id'] != $this->params['ccr_id']) {
$agent = new AAgents();
$agent_data = $agent->getAgentInfo('name,phone', $this->params['agents_id']);
$remark = '修改客方为'.$agent_data['name'].'-'.$agent_data['phone'];
} else {
$remark = '用户编辑';
}
//编辑
$data['start'] = $this->user->edit($this->params, $this->params['id']);
$this->operating_records($this->params['ccr_id'], $type=3, $remark='用户编辑',0,$this->params['id']);
$this->operating_records($this->params['ccr_id'], $type=3, $remark,0,$this->params['id']);
} else {
$table = new AAgents();
......
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