mirror of
https://github.com/hex-ci/smzdm_script.git
synced 2026-02-03 02:53:17 +08:00
update
This commit is contained in:
2
bot.js
2
bot.js
@@ -132,7 +132,7 @@ const getEnvCookies = () => {
|
||||
|
||||
class SmzdmBot {
|
||||
constructor(cookie) {
|
||||
this.cookie = cookie;
|
||||
this.cookie = cookie.trim();
|
||||
|
||||
const match = this.cookie.match(/sess=(.*?);/);
|
||||
this.token = match ? match[1] : '';
|
||||
|
||||
@@ -17,7 +17,7 @@ class SmzdmCheckinBot extends SmzdmBot {
|
||||
constructor(cookie, sk) {
|
||||
super(cookie);
|
||||
|
||||
this.sk = sk;
|
||||
this.sk = sk.trim();
|
||||
}
|
||||
|
||||
async run() {
|
||||
|
||||
Reference in New Issue
Block a user