| 12 | const UA = `jdapp;iPhone;${jdVersion};${Math.ceil(Math.random()*2+12)}.${Math.ceil(Math.random()*4)};${randomString(40)};network/wifi;model/iPhone12,1;addressid/0;appBuild/167741;jdSupportDarkMode/0;Mozilla/5.0 (iPhone; CPU iPhone OS ${iphoneVersion[0]}_${iphoneVersion[1]} like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1` |
| 13 | const UUID = UA.split(';') && UA.split(';')[4] || '' |
| 14 | function randomString(e) { |
| 15 | e = e || 32; |
| 16 | let t = "abcdefhijkmnprstwxyz2345678", a = t.length, n = ""; |
| 17 | for (i = 0; i < e; i++) |
| 18 | n += t.charAt(Math.floor(Math.random() * a)); |
| 19 | return n |
| 20 | } |
| 21 | |
| 22 | let cookiesArr = []; |
| 23 | if ($.isNode()) { |