| 194 | } |
| 195 | } |
| 196 | async 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 | // 随机数 |
| 210 | function getRndInteger(min, max) { |
| 211 | return Math.floor(Math.random() * (max - min) ) + min; |