改进 状态处理
This commit is contained in:
parent
b6aeed7e78
commit
680b08bd73
@ -29,7 +29,9 @@ public function update(Request $request, Host $host)
|
|||||||
return $this->error('余额不足');
|
return $this->error('余额不足');
|
||||||
}
|
}
|
||||||
|
|
||||||
$host->update($request->only(['status']));
|
$host->update([
|
||||||
|
'status' => 'running'
|
||||||
|
]);
|
||||||
|
|
||||||
return $this->updated($host);
|
return $this->updated($host);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user