|
@@ -65,10 +65,12 @@ class Top
|
|
|
$child = Dever::db('manage/top')->child();
|
|
|
|
|
|
foreach ($top as $k => $v) {
|
|
|
+ /*
|
|
|
if ($auth && strpos($auth, $k . '_') === false) {
|
|
|
unset($top[$k]);
|
|
|
continue;
|
|
|
}
|
|
|
+ */
|
|
|
|
|
|
if (isset($child[$v['id']])) {
|
|
|
# 如果已经保存了,就直接取出来吧
|
|
@@ -79,6 +81,7 @@ class Top
|
|
|
|
|
|
$c = 0;
|
|
|
foreach ($child[$v['id']] as $i => $j) {
|
|
|
+ $i = str_replace('/', '-', $i);
|
|
|
if (($auth && strpos($auth, $i) === false) || ($info && $info['id'] == $j['id'])) {
|
|
|
|
|
|
} elseif (!$info && $c == 0) {
|