Comments (5)
你这个redirect_uri本身格式有问题,你可以试下:
decodeURIComponent("http%3A%2F%2Fwww.xyz.com%2Findex.php%3Fa%3D326%b%3D4")
会报错。
要确保redirect_uri里面的内容是可以正确decode的
from getweixincode.
首先谢谢大佬
http%3A%2F%2Fwx.llxtd.com%2Fapp%2Findex.php%3Fi%3D3%26t%3D3
decode 出来是
http://wx.llxtd.com/app/index.php?i=3&t=3
然后 补全所有的地址
http://fwh.llxtd.com/get-weixin-code.html?appid=wx97388116af6c38ef&scope=snsapi_base&state=hello-world&redirect_uri=http%3A%2F%2Fwx.llxtd.com%2Fapp%2Findex.php%3Fi%3D3%26t%3D3
在微信web开发工具中访问这个地址就是显示 redirect_url 参数错误,链接被重定向成
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx97388116af6c38ef&redirect_uri=http%3A%2F%2Fwx.llxtd.com%2Fapp%2Findex.php%3Fi%3D3%26j%3D3%26c%3Dauth%26a%3Doauth%26scope%3Dsnsapi_base&response_type=code&scope=snsapi_base&state=we7sid-3a6f1a378b1196e857f9aad1f33845d8&uin=MjAyMjM3ODM0MA%3D%3D&key=acf9e0498e32d7d7598a567a21247f76720f0146b3c5a9e78933e97aea2a92e5f09095b14ce5c4a02081e79933b8d846&pass_ticket=Y1QBya5RO28DSIv/QyeipkJTPbIftki2ayhxu3ri167NMl2wU5ZhSk8QIQsEIxGWrVkR8+RaBHVmuWLzmOs9+g==
from getweixincode.
奇怪的是,你这个微信开发工具中的redirect_uri decode出来是
http://wx.llxtd.com/app/index.php?i=3&j=3&c=auth&a=oauth&scope=snsapi_base
理论上,应该是
http://fwh.llxtd.com/get-weixin-code.html?appid=wx97388116af6c38ef&scope=snsapi_base&state=hello-world&redirect_uri=http%3A%2F%2Fwx.llxtd.com%2Fapp%2Findex.php%3Fi%3D3%26t%3D3
from getweixincode.
嗯 这个很奇怪 还有一个奇怪的是
http://wx.llxtd.com/app/index.php?i=3&t=3
这个地址直接在浏览器可以访问 哈哈 并没有提示必须在微信中打开
from getweixincode.
@haohexin 我的参数丢了。请问你是怎么弄得啊
from getweixincode.
Related Issues (20)
- 这个URL是对外的,跳转地址可以自定义,如果被恶意利用了怎么办? HOT 1
- 嵌入公众号问题 HOT 2
- 使用的时候部分客户端会出现code been used, "errcode":40163 HOT 1
- 授权回调域名校验出错
- 二次获取access_token问题 HOT 1
- ios新版本是否不可用 HOT 1
- 这样跳转以后,不出现微信获取信息确认页面了? HOT 1
- 如何解决「取消授权」留在中间页,而不是关闭页面? HOT 5
- 此rep是初衷是为了解决微信公众号回调域名仅切只有一个的问题?存疑 :) HOT 3
- 单页应用spa, 路由使用hash模式, 会导致重定向的url异常 HOT 5
- 是不是不支持用了cdn和强制性跳转到https的网站? HOT 1
- 使用微信开发WEB工具会一直显示未绑定开发者 HOT 1
- 第二次腾讯回调时候,怎么还有redirect_uri这个参数? HOT 5
- 通过一个域名301到您的这个授权url,微信不跳转
- 为什么需要第二步?
- 中间页授权前提示 请在微信客户端打开链接
- 你好,使用本方法后一直跳转授权登录页面是什么问题?
- 域名转发成功,但是后台获取openid,展示code已被使用过
- 授权问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from getweixincode.