状态修改校验(不能倒退状态)

This commit is contained in:
2025-07-04 16:10:16 +08:00
parent 92fd6d4d9f
commit bb1f105021
8 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ class TicketService
if(empty($ticket)){
throw new BusinessException('工单不存在');
}
if($data['status'] == $ticket->status){
if($data['status'] <= $ticket->status){
throw new BusinessException(trans('status_not_modified'));
}