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

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
+2 -2
View File
@@ -63,11 +63,11 @@ class AttachmentLogic
$res = Attachment::whereNotIn('id', $attachmentsId)->where('ticket_id',$ticket_id)->delete();
return $res;
} catch (\Throwable $e) {
Log::error('工单创建失败', [
Log::error('工单编辑(附件)失败', [
'data' => $data,
'error' => $e->getMessage()
]);
throw new BusinessException('工单创建失败,请稍后重试', 500);
throw new BusinessException('工单编辑失败,请稍后重试', 500);
}
}
+1 -1
View File
@@ -52,7 +52,7 @@ class TicketLogic
'data' => $data,
'error' => $e->getMessage()
]);
throw new BusinessException('工单提取方法…失败,请稍后重试', 500);
throw new BusinessException('工单编辑失败,请稍后重试', 500);
}
}