作者 lyh

gx

... ... @@ -73,6 +73,7 @@ class RoleLogic extends BaseLogic
$this->param['create_id'] = $this->user['id'];
$this->param['operator_id'] = $this->user['id'];
$this->param['project_id'] = $this->user['project_id'];
$this->param['type'] = 1;
//验证当前角色是否存在
$info = $this->model->read(['name'=>$this->param['name']]);
if($info !== false){
... ...