修复悄悄话文字颜色及不能发数字0的问题

This commit is contained in:
2026-04-11 22:48:15 +08:00
parent ff402be02f
commit dd9a8c5db8
4 changed files with 37 additions and 3 deletions

View File

@@ -362,7 +362,7 @@ class ChatController extends Controller
// 1. 过滤净化消息体
$pureContent = $this->filter->filter($data['content'] ?? '');
if (empty($pureContent)) {
if ($pureContent === '') {
return response()->json(['status' => 'error', 'message' => '消息内容不能为空或不合法。'], 422);
}