Browse Source

yunqi test 5

zz 6 years ago
parent
commit
bb0ff8657f
1 changed files with 2 additions and 3 deletions
  1. 2 3
      app/Http/Middleware/ReadOauth.php

+ 2 - 3
app/Http/Middleware/ReadOauth.php

@@ -936,10 +936,9 @@ class ReadOauth
     private function isLimit($area)
     {
         $limit_area = ['上海', '北京','杭州'];
-
         foreach ($limit_area as $a) {
-            echo '$area: '.$area.',$a: '.$a.PHP_EOL;
-            if (mb_strpos($area, $a) === true) {
+            Log::info('$area: '.$area.',$a: '.$a.PHP_EOL);
+            if (mb_strpos($area, $a) !== false) {
                 return 'DISABLED';
             }
         }