(url, body, reqSource, Host, ContentType)
| 1058 | } |
| 1059 | } |
| 1060 | function taskPostUrl(url, body, reqSource, Host, ContentType) { |
| 1061 | return { |
| 1062 | url: url, |
| 1063 | body: body, |
| 1064 | headers: { |
| 1065 | 'Cookie': cookie, |
| 1066 | 'User-Agent': $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"), |
| 1067 | 'reqSource': reqSource, |
| 1068 | 'Content-Type': ContentType, |
| 1069 | 'Host': Host, |
| 1070 | 'Referer': 'https://jdjoy.jd.com/pet/index', |
| 1071 | 'Accept-Language': 'zh-cn', |
| 1072 | 'Accept-Encoding': 'gzip, deflate, br', |
| 1073 | } |
| 1074 | } |
| 1075 | } |
| 1076 | function jsonParse(str) { |
| 1077 | if (typeof str == "string") { |
| 1078 | try { |
no test coverage detected