Commit 40685e076ea613f30a514df252fe4d3ad863e83a
Merge remote-tracking branch 'origin/master_dev' into master_dev
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -97,7 +97,7 @@ public abstract class AbstractRpcController extends BaseController { |
97 | 97 | String additionalInfo = JacksonUtil.toString(additional); |
98 | 98 | String methodName = rpcRequestBody.get(FastIotConstants.Rpc.METHOD_NAME).asText(); |
99 | 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 | 101 | ObjectNode methodParams = (ObjectNode) rpcRequestBody.get(FastIotConstants.Rpc.PARAMS_NAME); |
102 | 102 | methodParams.put(FastIotConstants.Rpc.TARGET_NAME,targetDevice.getName()); |
103 | 103 | } | ... | ... |