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 {
if (! $this->host->isHourly() && ! $this->host->isNextMonthCancel() && ! $this->host->isTrial()) {
if (! $this->host->isNextMonthCancel() && ! $this->host->isTrial()) {
$this->host->cost($this->host->getPrice());
}
}

View File

@ -201,9 +201,17 @@ public function isHourly(): bool
public function isNextMonthCancel(): bool
{
if ($this->isHourly()) {
return false;
}
if ($this->isMonthly()) {
return $this->cancel_at_period_end;
}
return false;
}
public function cost(
string $amount = null, $auto = true, $description = null
): bool {