改进
This commit is contained in:
parent
727c1bf07d
commit
b7632c5153
@ -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());
|
||||
}
|
||||
}
|
||||
|
@ -201,7 +201,15 @@ public function isHourly(): 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(
|
||||
|
Loading…
Reference in New Issue
Block a user