mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
15 lines
332 B
JavaScript
15 lines
332 B
JavaScript
let body = $response.body;
|
|
body = JSON.parse(body);
|
|
if (body?.response) {
|
|
body.response = body.response || {};
|
|
body.response.user = body.response.user || {};
|
|
body.response.user.is_premium = true;
|
|
}
|
|
if (body?.user) {
|
|
body.user = body.user || {};
|
|
body.user.is_premium = true;
|
|
}
|
|
body = JSON.stringify(body);
|
|
|
|
$done({ body })
|