Skip to content

Commit c553f4b

Browse files
committed
1 parent c9e55f3 commit c553f4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Task/weibo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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+$)/)$1$3
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: 成功`, ``)

0 commit comments

Comments
 (0)