pzb 6 년 전
부모
커밋
684e0e63ea
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Object/UrlTokenObject.py

+ 1 - 1
Object/UrlTokenObject.py

@@ -40,7 +40,7 @@ class UrlTokenObject:
     def generate(self, data={}):
         now_stamp = int(time.time())
         # print (now_stamp)
-        data['exp'] = 300 + now_stamp
+        data['exp'] = 7200 + now_stamp
         token = jwt.encode(data, '12345', algorithm='HS256').decode('utf-8')
         self.token=token
         return token