mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-10-14 05:40:25 +00:00
feat(allocation): 优化分账接收方和分账组功能- 后台管理时,分账组和接收方编号自动生成
This commit is contained in:
@@ -148,11 +148,11 @@ public class AliPayAllocationService {
|
||||
/**
|
||||
* 验证错误信息
|
||||
*/
|
||||
private void verifyErrorMsg(AlipayResponse alipayResponse) {
|
||||
if (alipayResponse.isSuccess()) {
|
||||
String errorMsg = alipayResponse.getSubMsg();
|
||||
private void verifyErrorMsg(AlipayResponse response) {
|
||||
if (!response.isSuccess()) {
|
||||
String errorMsg = response.getSubMsg();
|
||||
if (StrUtil.isBlank(errorMsg)) {
|
||||
errorMsg = alipayResponse.getMsg();
|
||||
errorMsg = response.getMsg();
|
||||
}
|
||||
log.error("分账处理失败 {}", errorMsg);
|
||||
throw new TradeFailException(errorMsg);
|
||||
|
@@ -142,6 +142,8 @@ public class WechatPayV2Service {
|
||||
private String qrCodePay(PayOrder payOrder, WechatPayConfig wechatPayConfig) {
|
||||
WxPayService wxPayService = wechatPayConfigService.wxJavaSdk(wechatPayConfig);
|
||||
WxPayUnifiedOrderRequest request = this.buildRequest(payOrder);
|
||||
// NATIVE此参数必传。此id为二维码中包含的商品Id,商户自行定义。
|
||||
request.setProductId(payOrder.getOrderNo());
|
||||
try {
|
||||
var result = wxPayService.createOrder(WxPayConstants.TradeType.Specific.NATIVE, request);
|
||||
return result.getCodeUrl();
|
||||
|
Reference in New Issue
Block a user