作者 lyh

gx

... ... @@ -77,11 +77,6 @@ class RoleLogic extends BaseLogic
$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){
$this->fail('当前添加的角色已存在');
}
$rs = $this->model->add($this->param);
if($rs === false){
$this->fail('添加失败');
... ...