android 手机h5无法调起微信签约,但是ios 可以
这是签约中间页地址 https://www.test.com/m/sign?payUrl=https://payapp.weixin.qq.com/papay/readentrustwebtemplate?type=index&session_id=3aa95c0bf7d33afa7b8e375e449c2f8074033acd4ba6bab0844bd&session_sign=df34d6f304bc03cb24b0a13d05#/redirect&payResultUrl=https://www.test.com/a/sign/confirm/redirect/240910059600440630/10000000/2000006&payParam={"order":"202596020440630","applixt":"009109100596020440630","so":"1000","payMode":"2","Id":0136,"path":"m","activityId":null,"xtend":null,"result":"","isNew":"1","Confirm":"1"} 这是签约地址(ios 可以调起微信, android 部分机型--->跳转后无法调起也无提示) "Mozilla/5.0 (Linux; U; Android 10; zh-CN; MIX 3 Build/QKQ1.190828.002) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.108 UCBrows https://payapp.weixin.qq.com/papay/readentrustwebtemplate?type=index&session_id=3aa95c0bf7d33afa7b8e37cdb9d449c2f8074033acd4ba6bab0844bd&session_sign=df34d6f3047d203cb24b0a13d05#/redirect 但是同样在这个页面 参数改为https://www.test.com/m/sign?a=111111 签约地址 https://payapp.weixin.qq.com/papay/readentrustwebtemplate?type=index&session_id=94759ce9c9884f747f8292156b14054e72e2de248d91de5178&session_sign=87d284b75cae098e19c ios android 都可以调起 下面是有问题的refer 怀疑是不是refer 长度过长导致的 {>var server = { content: {"errcode":0,"errmsg":"","openlink":"weixin://dl/business/?ticket=tb712ae9cc0ff5c9db23ec1d87eed22c8","refer":"https://www.test.com/m/sign?payParam=%7B%22ooExt%22%3A%222010191000100596130210910%22,%22applxt%22%3A%22910191000100596130210910%22,%22spNo%22%3A%22100004%22,%22pade%22%3A%2222%22,%22itemId%22%3A2000000136,%22path%22%3A%22m%22,%22activityId%22%3Anull,%22activityExtend%22%3Anull,%22result%22%3A%22%22,%22isocess%22%3A%221%22,%22isHeonfirm%22%3A%221%22%7D&payResultUrl=https%3A%2F%2Fwww.test.com%2Finface%2Fsign%2Fconfirm%2Fredirect0200910191000100596130210910%2F10000004%2F200013&payUrl=https%3A%2F%2Fpayapp.weixin.qq.com%2Fpapay%2Freadentrustwebtemplate%3Ftype%3Dindex%26session_id%3Dc29feaa277cab088963d83fe52a316998f75fea0ca6349a6c2d71630083c5730%26session_sign%3D7d21d8daef04fdb405d42dae83db920e%23%2Fredirect"}} 2022.03.10 更新 假设用户通过 https://www.test.com/m/sign 页面,跳转 https://payapp.weixin.qq.com/papay/readentrustwebtemplate 调起微信 微信不能拉起签约或者支付,可能存在两个问题 一 、跳转签约地址 https://payapp.weixin.qq.com/papay/readentrustwebtemplate 时 ,refer 中带有enode的参数如 ":"https://www.test.com/m/sign?payParam=%7B%22ooExt%22%3A%222010191000100596130210910%22,%22applxt% 。 建议在url上不要要携带encode参数。 二、 当支付场景为 在 A 页面获取支付参数,将支付参数带到 中间页 即 https://www.test.com/m/sign,然后通过中间页https://www.test.com/m/sign 跳转https://payapp.weixin.qq.com/papay/readentrustwebtemplate 调起微信。 需要在用户离开中间页https://www.test.com/m/sign 时,强制用户点击页面,才能唤起调起微信 的询问弹窗 [图片] [图片]