ntrip-caster服务后端

This commit is contained in:
2026-05-15 10:40:26 +08:00
parent 6e761f3727
commit 63b8263dbb
2 changed files with 100 additions and 49 deletions

View File

@@ -1,15 +1,5 @@
const { Controller } = require('egg');
const GBK = require("gbk.js");
const decode = (data) => {
let arr = [];
data.match(/..?/g).forEach((element) => {
arr.push(parseInt(element, 16));
});
return GBK.decode(arr);
}
const CryptoJS = require("crypto-js");
const KEY = CryptoJS.enc.Utf8.parse('BDQH');