Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/chavyleung/scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gideonsenku committed Mar 16, 2020
2 parents c22cf1b + 19921d4 commit 29116ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions suning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
> 2020.3.15 增加天天低价, 注意更新`mitm``rewrite`并进入天天低价获取两次 Cookie
> 2020.3.16 修复部分机型的`天天红包`就算 Cookie 获取成功也会签到失败问题
## 配置 (Surge)

```properties
Expand Down
3 changes: 3 additions & 0 deletions suning/suning.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 29116ab

Please sign in to comment.