修复配置公共ck时登入失效 (#59)
This commit is contained in:
parent
4a79c329bf
commit
b22b70e9e1
|
@ -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 = ''
|
||||||
|
|
Loading…
Reference in New Issue