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
a6a3e66a1c28eade15e956008571f061753a2553
1 parent
eb60f2ee
fixes bug refs YW-905 YW864
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
framework
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Index.php
framework
@
75bbc3b0
Subproject commit
119c247f5cf929aa1e059e40609bb16dd6b58f05
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Index.php
View file @
a6a3e66
...
...
@@ -23,7 +23,7 @@ class IndexController extends AbstractAction
$uid
=
$this
->
getUid
();
$udid
=
$this
->
getUdid
();
$type
=
$this
->
get
(
'id'
,
0
);
$gender
=
$this
->
get
(
'gender'
,
'1,2,3'
);
if
(
is_string
(
$gender
))
{
...
...
@@ -73,7 +73,7 @@ class IndexController extends AbstractAction
// 从Cookie获取
else
{
$gender
=
Helpers
::
getGenderByCookie
();
$this
->
setNavHeader
(
$tag
,
true
,
SITE_MAIN
);
}
...
...
@@ -116,13 +116,6 @@ class IndexController extends AbstractAction
$id
=
$this
->
get
(
'id'
);
$channel
=
$this
->
get
(
'yh_channel'
);
// 获取作者信息
$author
=
ListData
::
author
(
$id
);
// 作者信息不存在,则跳到错误页面
if
(
!
isset
(
$author
[
'name'
]))
{
$this
->
error
();
}
// 标识是不是APP客户端
$isApp
=
is_numeric
(
$channel
);
// APP访问时通过频道参数判断性别
...
...
@@ -141,10 +134,17 @@ class IndexController extends AbstractAction
// 从Cookie获取
else
{
$gender
=
Helpers
::
getGenderByCookie
();
$this
->
setNavHeader
(
'编辑简介'
,
true
,
SITE_MAIN
);
}
// 获取作者信息
$author
=
ListData
::
author
(
$id
);
// 作者信息不存在,则跳到错误页面
if
(
!
isset
(
$author
[
'name'
]))
{
$this
->
error
();
}
$this
->
setTitle
(
'编辑简介'
);
$uid
=
$this
->
getUid
();
...
...
@@ -171,7 +171,7 @@ class IndexController extends AbstractAction
}
$data
[
'guang'
][
'infos'
]
=
$build
;
}
$data
[
'guang'
][
'gender'
]
=
$gender
;
$data
[
'guang'
][
'isApp'
]
=
$isApp
?
1
:
0
;
...
...
@@ -236,7 +236,6 @@ class IndexController extends AbstractAction
$this
->
_view
->
display
(
'page'
,
$data
);
exit
();
}
while
(
false
);
echo
' '
;
...
...
Please
register
or
login
to post a comment