- 监听实时地理位置变化事件的onLocationChange接口审核问题?
小程序中并未使用到onLocationChange接口,但是小程序在提交审核时提示审核不通过的原因是未开通onLocationChange接口。申请开通onLocationChange接口又提示不通过,原因是没有相关场景。这不是死循环么。这样该怎么提交审核,微信的大爷们。。。
2022-06-30 - auth.code2Session 接口调用超时,是服务器崩了么?
接口超时响应如下 {"message":"request to https://api.weixin.qq.com/sns/jscode2session?appid=xxxxxx&secret=xxxxxxxx&js_code=xxxxxx&grant_type=authorization_code failed, reason: connect ETIMEDOUT 175.27.5.221:443","type":"system","errno":"ETIMEDOUT","code":"ETIMEDOUT"}
2022-06-08 - web-view组件加载小程序公众号文章,返回时需要返回两次的问题该怎么解决?
看到社区里面好多都有这个问题,但都是一直未解决状态
2022-03-10 - 微信支付APIv3 post接口body为json时报错签名错误该怎么解决?
// 下单接口 const url = `/v3/pay/transactions/app`; const body = { amount: { total: 0.01, currency: "CNY" }, appid: appID, description: 'app下单测试', mchid: mchid, notify_url: 'https://mprobe-health-dev-1e389x3d07a8c4-1304890945.ap-shanghai.app.tcloudbase.com/wechatPayNotifyUrl', out_trade_no: '20210910123456789' }; const result = await wxpay.v3.pay.transactions.native.post(body) console.info('[下单结果]',result) const timestamp = generateTimestamp(); const nonceStr = nonce(); const signature = buildAuth({ method: 'POST', body, uri: url, timestamp, nonceStr }); console.log('[签名]', signature) const result = await fetch('https://api.mch.weixin.qq.com' + url, { body: JSON.stringify(body), method: 'POST', dataType: 'json', headers: { 'Authorization': authorization(mchid, apiCertSerialNo, timestamp, nonceStr, signature), 'Content-Type': 'application/json', 'Accept': 'application/json' } }); const resultJson = await result.json(); console.log('[微信支付下单信息]', resultJson) 代码如上,当fetch请求中的body为json对象时,将返回SIGN_ERROR,sign not match,当body为json string时,接口返回”法将 JSON 输入源“/body/amount/total”映射到目标字段“总金额”中,此字段需要一个合法的 64 位有符号整数”错误,该如何解决?
2021-09-13