优化 Menu.php getAuthRulePK 方法

pull/24/head
Amor 2017-11-20 16:20:27 +08:00
parent 732dd19efd
commit 8e29c5f9c7
1 changed files with 1 additions and 2 deletions

View File

@ -277,12 +277,11 @@ class Menu extends Command
protected function getAuthRulePK($name) {
if (!empty($name))
{
$PK = $this->model
return $this->model
->where('name', $name)
->value('id');
}
return $PK;
}
}