Bläddra i källkod

修改一些东西

WebApi
SmallChi(Koike) 4 månader sedan
förälder
incheckning
876a89931b
6 ändrade filer med 12 tillägg och 145 borttagningar
  1. +1
    -1
      README.md
  2. +0
    -1
      src/JTTools/Program.cs
  3. +2
    -1
      src/JTTools/appsettings.json
  4. +3
    -135
      src/JTTools/wwwroot/index.html
  5. +6
    -7
      src/JTTools/wwwroot/js/site.js
  6. Binär
      src/JTTools/wwwroot/lib/.DS_Store

+ 1
- 1
README.md Visa fil

@@ -1,6 +1,6 @@
# JTTools # JTTools


JT808、JT809、JT1078、JTNE解析工具
JT808、JT809、JT1078、JT905、JT19056解析工具


<a href="https://jttools.smallchi.cn/" target="_blank">在线解析工具</a> <a href="https://jttools.smallchi.cn/" target="_blank">在线解析工具</a>




+ 0
- 1
src/JTTools/Program.cs Visa fil

@@ -10,7 +10,6 @@ using JT808.Protocol.MessagePack;
using JT808.Protocol.MessageBody; using JT808.Protocol.MessageBody;
using JTTools.Configs; using JTTools.Configs;
using JT808.Protocol.Extensions.GPS51; using JT808.Protocol.Extensions.GPS51;
using YamlDotNet.Serialization;
using JT905.Protocol; using JT905.Protocol;






+ 2
- 1
src/JTTools/appsettings.json Visa fil

@@ -5,5 +5,6 @@
"Microsoft.AspNetCore": "Warning" "Microsoft.AspNetCore": "Warning"
} }
}, },
"AllowedHosts": "*"
"AllowedHosts": "*",
"urls": "http://*:18889;"
} }

+ 3
- 135
src/JTTools/wwwroot/index.html Visa fil

@@ -11,8 +11,7 @@
<meta name="author" content="SmallChi(Koike)" /> <meta name="author" content="SmallChi(Koike)" />
<link rel="stylesheet" href="/lib/bootstrap/dist/css/bootstrap.min.css" /> <link rel="stylesheet" href="/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="/lib/bootstrap-icons/bootstrap-icons.min.css" /> <link rel="stylesheet" href="/lib/bootstrap-icons/bootstrap-icons.min.css" />

<link rel="stylesheet" href="/css/site.css" />
<link rel="stylesheet" href="/css/site.css?v=1.0.0" />
<script src="/lib/jquery/dist/jquery.min.js" type="text/javascript"></script> <script src="/lib/jquery/dist/jquery.min.js" type="text/javascript"></script>
<script src="/lib/bootstrap/dist/js/bootstrap.bundle.min.js" type="text/javascript"></script> <script src="/lib/bootstrap/dist/js/bootstrap.bundle.min.js" type="text/javascript"></script>
<script src="/lib/axios@1.7.9.min.js" type="text/javascript"></script> <script src="/lib/axios@1.7.9.min.js" type="text/javascript"></script>
@@ -515,137 +514,6 @@
</div> </div>
</div> </div>
</div> </div>
<!-- <div class="col">
<div class="card">
<div class="icon">
<i class="bi bi-reception-4 fs-1"></i>
</div>
<div class="card-body">
<h5 class="card-title">4G全网通</h5>
<p class="card-text">This is a longer card with supporting text below as a
natural lead-in to additional
content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="icon">
<i class="bi bi-reception-4 fs-1"></i>
</div>
<div class="card-body">
<h5 class="card-title">4G全网通</h5>
<p class="card-text">This is a longer card with supporting text below as a
natural lead-in to additional
content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="icon">
<i class="bi bi-reception-4 fs-1"></i>
</div>
<div class="card-body">
<h5 class="card-title">4G全网通</h5>
<p class="card-text">This is a longer card with supporting text below as a
natural lead-in to additional
content.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="icon">
<i class="bi bi-reception-4 fs-1"></i>
</div>
<div class="card-body">
<h5 class="card-title">4G全网通</h5>
<p class="card-text">This is a longer card with supporting text below as a
natural lead-in to additional
content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="icon">
<i class="bi bi-reception-4 fs-1"></i>
</div>
<div class="card-body">
<h5 class="card-title">4G全网通</h5>
<p class="card-text">This is a longer card with supporting text below as a
natural lead-in to additional
content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="icon">
<i class="bi bi-reception-4 fs-1"></i>
</div>
<div class="card-body">
<h5 class="card-title">4G全网通</h5>
<p class="card-text">This is a longer card with supporting text below as a
natural lead-in to additional
content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="icon">
<i class="bi bi-reception-4 fs-1"></i>
</div>
<div class="card-body">
<h5 class="card-title">4G全网通</h5>
<p class="card-text">This is a longer card with supporting text below as a
natural lead-in to additional
content.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="icon">
<i class="bi bi-reception-4 fs-1"></i>
</div>
<div class="card-body">
<h5 class="card-title">4G全网通</h5>
<p class="card-text">This is a longer card with supporting text below as a
natural lead-in to additional
content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="icon">
<i class="bi bi-reception-4 fs-1"></i>
</div>
<div class="card-body">
<h5 class="card-title">4G全网通</h5>
<p class="card-text">This is a longer card with supporting text below as a
natural lead-in to additional
content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="icon">
<i class="bi bi-reception-4 fs-1"></i>
</div>
<div class="card-body">
<h5 class="card-title">4G全网通</h5>
<p class="card-text">This is a longer card with supporting text below as a
natural lead-in to additional
content. This content is a little bit longer.</p>
</div>
</div>
</div> -->

