Rules-For-Quantumult-X/Scripts/Unlock/ToToWallet.js

69 lines
4.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 脚本功能:图图记账解锁永久高级版
* 软件版本2.3.0
* @type {{subscriber: {entitlements: {all: {grace_period_expires_date: null, product_identifier: string, expires_date: null, purchase_date: string}}, original_purchase_date: string, other_purchases: {"com.ziheng.totowallet.onetimepurchase": {purchase_date: string}}, non_subscriptions: {"com.ziheng.totowallet.onetimepurchase": [{original_purchase_date: string, id: string, store: string, purchase_date: string, is_sandbox: boolean}]}, original_application_version: string, subscriptions: {"com.ziheng.totowallet.yearly": {grace_period_expires_date: null, original_purchase_date: string, billing_issues_detected_at: null, expires_date: string, ownership_type: string, unsubscribe_detected_at: string, store: string, purchase_date: string, is_sandbox: boolean, period_type: string}, "com.ziheng.totowallet.monthly": {grace_period_expires_date: null, original_purchase_date: string, billing_issues_detected_at: null, expires_date: string, ownership_type: string, unsubscribe_detected_at: string, store: string, purchase_date: string, is_sandbox: boolean, period_type: string}}, first_seen: string, last_seen: string, management_url: string, original_app_user_id: string}, request_date: string, request_date_ms: number}}
*/
let objc =
{
"request_date": "2022-01-27T05:56:29Z",
"request_date_ms": 1643262989454,
"subscriber": {
"entitlements": {
"all": {
"expires_date": null,
"grace_period_expires_date": null,
"product_identifier": "com.ziheng.totowallet.onetimepurchase",
"purchase_date": "2022-01-27T04:17:03Z"
}
},
"first_seen": "2021-11-24T07:17:57Z",
"last_seen": "2022-01-27T04:17:54Z",
"management_url": "itms-apps://apps.apple.com/account/subscriptions",
"non_subscriptions": {
"com.ziheng.totowallet.onetimepurchase": [{
"id": "6060eea19b",
"is_sandbox": true,
"original_purchase_date": "2022-01-27T04:17:03Z",
"purchase_date": "2022-01-27T04:17:03Z",
"store": "app_store"
}]
},
"original_app_user_id": "$RCAnonymousID:04d7eec58523496c9b29d3d6f4580ab6",
"original_application_version": "1.0",
"original_purchase_date": "2013-08-01T07:00:00Z",
"other_purchases": {
"com.ziheng.totowallet.onetimepurchase": {
"purchase_date": "2022-01-27T04:17:03Z"
}
},
"subscriptions": {
"com.ziheng.totowallet.monthly": {
"billing_issues_detected_at": null,
"expires_date": "2022-02-11T11:15:28Z",
"grace_period_expires_date": null,
"is_sandbox": false,
"original_purchase_date": "2022-01-11T11:15:29Z",
"ownership_type": "PURCHASED",
"period_type": "normal",
"purchase_date": "2022-01-11T11:15:28Z",
"store": "app_store",
"unsubscribe_detected_at": "2022-01-24T05:49:32Z"
},
"com.ziheng.totowallet.yearly": {
"billing_issues_detected_at": null,
"expires_date": "2021-12-21T09:56:52Z",
"grace_period_expires_date": null,
"is_sandbox": false,
"original_purchase_date": "2021-12-18T09:56:53Z",
"ownership_type": "PURCHASED",
"period_type": "trial",
"purchase_date": "2021-12-18T09:56:52Z",
"store": "app_store",
"unsubscribe_detected_at": "2021-12-19T13:27:33Z"
}
}
}
};
$done({body: JSON.stringify(objc)});