utils/tool.py @@ -28,7 +28,7 @@ end = int(t.mktime(t.strptime(local_time, "%Y-%m-%d"))) expire = end - now # 加随机数,防止一起销毁数据 expire += random.randint(0, 60 * 60) expire += random.randint(0, 60 * 30) return expire