Authored by LUOXC

refactor

... ... @@ -1076,13 +1076,12 @@ public class PaymentServiceImpl implements IPaymentService {
return;
} catch (Exception e) {
logger.warn("{}, refund fail.", logTag, e);
String alarmMsg = "订单号:" + orderCode + ",操作类型(退款),流水id=" + tradeBills.getId() + ",msg=" + e.getMessage();
releaseLock(logTag, lockKey);
String message = "订单号:" + orderCode + ",操作类型(退款),流水id=" + tradeBills.getId() + ",msg=" + e.getMessage();
if (refundBo != null) {
alarmMsg += ",DETAIL=" + JSON.toJSONString(refundBo);
message += ",DETAIL=" + JSON.toJSONString(refundBo);
}
alarm("人工处理退款失败", "ufo.order.manualDeal", alarmMsg);
releaseLock(logTag, lockKey);
throwServiceException(e, 500, "退款失败[" + tradeBills.getId() + "]");
throwServiceException(e, 500, "退款失败[" + message + "]");
}
}
... ... @@ -1108,13 +1107,9 @@ public class PaymentServiceImpl implements IPaymentService {
}
} catch (Exception e) {
logger.warn("{}, transfer fail", logTag, e);
alarm("人工处理转账失败",
"ufo.order.manualDeal",
"订单号:" + orderCode + ",操作类型(转账),流水id=" + tradeBills.getId() + ",msg=" + e.getMessage());
releaseLock(logTag, lockKey);
throwServiceException(e, 500, "转账失败[" + tradeBills.getId() + "]");
String message = "订单号:" + orderCode + ",操作类型(转账),流水id=" + tradeBills.getId() + ",msg=" + e.getMessage();
throwServiceException(e, 500, "转账失败[" + message + "]");
}
}
... ...