请求入参: {
"args": {
"path": "/uni-open-bridge/setAccessToken",
"httpMethod": "POST",
"headers": {
"content-length": "155",
"referer": "https://servicewechat.com/wx75297c8d685f8b34/devtools/page-frame.html",
"sec-fetch-site": "cross-site",
"x5-uuid": "53c4ece3cb04f4943b9571f779de6994",
"x-client-ip": "180.139.165.135",
"host": "fc-mp-11169c00-d504-423f-b6c8-872b4f52a0a9.next.bspapp.com",
"content-type": "application/json",
"sec-fetch-mode": "cors",
"x-forwarded-for": "180.139.165.135, 120.27.173.86, 39.96.119.116",
"accept": "/",
"x-real-ip": "180.139.165.135",
"x-sinfo": "on",
"x-forwarded-by": "172.28.195.22:80",
"accept-encoding": "gzip, deflate, br",
"user-agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0.1 Mobile/21A360 Safari/604.1 wechatdevtools/1.06.2409140 MicroMessenger/8.0.5 Language/zh_CN webview/",
"sec-fetch-dest": "empty"
},
"queryStringParameters": {},
"isBase64Encoded": false,
"body": "{\"dcloudAppid\":\"UNIC94F0B2\",\"platform\":\"weixin-mp\",\"openid\":\"oFBSQ7RxERj4QhaGxO3kqGcuNrZ0\",\"value\":{\"access_token\":\"testAccessToken\"},\"expiresIn\":7200}"
},
"requestId": "ac1cc3161734030412062137873"
}
[uni-open-bridge/ac1cc3161734030412062137873/101ms/ERROR] Method[uni-open-bridge] was not found in index.obj.js
Error: Method[uni-open-bridge] was not found in index.obj.js
at c (/tmp/function/index.js:1:2522)
at exports.main (/tmp/function/index.js:1:2829)
at $e (/tmp/function/index.js:1:85168)
at Ve (/tmp/function/index.js:1:86234)
at Xe (/tmp/function/index.js:1:87207)
at runUserFunction (/code/index.js:93:265124)
at (/code/index.js:93:259283)
请求响应状态: fail
index.obj.js自动生成的,一直都在对应目录下面
1 个回复
DCloud_uni-ad_HDX
检查下 url 化路径问题,看上去是多了
/uni-open-bridge