恢复请求层 appId 注入,修复 wxsignin 400

This commit is contained in:
lik
2026-10-24 21:15:01 +08:00
committed by trae-solo-agent
parent c3e63b8a4c
commit 69a726f84d
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -48,6 +48,10 @@ class Request {
const app = getApp()
const token = app?.globalData?.user?.security?.token || ''
// 服务端 wxsignin / wxgetphonenumber 用 appId 查 conf.json 里对应的
// appid+secret 去换 openid 和手机号,缺了会直接回 400「缺少 appId」
data.appId = 'wxapp-escort'
wx.request({
url: url.startsWith('http') ? url : `${this.baseURL}${url}`,
method,