作者 何书鹏
1 个管道 的构建 通过 耗费 2 秒

消息排序

... ... @@ -504,9 +504,10 @@ class HouseBoard extends Api
'house_user_id' => $wuye_user_id,
],
];
$order = ['createtime'=>'asc'];
$order = ['createtime'=>'desc'];
$comment = $model->pageSelect($page,$where_c,'*',$order,config('option.num'));
$list = $comment->items();
array_multisort(array_column($list,'createtime'),SORT_ASC,$list);
$user_model = new \app\api\model\User();
if(count($list) == 0) {
$first = [
... ...