@cpzxrobot/sdk 1.1.80 → 1.1.81

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/unit_gateway.ts +2 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.80",
3
+ "version": "1.1.81",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/unit_gateway.ts CHANGED
@@ -114,12 +114,10 @@ export class UnitGateway extends Object {
114
114
  });
115
115
  });
116
116
  },
117
- clear: (unitIds: Number[]) => {
117
+ clear: (args:any) => {
118
118
  return this.context.ready.then((axios) => {
119
119
  return axios.post(
120
- `/api/v2/batch/unit/empty`,{
121
- unitIds
122
- });
120
+ `/api/v2/batch/unit/empty`,args);
123
121
  });
124
122
  },
125
123
  //获取某个单元的批次信息