ios_rule_script/source/script/9fa2295d8beaa680d91a8cbf69c2a4ee.js
2021-04-17 01:38:57 +08:00

8 lines
546 B
JavaScript

/*
不背单词解锁装备 @Ljm666888
https://sapi.beingfine.cn/v3/report/launch/
不背单词解锁装备 = type=http-response,pattern=^https:\/\/sapi\.beingfine\.cn\/v3\/report\/launch\/,requires-body=1,max-size=0,script-path=bubei.js,
*/
let obj = JSON.parse($response.body);
obj.data_body = obj.data_body.replace(/expire_date":\d+/g, 'expire_date":1884436316000').replace(/granted":\d+/g, 'granted":1').replace(/user_type":\d+/g, 'user_type":3').replace(/collins_user_type":\d+/g, 'collins_user_type":3');
$done({body: JSON.stringify(obj)});