mirror of
https://git.oceanpay.cc/danial/kami_itunes_third_api.git
synced 2025-12-18 11:06:33 +00:00
fix: 修复日限额问题
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM python:3.11-slim
|
||||
FROM python:3.12-slim
|
||||
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
|
||||
@@ -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()}")
|
||||
|
||||
Reference in New Issue
Block a user