| 4042 | } |
| 4043 | } |
| 4044 | parseCookie() { |
| 4045 | if (this.rawCookie.includes("#")) { |
| 4046 | const [e, t, r] = this.rawCookie.split("#"); |
| 4047 | this.authorization = e, this.account = t, this.authToken = r || "" |
| 4048 | } else this.authorization = this.rawCookie, this.authToken = "00", this.account = function(e) { |
| 4049 | try { |
| 4050 | const t = String(e || "").replace(/^Basic\s+/i, ""); |
| 4051 | return Ze.enc.Utf8.stringify(Ze.enc.Base64.parse(t)).split(":")[1] || "13800138000" |
| 4052 | } catch (e) { |
| 4053 | return "13800138000" |
| 4054 | } |
| 4055 | }(this.authorization); |
| 4056 | this.maskedAccount = function(e) { |
| 4057 | const t = String(e || "未知账号"); |
| 4058 | return t.length >= 7 ? `${t.slice(0,3)}****${t.slice(7)}` : t |
| 4059 | }(this.account), this.cookies.sensors_stay_time = String(Date.now()) |
| 4060 | } |
| 4061 | log(e) { |
| 4062 | this.reporter.line(`[${this.maskedAccount}] ${e}`) |
| 4063 | } |