From b22b70e9e140c92af72cf84ba25aa0ccf4f40f1c Mon Sep 17 00:00:00 2001 From: echo <109016927+zlh-debug@users.noreply.github.com> Date: Tue, 11 Apr 2023 01:48:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE=E5=85=AC?= =?UTF-8?q?=E5=85=B1ck=E6=97=B6=E7=99=BB=E5=85=A5=E5=A4=B1=E6=95=88=20(#59?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/other/setPubCk.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/other/setPubCk.js b/plugins/other/setPubCk.js index d4be99e..1f8324f 100644 --- a/plugins/other/setPubCk.js +++ b/plugins/other/setPubCk.js @@ -52,8 +52,11 @@ export class setPubCk extends plugin { let ck = msg.replace(/#|'|"/g, '') let param = {} ck.split(';').forEach((v) => { - let tmp = lodash.trim(v).split('=') - param[tmp[0]] = tmp[1] + // cookie_token_v2,ltoken_v2值也可能有= + // let tmp = lodash.trim(v).split('=') + let tmp = lodash.trim(v); + let index = tmp.indexOf("="); + param[tmp.slice(0,index)] = tmp.slice(index+1); }) this.ck = ''