diff --git a/app/View/Components/Payment.php b/app/View/Components/Payment.php index 49ae90b..0879be8 100644 --- a/app/View/Components/Payment.php +++ b/app/View/Components/Payment.php @@ -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, };