From e0eb4e7f6b561cd13bc0fc0d303a4d50fd24499b Mon Sep 17 00:00:00 2001 From: weiqun Date: Thu, 13 Feb 2025 16:25:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ruishu.py | 62 +++++++---- chinatelecom.py | 128 ++++++++++++++++++----- ikuuu-auto-checkin.js | 236 +++++++++++++++++++++++++----------------- tieba.py | 138 ++++++++++++++---------- 4 files changed, 368 insertions(+), 196 deletions(-) diff --git a/Ruishu.py b/Ruishu.py index b29bc81..6db637a 100644 --- a/Ruishu.py +++ b/Ruishu.py @@ -14,6 +14,7 @@ from Crypto.Cipher import DES3 from Crypto.Util.Padding import pad, unpad from aiohttp import ClientSession, TCPConnector import httpx +import logging diffValue = 2 filename='Cache.js' @@ -77,34 +78,49 @@ custom_client = httpx.Client( ) ) +# 添加日志记录 +logging.basicConfig( + level=logging.INFO, + format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' +) +logger = logging.getLogger(__name__) + def initCookie(getUrl='https://wapact.189.cn:9001/gateway/standQuery/detailNew/exchange'): - global js_code_ym, fileContent - cookie = '' - response = custom_client.post(getUrl) - content = response.text.split(' content="')[2].split('" r=')[0] - code1 = response.text.split('$_ts=window')[1].split('