|
@@ -70,9 +70,16 @@ class QappSendOrderContentShieldConfigService
|
|
|
$ip_list = explode(',',$config->ip_text);
|
|
|
$access = true;
|
|
|
foreach ($ip_list as $item_ip){
|
|
|
- if($item_ip == $ip){
|
|
|
- $access = false;
|
|
|
- break;
|
|
|
+ if(strstr($item_ip, '*') == "*"){
|
|
|
+ $ip_format = trim(strstr($item_ip, '*',true),'.');
|
|
|
+ if(stripos($ip,$ip_format) === 0){
|
|
|
+ $access = false;break;
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if($item_ip == $ip){
|
|
|
+ $access = false;
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return $access;
|