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
Plain Diff
Browse Files
Authored by
ccbikai
9 years ago
Commit
8830fb6f879368db066af0c3ce45fb52b3e813e8
2 parents
11c89eca
38c5458f
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/models/Index/Home.php
yohobuy/m.yohobuy.com/application/models/Product/Newsale.php
yohobuy/m.yohobuy.com/application/models/Index/Home.php
View file @
8830fb6
...
...
@@ -99,7 +99,7 @@ class HomeModel
// 调用接口获取数据
$banner
=
IndexData
::
getBannerStart
(
self
::
CODE_BG
);
if
(
isset
(
$banner
[
'data'
][
0
][
'data'
][
'list'
][
0
][
'src'
]))
{
$result
=
Helpers
::
getImageUrl
(
$banner
[
'data'
][
0
][
'data'
][
'list'
][
0
][
'src'
],
640
,
800
,
1
);
$result
=
Helpers
::
getImageUrl
(
$banner
[
'data'
][
0
][
'data'
][
'list'
][
0
][
'src'
],
640
,
800
,
2
);
}
if
(
USE_CACHE
)
{
...
...
yohobuy/m.yohobuy.com/application/models/Product/Newsale.php
View file @
8830fb6
...
...
@@ -217,7 +217,7 @@ class NewsaleModel
{
$result
=
array
();
if
(
isset
(
$data
[
'code'
])
&&
$data
[
'code'
]
===
200
)
{
if
(
isset
(
$data
[
'code'
])
&&
$data
[
'code'
]
===
200
&&
isset
(
$data
[
'data'
][
'product_list'
])
)
{
foreach
(
$data
[
'data'
][
'product_list'
]
as
$val
)
{
$result
[
'goods'
][]
=
Helpers
::
formatProduct
(
$val
,
true
,
false
,
false
,
299
,
388
);
}
...
...
Please
register
or
login
to post a comment