dever 7 years ago
parent
commit
70477b3154
2 changed files with 13 additions and 3 deletions
  1. 13 1
      src/Auth.php
  2. 0 2
      template/default/inc/nav.php

+ 13 - 1
src/Auth.php

@@ -448,8 +448,20 @@ class Auth
     {
         if ($info) {
             $info['key'] = explode('_', $info['key']);
+            $count = count($info['key']);
+            if ($count > 2) {
+                foreach ($info['key'] as $k => $v) {
+                    if ($k+1 < $count) {
+                        $key[] = $v;
+                    }
+                }
+                $key = implode('_', $key);
+            } else {
+                $key = $info['key'][0];
+            }
+
 
-            $this->save->add($this->name . '_topgetv1_' . $info['key'][0], $info, 3600 * 24 * 365);
+            $this->save->add($this->name . '_topgetv1_' . $key, $info, 3600 * 24 * 365);
         }
     }
 

+ 0 - 2
template/default/inc/nav.php

@@ -23,7 +23,6 @@ $view
 
 ->fetch('.auth-top@style', 'display:none')
 # 项目列表
-/*
 ->loop
 (
     '.auth-top',
@@ -47,7 +46,6 @@ $view
         ),
 	)
 )
-*/
 
 # display
 ->display();