Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
2015-10-23 20:26:07 +0800
Commit
6346e7c9e8e1a9e852031e024f98101e15d391a4
1 parent
640e7d57
修复新品到着、折扣专区选择接口不能返回数据的bug
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 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 @
6346e7c
...
...
@@ -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 @
6346e7c
...
...
@@ -141,7 +141,14 @@ class NewsaleController extends AbstractAction
);
$result
=
\Product\NewsaleModel
::
selectData
(
$data
);
if
(
empty
(
$result
))
{
echo
' '
;
}
else
{
$this
->
_view
->
display
(
'product'
,
$result
);
}
}
else
{
echo
' '
;
}
...
...
Please
register
or
login
to post a comment