正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -504,9 +504,10 @@ class HouseBoard extends Api | @@ -504,9 +504,10 @@ class HouseBoard extends Api | ||
504 | 'house_user_id' => $wuye_user_id, | 504 | 'house_user_id' => $wuye_user_id, |
505 | ], | 505 | ], |
506 | ]; | 506 | ]; |
507 | - $order = ['createtime'=>'asc']; | 507 | + $order = ['createtime'=>'desc']; |
508 | $comment = $model->pageSelect($page,$where_c,'*',$order,config('option.num')); | 508 | $comment = $model->pageSelect($page,$where_c,'*',$order,config('option.num')); |
509 | $list = $comment->items(); | 509 | $list = $comment->items(); |
510 | + array_multisort(array_column($list,'createtime'),SORT_ASC,$list); | ||
510 | $user_model = new \app\api\model\User(); | 511 | $user_model = new \app\api\model\User(); |
511 | if(count($list) == 0) { | 512 | if(count($list) == 0) { |
512 | $first = [ | 513 | $first = [ |
-
请 注册 或 登录 后发表评论