Skip to content

Commit 3e7f7c3

Browse files
committed
修复错误
1 parent b1cba1b commit 3e7f7c3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Task/weibo.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
更新时间: 2021-02-19 12:30
2+
更新时间: 2021-02-21 22:30
33
44
本脚本仅适用于微博每日签到,支持多账号运行
55
@@ -109,14 +109,14 @@ function GetCookie() {
109109
}
110110
}
111111
else if ($request && $request.method != 'OPTIONS' && $request.headers.Cookie.indexOf("SUB=") > -1) {
112-
const cookieval = $request.headers.Cookie.match(/SUB=[\w\-]+/);
112+
const cookieval = $request.headers.Cookie.match(/SUB=[\w\-]+/)[0];
113113
if (cookies) {
114114
if (cookies.indexOf(cookieval) > -1) {
115115
$.log("此账号Cookie已存在,本次跳过")
116116
} else if (cookies.indexOf(cookieval) == -1) {
117117
cookie = cookies + "#" + cookieval;
118118
$.setdata(cookie, 'wb_cookie');
119-
Cookies = cookie.split('#')
119+
Cookies = cookie.split('#');
120120
$.log(`cookie: ${cookie}`);
121121
$.msg($.name, '获取微博用户'+Cookies.length+'Cookie: 成功', ``)
122122
}

0 commit comments

Comments
 (0)