mirror of
https://git.oceanpay.cc/danial/kami_itunes_third_api.git
synced 2025-12-18 11:06:33 +00:00
fix(itunes): 删除敏感信息的日志打印
- 移除输出POST请求数据的日志,避免泄露账号密码信息 - 删除接口响应内容的日志打印,增强安全性 - 保持功能逻辑不变,提升代码安全性
This commit is contained in:
@@ -84,7 +84,6 @@ class AppleClient:
|
||||
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>"""
|
||||
logger.info(f"POST DATA: {post_data}")
|
||||
return post_data
|
||||
|
||||
def login(
|
||||
@@ -145,7 +144,6 @@ class AppleClient:
|
||||
originLog="登录重试次数已用完",
|
||||
)
|
||||
|
||||
logger.info(f"<UNK>: {response.text}")
|
||||
response_dict_data = parse_xml(response.text)
|
||||
if "failureType" in response_dict_data:
|
||||
status = 31
|
||||
|
||||
Reference in New Issue
Block a user