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 62bef3e..0000000 Binary files a/src/JTTools/wwwroot/lib/.DS_Store and /dev/null differ