作者 lyh

变更数据

@@ -289,9 +289,7 @@ class AsideTicketController extends BaseController @@ -289,9 +289,7 @@ class AsideTicketController extends BaseController
289 'logs.engineer', 289 'logs.engineer',
290 'project.projectV6:id,company,title', 290 'project.projectV6:id,company,title',
291 ])->find($id); 291 ])->find($id);
292 -  
293 if (!$ticket) $this->response('工单不存在', Code::USER_MODEL_NOTFOUND_ERROE); 292 if (!$ticket) $this->response('工单不存在', Code::USER_MODEL_NOTFOUND_ERROE);
294 -  
295 $this->response('success', Code::SUCCESS, $ticket->toArray()); 293 $this->response('success', Code::SUCCESS, $ticket->toArray());
296 } 294 }
297 295
@@ -305,7 +303,6 @@ class AsideTicketController extends BaseController @@ -305,7 +303,6 @@ class AsideTicketController extends BaseController
305 $request->validated(); 303 $request->validated();
306 $ticket = Tickets::find($id); 304 $ticket = Tickets::find($id);
307 if (!$ticket) $this->response('工单不存在', Code::USER_MODEL_NOTFOUND_ERROE); 305 if (!$ticket) $this->response('工单不存在', Code::USER_MODEL_NOTFOUND_ERROE);
308 -  
309 // 开始修改 306 // 开始修改
310 $result = DB::transaction(function () use ($request, $ticket) { 307 $result = DB::transaction(function () use ($request, $ticket) {
311 if ($request->input('engineer_ids')) 308 if ($request->input('engineer_ids'))