Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
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
Plain Diff
Browse Files
Authored by
xuqi
2015-10-23 20:29:58 +0800
Commit
450413d7cd72aebce2a19fc61fa619cc074003a0
2 parents
a4838608
f0282941
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
9 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/models/Product/Newsale.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
yohobuy/m.yohobuy.com/application/models/Product/Newsale.php
View file @
450413d
...
...
@@ -206,7 +206,7 @@ class NewsaleModel
*/
public
static
function
selectData
(
$data
)
{
$result
=
array
(
'goods'
=>
array
()
);
$result
=
array
();
if
(
isset
(
$data
[
'code'
])
&&
$data
[
'code'
]
===
200
)
{
foreach
(
$data
[
'data'
][
'product_list'
]
as
$val
)
{
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
View file @
450413d
...
...
@@ -141,7 +141,14 @@ class NewsaleController extends AbstractAction
);
$result
=
\Product\NewsaleModel
::
selectData
(
$data
);
$this
->
_view
->
display
(
'product'
,
$result
);
if
(
empty
(
$result
))
{
echo
' '
;
}
else
{
$this
->
_view
->
display
(
'product'
,
$result
);
}
}
else
{
echo
' '
;
}
...
...
Please
register
or
login
to post a comment