银盛大改进件完成,增加银盛进件不成功逻辑

This commit is contained in:
liuyingfang
2023-06-21 17:26:13 +08:00
parent 7eaf21c7e8
commit 8531da830c

View File

@@ -732,7 +732,9 @@ public class YSAuditServiceV3 implements cn.pluss.platform.channel.ys.YSAuditSer
mcs.getExtra().put("mercCnm", mbi.getBussAuthName()); mcs.getExtra().put("mercCnm", mbi.getBussAuthName());
} }
mcsService.updateById(mcs); mcsService.updateById(mcs);
if (channel == 4) {
openOnlinePay(mcs); openOnlinePay(mcs);
}
//暂时用手动进件 //暂时用手动进件
// mercAuditListener.onSuccess(mbi.getUserId(), mcs); // mercAuditListener.onSuccess(mbi.getUserId(), mcs);
//向小程序里加入商家 //向小程序里加入商家
@@ -746,6 +748,12 @@ public class YSAuditServiceV3 implements cn.pluss.platform.channel.ys.YSAuditSer
break; break;
//TODO 失败和错误时没有处理 //TODO 失败和错误时没有处理
case YsConfigV3.STATUS_REFUSE: case YsConfigV3.STATUS_REFUSE:
String note1 = authData.getNote();
mcs.setRemark(note1);
mcs.setStatus(MerchantChannelStatus.AUDIT_STATUS_REJECT);
mcsService.updateById(mcs);
mercAuditListener.onFail(mbi.getUserId(), mcs, note1);
break;
case YsConfigV3.STATUS_SIGN_REFUSE: case YsConfigV3.STATUS_SIGN_REFUSE:
List<String> excludeStatus = Arrays.asList(MerchantChannelStatus.AUDIT_STATUS_REJECT, MerchantChannelStatus.AUDIT_STATUS_SUCCESS); List<String> excludeStatus = Arrays.asList(MerchantChannelStatus.AUDIT_STATUS_REJECT, MerchantChannelStatus.AUDIT_STATUS_SUCCESS);
MerchantChannelStatus finalMcs = mcs; MerchantChannelStatus finalMcs = mcs;
@@ -815,8 +823,6 @@ public class YSAuditServiceV3 implements cn.pluss.platform.channel.ys.YSAuditSer
JSONObject param = new JSONObject(); JSONObject param = new JSONObject();
param.put(YsConstant.MERC_ID, mcs.getMerchantId()); param.put(YsConstant.MERC_ID, mcs.getMerchantId());
param.put("option", "ON"); param.put("option", "ON");
param.put("rateFee", "0.38");
param.put("rateBottom", "1");
ysServiceV3.req(ReqMethod.openOnlinePay, param, mcs.getChannel()); ysServiceV3.req(ReqMethod.openOnlinePay, param, mcs.getChannel());
} catch (Exception e) { } catch (Exception e) {
log.error("云商服3.0开通线上D0接口报错: {}", e.getMessage()); log.error("云商服3.0开通线上D0接口报错: {}", e.getMessage());