|
@@ -12,11 +12,11 @@ class Data extends Base
|
|
|
|
|
|
public function checkLogin()
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
if ($this->user) {
|
|
|
-
|
|
|
+
|
|
|
} else {
|
|
|
-
|
|
|
+ return $this->location('auth');
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -24,7 +24,7 @@ class Data extends Base
|
|
|
{
|
|
|
|
|
|
if ($this->user) {
|
|
|
- return $this->location('list');
|
|
|
+ return $this->location('home');
|
|
|
}
|
|
|
}
|
|
|
}
|