Ver Fonte

ip check

jerry há 1 ano atrás
pai
commit
63d4876f91
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      common/libs/IpFilter.php

+ 1 - 0
common/libs/IpFilter.php

@@ -23,6 +23,7 @@ class IpFilter extends Component
     public function checkIp()
     {
         $remoteAddr = $_SERVER['REMOTE_ADDR']; // 获取用户 IP 地址
+        // 调用远程 IP 地址查询方法
         if (!self::remoteAddrCall($remoteAddr)) {
             throw new BadRequestHttpException('非法 IP 地址');
         }