From d4893f8d05c8469319bd958d25137581c12f8ea2 Mon Sep 17 00:00:00 2001 From: SVE1R Date: Sun, 14 Jan 2024 19:09:52 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=8F=20feat:=20=E6=96=B0=E5=A2=9E=20Pil?= =?UTF-8?q?low=20=E8=A7=A3=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rewrite/Unlock/Pillow.unlock | 8 ++++++++ Scripts/Unlock/Pillow.js | 40 ++++++++++++++++++++++++++++++++++++ Scripts/Unlock/Pillow.min.js | 1 + 3 files changed, 49 insertions(+) create mode 100644 Rewrite/Unlock/Pillow.unlock create mode 100644 Scripts/Unlock/Pillow.js create mode 100644 Scripts/Unlock/Pillow.min.js diff --git a/Rewrite/Unlock/Pillow.unlock b/Rewrite/Unlock/Pillow.unlock new file mode 100644 index 0000000..5ac7ee8 --- /dev/null +++ b/Rewrite/Unlock/Pillow.unlock @@ -0,0 +1,8 @@ +############################## +# Pillow 订阅解锁 +# LastUpdateDate: 2024-01-14 19:09:49 +############################## + +hostname = api.revenuecat.com + +https:\/\/api\.revenuecat\.com\/v1\/(subscribers|receipts) url script-response-body https://rules-for-qx.sveir.xyz/Scripts/Unlock/Pillow.min.js \ No newline at end of file diff --git a/Scripts/Unlock/Pillow.js b/Scripts/Unlock/Pillow.js new file mode 100644 index 0000000..ea9cc10 --- /dev/null +++ b/Scripts/Unlock/Pillow.js @@ -0,0 +1,40 @@ +let response = JSON.parse($response.body); + +let obj = { + "request_date": "2022-08-06T02:30:14Z", + "request_date_ms": 1837536263000, + "subscriber": { + "entitlements": { + "premium": { + "expires_date": "2023-08-06T02:30:14Z", + "grace_period_expires_date": null, + "product_identifier": "com.neybox.pillow.premium.month", + "purchase_date": "2022-08-06T02:30:14Z" + } + }, + "first_seen": "2022-08-06T02:30:14Z", + "last_seen": "2022-08-06T02:30:14Z", + "management_url": null, + "non_subscriptions": {}, + "original_app_user_id": "YOUR_USER_ID", + "original_application_version": "YOUR_APP_VERSION", + "original_purchase_date": "2022-08-06T02:30:14Z", + "other_purchases": {}, + "subscriptions": { + "com.neybox.pillow.premium.month": { + "billing_issues_detected_at": null, + "expires_date": "2099-08-06T02:30:14Z", + "grace_period_expires_date": null, + "is_sandbox": false, + "original_purchase_date": "2022-08-06T02:30:14Z", + "ownership_type": "PURCHASED", + "period_type": "active", + "purchase_date": "2022-08-06T02:30:14Z", + "store": "app_store", + "unsubscribe_detected_at": "2022-09-08T02:30:14Z" + } + } + } +}; + +$done({ "body": JSON.stringify(obj) }); \ No newline at end of file diff --git a/Scripts/Unlock/Pillow.min.js b/Scripts/Unlock/Pillow.min.js new file mode 100644 index 0000000..1e53945 --- /dev/null +++ b/Scripts/Unlock/Pillow.min.js @@ -0,0 +1 @@ +let response=JSON.parse($response.body),obj={request_date:"2022-08-06T02:30:14Z",request_date_ms:1837536263e3,subscriber:{entitlements:{premium:{expires_date:"2023-08-06T02:30:14Z",grace_period_expires_date:null,product_identifier:"com.neybox.pillow.premium.month",purchase_date:"2022-08-06T02:30:14Z"}},first_seen:"2022-08-06T02:30:14Z",last_seen:"2022-08-06T02:30:14Z",management_url:null,non_subscriptions:{},original_app_user_id:"YOUR_USER_ID",original_application_version:"YOUR_APP_VERSION",original_purchase_date:"2022-08-06T02:30:14Z",other_purchases:{},subscriptions:{"com.neybox.pillow.premium.month":{billing_issues_detected_at:null,expires_date:"2099-08-06T02:30:14Z",grace_period_expires_date:null,is_sandbox:!1,original_purchase_date:"2022-08-06T02:30:14Z",ownership_type:"PURCHASED",period_type:"active",purchase_date:"2022-08-06T02:30:14Z",store:"app_store",unsubscribe_detected_at:"2022-09-08T02:30:14Z"}}}};$done({body:JSON.stringify(obj)}); \ No newline at end of file