Skip to content

Conversation

xJoeWoo
Copy link

@xJoeWoo xJoeWoo commented Mar 20, 2020

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

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

@binarywang binarywang merged commit d3b58e3 into binarywang: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

2 participants