支持的项目类型
不同类型需要传参数不同,区别在于url,请对照下表确定是否需要url,url什么格式
类型名 | type值 | 参数 | 备注 |
---|---|---|---|
app授权(扫码模式) | 99 | appid,type,url | url格式为https://open.weixin.qq.com/connect/confirm?uuid=xxxxxx |
网页授权 | 0 | appid,type,url | url示例:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxfe19ff97e6f04472&redirect_uri=https%3A%2F%2Fcsbj.linkroutes.com%2Fapi%2Fwx%2FaccessToken&response_type=code&scope=snsapi_userinfo&state=https://csbj.linkroutes.com/2021/gaokao/index.html?sid=o2jAcwMGnJCSZl7FT9KBQSdMy47w&connect_redirect=1#wechat_redirect |
小程序取code | 1 | appid,type | |
小程序取code+资料 | 11 | appid,type | |
小程序取code+资料+绑手机 | 12 | appid,type | |
联合授权 | 5 | appid,type,(url)? | 联合授权根据子任务类型确定是否需要传url |