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
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
f61aada728a0d98f14dbed2d1b58e725d2a129ff
1 parent
490d1961
do product detail page
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Detail.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
f61aada
...
...
@@ -76,7 +76,7 @@ class DetailModel
// 商品咨询和商品评价
$result
[
'feedbacks'
]
=
array
();
if
(
!
empty
(
$baseInfo
[
'consultBoWrapper'
]))
{
$result
[
'feedbacks'
][
'consultsNum'
]
=
$baseInfo
[
'consultBoWrapper'
][
'consultTotal'
];
$result
[
'feedbacks'
][
'consultsNum'
]
=
'0'
;
//empty($baseInfo['consultBoWrapper']['consultTotal']) ? '0' :
$baseInfo['consultBoWrapper']['consultTotal'];
$result
[
'feedbacks'
][
'consults'
]
=
array
();
$build
=
array
();
foreach
(
$baseInfo
[
'consultBoWrapper'
][
'consultBoList'
]
as
$value
)
{
...
...
@@ -87,7 +87,7 @@ class DetailModel
}
}
if
(
!
empty
(
$baseInfo
[
'commentBoWrapper'
]))
{
$result
[
'feedbacks'
][
'commentsNum'
]
=
$baseInfo
[
'commentBoWrapper'
][
'commentTotal'
];
$result
[
'feedbacks'
][
'commentsNum'
]
=
'0'
;
//empty($baseInfo['commentBoWrapper']['commentTotal']) ? '0' :
$baseInfo['commentBoWrapper']['commentTotal'];
$result
[
'feedbacks'
][
'comments'
]
=
array
();
$build
=
array
();
foreach
(
$baseInfo
[
'commentBoWrapper'
][
'commentBoList'
]
as
$value
)
{
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Detail.php
View file @
f61aada
...
...
@@ -28,7 +28,7 @@ class DetailController extends AbstractAction
}
$uid
=
$this
->
getUid
();
$data
=
\Product\DetailModel
::
getBaseInfo
(
$productId
,
$goodsId
,
$uid
);
var_dump
(
$data
);
$data
=
\Product\DetailModel
::
getBaseInfo
(
$productId
,
$goodsId
,
$uid
);
if
(
array
()
===
$data
)
{
$this
->
error
();
}
...
...
Please
register
or
login
to post a comment