Commit 4572400a by 程裕兵

feat:pay

parent 710f5e26
......@@ -18,9 +18,10 @@ public enum PayFailMessageReplaceEnums {
/**
*
*/
OTHER("OTHER__", PAY_FAIL_1),
E1("当前商户需补齐相关资料后,才可进行相应的支付交易,请商户联系微信服务商", PAY_FAIL_4),
E2("当前商户需补齐相关资料后,才可进行相应的支付交易,请商户联系服务商", PAY_FAIL_5),
OTHER("", PAY_FAIL_1),
E1("当前商户需补齐相关资料后,才可进行相应的支付交易,请商户联系对接的微信支付服务商", PAY_FAIL_4),
E2("业务执行失败[当前商户需补齐相关资料后,才可进行相应的支付交易,请商户联系对接的微信支付服务商]", PAY_FAIL_4),
E3("业务执行失败[当前商户需补齐相关资料后,才可进行支付交易,请商户联系服务商。]", PAY_FAIL_5),
;
private final String source;
......@@ -32,6 +33,7 @@ public enum PayFailMessageReplaceEnums {
return OTHER.getTarget();
}
return Arrays.stream(PayFailMessageReplaceEnums.values())
.filter(e -> OTHER != e)
.filter(e -> e.getSource().contains(source) || source.contains(e.getSource())).findFirst()
.orElse(OTHER).getTarget();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment