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

Function taskUrl

jd_price.js:443–474  ·  view source on GitHub ↗
(functionid, body)

Source from the content-addressed store, hash-verified

441}
442
443function taskUrl(functionid, body) {
444 let urlStr = selfDomain + 'rest/priceprophone/priceskusPull';
445 const { useColorApi, forcebot } = $.HyperParam;
446
447 if (useColorApi == 'true') {
448 urlStr =
449 unifiedGatewayName +
450 'api?appid=siteppM&functionId=' +
451 functionid +
452 '&forcebot=' +
453 forcebot +
454 '&t=' +
455 new Date().getTime();
456 }
457 return {
458 url: urlStr,
459 headers: {
460 Host: useColorApi == 'true' ? 'api.m.jd.com' : 'msitepp-fm.jd.com',
461 Accept: '*/*',
462 'Accept-Language': 'zh-cn',
463 'Accept-Encoding': 'gzip, deflate, br',
464 'Content-Type': 'application/x-www-form-urlencoded',
465 Origin: 'https://msitepp-fm.jd.com',
466 Connection: 'keep-alive',
467 Referer: 'https://msitepp-fm.jd.com/rest/priceprophone/priceProPhoneMenu',
468 'User-Agent':
469 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Mobile/15E148 Safari/604.1',
470 Cookie: $.cookie,
471 },
472 body: body ? `body=${JSON.stringify(body)}` : undefined,
473 };
474}
475
476function showMsg() {
477 console.log(`🧮 本次价格保护金额:${$.refundtotalamount}💰`);

Callers 4

getApplyDataFunction · 0.70
skuApplyFunction · 0.70
historyResultQueryFunction · 0.70
getApplyResultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected