瀏覽代碼

버그 수정

잉여개발기 (SPDV) 7 年之前
父節點
當前提交
5e9868ccf0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      route/tool/func.py

+ 2 - 2
route/tool/func.py

@@ -857,7 +857,7 @@ def ban_check(ip = None, tool = None):
     band_d = curs.fetchall()
     if band_d:
         if tool and tool == 'login':
-            if data[0][0] != 'O':
+            if band_d[0][0] != 'O':
                 return 1
         else:
             return 1
@@ -866,7 +866,7 @@ def ban_check(ip = None, tool = None):
     ban_d = curs.fetchall()
     if ban_d:
         if tool and tool == 'login':
-            if data[0][0] != 'O':
+            if ban_d[0][0] != 'O':
                 return 1
         else:
             return 1