mirror of
https://github.com/hex-ci/smzdm_script.git
synced 2026-11-02 05:35:48 +08:00
update
This commit is contained in:
2
bot.js
2
bot.js
@@ -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] : '';
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user