增加 推介 支付方式

This commit is contained in:
iVampireSP.com 2023-02-23 10:15:29 +08:00
parent 4d561310ab
commit c1dc76de10
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -8,19 +8,11 @@ class Payment extends Component
{
public ?string $payment = null;
/**
* Create a new component instance.
*
* @return void
*/
public function __construct(string|null $payment)
{
$this->payment = $payment;
}
/**
* Get the view / contents that represent the component.
*/
public function render(): string
{
$this->payment = match ($this->payment) {
@ -33,6 +25,7 @@ public function render(): string
'freeze' => '冻结',
'console' => '控制台',
'transfer' => '转账',
'affiliate' => '推介',
default => $this->payment,
};