|
@@ -42,7 +42,7 @@ class SensitiveMiddleware implements MiddlewareInterface
|
|
|
$path = $uri->getPath();
|
|
|
// var_dump("获取接口地址L:",$path);
|
|
|
try {
|
|
|
- if(in_array($path,self::STREAM_URL)){
|
|
|
+ if($path && in_array($path,self::STREAM_URL)){
|
|
|
$badWords = $this->redis->sMembers('black_word'); //黑名单
|
|
|
$whiteWords = $this->redis->sMembers('white_word');//白名单
|
|
|
// 获取所有请求参数并拼接成文本
|