diff --git a/app/user/controller/CenterController.php b/app/user/controller/CenterController.php index 0f61e11..fa74182 100644 --- a/app/user/controller/CenterController.php +++ b/app/user/controller/CenterController.php @@ -365,7 +365,7 @@ class CenterController extends HomeBaseController } else { $title = '积分使用记录'; } - $log = Db::name('zj_integral_log')->where(['uid' => session('user.id'), 'type' => $type])->select(); + $log = Db::name('zj_integral_log')->where(['uid' => session('user.id'), 'type' => $type])->order('create_time DESC')->select(); return $this->fetch('integral_log', [ 'log' => $log, 'title' => $title