更新 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, ""); .replace(/ /g, "");
// 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]
if (network_provider.match(/^[0-9]+$/) != null) {
this.networkProvider = lines const mccmncMap = {
.find((line) => line.includes("+QSPN:")) "46000": "中国移动",
.split(",")[2] "46001": "中国联通", "46003": "中国电信", "46009": "中国联通",
.replace(/"/g, ""); "46011": "中国电信", "46015": "中国广电", "46020": "中国铁通"};
} else {
this.networkProvider = network_provider;
}
// --- MCCMNC --- // --- MCCMNC ---
this.mccmnc = lines this.mccmnc = lines
@ -756,6 +753,9 @@
.split(",")[4] .split(",")[4]
.replace(/"/g, ""); .replace(/"/g, "");
this.networkProvider = mccmncMap[this.mccmnc] || "未知运营商";
// --- APN --- // --- 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" // 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 this.apn = lines