This commit is contained in:
iVampireSP.com 2023-03-08 00:53:59 +08:00
parent 727c1bf07d
commit b7632c5153
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 10 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public function handle(): void
}); });
}); });
} else { } else {
if (! $this->host->isHourly() && ! $this->host->isNextMonthCancel() && ! $this->host->isTrial()) { if (! $this->host->isNextMonthCancel() && ! $this->host->isTrial()) {
$this->host->cost($this->host->getPrice()); $this->host->cost($this->host->getPrice());
} }
} }

View File

@ -201,7 +201,15 @@ public function isHourly(): bool
public function isNextMonthCancel(): bool public function isNextMonthCancel(): bool
{ {
return $this->cancel_at_period_end; if ($this->isHourly()) {
return false;
}
if ($this->isMonthly()) {
return $this->cancel_at_period_end;
}
return false;
} }
public function cost( public function cost(