修复配置公共ck时登入失效 (#59)

This commit is contained in:
echo 2023-04-11 01:48:28 +08:00 committed by GitHub
parent 4a79c329bf
commit b22b70e9e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -52,8 +52,11 @@ export class setPubCk extends plugin {
let ck = msg.replace(/#|'|"/g, '') let ck = msg.replace(/#|'|"/g, '')
let param = {} let param = {}
ck.split(';').forEach((v) => { ck.split(';').forEach((v) => {
let tmp = lodash.trim(v).split('=') // cookie_token_v2,ltoken_v2值也可能有=
param[tmp[0]] = tmp[1] // 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 = '' this.ck = ''