Explorar o código

还原时间戳

locky %!s(int64=3) %!d(string=hai) anos
pai
achega
cc5ff5dd24
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Object/UVerifyObject.py

+ 1 - 1
Object/UVerifyObject.py

@@ -37,7 +37,7 @@ class UVerifyObject:
         self.body_data_str = json.dumps({'token': self.token})
         content_md5_str = base64.b64encode(hashlib.md5(self.body_data_str.encode("UTF-8")).digest()).decode("UTF-8")
 
-        now_date_time = datetime.utcnow()   # + timedelta(hours=8), 服务器的时间为中时区,不需要+8h的时间差
+        now_date_time = datetime.utcnow() + timedelta(hours=8)
         timestamp = str(int(time.mktime(now_date_time.timetuple()) * 1000))
 
         sign_headers_dict = {