...
|
...
|
@@ -549,18 +549,19 @@ class DetailModel |
|
|
|
|
|
/**
|
|
|
* 获取咨询列表
|
|
|
*
|
|
|
*
|
|
|
* @param int $uid 用户ID
|
|
|
* @param int $productId 产品ID
|
|
|
* @param int $pageNum 页码数
|
|
|
* @param int $pageSize 每页显示个数
|
|
|
* @return array
|
|
|
*/
|
|
|
public static function getConsults($productId, $pageNum = 1, $pageSize = 300)
|
|
|
public static function getConsults($uid, $productId, $pageNum = 1, $pageSize = 300)
|
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
if (is_numeric($productId) && is_numeric($pageNum) && is_numeric($pageSize)) {
|
|
|
$consultList = DetailData::consultList($productId, $pageNum, $pageSize);
|
|
|
$consultList = DetailData::consultList($uid, $productId, $pageNum, $pageSize);
|
|
|
if (isset($consultList['code']) && $consultList['code'] === 200) {
|
|
|
$consultList = $consultList['data']['list'];
|
|
|
$build = array();
|
...
|
...
|
|