add - 添加报文长度判断,更改日志路径

master
SoulStar 4 months ago
parent 0b6b31a706
commit d0c0083986

@ -19,6 +19,10 @@ namespace SlnMesnac.TouchSocket
{ {
TcpVisionEntity entity; TcpVisionEntity entity;
//数据校验从起始符开始到数据位按字节求和得出的结果对256求余 //数据校验从起始符开始到数据位按字节求和得出的结果对256求余
if(bytes.Length <= 2)
{
return null;
}
int checkDatalength = bytes.Length - 2; int checkDatalength = bytes.Length - 2;
byte checksum = bytes[checkDatalength]; byte checksum = bytes[checkDatalength];
byte[] checkData = new byte[checkDatalength]; byte[] checkData = new byte[checkDatalength];

@ -8,7 +8,7 @@
}, },
"AllowedHosts": "*", "AllowedHosts": "*",
"AppConfig": { "AppConfig": {
"logPath": "F:\\Mesnac\\2023部门项目\\机场AGV调度\\HightWay_AirPot_WCS\\SlnMesnac.WPF\\bin\\Debug\\net6.0-windows\\log", "logPath": "D:\\WorkCode\\AirPortWCS\\SlnMesnac.WPF\\bin\\Debug\\net6.0-windows\\log",
"SqlConfig": [ "SqlConfig": [
//{ //{
// "configId": "mes", // "configId": "mes",

Loading…
Cancel
Save