From 97edfe72539916a9a8f64580417acda906af05c9 Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Mon, 30 Jun 2025 17:29:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/application/job/WorkbenchMomentsJob.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/application/job/WorkbenchMomentsJob.php b/Server/application/job/WorkbenchMomentsJob.php index 0ca13e8e..36d46ec1 100644 --- a/Server/application/job/WorkbenchMomentsJob.php +++ b/Server/application/job/WorkbenchMomentsJob.php @@ -68,7 +68,8 @@ class WorkbenchMomentsJob { try { // 获取所有工作台 - $workbenches = Workbench::where(['status' => 1, 'type' => 2, 'isDel' => 0])->select(); + $workbenches = Workbench::where(['status' => 1, 'type' => 2, 'isDel' => 0])->order('id desc')->select(); + foreach ($workbenches as $workbench) { // 获取工作台配置 $config = WorkbenchMoments::where('workbenchId', $workbench->id)->find();