From 3ac24a2e280b6bbcbf3af6b33f81af0f7b43c2ed Mon Sep 17 00:00:00 2001 From: gcd Date: Thu, 24 Apr 2025 00:00:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=9C=9F=E6=9C=BA?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=8E=A5=E5=8F=A3=E5=A4=B1=E8=B4=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/fetch.js | 3 ++- manifest.json | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) 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" : "计算接单距离、调用导航功能"