【2选1】构造网页授权链接接口的#wechat_redirect参数疑惑~!

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:06 3139 0 全屏看文

AI助手支持GPT4.0

【2选1】构造网页授权链接接口的#wechat_redirect参数疑惑~!
问题类型 API/组件名称 终端类型 微信版本 基础库版本
Bug 身份验证 微信安卓客户端 不知 找不到诶
  1. #wechat_redirect此字段是固定跟在url后面:https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect

2、还是说可以代表明确的数值:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx74e955420d317a6e&redirect_uri='.urlencode('http://1.xxxxweixin.applinzi.com/test/login.php').'&response_type=code&scope=snsapi_base&state=1(这里的1,代表#wechat_redirect,这样可以嘛?

是第一种正确or第二种~!小白求助!!! 感谢好心人 ~么么哒~~!!

Problem type API / component name terminal type wechat version basic library version bug authentication wechat Android client can't find wechat_ Redirect this field is always followed by the URL: https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_ uri=REDIRECT_ URI&response_ type=code&scope=snsapi_ base&state=STATE#wechat_ Or can it represent a definite value https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx74e955420d317a6e&redirect_ uri='.urlencode(' http://1.xxxxweixin.applinzi.com/test/login.php ').'&response_ type=code&scope=snsapi_ Base & state = 1 (here, 1 stands for ා wechat_ Redirect, is that ok Is the first kind correct or the second kind ~! Xiaobai asks for help!!! Thank you for your kindness!!

回答:

企业微信运营专员-千夜:

您好,//open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect #wechat_redirect 这个是固定内容来的,不能替换

金戈铁马:
"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxxxxxxxxxx&redirect_uri=http%3a%2f%2fapp.xxx.com%2fxxx&response_type=code&scope=snsapi_base&state=#wechat_redirect"

给你看下我写的

-EOF-

AI助手支持GPT4.0