Files
2024-04-02 09:12:07 +08:00

14 lines
340 B
JavaScript

let url = $request.url;
let Body = JSON.parse($response.body);
if (url.match(/icon/)) {
Body.data = {
...Body.data,
big_promotion_center: {},
active_center: {}
}
} else if(url.match(/index/)){
let filtData=Body.data.filter(e=>e.hasMore);
Body.data = filtData;
}
$done({ body: JSON.stringify(Body) })