修复悄悄话文字颜色及不能发数字0的问题
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user