Browse Source

change default link after login and register

master
filesite 7 months ago
parent
commit
071f132fb3
  1. 4
      themes/tajian/controller/SiteController.php

4
themes/tajian/controller/SiteController.php

@ -385,7 +385,7 @@ Class SiteController extends Controller {
//判断是否已经登录 //判断是否已经登录
$loginedUser = Common::getUserFromSession(); $loginedUser = Common::getUserFromSession();
if (!empty($loginedUser['username'])) { if (!empty($loginedUser['username'])) {
$shareUrl = "/{$loginedUser['username']}/"; $shareUrl = "/{$loginedUser['username']}/my/";
return $this->redirect($shareUrl); return $this->redirect($shareUrl);
} }
@ -404,7 +404,7 @@ Class SiteController extends Controller {
//判断是否已经登录 //判断是否已经登录
$loginedUser = Common::getUserFromSession(); $loginedUser = Common::getUserFromSession();
if (!empty($loginedUser['username'])) { if (!empty($loginedUser['username'])) {
$shareUrl = "/{$loginedUser['username']}/"; $shareUrl = "/{$loginedUser['username']}/my/share/";
return $this->redirect($shareUrl); return $this->redirect($shareUrl);
} }

Loading…
Cancel
Save