diff --git a/WX_Applet/Applet_LWDJG.py b/WX_Applet/Applet_LWDJG.py index 3cce9ce..a85d243 100644 --- a/WX_Applet/Applet_LWDJG.py +++ b/WX_Applet/Applet_LWDJG.py @@ -23,7 +23,7 @@ TASK_MODE 执行模式:all / sign / lottery,默认 all ACCOUNT_SOURCE 账号来源:cloud / manual,默认 cloud MANUAL_ACCOUNTS 手动账号,格式:备注#wxid,一行一个,仅 ACCOUNT_SOURCE=manual 时使用 SINGLE_TEST_WXID 只测试一个 wxid -EXCLUDE_WXIDS 排除 wxid,支持换行分隔,也兼容英文/中文逗号分隔 +NWDJG_WXIDS 排除 wxid,支持换行分隔,也兼容英文/中文逗号分隔 CLOUD_PAGE_SIZE 养鸡场分页大小,默认 1;用于一个账号处理完再取下一个 AUTO_BEARER 是否自动给 wx_token 补 Bearer,默认 true;如接口要求裸 token,设 false DELAY 账号间延迟秒数,默认 5 @@ -136,7 +136,7 @@ TASK_MODE = ENV.get("TASK_MODE", "all").lower() # all/sign/lottery ACCOUNT_SOURCE = ENV.get("ACCOUNT_SOURCE", "cloud").lower() MANUAL_ACCOUNTS = ENV.get("MANUAL_ACCOUNTS", "") SINGLE_TEST_WXID = ENV.get("SINGLE_TEST_WXID", "").strip() -EXCLUDE_WXIDS = [x.strip() for x in re.split(r"[\n,,]+", ENV.get("EXCLUDE_WXIDS", "")) if x.strip()] +NWDJG_WXIDS = [x.strip() for x in re.split(r"[\n,,]+", ENV.get("NWDJG_WXIDS", "")) if x.strip()] CLOUD_PAGE_SIZE = max(1, int(ENV.get("CLOUD_PAGE_SIZE", "1"))) DELAY = float(ENV.get("DELAY", "5")) TIMEOUT = float(ENV.get("TIMEOUT", "20")) @@ -893,7 +893,7 @@ def process_account(acc: Account, index: int, total: int) -> Dict[str, Any]: def should_skip_account(acc: Account) -> bool: - if EXCLUDE_WXIDS and acc.wxid in EXCLUDE_WXIDS: + if NWDJG_WXIDS and acc.wxid in NWDJG_WXIDS: return True if SINGLE_TEST_WXID and acc.wxid != SINGLE_TEST_WXID: return True @@ -902,9 +902,9 @@ def should_skip_account(acc: Account) -> bool: def load_accounts() -> List[Account]: accounts = get_accounts_from_manual() if ACCOUNT_SOURCE == "manual" else get_accounts_from_cloud() - if EXCLUDE_WXIDS: - accounts = [a for a in accounts if a.wxid not in EXCLUDE_WXIDS] - log(f"已排除 {len(EXCLUDE_WXIDS)} 个 wxid,剩余 {len(accounts)}") + if NWDJG_WXIDS: + accounts = [a for a in accounts if a.wxid not in NWDJG_WXIDS] + log(f"已排除 {len(NWDJG_WXIDS)} 个 wxid,剩余 {len(accounts)}") if SINGLE_TEST_WXID: accounts = [a for a in accounts if a.wxid == SINGLE_TEST_WXID] log(f"单号测试 wxid={SINGLE_TEST_WXID},匹配 {len(accounts)} 个")