更新 simpleadmin/www/index.html

This commit is contained in:
taotao 2024-10-14 16:00:24 +00:00
parent a915f0c840
commit e5c29cae84

View File

@ -41,11 +41,6 @@
</button> </button>
<div class="collapse navbar-collapse" id="navbarText"> <div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav me-auto mb-2 mb-lg-0"> <ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="/"
>首页</a
>
</li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="network.html">网络</a> <a class="nav-link" href="network.html">网络</a>
</li> </li>
@ -743,9 +738,9 @@
// if network provider is composed of numbers and spaces, and no letters then use .split(",")[2] // if network provider is composed of numbers and spaces, and no letters then use .split(",")[2]
const mccmncMap = { const mccmncMap = {
"46000": "中国移动", "46000":"中国移动",
"46001": "中国联通", "46003": "中国电信", "46009": "中国联通", "46001":"中国联通", "46003":"中国电信", "46009":"中国联通",
"46011": "中国电信", "46015": "中国广电", "46020": "中国铁通"}; "46011":"中国电信", "46015":"中国广电", "46020":"中国铁通"};
// --- MCCMNC --- // --- MCCMNC ---
this.mccmnc = lines this.mccmnc = lines
@ -753,7 +748,10 @@
.split(",")[4] .split(",")[4]
.replace(/"/g, ""); .replace(/"/g, "");
this.networkProvider = mccmncMap[this.mccmnc] || "未知运营商"; const mccmncNumber = Number(this.mccmnc);
this.networkProvider = mccmncMap[mccmncNumber] || "未知运营商";
// --- APN --- // --- APN ---