Merge commit 'acd428f57bceb73ddc770cc6b59f8be7a237af90'

This commit is contained in:
mzl
2025-07-14 10:08:29 +08:00
parent 925c5501f7
commit 72878f49ea
9 changed files with 159 additions and 6 deletions
+13 -1
View File
@@ -55,8 +55,20 @@ class TicketService
{
try {
Db::beginTransaction();
$attachment = $data['attachment']??[];
$logic = new TicketLogic();
$result = $logic->find($data['id']);
if(empty($result)){
throw new BusinessException('工单不存在');
}
if($result['user_id'] != $data['user_id']){
throw new BusinessException('只能编辑自己的工单');
}
if($result['status'] != 1){
throw new BusinessException('只能修改待受理工单');
}
$attachment = $data['attachment']??[];
$result = $logic->edit($data);
if(!empty($attachment)){