Commit 69bcad24 authored by zfc's avatar zfc

添加客户提示修改

parent dd71bf6a
......@@ -52,20 +52,16 @@ class Client extends Basic
} else {
//添加
$data['start'] = $this->user->edit($this->params);
if ($data['start'] == -1) {
if ($data['start'] != 1) {
$this->code = 101;
$this->msg = '该用户已存在';
}
if($data['start']==1){
$this->msg = '该客户手机号已存在于系统内';
}else{
$data['id']= $this->user->id;
$this->operating_records($this->params['ccr_id'], $type=3, $remark='用户添加',0,$data['id']);
}else{
$this->code = 101;
$this->msg = '提交重复!';
}
}
} else {
$data['start'] = $this->user->getClient($this->params['id']);
......
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