作者 Karson

--no commit message

... ... @@ -219,7 +219,7 @@ class Auth extends \fast\Auth
{
if (stripos($k, '/') === false)
{
$url = '/admin/' . $k;
$url = '/' . $this->request->module() . '/' . $k;
}
else
{
... ... @@ -250,6 +250,7 @@ class Auth extends \fast\Auth
$select_id = 0;
$dashboard = rtrim(url('dashboard/'), '/');
$dashboard = stripos($dashboard, 'index.php') !== FALSE ? substr($dashboard, stripos($dashboard, 'index.php') + 9) : $dashboard;
// 必须将结果集转换为数组
$ruleList = collection(model('AuthRule')->where('ismenu', 1)->order('weigh', 'desc')->cache("__menu__")->select())->toArray();
foreach ($ruleList as $k => &$v)
... ...