Skip to content

Commit d9fb60f

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Task/weibo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ if ($.isNode()) {
9191
function GetCookie() {
9292
if ($request && $request.method != 'OPTIONS' && $request.url.indexOf("gsid=") > -1) {
9393
const signurlVal = $request.url;
94-
let token = signurlVal.replace(/(.+)(from=\w+)(.+)(&uid=\d+)(.+)(&gsid=[_a-zA-Z0-9-]+)(&.+)(&s=\w+)/,'$2$4$6$8'),
95-
uid = token.match(/uid=\d+/);
94+
let token = signurlVal.replace(/(.+)(from=\w+)(.+)(&uid=\d+)(.+)(&gsid=[_a-zA-Z0-9-]+)(&.+)(&s=\w+)&?/,'$2$4$6$8'),
95+
uid = token.match(/uid=\d+/)[0];
9696
if (wbtoken) {
9797
if (wbtoken.indexOf(uid) > -1) {
9898
$.log("此账号Cookie已存在,本次跳过")

0 commit comments

Comments
 (0)