Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
07c3ff89e6439eee651cc22ed5a17a70621c9b6b
1 parent
1b40ab4f
do modify detail page show tags and home page support test uid
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
yohobuy/m.yohobuy.com/application/controllers/Home.php
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
07c3ff8
...
...
@@ -27,7 +27,12 @@ class HomeController extends AbstractAction
public
function
init
()
{
// 检查用户是否登录, 未登录则跳转到登录页
$uid
=
8826435
;
//$this->getUid(true);
// @todo 为了方便测试,支持传uid参数
$uid
=
$this
->
getUid
();
if
(
!
$uid
)
{
$uid
=
$this
->
_uid
=
$this
->
get
(
'uid'
,
8826435
);
//$this->getUid(true);
}
$action
=
$this
->
getRequest
()
->
getActionName
();
if
(
!
$uid
&&
$action
!==
'index'
)
{
$this
->
go
(
Helpers
::
url
(
'/signin.html'
));
...
...
Please
register
or
login
to post a comment