Browse Source

接口改成get

panxingxin 5 years ago
parent
commit
76c5772ae6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/providers/user-data.ts

+ 1 - 1
src/providers/user-data.ts

@@ -184,7 +184,7 @@ export class UserData {
     this.nativeHttp.setDataSerializer('json');
     const headers = { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json;charset=UTF-8' };
     return new Promise((resolve, reject) => {
-      from(this.nativeHttp.post(`${environment.APP_SERVE_URL}/production/sample/factory/pCode`,
+      from(this.nativeHttp.get(`${environment.APP_SERVE_URL}/production/sample/factory/pCode`,
         data,
         headers)).pipe(
           finalize(() => loading.dismiss() )