Browse Source

所有ip都要验签

lizhen_gitee 1 year ago
parent
commit
a6f9a70b49
1 changed files with 3 additions and 3 deletions
  1. 3 3
      application/common/controller/Api.php

+ 3 - 3
application/common/controller/Api.php

@@ -101,10 +101,10 @@ class Api
     //验签,2048位,265截取
     public function apiverifysign(){
 
-        $ip = request()->ip();
-        if($ip == '127.0.0.1' || $ip == '112.6.63.60'){
+        /*$ip = request()->ip();
+        if($ip == '127.0.0.1'){
             return true;
-        }
+        }*/
 
         //解密签名开始
         $sign = $this->request->request('sign','','trim');