Browse Source

fix bug

release_toaliyun_real
zhengfangyuan 3 years ago
parent
commit
029e571b1f
1 changed files with 3 additions and 0 deletions
  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 View File

@@ -1850,6 +1850,9 @@ public class WxCouponServiceImpl implements WxCouponService {
for (Long mid:wxCoupon.getMerchantIds()) { for (Long mid:wxCoupon.getMerchantIds()) {
//开通了支付宝就可以 //开通了支付宝就可以
WxProfitSharingReceiver receiver = payShareServie.getReceiver(payAccount, mid, null, payMchType.getCode()); WxProfitSharingReceiver receiver = payShareServie.getReceiver(payAccount, mid, null, payMchType.getCode());
if (null == receiver) {
throw new MallinkException(ErrorCode.SYS_SERVER_ERROR.getCode(),"商户"+mid+"未设置收款账户");
}
if (MerchantImportStatus.improt_success.getCode().equals(receiver.getAlipayImportStatus())) { if (MerchantImportStatus.improt_success.getCode().equals(receiver.getAlipayImportStatus())) {
merchantAutoShareMap.put(mid, true); merchantAutoShareMap.put(mid, true);
}else { }else {


Loading…
Cancel
Save