退款失败返回详细原因
This commit is contained in:
parent
ca666ce34b
commit
3e721b0e18
@ -617,11 +617,14 @@ public class EbikeWxPayServiceImpl implements EbikeWxPayService {
|
|||||||
String msg = messageNode != null ? messageNode.asText() : "未知错误";
|
String msg = messageNode != null ? messageNode.asText() : "未知错误";
|
||||||
|
|
||||||
return switch (code) {
|
return switch (code) {
|
||||||
case "NOT_ENOUGH" -> "商户账户余额不足,请联系客服处理";
|
case "INVALID_REQUEST" -> "请求参数符合参数格式,但不符合业务规则";
|
||||||
case "RESOURCE_NOT_EXISTS" -> "原支付订单不存在或已过期";
|
case "SIGN_ERROR" -> "签名错误";
|
||||||
case "ORDER_PAID" -> "订单已支付,不能重复退款";
|
case "NOT_ENOUGH" -> "商户账户余额不足,请联系管理员";
|
||||||
case "REFUND_NOT_ALLOWED" -> "该订单不支持退款";
|
case "USER_ACCOUNT_ABNORMAL" -> "退款请求失败";
|
||||||
case "FREQ_LIMIT" -> "退款频率过高,请稍后再试";
|
case "RESOURCE_NOT_EXISTS" -> "退款单不存在";
|
||||||
|
case "MCH_NOT_EXISTS" -> "MCHID不存在";
|
||||||
|
case "FREQUENCY_LIMITED" -> "退款频率过高,请稍后再试";
|
||||||
|
case "SYSTEM_ERROR" -> "系统超时";
|
||||||
default -> msg;
|
default -> msg;
|
||||||
};
|
};
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user