|
...
|
...
|
@@ -30,11 +30,6 @@ class UserLogic extends BaseLogic |
|
|
|
}
|
|
|
|
//密码加密
|
|
|
|
$this->param['password'] = base64_encode(md5($this->param['password']));
|
|
|
|
//上传头像
|
|
|
|
if(isset($this->param['image'])){
|
|
|
|
$data = $this->upload();
|
|
|
|
$this->param['image'] = $data['hash'];
|
|
|
|
}
|
|
|
|
$rs = $this->model->add($this->param);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error',Code::USER_ERROR);
|
|
...
|
...
|
@@ -55,11 +50,6 @@ class UserLogic extends BaseLogic |
|
|
|
if($info !== false){
|
|
|
|
$this->fail('当前编辑的手机号码已存在',Code::USER_PARAMS_ERROE);
|
|
|
|
}
|
|
|
|
//上传头像
|
|
|
|
if(isset($this->param['image'])){
|
|
|
|
$data = $this->upload();
|
|
|
|
$this->param['image'] = $data['hash'];
|
|
|
|
}
|
|
|
|
$this->param['operator_id'] = $this->user['id'];
|
|
|
|
$rs = $this->model->edits($this->param);
|
|
|
|
if($rs === false){
|
...
|
...
|
|