检查一个字符串里是否包含敏感词
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>检查一个字符串里是否包含关键词</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:8700/filter/contains</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST urlencoded</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">content</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>需要检查的内容</td>
</tr>
</tbody>
</table>
<h5>有敏感词的返回示例</h5>
<pre><code> POST http://localhost:8700/filter/contains
Content-Type: application/x-www-form-urlencoded
content=北京
http://localhost:8700/filter/strs >>> true</code></pre>
<h5>没有敏感词的返回示例</h5>
<pre><code> POST http://localhost:8700/filter/contains
Content-Type: application/x-www-form-urlencoded
content=天津
http://localhost:8700/filter/strs >>> false</code></pre>
<h5>空字符的返回示例</h5>
<pre><code>POST http://localhost:8700/filter/contains
Content-Type: application/x-www-form-urlencoded
http://localhost:8700/filter/strs >>> null</code></pre>