Commit 15ccd135 by baiquan

fix:过滤特定的 cookie

- 在加载 cookie 时,增加了对 'sessionid' 和 'sessionid_ss' 的过滤
parent 39e023db
...@@ -81,7 +81,7 @@ async def syncShop(task: dict = None): ...@@ -81,7 +81,7 @@ async def syncShop(task: dict = None):
cookies = json.loads(cookie) cookies = json.loads(cookie)
new_cookies = dict() new_cookies = dict()
for cookie in cookies: for cookie in cookies:
if cookie.get('Domain') in DOMAINS: if cookie.get('Domain') in DOMAINS and cookie.get('Name') != 'sessionid' and cookie.get('Name') != 'sessionid_ss':
new_cookies[cookie.get('Name')] = cookie.get('Value') new_cookies[cookie.get('Name')] = cookie.get('Value')
if browser_default_id: if browser_default_id:
logger.info(f'{browser_id} PHPSESSID --> {PHPSESSID}') logger.info(f'{browser_id} PHPSESSID --> {PHPSESSID}')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment