更新详情接口
This commit is contained in:
parent
30bbd98960
commit
70875e730b
@ -327,12 +327,6 @@ class CommunityRepository extends BaseRepository
|
|||||||
$data['care_count'] = $merInfo['care_count'];
|
$data['care_count'] = $merInfo['care_count'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($data['is_type'] == 2) {
|
|
||||||
$prevId = Db::name('community')->where('community_id', '<', $id)->where('is_type', 2)->order('community_id', 'desc')->value('community_id', 0);
|
|
||||||
$nextId = Db::name('community')->where('community_id', '>', $id)->where('is_type', 2)->order('community_id', 'asc')->value('community_id', 0);
|
|
||||||
$data['prev_id'] = $prevId;
|
|
||||||
$data['next_id'] = $nextId;
|
|
||||||
}
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user