Просмотр исходного кода

//ttpay 分账帐号

release_toaliyun_real
xhxu 3 лет назад
Родитель
Сommit
c2bcfda2fc
1 измененных файлов: 3 добавлений и 0 удалений
  1. +3
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java

+ 3
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java Просмотреть файл

@@ -602,6 +602,7 @@ public class WxCouponServiceImpl implements WxCouponService {
record.setMakeMerchantId(makeMerchant.getId());
WxProfitSharingReceiver receiver = payShareServie.getReceiver(payAccount, makeMerchant.getId(), null, payMchType.getCode());

logger.info(JSON.toJSONString(receiver));
if (receiver == null) {
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(), "[\""+makeMerchant.getName()+"\"]未配置收款账户");
}
@@ -616,12 +617,14 @@ public class WxCouponServiceImpl implements WxCouponService {
List<String> badNames = new ArrayList();
for (WxMerchant merchant:merchantList) {
WxProfitSharingReceiver receiver = payShareServie.getReceiver(payAccount, merchant.getId(), null, payMchType.getCode());
logger.info(JSON.toJSONString(receiver));
if (receiver == null) {
badNames.add(merchant.getName());
continue;
}
if (EnumAppPlat.TOUTIAO.equals(plat)) {
QueryMerchantResult openPayResult = payAccount.getOpenPayResult();
logger.info(JSON.toJSONString(openPayResult));
if(!EnumYesOrNo.YES.getCode().equals(openPayResult.getAlipay())
&& !EnumYesOrNo.YES.getCode().equals(openPayResult.getWx())
&& !EnumYesOrNo.YES.getCode().equals(openPayResult.getHz())){


Загрузка…
Отмена
Сохранить