3***@qq.com
3***@qq.com
  • 发布:2022-11-08 20:55
  • 更新:2022-11-08 20:55
  • 阅读:165

#插件讨论# 【 uni-pay - DCloud前端团队 】签名错误,请检查后再试

分类:uni-app
关联插件: uni-pay

请问 “签名错误,请检查后再试” 要怎么设置?所有参数已经和官网文档对过好几次,实在看不出来问题在哪
exports.main = async (event, context) => {
const unipayIns = unipay.initWeixin({
appId: 'xxx',
mchId: 'xxx',
key: 'xxx',
})
let orderInfo = await unipayIns.getOrderInfo({
openid: event.openid,
body: 'xxx',
outTradeNo: event.suiji,
totalFee: event.pric,
spbillCreateIp:context.CLIENTIP,
tradeType:'JSAPI',
notifyUrl: 'https://xxxxx',
})
return {
orderInfo
}
};

2022-11-08 20:55 负责人:无 分享
已邀请:

要回复问题请先登录注册