From 30aa199a6107a2d1b66eb02127178defca74a0a5 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Tue, 30 Aug 2022 14:36:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E9=99=A4=E6=9A=82=E5=81=9C=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E6=81=A2=E5=A4=8D=E4=B8=BB=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Host.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Models/Host.php b/app/Models/Host.php index a74f482..b26825b 100644 --- a/app/Models/Host.php +++ b/app/Models/Host.php @@ -115,6 +115,10 @@ public function cost($price = null) $this->update([ 'status' => 'suspended', ]); + } else if ($this->status == 'suspended') { + $this->update([ + 'status' => 'running', + ]); } return true;