设备在线检测功能完善
This commit is contained in:
parent
0c640eeeb8
commit
75531e2ff9
@ -112,12 +112,12 @@ public class EbikeEcuInfoServiceImpl extends ServiceImpl<EbikeEcuInfoMapper, Ebi
|
||||
@Override
|
||||
public boolean online(String ecuSn, String bikeCode) throws IOException {
|
||||
check(ecuSn, bikeCode);
|
||||
// if (StringUtil.hasText(ecuSn)) {
|
||||
// checkEcuSn(ecuSn);
|
||||
// } else {
|
||||
// EbikeEcuInfo ebikeEcuInfo = getEcu(bikeCode);
|
||||
// ecuSn = ebikeEcuInfo.getEcuSn();
|
||||
// }
|
||||
if (StringUtil.hasText(ecuSn)) {
|
||||
checkEcuSn(ecuSn);
|
||||
} else {
|
||||
EbikeEcuInfo ebikeEcuInfo = getEcu(bikeCode);
|
||||
ecuSn = ebikeEcuInfo.getEcuSn();
|
||||
}
|
||||
return EmqxApiClient.isClientOnline(ecuSn);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user