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
yangyang
9 years ago
Commit
ca5ce744c3b3e9e88ede90c9cd49684583f2db13
1 parent
006a9d94
code by view zhangzheng
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/models/Index/Home.php
yohobuy/m.yohobuy.com/application/models/Index/Home.php
View file @
ca5ce74
...
...
@@ -329,7 +329,6 @@ class HomeModel
public
static
function
getChannel
()
{
$result
=
array
();
if
(
USE_CACHE
)
{
$key
=
CacheConfig
::
KEY_ACTION_INDEX_CONFIG
;
// 先尝试获取一级缓存(master), 有数据则直接返回.
...
...
@@ -340,6 +339,7 @@ class HomeModel
}
$data
=
IndexData
::
channelData
();
if
(
!
empty
(
$data
[
'data'
][
'list'
]))
{
$build
=
array
();
foreach
(
$data
[
'data'
][
'list'
]
as
$value
)
{
...
...
@@ -372,7 +372,9 @@ class HomeModel
default
:
continue
;
}
$result
[
'channelList'
][]
=
$build
;
if
(
!
empty
(
$build
))
{
$result
[
'channelList'
][]
=
$build
;
}
}
}
...
...
Please
register
or
login
to post a comment