修复wifi发送的数据记录问题

This commit is contained in:
Hinse 2022-03-30 11:00:04 +08:00
parent 09ad0dfdfe
commit 5e1f0d2ea0
4 changed files with 6 additions and 6 deletions

View File

@ -175,9 +175,9 @@ namespace Waste.Application
deviceid = device.Id,
businessid = device.Businessid,
resultid = resultid,
imei = devicedata.IMSI,
iccid = devicedata.ICCID,
imsi = devicedata.IMSI,
imei = devicedata !=null?devicedata.IMSI:"",
iccid = devicedata != null?devicedata.ICCID:"",
imsi = devicedata != null?devicedata.IMSI:"",
time = time,
latitude = "",
longitude = "",
@ -185,7 +185,7 @@ namespace Waste.Application
city = "",
area = data.trashcode,
wastetype = data.WasteType,
weigth = weight,
weigth = data.Weight,
isheart = data.IsHeart,
tare = device.Tare,
isfrist = isfrist

View File

@ -498,7 +498,7 @@ namespace Waste.Application.ThirdApiInfo
return dto;
}
string heartstr = ByteToHexStr(resultByte[i + 2]);//是否为测量数据
if (heartstr != "00")
if (heartstr != "01")
{
dto.IsHeart = true;
}

File diff suppressed because one or more lines are too long