...
|
...
|
@@ -76,7 +76,7 @@ class DetailModel |
|
|
// 商品咨询和商品评价
|
|
|
$result['feedbacks'] = array();
|
|
|
if (!empty($baseInfo['consultBoWrapper'])) {
|
|
|
$result['feedbacks']['consultNum'] = $baseInfo['consultBoWrapper']['consultTotal'];
|
|
|
$result['feedbacks']['consultsNum'] = $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']['commentNum'] = $baseInfo['commentBoWrapper']['commentTotal'];
|
|
|
$result['feedbacks']['commentsNum'] = $baseInfo['commentBoWrapper']['commentTotal'];
|
|
|
$result['feedbacks']['comments'] = array();
|
|
|
$build = array();
|
|
|
foreach ($baseInfo['commentBoWrapper']['commentBoList'] as $value) {
|
...
|
...
|
@@ -301,7 +301,8 @@ class DetailModel |
|
|
'desc' => strtr($productIntro, array(
|
|
|
'\r\n\t' => '',
|
|
|
'</p>' => '',
|
|
|
'<img src=' => '<img class=\"lazy\" src=\"data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==\" data-original=',
|
|
|
'<br />' => "\r\n",
|
|
|
'<img src=' => "<img class=\"lazy\" src=\"data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==\" data-original=",
|
|
|
)),
|
|
|
);
|
|
|
}
|
...
|
...
|
@@ -312,4 +313,20 @@ class DetailModel |
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取评价列表
|
|
|
*/
|
|
|
public static function getComments()
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取咨询列表
|
|
|
*/
|
|
|
public static function getConsults()
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|