Authored by hf

do modify product detail page call comments list api to old

@@ -67,7 +67,7 @@ class DetailData @@ -67,7 +67,7 @@ class DetailData
67 public static function consultList($productId, $pageNum, $pageSize) 67 public static function consultList($productId, $pageNum, $pageSize)
68 { 68 {
69 $param = Yohobuy::param(); 69 $param = Yohobuy::param();
70 - $param['method'] = 'app.comment.li'; 70 + $param['method'] = 'h5.consult.li';
71 $param['product_id'] = $productId; 71 $param['product_id'] = $productId;
72 $param['page'] = $pageNum; 72 $param['page'] = $pageNum;
73 $param['limit'] = $pageSize; 73 $param['limit'] = $pageSize;
@@ -87,7 +87,15 @@ class DetailData @@ -87,7 +87,15 @@ class DetailData
87 */ 87 */
88 public static function commentList($productId, $pageNum, $pageSize) 88 public static function commentList($productId, $pageNum, $pageSize)
89 { 89 {
90 - // 暂未提供提口 90 + $param = Yohobuy::param();
  91 + $param['method'] = 'app.comment.li';
  92 + $param['product_id'] = $productId;
  93 + $param['page'] = $pageNum;
  94 + $param['limit'] = $pageSize;
  95 + $param['client_secret'] = Sign::getSign($param);
  96 +
  97 +
  98 + return Yohobuy::get(Yohobuy::API_URL, $param);
91 } 99 }
92 100
93 /** 101 /**