删除 - Debug 辅助代码

This commit is contained in:
suwings 2018-04-21 14:46:12 +08:00
parent 5bcca1a53c
commit 5bf52f94bd
3 changed files with 2 additions and 4 deletions

View File

@ -10,7 +10,6 @@ class ModelManager {
this._mineself[key] = value;
this.len++;
}
console.log("MINE:" + this.len)
}
del(key) {
if (key) {
@ -19,7 +18,6 @@ class ModelManager {
delete this._mineself[key];
this.len--;
}
console.log("MINE:" + this.len)
}
get(key) {

View File

@ -15,7 +15,7 @@ function getRandToken() {
router.get('/', function (req, res) {
let username = req.session['username'] || undefined;
//ajax 会受到浏览器跨域限制姑不能对其进行csrf攻击获取token尽管它可伪造。
if (req.xhr || true) {
if (req.xhr) {
if (!username || !loginedContainer.isLogined(req.sessionID)) {
MCSERVER.log('[ Token ]', '未登录用户 ', username, ' 请求更新令牌 | 已经阻止');

View File

@ -72,7 +72,7 @@ router.post('/login', function (req, res) {
//判断是否有 ws 正在连接
if (OnlyLoginCheck(req.sessionID)) {
console.log("FUCK");
response.returnMsg(res, 'login/check', "您已经登录过账号了,不可再进行登录,请先退出原账号!");
return;
}