Authored by runner

consults total release

... ... @@ -142,7 +142,7 @@ class DetailModel
else {
// tar modified 201606141155 常見問題恢復
$result['feedbacks']['consults'] = array_slice(self::getCommonConsults()['commonConsults'], 0, 2);
$result['feedbacks']['consultsNum'] = 2; // 数字无意义,兼容原来的前端模板代码使用,不能为 0
$result['feedbacks']['consultsNum'] = '0'; // 数字无意义,兼容原来的前端模板代码使用,不能为 0
$result['feedbacks']['commonConsults'] = true; // 用来标记是否是常见问题的
$result['feedbacks']['consultsUrl'] = Helpers::url('/product/detail/consults', array('product_id' => $productId, 'total' => $result['feedbacks']['consultsNum']));
// $result['feedbacks']['consultsUrl'] = Helpers::url('/product/detail/consultform', array('product_id' => $productId));
... ...