迁移session和userinfo

This commit is contained in:
Cheliangzhao 2024-05-28 09:37:38 +08:00
parent cb90b7cee9
commit 4522391425
2 changed files with 3 additions and 14 deletions

View File

@ -106,10 +106,8 @@ export default class BackupExtension extends BackupExtensionAbility {
}
async transferDb() {
}
// /**
// * 迁移本地文件
// */

View File

@ -103,20 +103,11 @@ export class UserDataTransfer {
session['secretkey'] = authkeypair['secret_key']
session['authkeypair'] = ''
const strings: string[] = []
const strList: string[] = []
Object.getOwnPropertyNames(session).forEach(key => {
strings.push(`${key}=${session[key]}`)
strList.push(`${key}=${session[key]}`)
})
return strings.join('; ')
}
private processUserWpssids(wpssids: string) {
const wpssidList = wpssids.trim().split('\n')
return wpssidList.join(',')
}
private processUserWpsid(wpssid: string) {
return wpssid.trim()
return strList.join('; ')
}
}