From 0bf5275a68290c336051050b1760e2f18be8d561 Mon Sep 17 00:00:00 2001
From: root
Date: Wed, 7 Jul 2021 02:52:11 -0400
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=8E=2007-07=2002:51=20?=
=?UTF-8?q?=20=20=E6=96=B0=E5=A2=9E=E9=A6=96=E9=A1=B5=E4=BD=BF=E7=94=A8?=
=?UTF-8?q?=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
panel/public/index.html | 12 ++++++++++++
panel/server.js | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/panel/public/index.html b/panel/public/index.html
index c31e218..121d817 100755
--- a/panel/public/index.html
+++ b/panel/public/index.html
@@ -35,6 +35,7 @@
App确认后即可(无视升级提示)
未添加过的用户会自动新增账号,若已添加则会自动更新有效期(一个月)
+
@@ -127,6 +128,15 @@ $(document).ready(function () {
});
}
+ function GetUserCount() {
+ let timeStamp = new Date().getTime();
+ $.get('./GetUserCount?t=' + timeStamp, function (data) {
+ if (data.err == 0) {
+ document.getElementById("UserNum").innerHTML=data.msg;
+ }
+ });
+ }
+
function JumpToApp() {
let timeStamp = new Date().getTime();
$.get('./qrcode?t=' + timeStamp, function (data) {
@@ -174,6 +184,8 @@ $(document).ready(function () {
clearInterval(timeId);
do_landing();
}
+
+ GetUserCount();
});