window.location.href = `https://open.weixin.qq.com/connect/qrconnect?appid=${appid}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_login&state=MOBILE_STATE#wechat_redirect`;
平台配置的回调地址是 一级域名 和 代码里面的是二级域名 其他都是相同的 但是一直提示参数错误???为什么啊?该配置的都已经配置了
redirect_uri 要 encode 可以参考文档https://developers.weixin.qq.com/doc/oplatform/Website_App/WeChat_Login/Wechat_Login.html
"https://dev-cn-pay.tenbilliongame.com/webpay/" 我使用的是这个解析 不兼容吗?
你应该贴一下完整的url出来。
域名配置的地方看一下,只需要配置域名就行了,路径不用写