mirror of
https://github.com/simple-login/app.git
synced 2025-10-02 03:16:49 +08:00
take into account _MACAPP_MONTHLY_PRODUCT_ID in verify_receipt
This commit is contained in:
parent
22cf8cfe38
commit
30ba566457
1 changed files with 2 additions and 1 deletions
|
@ -509,7 +509,8 @@ def verify_receipt(receipt_data, user, password) -> Optional[AppleSubscription]:
|
||||||
expires_date = arrow.get(int(latest_transaction["expires_date_ms"]) / 1000)
|
expires_date = arrow.get(int(latest_transaction["expires_date_ms"]) / 1000)
|
||||||
plan = (
|
plan = (
|
||||||
PlanEnum.monthly
|
PlanEnum.monthly
|
||||||
if latest_transaction["product_id"] == _MONTHLY_PRODUCT_ID
|
if latest_transaction["product_id"]
|
||||||
|
in (_MONTHLY_PRODUCT_ID, _MACAPP_MONTHLY_PRODUCT_ID)
|
||||||
else PlanEnum.yearly
|
else PlanEnum.yearly
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue