Commit abdc4464 authored by hj's avatar hj

更新

parent 04bdf6f3
...@@ -30,13 +30,12 @@ class ThirdPlatformService extends PlatformAbstractService ...@@ -30,13 +30,12 @@ class ThirdPlatformService extends PlatformAbstractService
} }
if($platformInfo['platform_type'] == 'self'){ if($platformInfo['platform_type'] == 'self'){
$params = $platformInfo['platform_params']; $params = $platformInfo['platform_params'];
if(!empty($params) && $params['whiteList']){ if(empty($params)) return true;
if(!empty($params['whiteList'])){ if(!empty($params['whiteList'])){
if(in_array($ip,$params['whiteList'])){ if(in_array($ip,$params['whiteList'])){
return true; return true;
} }
} }
}
return false; return false;
}else{ }else{
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment