forked from songyangzz/QuantumultX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpeak.js
46 lines (38 loc) · 952 Bytes
/
peak.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
//peak解锁pro
by:chamberlen
[rewrite_local]
^https:\/\/billing\.peakcloud\.org\/billing\/2\/user\/me? url script-response-body peak.js
//MITM=billing.peakcloud.org
*/
let obj=JSON.parse($response.body);
obj={
"response": {
"bbuid": "NKoKXsjJnw",
"usedIntroOfferPeriod": false,
"class": "UserModuleBillingResponse",
"is_in_billing_retry": false,
"modules": [{
"class": "BillingModuleResponse",
"name": "com.brainbow.module.peak.PeakModule",
"subscription": {
"status": 0,
"statusdate": 0,
"source": {
"id": "com.brainbow.peak.arsub_1wtrial_12m3499",
"cancelable": false,
"provider": "itunes",
"type": "trial"
},
"bbuid": "NKoKXsjJnw",
"endTime": 1899724030000,
"startTime": 1577884030503,
"pro": true
}
}]
},
"metaResponse": {
"code": 0
}
}
$done({body: JSON.stringify(obj)})