Browse Source

mod nfc 激活

tanbin 9 tháng trước cách đây
mục cha
commit
6fb1242a78

+ 2 - 1
device-api-service/src/main/java/com/xy/service/factory/device/impl/open/OpenDeviceFactoryImpl.java

@@ -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设备激活失败!");
                 }
             }