Authored by hf

do product detail page

... ... @@ -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) {
... ...
... ... @@ -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();
}
... ...