@cpzxrobot/sdk 1.3.99 → 1.3.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/device_gateway.ts +1 -1
- package/dist/device_gateway.js +1 -1
- package/package.json +1 -1
package/device_gateway.ts
CHANGED
|
@@ -317,7 +317,7 @@ export class DeviceGateway extends Object {
|
|
|
317
317
|
allActive: (request.factoryIds?.length || 0) > 0 ? false : request.allActive !== undefined ? request.allActive : true
|
|
318
318
|
};
|
|
319
319
|
|
|
320
|
-
return axios.post(`/api/v2/device/stat/alarms/rule/
|
|
320
|
+
return axios.post(`/api/v2/device/stat/alarms/rule/activate`, requestData).then((res) => {
|
|
321
321
|
if (res.data.code !== 200) {
|
|
322
322
|
throw new Error(res.data.message || '激活报警规则失败');
|
|
323
323
|
}
|
package/dist/device_gateway.js
CHANGED
|
@@ -243,7 +243,7 @@ class DeviceGateway extends Object {
|
|
|
243
243
|
factoryIds: request.factoryIds || [],
|
|
244
244
|
allActive: (((_a = request.factoryIds) === null || _a === void 0 ? void 0 : _a.length) || 0) > 0 ? false : request.allActive !== undefined ? request.allActive : true
|
|
245
245
|
};
|
|
246
|
-
return axios.post(`/api/v2/device/stat/alarms/rule/
|
|
246
|
+
return axios.post(`/api/v2/device/stat/alarms/rule/activate`, requestData).then((res) => {
|
|
247
247
|
if (res.data.code !== 200) {
|
|
248
248
|
throw new Error(res.data.message || '激活报警规则失败');
|
|
249
249
|
}
|