作者 ZhengBing He

合并分支 'workorder' 到 'master'

fix



查看合并请求 !2231
@@ -51,7 +51,7 @@ class TicketChatController extends BaseController @@ -51,7 +51,7 @@ class TicketChatController extends BaseController
51 $chat->ticket_id = $ticket->id; 51 $chat->ticket_id = $ticket->id;
52 $chat->content = $validated['content']; 52 $chat->content = $validated['content'];
53 53
54 - $files = $validated['files']; 54 + $files = $validated['files'] ?? [];
55 if (empty($files) || (is_array($files) && count(array_filter($files, function($v){ return !is_null($v); })) === 0)) { 55 if (empty($files) || (is_array($files) && count(array_filter($files, function($v){ return !is_null($v); })) === 0)) {
56 $chat->files = null; 56 $chat->files = null;
57 } else { 57 } else {