更新 simpleadmin/www/index.html

This commit is contained in:
taotao 2024-10-14 15:30:55 +00:00
parent 67b0159faa
commit ddf117324d

View File

@ -741,14 +741,11 @@
.replace(/ /g, "");
// if network provider is composed of numbers and spaces, and no letters then use .split(",")[2]
if (network_provider.match(/^[0-9]+$/) != null) {
this.networkProvider = lines
.find((line) => line.includes("+QSPN:"))
.split(",")[2]
.replace(/"/g, "");
} else {
this.networkProvider = network_provider;
}
const mccmncMap = {
"46000": "中国移动",
"46001": "中国联通", "46003": "中国电信", "46009": "中国联通",
"46011": "中国电信", "46015": "中国广电", "46020": "中国铁通"};
// --- MCCMNC ---
this.mccmnc = lines
@ -756,6 +753,9 @@
.split(",")[4]
.replace(/"/g, "");
this.networkProvider = mccmncMap[this.mccmnc] || "未知运营商";
// --- APN ---
// find this example value from lines "+CGCONTRDP: 1,0,\"internet.dito.ph\",\"100.65.141.236\",\"36.5.141.64.76.204.39.68.23.210.251.16.49.239.42.149\", \"254.128.0.0.0.0.0.0.0.0.0.0.0.0.0.1\",\"131.226.72.19\",\"131.226.73.19\"\r"
this.apn = lines