|
...
|
...
|
@@ -48,10 +48,7 @@ class UserLogic extends BaseLogic |
|
|
|
$this->param['create_id'] = $this->user['id'];
|
|
|
|
$this->param['operator_id'] = $this->user['id'];
|
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
//上传图片
|
|
|
|
if(isset($this->param['image'])){
|
|
|
|
$this->param['image'] = $this->upload();
|
|
|
|
}
|
|
|
|
$this->param['type'] = 1;
|
|
|
|
//密码加密
|
|
|
|
$this->param['password'] = base64_encode(md5($this->param['password']));
|
|
|
|
$rs = $this->model->add($this->param);
|
|
...
|
...
|
@@ -77,16 +74,9 @@ class UserLogic extends BaseLogic |
|
|
|
if($info !== false){
|
|
|
|
$this->fail('当前编辑的手机号码已存在');
|
|
|
|
}
|
|
|
|
$this->param['type'] = 1;
|
|
|
|
$this->param['operator_id'] = $this->user['id'];
|
|
|
|
try {
|
|
|
|
//上传图片
|
|
|
|
if(isset($this->param['image']) && is_file($this->param['image'])){
|
|
|
|
$this->param['image'] = $this->upload();
|
|
|
|
}
|
|
|
|
$this->edits($this->param);
|
|
|
|
}catch (\exception $e){
|
|
|
|
$this->fail('参数错误或其他服务器原因,编辑失败');
|
|
|
|
}
|
|
|
|
$this->edits($this->param);
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|