Browse Source

斗拱支付

Chris-zy 1 year ago
parent
commit
13c889cc30

+ 3 - 0
mp-service/src/main/java/com/qs/mp/pay/service/impl/WalletServiceImpl.java

@@ -616,7 +616,10 @@ public class WalletServiceImpl implements IWalletService {
     wxRequestParam.setTradeType(com.qs.mp.common.constant.Constants.PAY_STYLE_WXMINI_DOUGONG);
     wxRequestParam.setTradeType(com.qs.mp.common.constant.Constants.PAY_STYLE_WXMINI_DOUGONG);
     wxRequestParam.setOpenid(code);
     wxRequestParam.setOpenid(code);
     List<PaymentConfig> paymentConfigList = dougongPayApi.getAvailablePaymentConfigList();
     List<PaymentConfig> paymentConfigList = dougongPayApi.getAvailablePaymentConfigList();
+    LogUtil.info(logger,"斗拱配置个数:-------------------------------》" + paymentConfigList.size());
+    LogUtil.info(logger,"斗拱配置参数1:-------------------------------》" + JSONUtil.toJsonStr(paymentConfigList.get(0)));
     PaymentConfig paymentConfig = CollectionUtil.isNotEmpty(paymentConfigList) ? RandomUtil.randomEle(paymentConfigList) : null;
     PaymentConfig paymentConfig = CollectionUtil.isNotEmpty(paymentConfigList) ? RandomUtil.randomEle(paymentConfigList) : null;
+    LogUtil.info(logger,"斗拱配置参数2:-------------------------------》" + JSONUtil.toJsonStr(paymentConfig));
 
 
     if(StringUtils.isEmpty(wxAppId)){
     if(StringUtils.isEmpty(wxAppId)){
       wxAppId = Objects.nonNull(paymentConfig) ? paymentConfig.getAppletId() : "";
       wxAppId = Objects.nonNull(paymentConfig) ? paymentConfig.getAppletId() : "";