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('