force_update_pt_pins = [user_datas[key]["pt_pin"] for key in user_datas if user_datas[key].get("force_update") is True]
# 获取需强制和需要强制更新的users
forbidden_users = [x for x in user_info if x['name'] == 'JD_COOKIE' and (x['status'] == 1 or x['value'].rstrip(';').split('pt_pin=')[1] in force_update_pt_pins)]
请问,如果两组cookies需要更新,青龙配置JD_COOKIE应是什么格式?
user_datas = { "1598": { "password": "隐私隐私隐私a", "pt_pin": "jd_4隐私隐私隐私06", "force_update": True }, "1814": { "password": "a98隐私隐私隐私91a", "pt_pin": "1814隐私隐私隐私1_p", "force_update": True } }
青龙JD_COOKIE如下: pt_key=嘻嘻嘻嘻嘻嘻;pt_pin=yit3; pt_key=啧啧啧啧啧啧自知则知之咋咋咋咋咋咋咋咋咋咋;pt_pin=189102_p;
执行main.py后提示: 所有COOKIE环境变量正常,无需更新
感觉是main.py (line546-553), 这里处理两组pt_pin时无法解析出两组准确pt_pin
获取需强制更新pt_pin