</div> </div>
</div> </div>
<div id="scrollspyParameters" class="mb-5"> <div id="scrollspyParameters" class="mb-5">
@@ -708,7 +576,7 @@
</tr> </tr>
<tr> <tr>
<td>喇叭</td> <td>喇叭</td>
<td>@twitter</td>
<td>内置喇叭</td>
</tr> </tr>
<tr> <tr>
<td>拾音器</td> <td>拾音器</td>
@@ -779,7 +647,7 @@
</div> </div>
</footer> </footer>
<!-- 底部版权说明 end --> <!-- 底部版权说明 end -->
<script src="/js/site.js?v=1.0.0" type="text/javascript"></script>
<script src="/js/site.js?v=1.0.1" type="text/javascript"></script>
</body> </body>


</html> </html>

+ 6
- 7
src/JTTools/wwwroot/js/site.js Visa fil

@@ -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) { function hexToString(hexStr) {
// 移除可能存在的空格和换行符 // 移除可能存在的空格和换行符
@@ -109,7 +108,7 @@ $(document).ready(function () {
navbarCollapse.hide(); navbarCollapse.hide();
}); });


$("#JT808_ProtocolType").change(function () {
$("#JT808_ProtocolType").on("change", function () {
var protocolType = $(this).val(); var protocolType = $(this).val();
var hexData = JT808HexData; var hexData = JT808HexData;
if ("JT808_JT1078" == protocolType) { if ("JT808_JT1078" == protocolType) {
@@ -129,7 +128,7 @@ $(document).ready(function () {
//$("#JT809_Result").text(""); //$("#JT809_Result").text("");
}); });


$("#JT809_ProtocolType").change(function () {
$("#JT809_ProtocolType").on("change", function () {
var selectedValue = $(this).val(); var selectedValue = $(this).val();
if (selectedValue == "2011") { if (selectedValue == "2011") {
$("#JT809_Hex").val(JT809HexData2011); $("#JT809_Hex").val(JT809HexData2011);
@@ -139,7 +138,7 @@ $(document).ready(function () {
$("#JT809_Result").text(""); $("#JT809_Result").text("");
}); });


$("#JT809_EncryptType").change(function () {
$("#JT809_EncryptType").on("change", function () {
var selectedValue = $(this).val(); var selectedValue = $(this).val();
if (selectedValue == "none") { if (selectedValue == "none") {
$("#JT809_Encrypt_Group").fadeOut(); $("#JT809_Encrypt_Group").fadeOut();
@@ -148,7 +147,7 @@ $(document).ready(function () {
} }
}); });


$("#JT19056_ProtocolType").change(function () {
$("#JT19056_ProtocolType").on("change",function () {
var selectedValue = $(this).val(); var selectedValue = $(this).val();
if (selectedValue == "up") { if (selectedValue == "up") {
$("#JT19056_Hex").val(JT19056UpHexData); $("#JT19056_Hex").val(JT19056UpHexData);
@@ -317,6 +316,6 @@ $(document).ready(function () {
}); });


$("#ProductAD_GPS51").on("click", 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');
}); });
}); });

Binär
src/JTTools/wwwroot/lib/.DS_Store Visa fil


Laddar…
Avbryt
Spara