andypliang 7 anni fa
parent
commit
7b53aaf35c
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2
    1
      miniapp/app/base/libs/request.js

+ 2
- 1
miniapp/app/base/libs/request.js Vedi File

15
                 'openid': userInfo.openid || ''
15
                 'openid': userInfo.openid || ''
16
             };
16
             };
17
             if (method && method.toUpperCase() === 'POST') {
17
             if (method && method.toUpperCase() === 'POST') {
18
-                header['content-type'] = 'application/x-www-form-urlencoded';
18
+                // header['content-type'] = 'application/x-www-form-urlencoded';
19
+                header['content-type'] = 'application/json';
19
             }
20
             }
20
             return header;
21
             return header;
21
         };
22
         };

Loading…
Annulla
Salva