Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加 WxPayService.createOrder 返回交易类型对应实体类方法 #1458

Merged
merged 2 commits into from
Mar 22, 2020

Conversation

xJoeWoo
Copy link

@xJoeWoo xJoeWoo commented Mar 20, 2020

调用 WxPayService<T> T createOrder(WxPayUnifiedOrderRequest request) 时,经常找源码来看返回什么样的实体类,再强制转换。

通常在业务中使用此方法时,可以明确交易类型,所以添加一个交易类型的类,设置交易类型的同时,顺便作为确定 createOrder 返回类型的参数传入。

@binarywang binarywang merged commit d3b58e3 into Wechat-Group:develop Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants