@@ -16,7 +16,7 @@ Surge 4.0 :
1616weibo.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
2121weibo.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# 本地脚本
2727cron "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
3131http-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+ :
37370 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
4343https:\/\/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()) {
122122function GetCookie ( ) {
123123if ( $request && $request . method != 'OPTIONS' && $request . url . match ( / \/ \d \/ [ a - z ] + \/ \w + \? g s i d / ) ) {
124124 const signurlVal = $request . url
125- const token = signurlVal . match ( / ( g s i d = [ _ a - z A - Z 0 - 9 - ] + ) .+ ( s = \w + ) / )
125+ const token = signurlVal . match ( / ( g s i d = [ _ a - z A - Z 0 - 9 - ] + ) .+ ( s = \w + ) $ / )
126126 $ . log ( `token:${ token } ` )
127127 if ( token ) $ . setdata ( token , 'sy_token_wb' )
128128 $ . msg ( $ . name , `获取微博签到Cookie: 成功` , `` )
0 commit comments