瀏覽代碼

Merge branch 'kuaiyingyong' of iqiyoo:zhuishuyun_wap into zhucj

zhuchengjie 2 年之前
父節點
當前提交
4cfa76089d
共有 1 個文件被更改,包括 10 次插入3 次删除
  1. 10 3
      app/Modules/Channel/Services/QappSendOrderContentShieldConfigService.php

+ 10 - 3
app/Modules/Channel/Services/QappSendOrderContentShieldConfigService.php

@@ -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;