diff --git a/Paimon_Gacha/gacha_res.py b/Paimon_Gacha/gacha_res.py index 52603fb..29ebaf1 100644 --- a/Paimon_Gacha/gacha_res.py +++ b/Paimon_Gacha/gacha_res.py @@ -1,7 +1,5 @@ -import copy import json import os -from pathlib import Path import datetime import numpy diff --git a/utils/util.py b/utils/util.py index a0d07b5..15e2210 100644 --- a/utils/util.py +++ b/utils/util.py @@ -94,13 +94,13 @@ class FreqLimiter: self.default_cd = default_cd_seconds def check(self, key) -> bool: - return bool(time.time() >= self.next_time[key]) + return bool(time() >= self.next_time[key]) def start_cd(self, key, cd_time=0): - self.next_time[key] = time.time() + (cd_time if cd_time > 0 else self.default_cd) + self.next_time[key] = time() + (cd_time if cd_time > 0 else self.default_cd) def left_time(self, key) -> int: - return int(self.next_time[key] - time.time()) + 1 + return int(self.next_time[key] - time()) + 1 # 获取可用的cookie