Commit abdc4464 authored by hj's avatar hj

更新

parent 04bdf6f3
......@@ -30,11 +30,10 @@ class ThirdPlatformService extends PlatformAbstractService
}
if($platformInfo['platform_type'] == 'self'){
$params = $platformInfo['platform_params'];
if(!empty($params) && $params['whiteList']){
if(!empty($params['whiteList'])){
if(in_array($ip,$params['whiteList'])){
return true;
}
if(empty($params)) return true;
if(!empty($params['whiteList'])){
if(in_array($ip,$params['whiteList'])){
return true;
}
}
return false;
......
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