|
@@ -107,7 +107,13 @@ class BaseHandler(RequestHandler,DateUtils):
|
|
|
return True
|
|
|
else:
|
|
|
Authorization = self.request.headers.get('Authorization')
|
|
|
+ print(Authorization)
|
|
|
b = str(float(str(base64.b64decode(Authorization[::-1].encode('utf-8')),'utf-8'))*int(self.now.day))[:10]
|
|
|
+
|
|
|
+ # if (len(origStr) % 3 == 1):
|
|
|
+ # origStr += "=="
|
|
|
+ # elif (len(origStr) % 3 == 2):
|
|
|
+ # origStr += "="
|
|
|
diff =int(time.mktime(time.localtime()))-int(b)
|
|
|
print(diff)
|
|
|
if diff < 60:
|