改进 调试日志
This commit is contained in:
parent
fbc93989d8
commit
99ee8ecd9a
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user