fix: 修复真机请求接口失败问题

This commit is contained in:
gcd 2025-04-24 00:00:37 +08:00
parent 4f7a9ef918
commit 3ac24a2e28
2 changed files with 3 additions and 4 deletions

View File

@ -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');

View File

@ -51,9 +51,7 @@
/* */
"mp-weixin" : {
"appid" : "wx6172ec67683d31b9",
"requiredPrivateInfos" : [
"getLocation"
],
"requiredPrivateInfos" : [ "getLocation" ],
"permission" : {
"scope.userLocation" : {
"desc" : "计算接单距离、调用导航功能"