|
|
@ -15,6 +15,11 @@ Class SiteController extends Controller { |
|
|
|
|
|
|
|
|
|
|
|
//如果没有开启多用户支持,或者当前用户不为空 |
|
|
|
//如果没有开启多用户支持,或者当前用户不为空 |
|
|
|
if (empty(FSC::$app['config']['multipleUserUriParse']) || !empty(FSC::$app['user_id'])) { |
|
|
|
if (empty(FSC::$app['config']['multipleUserUriParse']) || !empty(FSC::$app['user_id'])) { |
|
|
|
|
|
|
|
if (!empty(FSC::$app['user_id']) && Common::existCurrentUser() == false) { |
|
|
|
|
|
|
|
$user_id = FSC::$app['user_id']; |
|
|
|
|
|
|
|
throw new Exception("你要访问的用户 {$user_id} 收藏夹不存在!", 404); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return $this->renderFavVideos(); |
|
|
|
return $this->renderFavVideos(); |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
return $this->renderTajianIndex(); |
|
|
|
return $this->renderTajianIndex(); |
|
|
|