diff --git a/api/fetch.js b/api/fetch.js index 30107ba..2677eb4 100644 --- a/api/fetch.js +++ b/api/fetch.js @@ -5,7 +5,8 @@ class Fetch { return new Promise((resolve, reject) => { var headers = { 'content-type': methods === 'postFrom' ? 'application/x-www-form-urlencoded' : - 'application/json' + 'application/json', + 'Accept': 'application/json' } if (needToken) { headers.token = uni.getStorageSync('token'); diff --git a/manifest.json b/manifest.json index d6b3acb..e36dfe2 100644 --- a/manifest.json +++ b/manifest.json @@ -51,9 +51,7 @@ /* 小程序特有相关 */ "mp-weixin" : { "appid" : "wx6172ec67683d31b9", - "requiredPrivateInfos" : [ - "getLocation" - ], + "requiredPrivateInfos" : [ "getLocation" ], "permission" : { "scope.userLocation" : { "desc" : "计算接单距离、调用导航功能"