diff --git a/suning/README.md b/suning/README.md index 9d296b0e3..1a31a816b 100644 --- a/suning/README.md +++ b/suning/README.md @@ -6,6 +6,8 @@ > 2020.3.15 增加天天低价, 注意更新`mitm`和`rewrite`并进入天天低价获取两次 Cookie +> 2020.3.16 修复部分机型的`天天红包`就算 Cookie 获取成功也会签到失败问题 + ## 配置 (Surge) ```properties diff --git a/suning/suning.js b/suning/suning.js index 32866c2ed..8be8146c1 100644 --- a/suning/suning.js +++ b/suning/suning.js @@ -95,6 +95,9 @@ function signweb() { if (VAL_signweburl) { url = { url: VAL_signweburl, headers: JSON.parse(VAL_signwebheader) } delete url.headers['Cookie'] + url.headers['Host'] = 'luckman.suning.com' + url.headers['Referer'] = 'https: //luckman.suning.com/luck-web/sign/app/index_sign.htm?wx_navbar_transparent=true' + url.headers['User-Agent'] = 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 SNEBUY-APP 8.5.0 SNCLIENT-WAP' } else if (VAL_signweburlBarry) { url = { url: VAL_signweburlBarry, headers: {} } url.headers['Cookie'] = chavy.getdata('snyg_userCookieKey')