Authored by runner

consults total release

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