Skip to content

Commit fe8f528

Browse files
committed
更新[苏宁易购]: 修复部分机型的天天红包就算 Cookie 获取成功也会签到失败问题
1 parent d5da04b commit fe8f528

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

suning/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
77
> 2020.3.15 增加天天低价, 注意更新`mitm``rewrite`并进入天天低价获取两次 Cookie
88
9+
> 2020.3.16 修复部分机型的`天天红包`就算 Cookie 获取成功也会签到失败问题
10+
911
## 配置 (Surge)
1012

1113
```properties

suning/suning.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ function signweb() {
9595
if (VAL_signweburl) {
9696
url = { url: VAL_signweburl, headers: JSON.parse(VAL_signwebheader) }
9797
delete url.headers['Cookie']
98+
url.headers['Host'] = 'luckman.suning.com'
99+
url.headers['Referer'] = 'https: //luckman.suning.com/luck-web/sign/app/index_sign.htm?wx_navbar_transparent=true'
100+
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'
98101
} else if (VAL_signweburlBarry) {
99102
url = { url: VAL_signweburlBarry, headers: {} }
100103
url.headers['Cookie'] = chavy.getdata('snyg_userCookieKey')

0 commit comments

Comments
 (0)