2021与蓝度共同重构项目,服务端
liuhaonan
2022-08-24 815ae0af6c81f61801f51fcbc454d8b030149654
ximon-admin/src/main/java/com/sandu/ximon/admin/manager/iot/rrpc/BaseInvokeSyncService.java
@@ -36,7 +36,7 @@
    public <T extends BaseResponseInnerFrame<T>> WrapResponseCommonFrame<T> sendRRPC(String deviceName, IRequestFrame iRequestFrame, Class<T> clz){
        CommonFrame commonFrame = sendRRPC(deviceName, iRequestFrame);
        if (commonFrame == null) {
            throw new BusinessException("rrpc请求失败");
            return null;
        }
        WrapResponseCommonFrame<T> responseCommonFrame = new WrapResponseCommonFrame<>();
        BeanUtils.copyProperties(commonFrame, responseCommonFrame);
@@ -61,8 +61,7 @@
        result = result.replace("\\", "");
        Map map = JSON.parseObject(result, Map.class);
        result = (String) map.get("msg");
        CommonFrame connectFrame = FrameUtils.transformMessageToFrame(result);
        return connectFrame;
        return FrameUtils.transformMessageToFrame(result);
    }
    /**
@@ -170,6 +169,7 @@
        request.setIdentifier("rrpc");
        request.setArgs(JSON.toJSONString(param));
        //todo
        // 获得服务调用响应
        InvokeThingServiceResponse response = null;
        try {