Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
b273cbb15ff562e8d4e86eb0ce39a09570c50486
1 parent
4f91fbf1
男首问题
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
library/Action/WebAction.php
library/WebPlugin/DataProcess/Process.php
library/Action/WebAction.php
View file @
b273cbb
...
...
@@ -465,12 +465,10 @@ class WebAction extends Controller_Abstract
*/
protected
function
setWebNavHeader
(
$channel
=
''
)
{
//TODO
if
(
empty
(
$channel
))
{
$channel
=
\Index\HomeModel
::
getSwitchChannel
();
}
else
{
//设置频道
\Index\HomeModel
::
setSwitchToCookie
(
$channel
);
if
(
!
empty
(
$channel
))
{
//设置频道
\Index\HomeModel
::
setSwitchToCookie
(
$channel
);
}
else
{
$channel
=
\Index\HomeModel
::
getSwitchChannel
();
}
$header
=
array
(
'navbars'
=>
\Index\HomeModel
::
getNavBars
(
$channel
),
...
...
library/WebPlugin/DataProcess/Process.php
View file @
b273cbb
...
...
@@ -60,7 +60,11 @@ class Process
'name'
=>
$val
[
'name'
]
);
}
foreach
(
$data
[
'menuNav'
][
'blocks'
]
as
$val
)
{
$len
=
count
(
$data
[
'menuNav'
][
'blocks'
]);
foreach
(
$data
[
'menuNav'
][
'blocks'
]
as
$key
=>
$val
)
{
if
(
$len
<=
2
&&
$key
==
0
)
{
$val
[
'img'
]
=
Images
::
getImageUrl
(
$val
[
'img'
],
185
,
152
,
1
);
}
$val
[
'img'
]
=
Images
::
getImageUrl
(
$val
[
'img'
],
185
,
76
,
1
);
$val
[
'url'
]
=
Helpers
::
transUrl
(
$val
[
'url'
],
$type
);
$temp
[
'tplrecommend'
][
'keyword'
][]
=
array
(
...
...
Please
register
or
login
to post a comment