@cpzxrobot/sdk 1.3.60 → 1.3.61

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 CHANGED
@@ -775,7 +775,7 @@ export class DeviceGateway extends Object {
775
775
  if (manufacturerId === undefined) {
776
776
  return axios.get('/api/v3/device/model');
777
777
  } else {
778
- return axios.get('/api/v3/device/model', { params: { manufacturerId } });
778
+ return axios.get(`/api/v3/device/manufacture/${manufacturerId}/models`);
779
779
  }
780
780
  },
781
781
 
@@ -618,7 +618,7 @@ class DeviceGateway extends Object {
618
618
  return axios.get('/api/v3/device/model');
619
619
  }
620
620
  else {
621
- return axios.get('/api/v3/device/model', { params: { manufacturerId } });
621
+ return axios.get(`/api/v3/device/manufacture/${manufacturerId}/models`);
622
622
  }
623
623
  },
624
624
  create: async (data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.3.60",
3
+ "version": "1.3.61",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {