(functionid, body)
| 441 | } |
| 442 | |
| 443 | function 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 | |
| 476 | function showMsg() { |
| 477 | console.log(`🧮 本次价格保护金额:${$.refundtotalamount}💰`); |
no outgoing calls
no test coverage detected