|
@@ -2,6 +2,7 @@ package com.xy.service.factory.device.impl.open;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.core.util.BooleanUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.json.JSONObject;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
@@ -212,7 +213,7 @@ public class OpenDeviceFactoryImpl implements DeviceFactory {
|
|
|
.setDeviceName(deviceName)
|
|
|
.setBoardSn(nfcSn).setNfcSn(nfcSn).setAddress(dv.getPlaceName());
|
|
|
Boolean b = R.feignCheckData(alipayDeviceService.nfcDeviceActive(activeDeviceDTO));
|
|
|
- if (b) {
|
|
|
+ if (BooleanUtil.isFalse(b)) {
|
|
|
throw new RuntimeException("NFC设备激活失败!");
|
|
|
}
|
|
|
}
|