@cpzxrobot/sdk 1.0.13 → 1.0.14

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.
@@ -46,7 +46,7 @@ export class FeedTowerGateway extends DeviceFilter<FeedTower> {
46
46
  }
47
47
 
48
48
  wrapList(list: FeedTower[]): Promise<FeedTower[]> {
49
- const ids = this.devices.map((device) => device.id)
49
+ const ids = list.map((device) => device.id)
50
50
  //TODO 其他设备的详情需要支持,目前只有喂料塔
51
51
  return this.context.axios
52
52
  .post('/api/v1/pigfarm/device/status/list', ids)
@@ -41,7 +41,7 @@ class FeedTowerGateway extends device_filter_1.DeviceFilter {
41
41
  });
42
42
  }
43
43
  wrapList(list) {
44
- const ids = this.devices.map((device) => device.id);
44
+ const ids = list.map((device) => device.id);
45
45
  //TODO 其他设备的详情需要支持,目前只有喂料塔
46
46
  return this.context.axios
47
47
  .post('/api/v1/pigfarm/device/status/list', ids)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {