diff --git a/README.md b/README.md new file mode 100644 index 0000000..7f0d1ea --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +### iTunes登录脚本 \ No newline at end of file diff --git a/deploy/Dockerfile b/deploy/Dockerfile index cfb7144..cac9848 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-slim +FROM python:3.12-slim COPY . /app WORKDIR /app diff --git a/src/integrations/itunes/api.py b/src/integrations/itunes/api.py index 57ae132..d68c058 100644 --- a/src/integrations/itunes/api.py +++ b/src/integrations/itunes/api.py @@ -231,10 +231,16 @@ class AppleClient: result.errorMessageKey == "MZCommerce.GiftCertificateAlreadyRedeemed" ): + # 已经被兑换 result.status = 12 elif result.errorMessageKey == "MZFreeProductCode.NoSuch": + # 没有这个卡密 result.status = 11 elif result.errorMessageKey == "MZCommerce.NatIdYearlyCapExceededException": + # 年限额 + result.status = 31 + elif result.errorMessageKey == "MZCommerce.NatIdDailyCapExceededException": + # 日限额 result.status = 31 else: logger.error(f"失败状态未知:{response.json()}")