@cpzxrobot/sdk 1.3.13 → 1.3.14

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.
@@ -107,7 +107,7 @@ class UserGateway extends Object {
107
107
  return {
108
108
  add: async (id) => {
109
109
  var axios = await this.context.ready;
110
- return axios.post(`/api/v2/user/${id}/sign/add`);
110
+ return axios.upload(`/api/v2/user/${id}/sign/add`);
111
111
  },
112
112
  get: async (id) => {
113
113
  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.13",
3
+ "version": "1.3.14",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/user_gateway.ts CHANGED
@@ -131,7 +131,7 @@ export class UserGateway extends Object {
131
131
  return {
132
132
  add: async (id: number) => {
133
133
  var axios = await this.context.ready;
134
- return axios.post(`/api/v2/user/${id}/sign/add`);
134
+ return axios.upload(`/api/v2/user/${id}/sign/add`);
135
135
  },
136
136
  get: async (id: number) => {
137
137
  var axios = await this.context.ready;