Skip to content

Commit 01bd50e

Browse files
committed
更换微博用户ck重写
1 parent 65642e4 commit 01bd50e

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

Task/weibo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
更新时间: 2021-03-11 19:30
2+
更新时间: 2021-03-11 20:20
33
44
本脚本仅适用于微博每日签到,支持多账号运行
55
@@ -133,7 +133,7 @@ function GetCookie() {
133133
function getsign() {
134134
return new Promise((resolve, reject) => {
135135
let signurl = {
136-
url: `https://api.weibo.cn/2/checkin/add?c=iphone`+token,
136+
url: `https://api.weibo.cn/2/checkin/add?c=iphone&`+token,
137137
headers: {
138138
"User-Agent": `Weibo/52588 (iPhone; iOS 14.5; Scale/3.00)`
139139
}

TaskConf/sina/loon.plugin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ cron "4 0 * * *" script-path=https://raw.githubusercontent.com/Sunert/Scripts/ma
55

66
http-request https:\/\/api\.weibo\.cn\/\d\/users\/show script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, enabled=true, tag=新浪微博
77

8-
http-request https:\/\/m\.weibo\.cn\/c\/checkin\/ug\/v2\/signin\/module\?module script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, enabled=true, tag=新浪微博
8+
http-request https:\/\/api\.weibo\.cn\/2\/logservice\/service script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, enabled=true, tag=新浪微博
99

1010

1111
[MITM]
12-
hostname = api.weibo.cn, m.weibo.cn
12+
hostname = api.weibo.cn

TaskConf/sina/qx_rewite.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
hostname = api.weibo.cn, m.weibo.cn
1+
hostname = api.weibo.cn
22
#newsapi.sina.cn, lite.sina.cn
33

4-
#https:\/\/newsapi\.sina\.cn\/\?resource=hbpage&newsId=HB-1-sina_gold_center url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/sinanews.js
5-
6-
#https:\/\/newsapi\.sina\.cn\/\?resource=userpoint\/signIn url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/sinanews.js
7-
84
https:\/\/api\.weibo\.cn\/\d\/users\/show url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
95

106
https:\/\/api\.weibo\.cn\/2\/logservice\/service url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
117

8+
#https:\/\/newsapi\.sina\.cn\/\?resource=hbpage&newsId=HB-1-sina_gold_center url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/sinanews.js
9+
10+
#https:\/\/newsapi\.sina\.cn\/\?resource=userpoint\/signIn url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/sinanews.js
11+
1212
#https?:\/\/lite\.sina\.cn\/\?resource=hbpage&newsId=HB-1-sina_gold_center - script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/sinanews.js
1313

1414
#https?:\/\/lite\.sina\.cn\/\?resource=userpoint\/signIn - script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/sinanews.js

TaskConf/sina/readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ https://raw.githubusercontent.com/Sunert/Scripts/master/TaskConf/sina/surge.sgmo
2424
2525
# 获取微博 Cookie.
2626
微博签到 = type=http-request,pattern=https:\/\/api\.weibo\.cn\/\d\/users\/show,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
27-
微博签到 = type=http-request,pattern=https:\/\/m\.weibo\.cn\/c\/checkin\/ug\/v2\/signin\/module\?module,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
27+
微博签到 = type=http-request,pattern=https:\/\/api\.weibo\.cn\/2\/logservice\/service,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
2828
```
2929
#### Shadowrocket(Cron配置):
3030

@@ -46,7 +46,7 @@ https://raw.githubusercontent.com/Sunert/Scripts/master/TaskConf/sina/loon.plugi
4646
cron "4 0 * * *" script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, enabled=true, tag=新浪微博
4747
4848
http-request https:\/\/api\.weibo\.cn\/\d\/users\/show script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, enabled=true, tag=新浪微博
49-
http-request https:\/\/m\.weibo\.cn\/c\/checkin\/ug\/v2\/signin\/module\?module script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, enabled=true, tag=新浪微博
49+
http-request https:\/\/api\.weibo\.cn\/2\/logservice\/service script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, enabled=true, tag=新浪微博
5050
```
5151
#### Quantumult X:
5252
* [远程重写配置](https://raw.githubusercontent.com/Sunert/Scripts/master/TaskConf/sina/qx_rewite.txt)
@@ -60,7 +60,7 @@ https://raw.githubusercontent.com/Sunert/Scripts/master/TaskConf/sina/qx_rewite.
6060
```
6161
[rewrite_local]
6262
https:\/\/api\.weibo\.cn\/\d\/users\/show url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
63-
https:\/\/m\.weibo\.cn\/c\/checkin\/ug\/v2\/signin\/module\?module url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
63+
https:\/\/api\.weibo\.cn\/2\/logservice\/service url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
6464
```
6565
* 本地任务配置
6666

@@ -69,8 +69,8 @@ https:\/\/m\.weibo\.cn\/c\/checkin\/ug\/v2\/signin\/module\?module url script-re
6969
1 0 * * * https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, tag=新浪微博
7070
```
7171
### 获取Cookie方法
72-
1. 打开微博App,获取Cookie,获取后请注释或禁用Cookie
73-
2. 进入"用户任务中心",获取用户信息Cookie(可选,增加显示个人任务红包余额)
72+
1. 打开微博App,获取签到Cookie,获取后请注释或禁用Cookie
73+
2. 稍等或者刷新一下,获取用户信息Cookie(可选,增加显示个人任务红包余额)
7474

7575
>>> [回到顶部](#IOS配置教程)
7676

TaskConf/sina/surge.sgmodule

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# 获取微博 Cookie.
99
微博签到 = type=http-request,pattern=https:\/\/api\.weibo\.cn\/\d\/users\/show,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
1010

11-
微博签到 = type=http-request,pattern=https:\/\/m\.weibo\.cn\/c\/checkin\/ug\/v2\/signin\/module\?module,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
11+
微博签到 = type=http-request,pattern=https:\/\/api\.weibo\.cn\/2\/logservice\/service,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
1212

1313
[MITM]
14-
hostname = %APPEND% api.weibo.cn, m.weibo.cn
14+
hostname = %APPEND% api.weibo.cn

0 commit comments

Comments
 (0)