Commit f05f1c23 authored by hangjun83's avatar hangjun83

优化

parent c357ba3d
......@@ -32,10 +32,8 @@ class ThirdPlatformService extends PlatformAbstractService
$params = $platformInfo['platform_params'];
if(!empty($params) && $params['whiteList']){
if(!empty($params['whiteList'])){
foreach($params['whiteList'] as $whiteIp){
if(Str::contains($whiteIp, $ip)){
return true;
}
if(in_array($ip,$params['whiteList'])){
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