...
|
...
|
@@ -571,9 +571,9 @@ class DetailModel |
|
|
$build['answer'] = $value['answer'];
|
|
|
$build['id'] = $value['id'];
|
|
|
$build['isLike'] = $value['is_like'] === 'Y';
|
|
|
$build['like'] = $value['like'];
|
|
|
$build['like'] = intval($value['like']);
|
|
|
$build['isUseful'] = $value['is_useful'] === 'Y';
|
|
|
$build['useful'] = $value['useful'];
|
|
|
$build['useful'] = intval($value['useful']);
|
|
|
$result[] = $build;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -584,6 +584,24 @@ class DetailModel |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取常见问题列表
|
|
|
*
|
|
|
* @return array
|
|
|
*/
|
|
|
public static function getCommonConsults()
|
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
$consults = DetailData::commonConsultList();
|
|
|
if (isset($consults['code']) && $consults['code'] === 200) {
|
|
|
$result['commonConsults'] = $consults['data'];
|
|
|
$consults = array();
|
|
|
}
|
|
|
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 咨询点赞
|
|
|
*
|
|
|
* @param int $uid 用户ID
|
...
|
...
|
|