|
|
@@ -10,6 +10,7 @@ import com.zhongshu.card.client.model.payment.ExpenseRefundParam;
|
|
|
import com.zhongshu.card.client.type.LogsLevel;
|
|
|
import com.zhongshu.card.client.type.MessageType;
|
|
|
import com.zhongshu.card.client.type.RefundState;
|
|
|
+import com.zhongshu.card.client.utils.PayExceptionToShowUtil;
|
|
|
import com.zhongshu.card.server.core.dao.payment.ExpenseFlowDao;
|
|
|
import com.zhongshu.card.server.core.domain.payment.ExpenseFlow;
|
|
|
import com.zhongshu.card.server.core.service.base.SuperService;
|
|
|
@@ -90,10 +91,9 @@ public class PayCallService extends SuperService {
|
|
|
String msg = resultContent.getMsg();
|
|
|
if (StringUtils.isNotEmpty(msg) && msg.contains("Connection reset")) {
|
|
|
msg = "调用支付中心失败";
|
|
|
+ } else {
|
|
|
+ msg = PayExceptionToShowUtil.convertException(resultContent.getException().getCls());
|
|
|
}
|
|
|
- msg = resultContent.getException().getMessage();
|
|
|
-
|
|
|
-
|
|
|
if (StringUtils.isEmpty(msg)) {
|
|
|
msg = "支付中心失败";
|
|
|
}
|
|
|
@@ -101,8 +101,9 @@ public class PayCallService extends SuperService {
|
|
|
entity.setIsPaySuccess(Boolean.FALSE);
|
|
|
entity.setPayRemark(msg);
|
|
|
entity.setOrderType(OrderState.PAID_ERROR);
|
|
|
+ // 日志
|
|
|
logsAddParam.setMessageType(MessageType.Warn);
|
|
|
- logsAddParam.setLevel(LogsLevel.Low);
|
|
|
+ logsAddParam.setLevel(LogsLevel.Middle);
|
|
|
logsAddParam.setContent(msg);
|
|
|
}
|
|
|
operationLogsService.addLog(logsAddParam);
|