迁移到 rapidjson,增加 ssl 验证功能,其他改进
This commit is contained in:
@@ -5,7 +5,7 @@ from Config import *
|
||||
from API_TitleServer import *
|
||||
from GetPreview import apiGetUserPreview
|
||||
from HelperLogInOut import apiLogout
|
||||
import json
|
||||
from rapidjson import json
|
||||
from loguru import logger
|
||||
import time
|
||||
from datetime import datetime
|
||||
@@ -25,10 +25,10 @@ def getHumanReadableTime(unixTime):
|
||||
def getMaimaiUNIXTime(mmddhhmmss, year=2025):
|
||||
"""
|
||||
解析用户输入的 MMDDHHMMSS 格式的时间,返回 Unix 时间戳
|
||||
时间会被推后一个小时,因为舞萌貌似是 UTC+9
|
||||
时间会被推后一个小时,因为舞萌貌似是 UTC+9?
|
||||
"""
|
||||
#date_time_str = f"{year}{mmddhhmmss}"
|
||||
# 舞萌需要把小时按往后推一个小时来计算,加上一个小时
|
||||
# 加上一个小时
|
||||
date_time_str = f"{year}{mmddhhmmss[:4]}{int(mmddhhmmss[4:6])+1:02}{mmddhhmmss[6:]}"
|
||||
date_time_obj = datetime.strptime(date_time_str, '%Y%m%d%H%M%S')
|
||||
# 将 datetime 对象转换为 Unix 时间戳
|
||||
|
||||
Reference in New Issue
Block a user