企业微信自建应用开发网页授权链接获取不到code

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

AI助手支持GPT4.0

企业微信自建应用开发网页授权链接获取不到code

使用get方式调用此接口

地址为:https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww72d6c1bbcd39f81e&redirect_uri=http%3A%2F%2Fselfsvc.epimab.com%3A8080%2F&response_type=code&scope=snsapi_base&state=#wechat_redirect

但是返回的内容为:

<!DOCTYPE html><html>    <head>        <title>锟斤拷歉锟斤拷锟斤拷锟斤拷锟斤拷</title>        <meta charset="utf-8">        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">        <!-- <link rel="stylesheet" type="text/css" href="https:/es.wx.qq.com/connect/zh_CN/htmledition/style/wap_err3696b4.css"> -->        <link rel="stylesheet" type="text/css" href="https:/es.wx.qq.com/open/libs/weui/0.4.1/weui.css">    </head>    <body>        <div class="weui_msg">            <div class="weui_icon_area"><i class="weui_icon_info weui_icon_msg"></i></div>            <div class="weui_text_area">                                <h4 class="weui_msg_title">锟斤拷锟斤拷锟斤拷业微锟脚客伙拷锟剿达拷锟斤拷锟斤拷</h4>                            </div>            <!-- <div style="color: gray;font-size: 15px;margin-top: 5px;">(vzdyRa0864d341)</div> -->        </div>    </body></html>

并没有返回code值 是哪里调用的有问题 请指教

Use get to call this interface. The address is: https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww72d6c1bbcd39f81e&redirect_ uri=http%3A%2F%2 Fselfsvc.epimab.com%3A8080%2F&response_ type=code&scope=snsapi_ base&state=#wechat_ Redirect, but the returned content is: DOCTYPE HTML> < HTML > < head > < title > copy of document, copy of template, copy of template < / Title > < meta charset = "UTF-8" > < meta name = "viewport" content = "width = device width, initial scale = 1, user scale = 0" > - < link rel="stylesheet" type="text / CSS" ref=“ https:/es.wx.qq.com/connect/zh_ CN/htmledition/style/wap_ err3696b4.css"> -->

(vzdyra0864d341) < / div > < / body > (vzdyra0864d341) < / div > - > < / body > < / HTML > does not return the code value

回答:

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

您好,直接点击上面的授权链接是已经产生code重定向到回调链接地址了,http://selfsvc.epimab.com:8080/?code=cSEdPnnPSKi0nt8PBLx9tK4dN7frqxqDDSBpU788SU0&state=

旧信笺:好的 这个问题已经解决了

-EOF-

AI助手支持GPT4.0