diff --git a/src/BankCard.php b/src/BankCard.php index 2f7ce42..2d80b48 100644 --- a/src/BankCard.php +++ b/src/BankCard.php @@ -161,6 +161,7 @@ class BankCard "XCYH" => "许昌银行", "XJRCU" => "新疆农村信用社", "XLBANK" => "中山小榄村镇银行", + "XMBANK" => "厦门银行", "XTB" => "邢台银行", "XXBANK" => "新乡银行", "XYBANK" => "信阳银行", diff --git a/tests/TestBankCard.php b/tests/TestBankCard.php index 8842a96..2edac94 100644 --- a/tests/TestBankCard.php +++ b/tests/TestBankCard.php @@ -27,10 +27,19 @@ public function testBankCardInfo() 'cardTypeName' => '储蓄卡', ], BankCard::info('6217921400000000')); + $this->assertEquals([ + 'validated' => true, + 'bank' => 'XMBANK', + 'bankName' => '厦门银行', + 'bankImg' => 'https://apimg.alipay.com/combo.png?d=cashier&t=XMBANK', + 'cardType' => 'DC', + 'cardTypeName' => '储蓄卡', + ], BankCard::info('6230195920060310000')); + $this->assertEquals([ 'validated' => false ], BankCard::info('4402905009100000')); $this->assertEquals('https://apimg.alipay.com/combo.png?d=cashier&t=ABC', BankCard::getBankImg('ABC')); } -} \ No newline at end of file +}