Skip to content
欢迎扫码关注公众号

快应用微信支付只能拉起一次问题的修复

快应用通过APP方式拉起微信支付时,遇到了比较奇怪的现象:

  • 只有第一次能拉起微信支付界面,并且能支付成功;
  • 删除微信后再次安装,还是只能拉起一次;
  • 安装一个同样包名和签名的安卓APP后,每次都可以正常拉起并支付;

本以为这是快应用未上架导致的,但是上架后仍然是这样。

根据这篇博客上的解释,微信在第一次拉起时没有验证手机上应用的签名是否和微信开放平台上配置的签名是否一致,但是之后都会验证。

最后按照这篇博客上的说法,将 manifest.json => features => service.wxpay 中的 sign 值修改为 sign/certificate.pem 文件中的内容(去除首末行(BEGIN行和END行),删除换行符),然后就可以正常拉起微信支付了。

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.