fix: 退出后不保留登录状态,调试输出改为总开关

This commit is contained in:
Nixevol
2026-10-16 15:39:05 +08:00
parent 543fcce134
commit d5dcd7086d
7 changed files with 253 additions and 51 deletions
+3
View File
@@ -187,6 +187,7 @@ func (p *pageCrypto) calibrateAES() {
}
key := []byte(v.String())
p.aesKey = key
debugf("AES密钥 %s", string(key))
const probe = "probe"
jsText, err := p.callAES(false, probe)
if err != nil {
@@ -201,6 +202,7 @@ func (p *pageCrypto) calibrateAES() {
return
}
p.useNativeAES = true
debugf("AES使用原生实现")
}
// calibrateRSA 从登录脚本里取出公钥。官网密文长度等于该公钥块长时才走原生。
@@ -224,6 +226,7 @@ func (p *pageCrypto) calibrateRSA() {
}
p.rsaPub = pub
p.useNativeRSA = true
debugf("RSA公钥位数 %d", pub.N.BitLen())
}
func newBrowserVM() (*goja.Runtime, error) {