合并分支 'workorder' 到 'master'
fix 查看合并请求 !2231
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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 { |
-
请 注册 或 登录 后发表评论