Skip to content

Commit

Permalink
添加厦门银行
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichao-poper committed Jul 12, 2019
1 parent 1387d9e commit 73e6b18
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/BankCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class BankCard
"XCYH" => "许昌银行",
"XJRCU" => "新疆农村信用社",
"XLBANK" => "中山小榄村镇银行",
"XMBANK" => "厦门银行",
"XTB" => "邢台银行",
"XXBANK" => "新乡银行",
"XYBANK" => "信阳银行",
Expand Down
11 changes: 10 additions & 1 deletion tests/TestBankCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
}
}

0 comments on commit 73e6b18

Please sign in to comment.