diff --git a/app/common/service/SysUpdateLogService.php b/app/common/service/SysUpdateLogService.php index 643b4f0..c93c350 100644 --- a/app/common/service/SysUpdateLogService.php +++ b/app/common/service/SysUpdateLogService.php @@ -40,9 +40,8 @@ class SysUpdateLogService $config = []; $config['model'] = $this->modelClass; switch ($scene) { - case 'default': - $config['order']['id'] = 'desc'; case 'index': + $config['order']['id'] = 'desc'; break; case 'show': $config['where']['id'] = $p['id'];