收藏
回答

微信公众号无法进行静默授权,返回请在微信客户端打开链接?(已经是在微信客户端中打开)

2022-09-13 18:26:36.235  INFO 1 --- [io-8087-exec-96] c.r.c.p.w.service.impl.WxPayServiceImpl  : 获取code

2022-09-13 18:26:36.236  INFO 1 --- [io-8087-exec-96] c.r.c.p.w.service.impl.WxPayServiceImpl  : 申请code请求url:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf265726ad7d708ce&redirect_uri=https%3A%2F%2Fcharity.iliving.cn%2Fm%2Fpay%2Fwxpay%2FwxCodeReturn&response_type=code&scope=snsapi_userinfo&state=17E#wechat_redirect

2022-09-13 18:26:36.571  INFO 1 --- [io-8087-exec-96] c.r.c.p.w.service.impl.WxPayServiceImpl  : 申请code,请求url返回结果:<200,<!DOCTYPE html>

<html>

    <head>

        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">

    </head>

    <body>

        <script type="text/javascript">

            var ua = navigator.userAgent.toLowerCase();

            var isWeixin = ua.indexOf('micromessenger') != -1;

            var isAndroid = ua.indexOf('android') != -1;

            var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1);

            if (!isWeixin) {

                document.head.innerHTML = '<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://res.wx.qq.com/open/libs/weui/0.4.1/weui.css">';

                document.body.innerHTML = '<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>';

            }

        </script>

    </body>

</html>

,[X-WX-FJ:"001,018,0000001024", SKFrmwRespCookie:"6xgAIBkQASgiMAHe", Content-Type:"text/html; charset=gbk", Cache-Control:"no-cache, must-revalidate", Connection:"keep-alive", Content-Length:"1050"]>


最后一次编辑于  2022-09-13
回答关注问题邀请回答
收藏

1 个回答

  • 阿宅
    阿宅
    2023-06-30

    请问,解决了吗?

    2023-06-30
    有用
    回复
登录 后发表内容