改进 调试日志

This commit is contained in:
iVampireSP.com 2023-01-27 23:36:50 +08:00
parent fbc93989d8
commit 99ee8ecd9a
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -39,6 +39,7 @@ public function handle(): void
$response = $host->module->baseRequest('get', 'hosts/' . $host->id);
if ($response['status'] === 200) {
Log::debug($host->module->name . ' ' . $host->name . ' ' . $host->id . ' 更新成功。', $response['json']);
$host->update(Arr::except($response['json'], ['id', 'user_id', 'module_id', 'created_at', 'updated_at']));
} else if ($response['status'] === 404) {
if ($host->status !== 'unavailable') {