Skip to content

Commit

Permalink
update config notice
Browse files Browse the repository at this point in the history
  • Loading branch information
J1uShan9 committed Jun 30, 2024
1 parent bbb57a0 commit 54402f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import threading

from loguru import logger
from time import sleep

from interface import ProductCli, SettingCli, UserCli
from util import Bilibili, Captcha, Config, Notice, Request, Task
Expand Down Expand Up @@ -71,6 +72,12 @@ def cleanup_meipass() -> None:
productConfig = ProductCli(conf=productData).Select(selects=productList) if productList != [] else ProductCli(conf=productData).Generate()
settingConfig = SettingCli(conf=settingData).Select(selects=settingList) if settingList != [] else SettingCli(conf=settingData).Generate()

if 'phone' not in userConfig or 'gold' not in settingConfig:
logger.error("【用户配置】配置文件版本过期,请重新新建配置文件")
logger.warning("程序正在准备退出...")
sleep(5)
sys.exit()

net = Request(
cookie=userConfig["cookie"],
header=userConfig["header"],
Expand Down

0 comments on commit 54402f1

Please sign in to comment.