forked from chankanzu/Quan-X-1.3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMojo.noto.js
27 lines (27 loc) · 809 Bytes
/
Mojo.noto.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
let obj = JSON.parse($response.body);
let url= $request.url;
if(url.endsWith("offerings")||url.endsWith("products"))
{$done({})}
else
{
obj["subscriber"]["subscriptions"]= {
"video.mojo.pro.yearly": {
"is_sandbox": false,
"period_type": "active",
"billing_issues_detected_at": null,
"unsubscribe_detected_at": null,
"expires_date": "2099-12-01T03:51:32Z",
"original_purchase_date": "2019-10-31T02:51:33Z",
"purchase_date": "2019-10-31T02:51:32Z",
"store": "app_store"
}
};
obj["subscriber"]["entitlements"]= {
"pro": {
"expires_date": "2099-12-01T03:51:32Z",
"product_identifier": "video.mojo.pro.yearly",
"purchase_date": "2019-10-31T02:51:32Z"
}
};
}
$done({body: JSON.stringify(obj)});