ck há 4 anos atrás
pai
commit
f628a76273
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      handlers/HandlerBase.py

+ 1 - 1
handlers/HandlerBase.py

@@ -99,7 +99,7 @@ class BaseHandler(RequestHandler,DateUtils):
     def get_auth(self):
         # 不需要验证的请求
         authless = ['/api/get_yangguang_data', '/api/git_hook/data_center', '/api/git_hook/qc_web']
-        url = self.request.full_url().split(str(self.settings.get('auth'))+'/')[1]
+        url = self.request.full_url().split(str(self.settings.get('port'))+'/')[1]
         if url in authless:
             return True
         else: