https://open.weixin.qq.com/sns/getexpappinfo?appid=XXX&path=YYY
其中:
https://open.weixin.qq.com/sns/getexpappinfo //固定地址
?appid //后面添加自己小程序appid
&path //后面添加路由路径注意添加.html, 双重 encodeURIComponent
例子
const path = encodeURIComponent(`/pages/webview?url=${encodeURIComponent(resultUrl)}` )
const fullPath = `https://open.weixin.qq.com/sns/getexpappinfo?appid=wx123456789&path=${encodeURIComponent(path)}`
Created
December 10, 2022 03:41
-
-
Save mutongwu/d90817e4b4a074621c7db2c9e1a334ec to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment