MCPcopy Create free account
hub / github.com/Semporia/Scripts / getGetRequest

Function getGetRequest

jd_upgrade.js:196–208  ·  view source on GitHub ↗
(type, body)

Source from the content-addressed store, hash-verified

194 }
195}
196async function getGetRequest(type, body) {
197 let url = `https://api.m.jd.com/client.action?functionId=${type}&body=${body}&appid=ld&client=apple&clientVersion=${jdVersion}&networkType=wifi&osVersion=${iphoneVersion[0]}.${iphoneVersion[1]}&uuid=${UUID}&openudid=${UUID}`;
198 const method = `GET`;
199 const headers = {
200 "Accept": "*/*",
201 "Accept-Encoding": "gzip, deflate, br",
202 "Accept-Language": "zh-cn",
203 'Cookie': $.cookie,
204 "Referer": "https://h5.m.jd.com/",
205 "User-Agent": UA,
206 };
207 return {url: url, method: method, headers: headers};
208}
209// 随机数
210function getRndInteger(min, max) {
211 return Math.floor(Math.random() * (max - min) ) + min;

Callers 1

takePostRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected