From 1f8a2dd7d5c0f66ddbce737b8604caebf98093a3 Mon Sep 17 00:00:00 2001 From: maniacata Date: Tue, 10 Nov 2020 13:22:50 +0800 Subject: [PATCH] :bug: remove redundant code --- dist/QRSign.js | 32 -------------------------------- src/QRSign.ts | 34 ---------------------------------- 2 files changed, 66 deletions(-) diff --git a/dist/QRSign.js b/dist/QRSign.js index d05f526..9c88a42 100644 --- a/dist/QRSign.js +++ b/dist/QRSign.js @@ -173,35 +173,3 @@ var QRSign = /** @class */ (function () { return QRSign; }()); exports.QRSign = QRSign; -var sign = new QRSign({ courseId: 1164213, signId: 1983462 }); -// [ -// { -// channel: "/meta/handshake", -// version: "1.0", -// supportedConnectionTypes: [ -// "websocket", -// "eventsource", -// "long-polling", -// "cross-origin-long-polling", -// "callback-polling", -// ], -// id: "1", -// }, -// ][ -// { -// channel: "/meta/connect", -// clientId: "c6jlqzd5391xri99f3qt0a3xpa6uqur", -// connectionType: "long-polling", -// id: "2", -// advice: { -// timeout: 0, -// }, -// } -// ][ -// { -// channel: "/meta/subscribe", -// clientId: "c6jlqzd5391xri99f3qt0a3xpa6uqur", -// subscription: "/attendance/1164213/1982993/qr", -// id: "3", -// } -// ]; diff --git a/src/QRSign.ts b/src/QRSign.ts index 637bcc6..ab14b41 100644 --- a/src/QRSign.ts +++ b/src/QRSign.ts @@ -203,37 +203,3 @@ export class QRSign { id: this.seqId, }); } - -const sign = new QRSign({ courseId: 1164213, signId: 1983462 }); - -// [ -// { -// channel: "/meta/handshake", -// version: "1.0", -// supportedConnectionTypes: [ -// "websocket", -// "eventsource", -// "long-polling", -// "cross-origin-long-polling", -// "callback-polling", -// ], -// id: "1", -// }, -// ][ -// { -// channel: "/meta/connect", -// clientId: "c6jlqzd5391xri99f3qt0a3xpa6uqur", -// connectionType: "long-polling", -// id: "2", -// advice: { -// timeout: 0, -// }, -// } -// ][ -// { -// channel: "/meta/subscribe", -// clientId: "c6jlqzd5391xri99f3qt0a3xpa6uqur", -// subscription: "/attendance/1164213/1982993/qr", -// id: "3", -// } -// ];