| xqd
@@ -83,9 +83,13 @@ class SpecialReply extends ModelBasic
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
- public static function getSpecialReplyList($special_id, $page = 0, $limit = 8, $order = 'All')
|
|
|
+ public static function getSpecialReplyList($special_id, $page = 0, $limit = 8, $order = 'All', $uid = 0)
|
|
|
{
|
|
|
- $model = self::specialValidWhere('A')->where('A.special_id', $special_id)
|
|
|
+ $where['A.special_id'] = $special_id;
|
|
|
+ if ($uid) {
|
|
|
+ $where['A.uid'] = $uid;
|
|
|
+ }
|
|
|
+ $model = self::specialValidWhere('A')->where($where)
|
|
|
->field('A.satisfied_score,A.comment,A.pics,A.add_time,A.merchant_reply_content,S.title,A.is_selected,A.uid,A.id')
|
|
|
->join('__SPECIAL__ S', 'A.special_id = S.id');
|
|
|
$baseOrder = 'A.is_selected DESC,A.add_time DESC,A.satisfied_score DESC';
|