Skip to content

Commit 56861c9

Browse files
committed
1 parent c1b7f31 commit 56861c9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Task/weibo.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Surge 4.0 :
1616
weibo.js = type=cron,cronexp=35 5 0 * * *,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js,script-update-interval=0
1717
1818
# 获取微博 Cookie.
19-
weibo.js = type=http-request,pattern=https:\/\/api\.weibo\.cn\/\d\/page\/\w+\?gsid,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
19+
weibo.js = type=http-request,pattern=https:\/\/api\.weibo\.cn\/\d/user/show/.+(gsid=),script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
2020
# 微博钱包签到Cookie
2121
weibo.js = type=http-request,pattern=https:\/\/pay\.sc\.weibo\.com\/aj\/mobile\/home\/welfare\/signin\/do\?,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
2222
@@ -26,7 +26,7 @@ Loon 2.1.0+
2626
# 本地脚本
2727
cron "04 00 * * *" script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, enabled=true, tag=新浪微博
2828
29-
http-request https:\/\/api\.weibo\.cn\/\d\/page\/\w+\?gsid script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
29+
http-request https:\/\/api\.weibo\.cn\/\d/user/show/.+(gsid=) script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
3030
3131
http-request https:\/\/pay\.sc\.weibo\.com\/aj\/mobile\/home\/welfare\/signin\/do\? script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
3232
@@ -37,7 +37,7 @@ QX 1.0.6+ :
3737
0 9 * * * https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
3838
3939
[rewrite_local]
40-
https:\/\/api\.weibo\.cn\/\d\/page\/\w+\?gsid url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
40+
https:\/\/api\.weibo\.cn\/\d/user/show/.+(gsid=) url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
4141
4242
# 钱包签到Cookie
4343
https:\/\/pay\.sc\.weibo\.com\/aj\/mobile\/home\/welfare\/signin\/do\? url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
@@ -122,7 +122,7 @@ if ($.isNode()) {
122122
function GetCookie() {
123123
if ($request && $request.method != 'OPTIONS' && $request.url.match(/\/\d\/[a-z]+\/\w+\?gsid/)) {
124124
const signurlVal = $request.url
125-
const token = signurlVal.match(/(gsid=[_a-zA-Z0-9-]+).+(s=\w+)/)
125+
const token = signurlVal.match(/(gsid=[_a-zA-Z0-9-]+).+(s=\w+)$/)
126126
$.log(`token:${token}`)
127127
if (token) $.setdata(token, 'sy_token_wb')
128128
$.msg($.name, `获取微博签到Cookie: 成功`, ``)

TaskConf/sina/qx_rewite.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ https:\/\/newsapi\.sina\.cn\/\?resource=hbpage&newsId=HB-1-sina_gold_center url
44

55
https:\/\/newsapi\.sina\.cn\/\?resource=userpoint\/signIn url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/sinanews.js
66

7-
https:\/\/api\.weibo\.cn\/\d\/page\/\w+\?gsid url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
7+
https:\/\/api\.weibo\.cn\/\d/user/show/.+(gsid=) url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
88

99
https:\/\/pay\.sc\.weibo\.com\/aj\/mobile\/home\/welfare\/signin\/do\? url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
1010

0 commit comments

Comments
 (0)