|
|
@ -21,7 +21,7 @@ function onRequest(context) {
|
|
|
|
|
|
|
|
|
|
|
|
var devices = context.unit.params.devices;
|
|
|
|
var devices = context.unit.params.devices;
|
|
|
|
var deviceType = context.uriParams.deviceType;
|
|
|
|
var deviceType = context.uriParams.deviceType;
|
|
|
|
var deviceId = request.getParameter("deviceId");
|
|
|
|
var deviceId = request.getParameter("deviceId").trim();
|
|
|
|
|
|
|
|
|
|
|
|
if (devices) {
|
|
|
|
if (devices) {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -41,4 +41,4 @@ function onRequest(context) {
|
|
|
|
exit();
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|