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

Function taskUrl

jd_kd.js:117–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 })
116}
117function taskUrl() {
118 return {
119 url: `https://lop-proxy.jd.com/jiFenApi/signInAndGetReward`,
120 body: '[{"userNo":"$cooMrdGatewayUid$"}]',
121 headers: {
122 'Host': 'lop-proxy.jd.com',
123 'lop-dn': 'jingcai.jd.com',
124 'biz-type': 'service-monitor',
125 'app-key': 'jexpress',
126 'access': 'H5',
127 'content-type': 'application/json;charset=utf-8',
128 'clientinfo': '{"appName":"jingcai","client":"m"}',
129 'accept': 'application/json, text/plain, */*',
130 'jexpress-report-time': '1607330170578',
131 'x-requested-with': 'XMLHttpRequest',
132 'source-client': '2',
133 'appparams': '{"appid":158,"ticket_type":"m"}',
134 'version': '1.0.0',
135 'origin': 'https://jingcai-h5.jd.com',
136 'sec-fetch-site': 'same-site',
137 'sec-fetch-mode': 'cors',
138 'sec-fetch-dest': 'empty',
139 'referer': 'https://jingcai-h5.jd.com/',
140 'accept-language': 'zh-CN,zh;q=0.9',
141 "Cookie": cookie,
142 "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"),
143 }
144 }
145}
146function TotalBean() {
147 return new Promise(async resolve => {
148 const options = {

Callers 1

userSignInFunction · 0.70

Calls 2

isNodeMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected