@cpzxrobot/sdk 1.3.59 → 1.3.60

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.
@@ -266,7 +266,7 @@ class PigfarmGateway extends Object {
266
266
  },
267
267
  getGroup: async (unit) => {
268
268
  var axios = await this.context.ready;
269
- return axios.post(`/api/v1/pigfarm/heatLamp/group?unitId={unit.id}`);
269
+ return axios.get(`/api/v1/pigfarm/heatLamp/group?unitId=${unit.id}`);
270
270
  },
271
271
  deleteGroup: async (id) => {
272
272
  var axios = await this.context.ready;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.3.59",
3
+ "version": "1.3.60",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -328,7 +328,7 @@ export class PigfarmGateway extends Object {
328
328
  },
329
329
  getGroup: async (unit: Unit): Promise<any> => {
330
330
  var axios = await this.context.ready;
331
- return axios.post(`/api/v1/pigfarm/heatLamp/group?unitId={unit.id}`);
331
+ return axios.get(`/api/v1/pigfarm/heatLamp/group?unitId=${unit.id}`);
332
332
  },
333
333
  deleteGroup: async (id: any): Promise<any> => {
334
334
  var axios = await this.context.ready;