京喜工厂的助力好友UA改成京喜APP的

This commit is contained in:
lxk0301
2020-12-01 09:57:00 +08:00
parent d5db042b73
commit 23ca609f37

View File

@@ -344,14 +344,14 @@ function assistFriend(sharepin) {
const options = {
'url': `https://m.jingxi.com/dreamfactory/friend/AssistFriend?zone=dream_factory&sharepin=${escape(sharepin)}&sceneval=2&g_login_type=1`,
'headers': {
"Host": "wq.jd.com",
"User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : "jdapp;iPhone;9.2.2;14.2;%E4%BA%AC%E4%B8%9C/9.2.2 CFNetwork/1206 Darwin/20.1.0") : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.2.2;14.2;%E4%BA%AC%E4%B8%9C/9.2.2 CFNetwork/1206 Darwin/20.1.0"),
"Accept": "*/*",
"Accept-Language": "zh,en-US;q=0.7,en;q=0.3",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "zh-cn",
"Connection": "keep-alive",
"Referer": "https://wqsd.jd.com/pingou/dream_factory/index.html",
"Cookie": cookie
"Cookie": cookie,
"Host": "m.jingxi.com",
"Referer": "https://st.jingxi.com/pingou/dream_factory/index.html",
"User-Agent": "jdpingou;iPhone;3.15.2;14.2;f803928b71d2fcd51c7eae549f7bc3062d17f63f;network/4g;model/iPhone11,8;appBuild/100365;ADID/0E38E9F1-4B4C-40A4-A479-DD15E58A5623;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/1;hasOCPay/0;supportBestPay/0;session/2;pap/JA2015_311210;brand/apple;supportJDSHWK/1;"
}
}
$.get(options, (err, resp, data) => {