@cpzxrobot/sdk 1.1.88 → 1.1.89

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.
@@ -76,10 +76,10 @@ class TransportGateway extends Object {
76
76
  });
77
77
  });
78
78
  },
79
- addImage: () => {
79
+ addImage: (args) => {
80
80
  return this.context.ready.then(() => {
81
81
  return this.context.axios
82
- .upload("/api/v2/pigfarm/feedTower/fodder/photo/add")
82
+ .upload("/api/v2/pigfarm/feedTower/fodder/photo/add", args)
83
83
  .then((res) => {
84
84
  if (res.data.code != 200) {
85
85
  throw res.data.message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.88",
3
+ "version": "1.1.89",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -87,10 +87,10 @@ export class TransportGateway extends Object {
87
87
  });
88
88
  });
89
89
  },
90
- addImage: () => {
90
+ addImage: (args: any) => {
91
91
  return this.context.ready.then(() => {
92
92
  return this.context.axios
93
- .upload("/api/v2/pigfarm/feedTower/fodder/photo/add")
93
+ .upload("/api/v2/pigfarm/feedTower/fodder/photo/add",args)
94
94
  .then((res) => {
95
95
  if (res.data.code != 200) {
96
96
  throw res.data.message;