Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
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
Rock Zhang
9 years ago
Commit
942163b0d71bcb74478a53c123252d495910724d
1 parent
aab81f16
修复各频道首页底部banner的banner报错的bug
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/models/Index/Home.php
yohobuy/m.yohobuy.com/application/models/Index/Home.php
View file @
942163b
...
...
@@ -142,10 +142,10 @@ class HomeModel
// 调用接口获取数据
$banner
=
IndexData
::
getBannerStart
(
$resource
);
if
(
isset
(
$banner
[
'code'
])
&&
$banner
[
'code'
]
==
200
)
{
if
(
isset
(
$banner
[
'code'
])
&&
$banner
[
'code'
]
==
200
&&
$banner
[
'data'
][
'total'
]
>
0
)
{
$result
=
array
();
// 处理数据
foreach
(
$banner
[
'data'
]
as
$val
)
{
foreach
(
$banner
[
'data'
]
[
'list'
]
as
$val
)
{
foreach
(
$val
[
'data'
]
as
$single
)
{
$result
[
'url'
]
=
(
$channel
===
2
)
?
Helpers
::
url
(
'/boys'
)
:
Helpers
::
url
(
'/girls'
);
$result
[
'img'
]
=
Helpers
::
getImageUrl
(
$single
[
'src'
],
640
,
200
);
...
...
Please
register
or
login
to post a comment