Commit 2be82ac469977080f13c38be99d75d4b6e9125ec
Merge branch '20230614' into 'master_dev'
20230614 See merge request yunteng/thingskit!197
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -97,7 +97,7 @@ public abstract class AbstractRpcController extends BaseController { | @@ -97,7 +97,7 @@ public abstract class AbstractRpcController extends BaseController { | ||
97 | String additionalInfo = JacksonUtil.toString(additional); | 97 | String additionalInfo = JacksonUtil.toString(additional); |
98 | String methodName = rpcRequestBody.get(FastIotConstants.Rpc.METHOD_NAME).asText(); | 98 | String methodName = rpcRequestBody.get(FastIotConstants.Rpc.METHOD_NAME).asText(); |
99 | JsonNode params = rpcRequestBody.get(FastIotConstants.Rpc.PARAMS_NAME); | 99 | JsonNode params = rpcRequestBody.get(FastIotConstants.Rpc.PARAMS_NAME); |
100 | - if(params!=null && !params.isTextual()){ | 100 | + if(DeviceTypeEnum.SENSOR == targetDevice.getDeviceType() && params!=null && !params.isTextual()){ |
101 | ObjectNode methodParams = (ObjectNode) rpcRequestBody.get(FastIotConstants.Rpc.PARAMS_NAME); | 101 | ObjectNode methodParams = (ObjectNode) rpcRequestBody.get(FastIotConstants.Rpc.PARAMS_NAME); |
102 | methodParams.put(FastIotConstants.Rpc.TARGET_NAME,targetDevice.getName()); | 102 | methodParams.put(FastIotConstants.Rpc.TARGET_NAME,targetDevice.getName()); |
103 | } | 103 | } |