From c75249cc3195d6e85c3955e8112030d543264915 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sat, 3 Sep 2022 14:08:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Jobs/Remote/FetchModule.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Jobs/Remote/FetchModule.php b/app/Jobs/Remote/FetchModule.php index 2c0d77d..6667391 100644 --- a/app/Jobs/Remote/FetchModule.php +++ b/app/Jobs/Remote/FetchModule.php @@ -67,12 +67,14 @@ public function handle() // 只保留 name, status $servers = array_merge($servers, array_map(function ($server) use ($module) { return [ - 'module_id' => $module->id, - 'module_name' => $module->name, 'name' => $server['name'], 'status' => $server['status'], 'created_at' => $server['created_at'] ?? now(), 'updated_at' => $server['updated_at'] ?? now(), + 'module' => [ + 'id' => $module->id, + 'name' => $module->name, + ] ]; }, $json['data']['servers'])); }