瀏覽代碼

20250228 调整

贾小兵 1 月之前
父節點
當前提交
7b9e402af3
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      .gitignore
  2. 1 1
      application/admin/library/Auth.php

+ 1 - 0
.gitignore

@@ -6,6 +6,7 @@
 /public/assets/libs/
 /public/assets/addons/*
 /public/uploads/*
+/public/nginx.htaccess
 .idea
 composer.lock
 *.log

+ 1 - 1
application/admin/library/Auth.php

@@ -67,7 +67,7 @@ class Auth extends \fast\Auth
         if(!empty($admin->depart_id)){
             // 获取服务器自己的IP地址
             // $server_ip = gethostbyname('localhost');
-            $server_ip = $_SERVER['REMOTE_ADDR'];//gethostbyname('localhost');
+            $server_ip = '192.168.1.111';//$_SERVER['REMOTE_ADDR'];//gethostbyname('localhost');
             $admin->server_ip = $server_ip;
             $seat_id = Db::name('seat')->where('seat_bind_ip',$server_ip)->value('seat_id');
             if(!empty($seat_id)){