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
whb
9 years ago
Commit
cd3e37d1db66c00405f6a35672142e005c90697e
1 parent
fafea4b7
修改navbanner
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
library/Action/WebAction.php
yohobuy/www.yohobuy.com/application/controllers/Common.php
yohobuy/www.yohobuy.com/application/models/Index/Home.php
library/Action/WebAction.php
View file @
cd3e37d
...
...
@@ -465,9 +465,10 @@ class WebAction extends Controller_Abstract
*/
protected
function
setWebNavHeader
(
$channel
=
''
)
{
// if(empty($channel)) {
// $channel = \Index\HomeModel::getSwitchChannel();
// }
//TODO
if
(
empty
(
$channel
))
{
$channel
=
\Index\HomeModel
::
getSwitchChannel
();
}
// else {//设置频道
// \Index\HomeModel::setSwitchToCookie($channel);
// }
...
...
yohobuy/www.yohobuy.com/application/controllers/Common.php
View file @
cd3e37d
...
...
@@ -5,6 +5,7 @@ use LibModels\Web\Home\IndexData;
use
Plugin\Cache
;
use
Configs\CacheConfig
;
use
Api\Yohobuy
;
use
Plugin\Images
;
class
CommonController
extends
WebAction
{
...
...
@@ -95,7 +96,6 @@ class CommonController extends WebAction
}
else
{
$data
=
json_decode
(
$data
,
true
);
$banner
=
''
;
if
(
isset
(
$data
[
'data'
][
0
][
'data'
]))
{
...
...
yohobuy/www.yohobuy.com/application/models/Index/Home.php
View file @
cd3e37d
...
...
@@ -62,6 +62,7 @@ class HomeModel
if
(
empty
(
$data
))
{
return
array
();
}
$menu
=
array
();
$key
=
sprintf
(
'%s_%s_%s'
,
CacheConfig
::
KEY_WEB_HOME_NAVBAR_DATA
,
md5
(
serialize
(
$data
)),
$channel
);
$menu
=
Cache
::
get
(
$key
);
...
...
Please
register
or
login
to post a comment