forked from adsproo/txnews
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSMZDM.js
More file actions
21 lines (21 loc) · 560 Bytes
/
SMZDM.js
File metadata and controls
21 lines (21 loc) · 560 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
let body = JSON.parse($response.body);
if (body.data.hasOwnProperty('banner')) {
delete body.data.banner.big_banner;
delete body.data.banner.tonglan_banner;
delete body.data.banner.calendar_banner;
}
if (body.data.hasOwnProperty('big_banner')) {
delete body.data.big_banner;
}
if (body.data.hasOwnProperty('notice')) {
delete body.data.notice;
}
body.data.rows = body.data.rows.filter(function(item) {
if (item.article_channel_id == -1 || item.model_type == "ads") {
return false;
}
return true;
});
$done({
body: JSON.stringify(body)
})