Browse Source

朋友圈发布评论可发布空格问题处理

master
wanghongjun 7 months ago
parent
commit
96a1551f96
  1. 1
      app/enterprise/controller/Posts.php

1
app/enterprise/controller/Posts.php

@ -458,6 +458,7 @@ class Posts extends BaseController
return error(lang('system.fail'));
}
$content = $this->request->param('content');
$content = trim($content);
if (empty($content)) {
return error(lang('system.fail'));
}

Loading…
Cancel
Save