From 4c1b96cadce2a53f65a4076fd44eb044d0c8fcaf Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Thu, 14 Nov 2024 18:30:12 +0800 Subject: [PATCH] no message --- js/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/common.js b/js/common.js index 45041dc..1021a5b 100644 --- a/js/common.js +++ b/js/common.js @@ -25,7 +25,7 @@ function $ajax(url) { showWindow("login", "https://passport.gter.net/login/ajax", "get", -1, { cover: true }) reject() } - if (data.code == 201) creationAlertBox("error", res.message || res.msg) + if (data.code == 201) creationAlertBox("error", data.message || data.msg) resolve(data) }) .catch(err => { @@ -57,7 +57,7 @@ function $ajaxget(url, data) { showWindow("login", "https://passport.gter.net/login/ajax", "get", -1, { cover: true }) reject() } - if (data.code == 201) creationAlertBox("error", res.message || res.msg) + if (data.code == 201) creationAlertBox("error", data.message || data.msg) resolve(data) })