andypliang 6 år sedan
förälder
incheckning
7b53aaf35c
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2
    1
      miniapp/app/base/libs/request.js

+ 2
- 1
miniapp/app/base/libs/request.js Visa fil

@@ -15,7 +15,8 @@ const request = (cmd, method = 'POST', params = {}, handleStatus = false) => {
15 15
                 'openid': userInfo.openid || ''
16 16
             };
17 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 21
             return header;
21 22
         };

Loading…
Avbryt
Spara