zhuzhichao / bank-card-info Goto Github PK
View Code? Open in Web Editor NEW获取银行卡号的归属信息
Home Page: https://packagist.org/packages/zhuzhichao/bank-card-info
获取银行卡号的归属信息
Home Page: https://packagist.org/packages/zhuzhichao/bank-card-info
请求API接口的代码,希望能够增加超时设置或建议改用guzzle设置timeout。
项目中,出现了在香港的服务器调用接口长时间无响应的情况。由于代码中并未对请求配置超时,所以会导致流程卡在file_get_contents。(国内服务器调用正常)
万一该接口下线或者做了其他的改动,所有使用这个包的服务是不是全挂了???
这个其实很简单,直接使用 银行卡的bin号查询就可以了
有些银行名称无法识别
弄错了,是可以用的。
"ADBC" => "**农业发展银行",
"PBOC" => "**人民银行"
对,就是这两个,验证一下,支持作者,哈哈
"data": {
"validated": true,
"bank": "XJRCU",
"bankName": "",
"bankImg": "https://apimg.alipay.com/combo.png?d=cashier&t=XJRCU",
"cardType": "DC",
"cardTypeName": "储蓄卡"
}
"NYNB" => "广东南粤银行",
"NYBANK" => "广东南粤银行",
另外,可以在获取银行名称的地方 self::$bankInfo[$result->bank] 增加isset 判断吗,现在没有就直接抛异常了。
https://apimg.alipay.com/combo.png?d=cashier&t=ABC
请教一下是否有办法单独获取logo,不带银行名称?
获取到的银行logo不清晰 ,请问这个怎么解决·?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.