fix: 修复status为null时的空指针异常
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -265,7 +265,7 @@ public class OrderServiceImpl implements OrderService {
|
||||
}
|
||||
|
||||
// 只有未完成状态可以操作
|
||||
if (order.getStatus() != 0) {
|
||||
if (order.getStatus() == null || order.getStatus() != 0) {
|
||||
throw new RuntimeException("订单状态不允许操作");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user