改进 状态处理

This commit is contained in:
iVampireSP.com 2022-09-05 13:59:30 +08:00
parent b6aeed7e78
commit 680b08bd73
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -29,7 +29,9 @@ public function update(Request $request, Host $host)
return $this->error('余额不足');
}
$host->update($request->only(['status']));
$host->update([
'status' => 'running'
]);
return $this->updated($host);
} else {