迁移session和userinfo
This commit is contained in:
parent
cb90b7cee9
commit
4522391425
|
@ -106,10 +106,8 @@ export default class BackupExtension extends BackupExtensionAbility {
|
||||||
}
|
}
|
||||||
|
|
||||||
async transferDb() {
|
async transferDb() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// /**
|
// /**
|
||||||
// * 迁移本地文件
|
// * 迁移本地文件
|
||||||
// */
|
// */
|
||||||
|
|
|
@ -103,20 +103,11 @@ export class UserDataTransfer {
|
||||||
session['secretkey'] = authkeypair['secret_key']
|
session['secretkey'] = authkeypair['secret_key']
|
||||||
session['authkeypair'] = ''
|
session['authkeypair'] = ''
|
||||||
|
|
||||||
const strings: string[] = []
|
const strList: string[] = []
|
||||||
Object.getOwnPropertyNames(session).forEach(key => {
|
Object.getOwnPropertyNames(session).forEach(key => {
|
||||||
strings.push(`${key}=${session[key]}`)
|
strList.push(`${key}=${session[key]}`)
|
||||||
})
|
})
|
||||||
|
|
||||||
return strings.join('; ')
|
return strList.join('; ')
|
||||||
}
|
|
||||||
|
|
||||||
private processUserWpssids(wpssids: string) {
|
|
||||||
const wpssidList = wpssids.trim().split('\n')
|
|
||||||
return wpssidList.join(',')
|
|
||||||
}
|
|
||||||
|
|
||||||
private processUserWpsid(wpssid: string) {
|
|
||||||
return wpssid.trim()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user