fix: 修复status为null时的空指针异常
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-03-28 02:20:01 +00:00
parent f672b5dacc
commit 8e9e614521

View File

@@ -265,7 +265,7 @@ public class OrderServiceImpl implements OrderService {
}
// 只有未完成状态可以操作
if (order.getStatus() != 0) {
if (order.getStatus() == null || order.getStatus() != 0) {
throw new RuntimeException("订单状态不允许操作");
}