|
|
@@ -236,7 +236,7 @@ public class AiUserAuditTaskServiceImpl implements AiUserAuditTaskService {
|
|
|
* @throws RuntimeException 当退款失败时抛出异常,触发事务回滚
|
|
|
*/
|
|
|
private void processRefund(String orderNumber) {
|
|
|
- if (org.apache.commons.lang3.StringUtils.isEmpty(orderNumber)) {
|
|
|
+ if (!StringUtils.hasText(orderNumber)) {
|
|
|
log.error("处理退款失败:订单号为空");
|
|
|
throw new RuntimeException("订单号不能为空,无法处理退款");
|
|
|
}
|
|
|
@@ -255,7 +255,7 @@ public class AiUserAuditTaskServiceImpl implements AiUserAuditTaskService {
|
|
|
}
|
|
|
|
|
|
// 检查订单是否有支付宝交易号
|
|
|
- if (org.apache.commons.lang3.StringUtils.isEmpty(order.getAlipayNo())) {
|
|
|
+ if (!StringUtils.hasText(order.getAlipayNo())) {
|
|
|
log.error("处理退款失败:订单无支付宝交易号,订单号:{}", orderNumber);
|
|
|
throw new RuntimeException("订单无支付宝交易号,无法处理退款,订单号:" + orderNumber);
|
|
|
}
|