From 876a89931b89d713d1cf5ce90a30bad6a72f575a Mon Sep 17 00:00:00 2001 From: "SmallChi(Koike)" <564952747@qq.com> Date: Sun, 29 Dec 2024 17:17:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=BA=9B=E4=B8=9C?= =?UTF-8?q?=E8=A5=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- src/JTTools/Program.cs | 1 - src/JTTools/appsettings.json | 3 +- src/JTTools/wwwroot/index.html | 138 +----------------------------- src/JTTools/wwwroot/js/site.js | 13 ++- src/JTTools/wwwroot/lib/.DS_Store | Bin 6148 -> 0 bytes 6 files changed, 12 insertions(+), 145 deletions(-) delete mode 100644 src/JTTools/wwwroot/lib/.DS_Store diff --git a/README.md b/README.md index 791b859..1fda02b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # JTTools -JT808、JT809、JT1078、JTNE解析工具 +JT808、JT809、JT1078、JT905、JT19056解析工具 在线解析工具 diff --git a/src/JTTools/Program.cs b/src/JTTools/Program.cs index af4400f..0edde3e 100644 --- a/src/JTTools/Program.cs +++ b/src/JTTools/Program.cs @@ -10,7 +10,6 @@ using JT808.Protocol.MessagePack; using JT808.Protocol.MessageBody; using JTTools.Configs; using JT808.Protocol.Extensions.GPS51; -using YamlDotNet.Serialization; using JT905.Protocol; diff --git a/src/JTTools/appsettings.json b/src/JTTools/appsettings.json index 10f68b8..d5c9d8e 100644 --- a/src/JTTools/appsettings.json +++ b/src/JTTools/appsettings.json @@ -5,5 +5,6 @@ "Microsoft.AspNetCore": "Warning" } }, - "AllowedHosts": "*" + "AllowedHosts": "*", + "urls": "http://*:18889;" } diff --git a/src/JTTools/wwwroot/index.html b/src/JTTools/wwwroot/index.html index a461462..5294239 100644 --- a/src/JTTools/wwwroot/index.html +++ b/src/JTTools/wwwroot/index.html @@ -11,8 +11,7 @@ - - + @@ -515,137 +514,6 @@ - -
@@ -708,7 +576,7 @@ 喇叭 - @twitter + 内置喇叭 拾音器 @@ -779,7 +647,7 @@
- + \ No newline at end of file diff --git a/src/JTTools/wwwroot/js/site.js b/src/JTTools/wwwroot/js/site.js index 33645ba..5b92ad3 100644 --- a/src/JTTools/wwwroot/js/site.js +++ b/src/JTTools/wwwroot/js/site.js @@ -1,5 +1,4 @@ -//axios.defaults.baseURL = "http://120.76.99.64:18889/jtt"; -axios.defaults.baseURL = "https://jttools.smallchi.cn/jtt"; +axios.defaults.baseURL = "https://jttools.smallchi.cn/jtt"; function hexToString(hexStr) { // 移除可能存在的空格和换行符 @@ -109,7 +108,7 @@ $(document).ready(function () { navbarCollapse.hide(); }); - $("#JT808_ProtocolType").change(function () { + $("#JT808_ProtocolType").on("change", function () { var protocolType = $(this).val(); var hexData = JT808HexData; if ("JT808_JT1078" == protocolType) { @@ -129,7 +128,7 @@ $(document).ready(function () { //$("#JT809_Result").text(""); }); - $("#JT809_ProtocolType").change(function () { + $("#JT809_ProtocolType").on("change", function () { var selectedValue = $(this).val(); if (selectedValue == "2011") { $("#JT809_Hex").val(JT809HexData2011); @@ -139,7 +138,7 @@ $(document).ready(function () { $("#JT809_Result").text(""); }); - $("#JT809_EncryptType").change(function () { + $("#JT809_EncryptType").on("change", function () { var selectedValue = $(this).val(); if (selectedValue == "none") { $("#JT809_Encrypt_Group").fadeOut(); @@ -148,7 +147,7 @@ $(document).ready(function () { } }); - $("#JT19056_ProtocolType").change(function () { + $("#JT19056_ProtocolType").on("change",function () { var selectedValue = $(this).val(); if (selectedValue == "up") { $("#JT19056_Hex").val(JT19056UpHexData); @@ -317,6 +316,6 @@ $(document).ready(function () { }); $("#ProductAD_GPS51").on("click", function () { - window.open("https://gps51.com/#/login?username=19019000002&password=Aa0002", '_blank'); + window.open("https://gps51.com/#/login?username=001test&password=Aa1357", '_blank'); }); }); \ No newline at end of file diff --git a/src/JTTools/wwwroot/lib/.DS_Store b/src/JTTools/wwwroot/lib/.DS_Store deleted file mode 100644 index 62bef3e49ed1247401e14d3d640ffb8d9c8beb19..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKu}%Xq47H)dNepykjMy0}ejrrG7xV|?;Hw&UU5mjh{EXst4d2;H=oM%8TYwT!GPjpKiT}&+W7fq7; zDK(Vv+fzUP2U^4SNW1ObVzo|f*GvCEM4Rfm*`@{&)yMh!%jN6a)!}{GwE00)cR$Lm zm#C}GfHU9>I0MeWhymQ$BGrka_s)Pb;0$~-Am>9s6O4vgu^b)fN(lgzXLJ$hQcFlo zFpP#-5i=0hP@smgl^Cqyum|&thFMX=iLLlx+xe?_;j%l{55=80Dthk>I0Hilj&(Sf z`~Mn$naLu57~&&mz!~^w4DhU8)k}Po-L0d~le;#c-JpqxUls)deeejtK+ch~GO6=H abofQXtSGC9y@Uh(Ay5eM&KdXx20j6jk~(Mr