Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
9c6dc1e900d289a40a879323693835548b12f43b
2 parents
f147c448
1019cf46
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into feature/cart
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
yohobuy/m.yohobuy.com/application/models/Index/Home.php
yohobuy/m.yohobuy.com/application/models/Index/Home.php
View file @
9c6dc1e
...
...
@@ -99,7 +99,11 @@ class HomeModel
// 调用接口获取数据
$banner
=
IndexData
::
getBannerStart
(
self
::
CODE_BG
);
if
(
isset
(
$banner
[
'code'
])
&&
$banner
[
'code'
]
==
200
&&
!
empty
(
$banner
[
'data'
]))
{
$result
=
Helpers
::
getImageUrl
(
$banner
[
'data'
][
0
][
'data'
][
'list'
][
0
][
'src'
],
640
,
800
,
2
);
$imgArr
=
$banner
[
'data'
][
0
][
'data'
];
if
(
isset
(
$banner
[
'data'
][
0
][
'data'
][
'list'
]))
{
$imgArr
=
$banner
[
'data'
][
0
][
'data'
][
'list'
];
}
$result
=
Helpers
::
getImageUrl
(
$imgArr
[
0
][
'src'
],
640
,
800
,
2
);
}
if
(
USE_CACHE
)
{
...
...
Please
register
or
login
to post a comment