Skip to content

Commit 4cd5d21

Browse files
committed
增加微博用户ck
1 parent 8b4c68a commit 4cd5d21

5 files changed

Lines changed: 9 additions & 8 deletions

File tree

Task/weibo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,13 @@ function GetCookie() {
8888
tokens = wbtoken + "#" + token;
8989
$.setdata(tokens, 'sy_token_wb');
9090
$.log(`tokens: ${tokens}`)
91+
$.msg($.name, `获取微博签到Cookie: 成功`, ``)
9192
}
9293
} else {
9394
$.setdata(token, 'sy_token_wb');
9495
$.log(`tokens: ${token}`)
96+
$.msg($.name, `获取微博签到Cookie: 成功`, ``)
9597
}
96-
$.msg($.name, `获取微博签到Cookie: 成功`, ``)
9798
}
9899
else if ($request && $request.method != 'OPTIONS' && $request.headers.Cookie.indexOf("SUB=") > -1) {
99100
const cookieval = $request.headers.Cookie.match(/SUB=[\w\-]+/);

TaskConf/sina/loon.plugin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ 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\/getcashdetail script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, enabled=true, tag=新浪微博
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=新浪微博
99

1010

1111
[MITM]

TaskConf/sina/qx_rewite.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ https:\/\/newsapi\.sina\.cn\/\?resource=userpoint\/signIn url script-request-hea
66

77
https:\/\/api\.weibo\.cn\/\d\/users\/show url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
88

9-
https:\/\/m\.weibo\.cn\/c\/checkin\/getcashdetail url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
9+
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
1010

1111
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
1212

TaskConf/sina/readme.md

Lines changed: 4 additions & 4 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\/getcashdetail,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
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\/getcashdetail 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=新浪微博
5050
```
5151
#### Quantumult X:
5252
* [远程重写配置](https://raw.githubusercontent.com/Sunert/Scripts/master/TaskConf/txnews/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\/getcashdetail 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
6464
```
6565
* 本地任务配置
6666

@@ -70,7 +70,7 @@ https:\/\/m\.weibo\.cn\/c\/checkin\/getcashdetail url script-request-header http
7070
```
7171
### 获取Cookie方法
7272
1. 打开微博App,获取Cookie,获取后请注释或禁用Cookie
73-
2. 已取消获取获取钱包Cookie
73+
2. 进入"用户任务中心",获取用户信息Cookie(可选,增加显示个人任务红包余额)
7474

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

TaskConf/sina/surge.sgmodule

Lines changed: 1 addition & 1 deletion
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\/getcashdetail,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
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
1212

1313
[MITM]
1414
hostname = %APPEND% api.weibo.cn, m.weibo.cn

0 commit comments

Comments
 (0)