Skip to content

Commit

Permalink
Update jd_price_lite.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yichahucha authored Aug 9, 2020
1 parent e0ab113 commit 077dd0e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions jd_price_lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ README:https://github.com/yichahucha/surge/tree/master

const path1 = "serverConfig";
const path2 = "wareBusiness";
const path3 = "basicConfig";
const consolelog = false;
const url = $request.url;
const body = $response.body;
Expand All @@ -12,6 +13,15 @@ const $tool = tool();
if (url.indexOf(path1) != -1) {
let obj = JSON.parse(body);
delete obj.serverConfig.httpdns;
delete obj.serverConfig.dnsvip;
delete obj.serverConfig.dnsvip_v6;
$done({ body: JSON.stringify(obj) });
}

if (url.indexOf(path3) != -1) {
let obj = JSON.parse(body);
delete obj.data.JDHttpToolKit.httpdns;
delete obj.data.JDHttpToolKit.dnsvipV6;
$done({ body: JSON.stringify(obj) });
}

Expand Down

0 comments on commit 077dd0e

Please sign in to comment.