Comments (2)
http api使用snake_case是很常见的。不仅微信支付是这样,业界的很多api包括友商的,比如GitHub,PayPal,都是snake_case的。
另一方面,参数命名跟编程语言是无关的。想象一下,换成CamelCase的话,go/python的小伙伴是不是跟你一样吐槽呢?建议在实现时model中使用CamelCase,只要在序列化或反序列化时转换成snake_case就可以了。
from wechatpay-apache-httpclient.
mchid、openid 、notify_url、out_trade_no这类命名有的是全小写,有的是下划线分割。7、8年前就是这样,v3版还是这吊样。用java出来起来很反感
你反序列化回来写成notifyUrl就行啦
from wechatpay-apache-httpclient.
Related Issues (20)
- httpClient库能替换下吗?
- sdk如何调起sign的方法 HOT 3
- 对小程序支付生成的httpClient进行代理设置不生效 HOT 11
- 请问如何构造测试回调数据? HOT 10
- 不支持httpClient5版本库 HOT 1
- 如何正确初始化CloseableHttpClient?何时关闭CloseableHttpClient? HOT 3
- 使用DefaultHttpClientBuilder构造出来的HttpClient需要关闭吗? HOT 1
- 使用了定时更新平台证书功能,并且使用Verifier在调用接口时获取平台证书。但是怎么获取平台证书序列号以满足接口对header里的Wechatpay-Serial的需求呢 HOT 9
- 为什么我用certificate.getSerialNumber()获取到的序列号和正确的序列号不一样
- empty [Wechatpay-Serial] 应答的微信支付签名验证失败
- 仅签名不验签 HOT 1
- 日志打印body内容乱码 HOT 1
- 回调验签失败 HOT 2
- AutoUpdateCertificatesVerifier弃用后有其他替代方案吗 HOT 1
- No 0.4.9 in Maven Central HOT 1
- Start
- 是否提供一个Spring Boot 3.0的支持版本? HOT 4
- 【Help】使用demo中的例子上传图片返回400 badrequest HOT 4
- 支付回调验签报错 HOT 2
- 使用时Verifier没有办法初始化在springboot中 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wechatpay-apache-httpclient.