fix(itunes): 删除敏感信息的日志打印

- 移除输出POST请求数据的日志,避免泄露账号密码信息
- 删除接口响应内容的日志打印,增强安全性
- 保持功能逻辑不变,提升代码安全性
This commit is contained in:
danial
2025-11-17 20:06:18 +08:00
parent ea5f25a7f8
commit dc34e8646e

View File

@@ -84,7 +84,6 @@ class AppleClient:
AESKey.load_from_base64("nywao1XkDXeYwbPeWh+SxA=="), AESKey.load_from_base64("nywao1XkDXeYwbPeWh+SxA=="),
) )
post_data = f"""<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>appleId</key><string>{account.account}</string><key>attempt</key><string>1</string><key>guid</key><string>{guid}</string><key>password</key><string>{password}</string><key>rmp</key><string>0</string><key>createSession</key><string>true</string><key>why</key><string>purchase</string></dict></plist>""" post_data = f"""<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>appleId</key><string>{account.account}</string><key>attempt</key><string>1</string><key>guid</key><string>{guid}</string><key>password</key><string>{password}</string><key>rmp</key><string>0</string><key>createSession</key><string>true</string><key>why</key><string>purchase</string></dict></plist>"""
logger.info(f"POST DATA: {post_data}")
return post_data return post_data
def login( def login(
@@ -145,7 +144,6 @@ class AppleClient:
originLog="登录重试次数已用完", originLog="登录重试次数已用完",
) )
logger.info(f"<UNK>: {response.text}")
response_dict_data = parse_xml(response.text) response_dict_data = parse_xml(response.text)
if "failureType" in response_dict_data: if "failureType" in response_dict_data:
status = 31 status = 31