From c1dc76de10a0d56197436d9d5f9c702002ca1060 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Thu, 23 Feb 2023 10:15:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E6=8E=A8=E4=BB=8B=20?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/View/Components/Payment.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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, };