@cpzxrobot/sdk 1.0.83 → 1.0.84

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.
@@ -78,11 +78,11 @@ class FactoryGateway extends Object {
78
78
  return {
79
79
  //上传banner,formData中包含key为file的文件,返回code
80
80
  add: (factory, form) => {
81
- return this.context.axios.get(`/api/v1/factory/${factory.id}/banner/add`);
81
+ return this.context.axios.post(`/api/v1/factory/${factory.id}/banner/add`, form);
82
82
  },
83
83
  del: (code) => {
84
84
  return this.context.axios.get(`/api/v1/factory/banner/delete?id=${code}`);
85
- }
85
+ },
86
86
  };
87
87
  }
88
88
  }
@@ -100,15 +100,16 @@ export class FactoryGateway extends Object {
100
100
  return {
101
101
  //上传banner,formData中包含key为file的文件,返回code
102
102
  add: (factory: Factory, form: FormData) => {
103
- return this.context.axios.get(
104
- `/api/v1/factory/${factory.id}/banner/add`
103
+ return this.context.axios.post(
104
+ `/api/v1/factory/${factory.id}/banner/add`,
105
+ form
105
106
  );
106
107
  },
107
108
  del: (code: String) => {
108
109
  return this.context.axios.get(
109
110
  `/api/v1/factory/banner/delete?id=${code}`
110
111
  );
111
- }
112
+ },
112
113
  };
113
114
  }
114
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.0.83",
3
+ "version": "1.0.84",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {