This commit is contained in:
Hex
2023-03-13 01:19:26 +08:00
parent cfbb4229bf
commit 6f05e417f9
2 changed files with 2 additions and 2 deletions

2
bot.js
View File

@@ -132,7 +132,7 @@ const getEnvCookies = () => {
class SmzdmBot { class SmzdmBot {
constructor(cookie) { constructor(cookie) {
this.cookie = cookie; this.cookie = cookie.trim();
const match = this.cookie.match(/sess=(.*?);/); const match = this.cookie.match(/sess=(.*?);/);
this.token = match ? match[1] : ''; this.token = match ? match[1] : '';

View File

@@ -17,7 +17,7 @@ class SmzdmCheckinBot extends SmzdmBot {
constructor(cookie, sk) { constructor(cookie, sk) {
super(cookie); super(cookie);
this.sk = sk; this.sk = sk.trim();
} }
async run() { async run() {